/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 152, 46, 0.2);
    color: #0a1628;
}

/* ── Navigation ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* ── Hero Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-body {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

/* ── Scroll Reveal ── */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Menu hover effects ── */
.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateX(4px);
}

/* ── Image hover ── */
img {
    transition: opacity 0.5s ease;
}

/* ── Mobile menu transitions ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: rgba(201, 152, 46, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 152, 46, 0.5);
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible {
    outline: 1px solid rgba(201, 152, 46, 0.5);
    outline-offset: 2px;
}

/* ── Utility ── */
.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
