/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== NAVBAR SCROLL STATE ========== */
#navbar.scrolled {
    background: rgba(10, 15, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .menu-line {
    background: #faf9f6;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
    opacity: 1;
}

.mobile-link:hover {
    opacity: 1;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ========== GOLD LINE DECORATIONS ========== */
.h-line {
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* ========== BUTTON HOVER EFFECTS ========== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

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

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}

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

/* ========== FORM FOCUS STATES ========== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* ========== IMAGE LAZY LOAD FALLBACK ========== */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"][complete] {
    opacity: 1;
}

img[loading="lazy"] {
    opacity: 0;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

@media (min-width: 1024px) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
