/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background-color: #a7f3d0;
  color: #064e3b;
}

/* ===== NAVBAR ===== */
.navbar-scrolled #navbar {
  background-color: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 1px 20px rgba(5, 158, 105, 0.06);
}

.navbar-scrolled .nav-logo-text {
  color: #064e3b !important;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #059669, #34d399);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

.navbar-scrolled .nav-link {
  color: rgba(6, 78, 59, 0.7) !important;
}

.navbar-scrolled .nav-link:hover {
  color: #059669 !important;
}

/* ===== HERO ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.hero-eyebrow {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-title {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-ctas {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal.revealed:nth-child(2) { transition-delay: 100ms; }
.reveal.revealed:nth-child(3) { transition-delay: 200ms; }
.reveal.revealed:nth-child(4) { transition-delay: 300ms; }

/* ===== MOBILE MENU ===== */
.mobile-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #059669;
  padding-left: 8px;
}

/* ===== BUTTON RIPPLE EFFECT ===== */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ===== IMAGE LAZY LOAD PLACEHOLDER ===== */
img {
  background: linear-gradient(135deg, #d1fae5 0%, #fef9ee 100%);
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fefdf8;
}

::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* ===== SUBTLE HOVER GLOW ON CARDS ===== */
.group:hover .bg-emerald-100 {
  background-color: #a7f3d0;
  transition: background-color 0.3s ease;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
