/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 13, 26, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .mobile-menu-btn {
    border-color: rgba(201, 168, 76, 0.3);
}

/* ── Hero Fade-In ── */
.hero-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.9s ease forwards;
}

.hero-fade-in:nth-child(2) { animation-delay: 0.15s; }
.hero-fade-in:nth-child(3) { animation-delay: 0.3s; }
.hero-fade-in:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating Stat Cards ── */
.stat-card {
    opacity: 0;
    transform: translateX(40px);
    animation: cardFloatIn 0.8s ease forwards;
}

.card-1 { animation-delay: 0.6s; }
.card-2 { animation-delay: 0.8s; }
.card-3 { animation-delay: 1.0s; }

@keyframes cardFloatIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-card {
    animation: cardFloatIn 0.8s ease forwards, cardFloat 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0.6s, 0.6s; }
.card-2 { animation-delay: 0.8s, 0.8s; }
.card-3 { animation-delay: 1.0s, 1.0s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-1 { animation: cardFloatIn 0.8s ease forwards, cardFloat1 6s ease-in-out infinite; }
.card-2 { animation: cardFloatIn 0.8s ease forwards, cardFloat2 7s ease-in-out infinite; }
.card-3 { animation: cardFloatIn 0.8s ease forwards, cardFloat3 5.5s ease-in-out infinite; }

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── Reveal on Scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Image Hover ── */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

::-webkit-scrollbar-track {
    background: #050d1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

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

/* ── Select Arrow ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c9a84c' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ── Focus Visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    .stat-card {
        display: none;
    }
}

@media (max-width: 767px) {
    .font-display {
        word-spacing: -0.02em;
    }
}
