/* ========== BASE & RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ========== HERO OVERLAY ========== */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(61, 19, 67, 0.88) 0%,
    rgba(123, 45, 142, 0.78) 40%,
    rgba(168, 61, 159, 0.65) 70%,
    rgba(245, 166, 35, 0.45) 100%
  );
}

/* ========== NAVBAR ========== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F5A623;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ========== MOBILE MENU ========== */
.mobile-link { opacity: 1; }
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }

/* ========== SERVICE CARDS ========== */
.service-card { transform: translateY(0); }
.service-card:hover { transform: translateY(-6px); }

/* ========== GALLERY ========== */
.gallery-item { overflow: hidden; border-radius: 1rem; }
.gallery-item img { transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-item:hover img { transform: scale(1.08); }

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .service-card:hover { transform: none; }
  .gallery-item img { transition: none; }
}

/* Animation states (applied via JS) */
.reveal-animated {
  opacity: 0;
  transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-animated {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .reveal-animated.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FLOATING ANIMATIONS ========== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-16px) rotate(45deg); }
}
@keyframes floatCircle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes floatCircle2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.float-slow { animation: floatCircle 6s ease-in-out infinite; }
.float-medium { animation: floatCircle2 4.5s ease-in-out infinite; }
.float-fast { animation: floatCircle 3.5s ease-in-out infinite; }

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf0fb; }
::-webkit-scrollbar-thumb { background: #7B2D8E; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5c1f65; }

/* ========== SELECTION ========== */
::selection { background: rgba(245, 166, 35, 0.3); color: #3d1343; }
