/* Custom styles for The Ridge */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2e5a8a;
}

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobileMenu {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(6, 13, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 64, 102, 0.3);
}

/* Mobile menu button animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    img,
    .group:hover img {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav,
    #contactForm,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
