/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0a1628;
    color: #f0ebe0;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(184, 148, 62, 0.3);
    color: #fff;
}

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

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
}

/* Reduce 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;
    }
}

/* Navbar transition states */
nav.scrolled {
    background-color: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(184, 148, 62, 0.15);
}

nav.scrolled .menu-line {
    background-color: #f0ebe0;
}

/* Mobile menu open state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(
        90deg,
        #b8943e 0%,
        #f0d78c 25%,
        #d4af5a 50%,
        #f0d78c 75%,
        #b8943e 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Scroll reveal base states */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
    transform: translateX(-32px);
}

.reveal-right {
    transform: translateX(32px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Image zoom container */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-zoom:hover {
    transform: scale(1.04);
}

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

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

::-webkit-scrollbar-thumb {
    background: #b8943e;
    border-radius: 3px;
}

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

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(184, 148, 62, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(10, 22, 40, 0.3) 0%, transparent 50%);
}

/* Button hover glow */
.btn-gold:hover {
    box-shadow: 0 0 30px rgba(184, 148, 62, 0.3);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
