/* Custom styles for Snowie Roswell */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F9F0FC;
}
::-webkit-scrollbar-thumb {
  background: #D495DD;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #BE6BCB;
}

/* Navbar transition */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(249, 240, 252, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

/* Nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7B2D8E, #F5C54B);
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.active .mobile-link {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}
#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Menu toggle animation */
#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}
.reveal[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}
.reveal[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

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

/* Hero text gradient for italic */
h1 .text-plum-500 {
  background: linear-gradient(135deg, #7B2D8E 0%, #BE6BCB 50%, #F5C54B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image hover effects */
.rounded-2xl.overflow-hidden {
  transition: box-shadow 0.4s ease;
}
.rounded-2xl.overflow-hidden:hover {
  box-shadow: 0 20px 60px rgba(123, 45, 142, 0.15);
}

/* Card hover lift */
.reveal:hover {
  transform: translateY(-4px);
}

/* Floating card animation */
.absolute.-bottom-6.-left-6 {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Pulse animation for dot */
.animate-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Subtle background pattern */
body {
  background-image: radial-gradient(circle at 1px 1px, rgba(123, 45, 142, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #7B2D8E;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.75rem;
    line-height: 1.05;
  }
  @media (min-width: 768px) {
    h1 {
      font-size: 4.5rem;
    }
  }
  @media (min-width: 1024px) {
    h1 {
      font-size: 5.5rem;
    }
  }
  @media (min-width: 1280px) {
    h1 {
      font-size: 6rem;
    }
  }
}

/* Selection color */
::selection {
  background-color: rgba(123, 45, 142, 0.15);
  color: #44164E;
}
