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

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(250, 240, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(123, 45, 139, 0.1);
}

#navbar.scrolled .nav-link {
  color: #411548;
}

#navbar.scrolled .font-serif {
  color: #411548;
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

/* Hamburger animation */
#menu-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero blobs animation */
.hero-blob {
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  animation-delay: 0s;
}

.blob-2 {
  animation-delay: -3s;
}

.blob-3 {
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Service card hover */
.service-card {
  opacity: 1;
  transform: translateY(0);
}

/* Selection color */
::selection {
  background: #F5C518;
  color: #411548;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7B2D8B;
}

/* 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;
  }
}
