/* Custom CSS for Dive Adventures */

:root {
    --midnight-900: #0a1628;
    --midnight-800: #122238;
    --midnight-700: #1a3050;
    --mint-500: #4ade80;
    --mint-400: #6ee7b7;
    --mint-300: #a7f3d0;
    --mint-200: #d1fae5;
    --mint-100: #ecfdf5;
}

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

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

::-webkit-scrollbar-track {
    background: var(--midnight-900);
}

::-webkit-scrollbar-thumb {
    background: var(--mint-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mint-300);
}

/* Reveal on scroll animations */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Custom selection color */
::selection {
    background: var(--mint-300);
    color: var(--midnight-900);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}
