/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .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; }
}

/* ========== NAVBAR SCROLL STATE ========== */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(15, 22, 66, 0.08);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* ========== CUSTOM CURSOR GLOW (hero only) ========== */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* ========== FLOATING ANIMATION ========== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* ========== DECORATIVE PATTERN ========== */
.section-pattern {
  background-image: radial-gradient(circle, rgba(30, 46, 171, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ========== BUTTON RIPPLE EFFECT ========== */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-ripple:hover::after {
  opacity: 1;
}

/* ========== IMAGE HOVER ZOOM ========== */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s ease;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

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

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

/* ========== MOBILE MENU TRANSITIONS ========== */
#mobile-menu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu:not(.mobile-menu-open) {
  opacity: 0;
  pointer-events: none;
}

/* ========== STEP CONNECTOR LINES ========== */
.step-connector {
  position: absolute;
  top: 40px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(to right, rgba(234, 179, 8, 0.5), transparent);
}

/* ========== SUBTLE BACKGROUND GRADIENTS ========== */
.hero-gradient {
  background: linear-gradient(135deg, #FFFBEB 0%, #F0F4FF 50%, #FFF1F2 100%);
}

/* ========== CARD HOVER LIFT ========== */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 22, 66, 0.12) !important;
}
