/* Custom styles for B/O Expressions */

/* Scroll reveal base — content always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animated state — only applied by JS when in viewport */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: never animate */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(13, 31, 41, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 168, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold accent underline for headings */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e8a800, transparent);
    margin-top: 12px;
    border-radius: 2px;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1f29;
}
::-webkit-scrollbar-thumb {
    background: #1e3f50;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2e5a6e;
}

/* Selection color */
::selection {
    background: rgba(232, 168, 0, 0.3);
    color: #f0f4f8;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #e8a800;
    outline-offset: 2px;
    border-radius: 4px;
}
