/* ==========================================
   Nafee Campground — Custom Styles
   ========================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3461;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #234782;
}

/* Selection */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #ffffff;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Smooth image rendering */
img {
    -webkit-font-smoothing: antialiased;
    image-rendering: auto;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(5, 13, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    translate: 0 0;
}

#back-to-top:not(.visible) {
    opacity: 0;
    pointer-events: none;
    translate: 0 16px;
}

/* Geometric decorative elements */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text fallback */
.text-gradient-mint {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    img {
        transition: none;
    }
}

/* Print styles */
@media print {
    #navbar, #back-to-top, .mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: #000 !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .lg\:col-span-5 {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Large mobile phones */
@media (min-width: 400px) {
    .font-display.text-5xl {
        font-size: 3rem;
        line-height: 0.95;
    }
}
