/* ── Base & Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

/* ── Navbar ── */
.nav-fixed {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 58, 110, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 30px rgba(107, 58, 110, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.nav-logo-text {
  transition: color 0.3s ease;
}

.nav-link {
  position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  position: relative;
}

/* ── Hero ── */
.hero-section {
  position: relative;
}

.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(212, 160, 23, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(255, 217, 109, 0.1) 0%, transparent 50%);
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(45, 21, 44, 0.4) 0%, transparent 60%);
}

/* Floating stat cards */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.stat-card-1 {
  animation-delay: 0s;
}

.stat-card-2 {
  animation-delay: -2s;
}

.stat-card-3 {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Scroll line animation */
.scroll-line {
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -12px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 12px; opacity: 0; }
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6B3A6E, #D4A017);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ── Why Us Pattern ── */
.why-us-pattern {
  background-image: radial-gradient(circle at 20% 80%, rgba(212, 160, 23, 0.3) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Feature cards */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD96D, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

/* ── CTA Pattern ── */
.cta-pattern {
  background-image: radial-gradient(circle at 30% 50%, rgba(107, 58, 110, 0.4) 0%, transparent 50%),
                    radial-gradient(circle at 70% 50%, rgba(45, 21, 44, 0.3) 0%, transparent 50%);
}

/* ── Testimonial Cards ── */
.testimonial-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(107, 58, 110, 0.12);
}

/* ── Scroll Reveal (below fold only) ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .floating-card {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .floating-card {
    animation: none;
  }
  .scroll-line {
    animation: none;
  }
}
