/* ===== Base & Utilities ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ===== Nav ===== */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #d4a017, #f5e18a);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== Mobile Menu ===== */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: opacity 0.3s ease; }
.menu-line { transition: all 0.3s ease; }
#menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
#menu-btn.active .menu-line:nth-child(2) { opacity: 0; }
#menu-btn.active .menu-line:nth-child(3) { width: 1.5rem; transform: rotate(-45deg) translate(3px, -3px); }

/* ===== Reveal Animations ===== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(0); }
.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

@media (prefers-reduced-motion: no-preference) {
    .reveal-up.is-hidden { opacity: 0; transform: translateY(30px); }
    .reveal-left.is-hidden { opacity: 0; transform: translateX(-30px); }
    .reveal-right.is-hidden { opacity: 0; transform: translateX(30px); }
}

/* ===== Hero Glows ===== */
.hero-glow {
    opacity: 0.6;
    animation: pulse-glow 6s ease-in-out infinite;
}
.hero-glow--teal { animation-delay: 0s; }
.hero-glow--gold { animation-delay: 2s; }
.hero-glow--teal2 { animation-delay: 4s; }

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ===== Selection ===== */
::selection { background: rgba(212, 160, 23, 0.3); color: #f1f5f9; }

/* ===== Focus visible ===== */
:focus-visible { outline: 2px solid #d4a017; outline-offset: 2px; }

/* ===== Image transitions ===== */
img { display: block; max-width: 100%; }

/* ===== Form focus states ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* ===== Nav scroll state ===== */
nav.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}
