*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}
.nav-text { transition: color 0.35s; }
#navbar.scrolled .nav-text { color: #0f172a; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
#navbar.scrolled .nav-link { color: #475569; }
#navbar.scrolled .nav-link:hover { color: #0d9488; }

/* ── Mobile Menu ── */
#mobileMenu { animation: slideDown 0.3s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link { transition: color 0.2s; }

/* ── Hero ── */
.hero-gradient {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 30%, #14b8a6 55%, #2dd4bf 80%, #5eead4 100%);
}
.hero-shapes { pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
.hero-shape-1 {
  width: 500px; height: 500px;
  background: #f0fdfa;
  top: -10%; right: -5%;
  animation: float1 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 300px; height: 300px;
  background: #ccfbf1;
  bottom: 5%; left: -3%;
  animation: float2 10s ease-in-out infinite;
}
.hero-shape-3 {
  width: 150px; height: 150px;
  background: white;
  top: 20%; left: 10%;
  animation: float3 6s ease-in-out infinite;
}
.hero-shape-4 {
  width: 80px; height: 80px;
  background: #99f6e4;
  top: 60%; right: 15%;
  border-radius: 20%;
  animation: float1 7s ease-in-out infinite reverse;
}
.hero-shape-5 {
  width: 200px; height: 200px;
  background: #5eead4;
  bottom: -5%; right: 30%;
  animation: float2 9s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 30px) rotate(5deg); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, 20px); }
}
.hero-heading { animation: fadeUp 0.8s ease both; }
.hero-sub { animation: fadeUp 0.8s 0.15s ease both; }
.hero-badge { animation: fadeUp 0.8s 0.05s ease both; }
.hero-ctas { animation: fadeUp 0.8s 0.3s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Reveal Animations ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Service Cards ── */
.service-card { transform: translateY(0); }
.service-card:hover { transform: translateY(-6px); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ── Focus ── */
:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ── Small screens ── */
@media (max-width: 640px) {
  .hero-shape-1 { width: 250px; height: 250px; }
  .hero-shape-2 { width: 150px; height: 150px; }
  .hero-shape-5 { width: 100px; height: 100px; }
}
