/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    background-color: #0f0f1a;
    color: #ffffff;
}

::selection {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f0f1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

/* ── Navbar ── */
#navbar.scrolled {
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-link {
    position: relative;
}

/* ── Hero Animations ── */
.hero-subtitle {
    animation: fadeUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-desc {
    animation: fadeUp 1s ease 0.7s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 1s ease 0.9s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Indicator ── */
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── Reveal Animations ── */
.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; }

/* ── Input Focus ── */
input:focus, textarea:focus {
    border-color: rgba(251, 191, 36, 0.6) !important;
}

/* ── Divider ── */
h2 span {
    background-clip: text;
    -webkit-background-clip: text;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
