/* Custom styles for Southern Bliss */

:root {
    --teal-450: #14b8a6;
    --gold-450: #f5c542;
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Stat card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-card > div:nth-child(1) {
    animation: float 4s ease-in-out infinite;
}

.stat-card > div:nth-child(2) {
    animation: float 4s ease-in-out infinite;
    animation-delay: -2s;
}

.stat-card > div:nth-child(3) {
    animation: float 4s ease-in-out infinite;
    animation-delay: -1s;
}

.stat-card > div:nth-child(4) {
    animation: float 4s ease-in-out infinite;
    animation-delay: -3s;
}

/* Scroll reveal base — content always visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS adds the class */
.reveal.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal.is-hidden {
        opacity: 1;
        transform: none;
    }
    .stat-card > div {
        animation: none;
    }
}

/* Navbar scrolled state */
nav.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold text gradient for special elements */
.text-gold-gradient {
    background: linear-gradient(135deg, #f5d56a 0%, #d4a017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

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

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