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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* === Hero Gradient === */
.hero-gradient {
    background: linear-gradient(135deg, #0a1628 0%, #102140 35%, #172d54 65%, #1a3362 100%);
    position: relative;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.3) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(30, 58, 110, 0.5) 0%, transparent 70%);
    bottom: 5%;
    left: -5%;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* === Navbar === */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* === Scroll Reveal === */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* === Mobile Menu === */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #e2bc5e;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* === Selection === */
::selection {
    background-color: rgba(212, 168, 67, 0.3);
    color: #0a1628;
}

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

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