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

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'DM Serif Display', Georgia, serif;
}

/* === Navbar === */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 164, 94, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Menu Tabs === */
.menu-tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
}

.menu-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.menu-tab.active {
    background: rgba(200, 164, 94, 0.15);
    color: #c8a45e;
    border-color: rgba(200, 164, 94, 0.3);
}

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

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

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

/* === Hamburger Animation === */
.hamburger-line {
    transition: all 0.3s ease;
}

#mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .hamburger-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

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

/* === Staggered delays === */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

::-webkit-scrollbar-thumb {
    background: rgba(200, 164, 94, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 164, 94, 0.5);
}

/* === Selection === */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #fff;
}

/* === Image hover container === */
.rounded-xl {
    transition: transform 0.3s ease;
}

/* === Form select arrow override for Webkit === */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8a45e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6z'/%3E%3C/svg%3E");
}

/* === Subtle gold glow on focus === */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(200, 164, 94, 0.3);
}
