/* ========================================
   Toohey Lake Rustic Campground
   Custom Styles
======================================== */

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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #D4A017;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #eabf24;
}

/* Selection */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #102a43;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes floatDelay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

.animate-float-delay {
    animation: floatDelay 7s ease-in-out infinite;
}

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

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

/* Default state for scroll reveals — always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
#navbar.scrolled {
    background: rgba(10, 26, 43, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

/* Mobile menu */
#mobileMenu {
    animation: fadeIn 0.3s ease;
}

.mobile-link {
    display: block;
    transition: all 0.3s ease;
}

/* Buttons */
button, a[type="submit"] {
    cursor: pointer;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Print styles */
@media print {
    nav, #contact, #gallery, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
