/* === Base & Typography === */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(201, 162, 39, 0.3);
    color: #f5f5f4;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* === Navbar === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(8, 7, 6, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Mobile Menu === */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* === Gold shimmer on hover for buttons === */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* === Image hover zoom container === */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0e0c0b;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c9a227;
}

/* === Focus styles === */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
    border-radius: 4px;
}

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

@keyframes pulse-gold {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    img, .rounded-2xl.overflow-hidden img {
        transition: none !important;
    }
    
    .reveal[data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
