/* Custom styles for Bomb Squad Disc Golf */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf9;
}
::-webkit-scrollbar-thumb {
    background: #d4405c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82840;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 251, 249, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(124, 29, 52, 0.08);
}

.nav-scrolled .font-serif {
    color: #7c1d34 !important;
}

.nav-scrolled .tracking-\[0\.2em\] {
    color: #b82840 !important;
}

/* Hero decorative animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rot, 2deg)); }
    50% { transform: translateY(-12px) rotate(var(--rot, 2deg)); }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 5.5s;
}

/* Subtle entrance animations for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* Ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #681a2e;
}
