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

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

body {
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #F5A623;
  color: #261421;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  border: 3px solid rgba(107, 47, 91, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
  top: 60%;
  right: -3%;
  width: 200px;
  height: 200px;
  border: 3px solid rgba(245, 166, 35, 0.15);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-square-1 {
  top: 25%;
  right: 8%;
  width: 60px;
  height: 60px;
  background: rgba(245, 166, 35, 0.12);
  border-radius: 12px;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
  bottom: 20%;
  left: 5%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(107, 47, 91, 0.07);
  animation: float 7s ease-in-out infinite;
}

.shape-ring-1 {
  top: 45%;
  left: 10%;
  width: 100px;
  height: 100px;
  border: 4px solid rgba(245, 166, 35, 0.1);
  border-radius: 50%;
  animation: float 9s ease-in-out infinite reverse;
}

.shape-dots {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 249, 243, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(107, 47, 91, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #F5A623;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

#mobileMenu.open {
  max-height: 400px;
  opacity: 1;
}

.mobile-link {
  display: block;
  border-radius: 1rem;
  transition: all 0.2s ease;
}

.mobile-link:hover {
  padding-left: 1rem;
}

/* ===== HERO STATS ===== */
.stat-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 30px rgba(107, 47, 91, 0.1);
  border: 1px solid rgba(107, 47, 91, 0.06);
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-1 { animation-delay: 0.5s; }
.card-2 { animation-delay: 0.65s; }
.card-3 { animation-delay: 0.8s; }

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== SCHEDULE CARDS ===== */
.schedule-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.schedule-card:hover {
  transform: translateY(-6px);
}

/* ===== BACK TO TOP ===== */
#backToTop {
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:not(.visible) {
  opacity: 0;
  visibility: hidden;
}

/* ===== FORM STYLES ===== */
select option {
  background: #F9F0F7;
  color: #3D1D34;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .stat-card {
    flex: 1;
    min-width: 0;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .stat-card {
    min-width: 140px;
  }
}

/* ===== REDUCED MOTION ===== */
@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;
  }
}
