/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hide elements by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FLOATING ANIMATION ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ========== MOBILE MENU ANIMATION ========== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* ========== NAVBAR SCROLL EFFECT ========== */
#navbar.scrolled {
    background-color: rgba(15, 43, 76, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========== BUTTON HOVER GLOW ========== */
a:hover, button:hover {
    transition: all 0.2s ease;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7dd3af;
}

/* ========== FORM FOCUS STATES ========== */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 230, 207, 0.4);
}

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

/* ========== SELECTION COLOR ========== */
::selection {
    background-color: #a8e6cf;
    color: #0f2b4c;
}

/* ========== MOBILE MENU LINKS ========== */
.mobile-link {
    display: block;
}

.mobile-link:hover {
    padding-left: 1rem;
}

/* ========== ACCESSIBILITY ========== */
@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 {
        opacity: 1;
        transform: none;
    }
    
    .animate-float {
        animation: none;
    }
}
