/* ========== CUSTOM STYLES ========== */

/* Scroll Reveal Base - progressive enhancement, content visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS is active and reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Default state for JS-gated reveals */
    .scroll-reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-track {
    background: #f0f7f5;
}

::-webkit-scrollbar-thumb {
    background: #7dd3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4db897;
}

/* ========== NAVBAR TRANSITIONS ========== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 26, 51, 0.08);
}

.nav-text-color {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text-color {
    color: #0a1a33;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7dd3b8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: #1b3964;
}

/* ========== MOBILE MENU ========== */
.mobile-nav-link {
    position: relative;
}

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

/* ========== WAVE ANIMATION ========== */
@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* ========== BUTTON HOVER EFFECTS ========== */
a {
    transition: all 0.2s ease;
}

/* ========== IMAGE LOADING ========== */
img {
    max-width: 100%;
    height: auto;
}

/* ========== FOCUS STYLES ========== */
:focus-visible {
    outline: 2px solid #7dd3b8;
    outline-offset: 2px;
}

/* ========== SELECTION ========== */
::selection {
    background: #d6f5e9;
    color: #0a1a33;
}
