/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ===== NAV ===== */
#mainNav {
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
#mainNav.scrolled {
  background: rgba(3, 8, 16, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Mobile menu button animation */
#menuBtn.open .line1 { transform: rotate(45deg) translate(3px, 3px); }
#menuBtn.open .line2 { opacity: 0; }
#menuBtn.open .line3 { transform: rotate(-45deg) translate(3px, -3px); width: 20px; }

/* ===== HERO ===== */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-shape-1 {
  width: 600px; height: 600px;
  background: rgba(212, 160, 23, 0.08);
  top: -200px; right: -100px;
}
.hero-shape-2 {
  width: 400px; height: 400px;
  background: rgba(212, 160, 23, 0.05);
  bottom: -100px; left: 10%;
}
.hero-shape-3 {
  width: 200px; height: 200px;
  background: rgba(212, 160, 23, 0.1);
  top: 40%; left: 45%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphShape 8s ease-in-out infinite;
}
.hero-shape-4 {
  width: 120px; height: 120px;
  background: rgba(212, 160, 23, 0.15);
  top: 20%; left: 5%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphShape 6s ease-in-out infinite reverse;
}
@keyframes morphShape {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Geometric accent shapes */
.hero-geo {
  position: absolute;
  pointer-events: none;
}
.hero-geo--square {
  width: 80px; height: 80px;
  border: 2px solid rgba(212, 160, 23, 0.3);
  top: 15%; right: 8%;
  transform: rotate(15deg);
}
.hero-geo--circle {
  width: 40px; height: 40px;
  background: rgba(212, 160, 23, 0.2);
  border-radius: 50%;
  bottom: 25%; right: 15%;
}
.hero-geo--triangle {
  width: 0; height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(212, 160, 23, 0.15);
  top: 60%; right: 5%;
  transform: rotate(-20deg);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #D4A017;
  color: #0A1628;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 60px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
}
.btn-primary:hover {
  background: #efc840;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 60px;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.08);
  transform: translateY(-2px);
}

/* ===== MARQUEE ===== */
.marquee-track {
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.service-card:not(.revealed) {
  opacity: 0;
  transform: translateY(30px);
}

/* ===== PROCESS CARDS ===== */
.process-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.process-card:not(.revealed) {
  opacity: 0;
  transform: translateY(30px);
}

/* ===== SCROLL REVEAL (below fold only) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== BACK TO TOP ===== */
#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== FORM FOCUS ===== */
input:focus, textarea:focus {
  outline: none;
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobileMenu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-shape-1 { width: 300px; height: 300px; }
  .hero-shape-2 { width: 200px; height: 200px; }
  .hero-geo--square { display: none; }
  .hero-geo--triangle { display: none; }
}
