/* Base styles and custom overrides */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom selection color */
::selection {
    background-color: #3aa88a;
    color: #f4faf8;
}

/* Smooth image rendering */
img {
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f4faf8;
}
::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3aa88a;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}
#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem;
}

/* Scroll reveal base — progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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