/* ===== Custom Styles for Izaack Walton Summer Camp ===== */

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

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

::-webkit-scrollbar-track {
    background: #040B14;
}

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

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

/* Selection color */
::selection {
    background: rgba(29, 184, 124, 0.3);
    color: #fff;
}

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

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hidden state for scroll-triggered reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ===== Navbar Styles ===== */
.navbar-scrolled {
    background: rgba(4, 11, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.menu-line {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle-active .menu-line:nth-child(3) {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Card Hover Effects ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Button Ripple Effect ===== */
a[href="tel:+13097594849"] {
    position: relative;
    overflow: hidden;
}

/* ===== Image Optimization ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3FD09A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    img,
    .group-hover\:scale-105 {
        transition: none;
    }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .font-display {
        font-size: 2rem;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav,
    #menu-toggle,
    #mobile-menu {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .bg-midnight-900,
    .bg-midnight-800 {
        background: white !important;
    }

    .text-white,
    .text-midnight-900 {
        color: black !important;
    }
}
