/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(74, 10, 18, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8B1A2A;
}

/* Selection color */
::selection {
    background: #6B0F1A;
    color: #F5E6E0;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

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

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

/* Gallery image aspect ratios */
.grid > div:nth-child(1) img,
.grid > div:nth-child(5) img {
    height: 100%;
    min-height: 250px;
}

.grid > div:nth-child(2) img,
.grid > div:nth-child(4) img,
.grid > div:nth-child(6) img {
    height: 100%;
    min-height: 200px;
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C9A962;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    img {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}
