/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ===== NAV ===== */
#nav { transition: background 0.3s, box-shadow 0.3s, padding 0.3s; }
#nav.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }
#mobileMenu.open .mobile-link { transform: translateY(0); opacity: 1; transition-delay: 0.1s; }
.mobile-link { transform: translateY(20px); opacity: 0; transition: all 0.3s ease; }

/* ===== HERO SHAPES ===== */
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}
.shape-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
  bottom: 10%; left: 5%;
  animation: float-slow 6s ease-in-out infinite reverse;
}
.shape-3 {
  width: 150px; height: 150px;
  border: 2px solid rgba(20,184,166,0.15);
  top: 25%; right: 3%;
  border-radius: 30px;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}
.shape-4 {
  width: 80px; height: 80px;
  background: rgba(20,184,166,0.2);
  border-radius: 16px;
  bottom: 20%; right: 15%;
  transform: rotate(30deg);
  animation: spin-slow 15s linear infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: linear-gradient(135deg, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.4) 100%);
  backdrop-filter: blur(8px);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  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; }

/* ===== CUSTOM SELECT ===== */
select option { background: #1e293b; color: white; }

/* ===== MOBILE MENU BUTTON ===== */
.menu-line { transition: all 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 20px; margin-left: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .font-display { letter-spacing: 0.02em; }
}
</style>
