/* Custom styles for CVAMC Therapeutic Swimming Pool */

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

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

::-webkit-scrollbar-track {
    background: #050A18;
}

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

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

/* Selection color */
::selection {
    background: rgba(45, 191, 145, 0.3);
    color: #D8FDF1;
}

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

/* Water animation for hero */
@keyframes wave {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5px) translateY(-3px); }
    50% { transform: translateX(0) translateY(-5px); }
    75% { transform: translateX(-5px) translateY(-3px); }
}

/* Pulse animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(45, 191, 145, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(45, 191, 145, 0.2);
    }
}

/* Fade in from bottom (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

/* Mobile menu transition */
#mobileMenu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Navbar background transition */
#navbar.scrolled {
    background: rgba(5, 10, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0A1628 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Print styles */
@media print {
    nav, #contactForm button, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: #1a1a1a !important;
    }
}
