/* ============================================
   Eagle Lake Resort — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* ============================================
   Geometric Background Decorations
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(92, 130, 56, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(216, 199, 138, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 15%;
    left: -80px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(92, 130, 56, 0.06);
    top: 40%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(92, 130, 56, 0.15) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 60%;
    right: 8%;
    opacity: 0.6;
}

.geo-rect {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(92, 130, 56, 0.08);
    border-radius: 16px;
    top: 25%;
    left: 8%;
    transform: rotate(45deg);
}

/* ============================================
   Hero Photo Animations
   ============================================ */
.hero-photo {
    animation: floatPhoto 6s ease-in-out infinite;
}

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

.hero-photo:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 5s;
}

@keyframes floatPhoto {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 3deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotation, 3deg)); }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 64, 28, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #5c8238;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement — content is visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ============================================
   Button & Link Focus States
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5c8238;
    outline-offset: 2px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(92, 130, 56, 0.2);
    color: #2d401c;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f2;
}

::-webkit-scrollbar-thumb {
    background: #c7dab3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3bf82;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar, .geo-shape, .hero-photo {
        display: none;
    }
    
    body {
        background: white;
        color: #2d401c;
    }
}
