/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, #064e3b 0%, #059669 35%, #34d399 65%, #a7f3d0 100%);
}

/* ── Floating Bubbles ── */
.hero-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  animation: float linear infinite;
}

.b1 { width: 80px; height: 80px; background: #6ee7b7; top: 15%; left: 8%; animation-duration: 8s; animation-delay: 0s; }
.b2 { width: 50px; height: 50px; background: #a7f3d0; top: 25%; right: 12%; animation-duration: 6s; animation-delay: 1s; }
.b3 { width: 120px; height: 120px; background: #34d399; bottom: 25%; left: 5%; animation-duration: 10s; animation-delay: 2s; }
.b4 { width: 35px; height: 35px; background: #d1fae5; top: 60%; right: 8%; animation-duration: 7s; animation-delay: 0.5s; }
.b5 { width: 65px; height: 65px; background: #6ee7b7; top: 10%; left: 40%; animation-duration: 9s; animation-delay: 3s; }
.b6 { width: 90px; height: 90px; background: #a7f3d0; bottom: 35%; right: 25%; animation-duration: 11s; animation-delay: 1.5s; }
.b7 { width: 45px; height: 45px; background: #34d399; top: 45%; left: 15%; animation-duration: 7.5s; animation-delay: 2.5s; }
.b8 { width: 55px; height: 55px; background: #d1fae5; bottom: 15%; left: 35%; animation-duration: 8.5s; animation-delay: 0.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  33% { transform: translateY(-25px) rotate(5deg) scale(1.05); }
  66% { transform: translateY(15px) rotate(-3deg) scale(0.95); }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #059669;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #f0fdf4;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* ── Tags ── */
.tag {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ── Input Fields ── */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1fae5;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #064e3b;
  background: #fefdf8;
  transition: all 0.2s ease;
  outline: none;
}

.input-field::placeholder {
  color: #a7f3d0;
}

.input-field:focus {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 0;
}

#navbar.nav-scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link::after {
  display: none;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default visible state for reduced-motion or no-JS */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Card Tilt ── */
.card-tilt {
  will-change: transform;
}

/* ── Mobile Menu ── */
#mobileMenu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-bubbles .bubble {
    opacity: 0.12;
  }
  .b3 { width: 70px; height: 70px; }
  .b6 { width: 50px; height: 50px; }
}
