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

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

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(138, 32, 40, 0.08);
}

.nav-link {
  position: relative;
}

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

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile menu */
.mobile-link {
  display: block;
}

/* Floating animation for hero dots */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-12px) scale(1.1); opacity: 1; }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-8px) scale(1.05); opacity: 0.8; }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1.5s;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-float,
  .animate-float-delayed {
    animation: none;
  }
  .reveal {
    transition: none;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* Feature items animation */
.feature-item {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c73d4a;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fffcf8;
}
::-webkit-scrollbar-thumb {
  background: #f6c5ca;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e06470;
}
