/* Young's Resort - Leech Lake | Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 15, 30, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4) !important;
}

.navbar-scrolled .nav-link {
    color: rgba(203, 213, 225, 0.8) !important;
}

.navbar-scrolled .nav-link:hover {
    color: #fbbf24 !important;
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float-slower {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.floating-card-1 { animation: float 4s ease-in-out infinite; }
.floating-card-2 { animation: float-slow 5s ease-in-out infinite; animation-delay: 0.5s; }
.floating-card-3 { animation: float-slower 4.5s ease-in-out infinite; animation-delay: 1s; }
.floating-card-4 { animation: float-delayed 5.5s ease-in-out infinite; animation-delay: 1.5s; }

/* Hero parallax on scroll */
.hero-bg {
    will-change: transform;
}

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

/* Selection color */
::selection {
    background: rgba(157, 23, 77, 0.4);
    color: #fbcfe8;
}

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

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::after {
    opacity: 1;
}

/* Image loading placeholder */
img {
    background-color: #1e293b;
}

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Gradient text utility */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(157, 23, 77, 0.15), 0 0 80px rgba(251, 191, 36, 0.05);
}
