/* ===== Base & Resets ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0512;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4A017, #7C3AED);
    border-radius: 4px;
}

/* ===== Hero Orbs Animation ===== */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.08); }
    66% { transform: translate(25px, -15px) scale(0.92); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-48%, -52%) scale(1.06); }
    66% { transform: translate(-52%, -48%) scale(0.94); }
}

.hero-orb {
    animation: float-1 8s ease-in-out infinite, float-2 12s ease-in-out infinite, float-3 16s ease-in-out infinite;
}

.orb-1 { animation-duration: 10s, 14s, 18s; }
.orb-2 { animation-duration: 12s, 10s, 15s; }
.orb-3 { animation-duration: 14s, 12s, 20s; }

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 5, 18, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(10, 5, 18, 0.95);
    border-bottom-color: rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4A017, #A47DFF);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

/* ===== Reveal Animations ===== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(0); }
.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-orb {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Gold Divider ===== */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
}

/* ===== Card Hover Glow ===== */
.card-glow:hover {
    box-shadow: 0 0 60px rgba(212, 160, 23, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Button Ripple Effect ===== */
button, a[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* ===== Input Autofill ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.05) inset !important;
    -webkit-text-fill-color: #fff !important;
}

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

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
