:root {
  --primary: #ffffff;
  --secondary: #0f0f0f;
  --accent: #D4AF37;
  --text-body: #d3d3d3;
  --bg-light: #1f1f1f;
  --border: #333333;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  --header-height: 88px;
  --container: 1300px;

  /* Animations / motion */
  --motion-duration: 360ms;
  --motion-easing: cubic-bezier(.2, .9, .25, 1);
  --motion-long: 520ms;
}

.light-mode {
  --primary: #0f0f0f;
  --secondary: #ffffff;
  --text-body: #666666;
  --bg-light: #f5f5f5;
  --border: #dddddd;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
}

.light-mode .header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.light-mode .trust-ribbon {
  background: var(--bg-light);
}

.light-mode .testimonial {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-mode .ba-pair,
.light-mode .project-card {
  background: var(--bg-light);
}

.light-mode .cta-overlay {
  background: rgba(240, 240, 240, 0.78);
}

.light-mode .footer {
  background: var(--secondary);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: Roboto, system-ui, Segoe UI, Arial;
  background: var(--secondary);
  color: var(--primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', serif
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 1200;
  display: flex;
  align-items: center
}

.nav-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px
}

.logo img {
  height: 60px;
  object-fit: contain
}

.nav-menu {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center
}

.nav-menu li a {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.98rem
}

.nav-menu li a:hover {
  color: var(--accent)
}

.cta-btn {
  background: var(--accent);
  color: var(--secondary);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 173, 55, 0.12)
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 2px solid transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
}

/* mobile toggle style (gold) */
.mobile-toggle.gold {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--accent)
}

/* mobile toggle - active state (when menu is open) */
.mobile-toggle.active {
  background: #000 !important;
  color: var(--primary) !important;
  border-color: transparent !important;
}

/* New: Mobile full-screen overlay menu (simple, solid background) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(8, 8, 8, 0.98);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + 22px) 20px 24px;
  gap: 18px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 320ms var(--motion-easing), opacity 320ms var(--motion-easing);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .mobile-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: 0;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu ul {
  list-style: none;
  padding: 8px 6px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.mobile-menu a {
  font-size: 1.4rem;
  padding: 12px;
  display: block;
  border-radius: 8px;
  color: var(--primary);
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

/* Hero */
.hero {
  position: relative;
  height: 82vh;
  min-height: 520px;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.45);
  transition: opacity 0.9s ease-in-out
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 10, 10, 0.28), rgba(10, 10, 10, 0.5));
  z-index: 1
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 18px;
  color: #ffffff
}

.hero-content h1 {
  font-size: 3.4rem;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp .9s forwards .3s;
  color: #ffffff
}

.hero-content p {
  color: #d3d3d3;
  font-size: 1.06rem;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp .9s forwards .5s
}

.hero-content a:not(.cta-btn) {
  color: #ffffff
}

.hero-content .cta-btn {
  color: #0f0f0f
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-ribbon {
  background: var(--bg-light);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-body)
}

.accolades-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap
}

.section {
  padding: 100px 0
}

.tabs-header {
  max-width: 920px;
  margin: 0 auto 48px;
  text-align: center
}

/* tab styles */
.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px
}

.tab-button {
  background: none;
  border: 0;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-body);
  font-size: 0.98rem;
  transition: color .25s
}

.tab-button.active {
  color: var(--accent)
}

.tab-content {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 28px
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start
}

.tab-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .28s ease
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start
}

/* Testimonials (sleek redesign) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: start
}

.testimonial {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-left: 4px solid rgba(212, 173, 55, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform var(--motion-duration) var(--motion-easing), opacity var(--motion-duration) var(--motion-easing);
  opacity: 0;
  transform: translateY(8px)
}

.testimonial.visible {
  transform: none;
  opacity: 1
}

.testimonial:hover {
  transform: translateY(-6px)
}

.testimonial .avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  margin-right: 16px;
  flex-shrink: 0
}

.testimonial .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px
}

.testimonial p {
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7
}

.testimonial .author {
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem
}

/* Our Work - consistent aspect ratio using aspect-ratio */
.our-work-section {
  background: transparent;
  padding-top: 48px
}

.ba-list {
  display: grid;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto
}

.ba-pair {
  display: flex;
  gap: 16px;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-light);
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--motion-duration) var(--motion-easing), opacity var(--motion-duration) var(--motion-easing)
}

.ba-pair.visible {
  transform: none;
  opacity: 1
}

.ba-side {
  width: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 6px
}

.ba-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ba-side {
  aspect-ratio: 16/10
}

.ba-badge {
  position: absolute;
  left: 14px;
  top: 12px;
  background: var(--accent);
  color: var(--secondary);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 3;
  transform: translateY(-6px);
  opacity: 0;
  animation: badgeIn .6s forwards .25s
}

@keyframes badgeIn {
  to {
    transform: none;
    opacity: 1
  }
}

.ba-caption {
  padding: 10px 12px;
  color: var(--text-body);
  font-size: 0.95rem
}

/* toggle button for mobile stacked view */
.toggle-btn {
  display: none;
  margin: 12px auto 0;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700
}

/* Projects - consistent cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-light);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: transform var(--motion-duration) var(--motion-easing), opacity var(--motion-duration) var(--motion-easing)
}

.project-card.visible {
  transform: none;
  opacity: 1
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.project-card {
  aspect-ratio: 16/10
}

.project-card .caption {
  padding: 16px;
  color: var(--text-body);
  font-size: 0.95rem;
  text-align: center;
  font-weight: 500;
}

.cta-banner {
  background-image: url('https://images.unsplash.com/photo-1549495805-be236166e927?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  padding: 72px 0
}

.cta-overlay {
  background: rgba(15, 15, 15, 0.78);
  padding: 34px;
  border-radius: 10px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center
}

.map-container {
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.footer {
  background: var(--secondary);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  color: var(--text-body)
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 24px
}

.footer a:hover {
  color: var(--accent)
}

/* Widget buttons */
.contact-widgets {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.contact-widgets a {
  background: var(--accent);
  color: var(--secondary);
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.contact-widgets a:hover {
  transform: scale(1.1);
}

/* Hidden class for view more */
.hidden {
  display: none;
}

/* Specialties styling */
.specialties {
  margin-top: 40px;
}

.specialties ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.specialties li {
  background: var(--bg-light);
  padding: 24px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text-body);
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--motion-easing);
}

.specialties li:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

@media (max-width:992px) {
  .container {
    padding: 0 16px
  }

  .tab-content.active {
    grid-template-columns: 1fr
  }

  .tab-image img {
    height: 360px
  }

  .process-grid {
    grid-template-columns: 1fr
  }

  .cta-overlay {
    padding: 26px
  }

  /* Hide desktop nav on mobile — we use the mobile overlay instead */
  .nav-menu {
    display: none !important;
  }

  .mobile-toggle {
    display: block
  }

  .mobile-toggle.gold {
    display: block
  }

  .hero-content h1 {
    font-size: 2.4rem
  }

  .hero {
    min-height: 52vh
  }

  .ba-pair {
    flex-direction: column
  }

  .ba-side {
    width: 100%;
    aspect-ratio: 16/10
  }

  .toggle-btn {
    display: block
  }

  .ba-pair .ba-side.after {
    display: none
  }

  .ba-pair.show-after .ba-side.before {
    display: none
  }

  .ba-pair.show-after .ba-side.after {
    display: block
  }

  .ba-badge {
    top: 10px;
    left: 12px
  }

  .reviews-grid {
    grid-template-columns: 1fr
  }

  .specialties ul {
    grid-template-columns: 1fr;
  }

  .header {
    --header-height: 72px;
  }

  .logo img {
    height: 50px;
  }

  .hero {
    margin-top: var(--header-height);
    min-height: 60vh;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: 80px 0;
  }

  .tabs-header h2 {
    font-size: 2rem;
  }

  .cta-banner {
    padding: 50px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-widgets {
    bottom: 10px;
    right: 10px;
    gap: 8px;
  }

  .contact-widgets a {
    padding: 10px;
    font-size: 1.2rem;
  }

  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
  }
}

@media (max-width:600px) {
  .hero-content h1 {
    font-size: 1.8rem
  }

  .hero {
    min-height: 46vh
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .map-container {
    height: 300px
  }

  .logo img {
    height: 48px
  }

  .header {
    --header-height: 60px;
  }

  .hero {
    min-height: 50vh;
  }

  .hero-content {
    padding: 12px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 0;
  }

  .tabs-header {
    margin-bottom: 20px;
  }

  .tabs-header h2 {
    font-size: 1.8rem;
  }

  .tabs-nav {
    gap: 5px;
    padding-bottom: 5px;
  }

  .tab-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .tab-content.active {
    gap: 20px;
    padding-top: 20px;
  }

  .tab-image img {
    height: 280px;
  }

  .process-grid {
    gap: 40px;
  }

  .reviews-grid {
    gap: 12px;
  }

  .testimonial {
    padding: 24px;
  }

  .ba-list {
    gap: 15px;
  }

  .ba-pair {
    gap: 10px;
  }

  .projects-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .cta-overlay {
    padding: 20px;
  }

  .cta-banner {
    padding: 40px 0;
  }

  .map-container {
    height: 250px;
  }

  .footer {
    padding: 80px 0;
  }

  .footer-grid {
    gap: 12px;
  }

  .contact-widgets {
    bottom: 8px;
    right: 8px;
  }

  .contact-widgets a {
    padding: 8px;
    font-size: 1rem;
  }

  /* Form responsiveness */
  form {
    padding: 16px;
  }

  form .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  form .submit-div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  form .submit-div .cta-btn {
    width: 100%;
    display: block;
    text-align: center;
  }

  form .submit-div div {
    font-size: 0.9rem;
    text-align: center;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1.0rem;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration: 0ms;
    --motion-long: 0ms;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Smoother transitions and animations */
.tab-image img {
  transition: transform 0.4s var(--motion-easing);
}

.tab-image:hover img {
  transform: scale(1.02);
}

.project-card {
  transition: transform 0.4s var(--motion-easing), opacity 0.4s var(--motion-easing), box-shadow 0.4s var(--motion-easing);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.testimonial {
  transition: transform 0.4s var(--motion-easing), opacity 0.4s var(--motion-easing), box-shadow 0.4s var(--motion-easing);
}

.testimonial:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.ba-pair {
  transition: transform 0.4s var(--motion-easing), opacity 0.4s var(--motion-easing);
}

.ba-side img {
  transition: transform 0.4s var(--motion-easing);
}

.ba-pair:hover .ba-side img {
  transform: scale(1.03);
}

.cta-btn {
  transition: background 0.3s var(--motion-easing), transform 0.3s var(--motion-easing);
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: #e0b84a;
}

.nav-menu li a {
  transition: color 0.3s var(--motion-easing);
}