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

html {
    scroll-behavior: smooth;
}

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

::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #232330;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a4a;
}

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

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

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

/* ── Navbar Scrolled State ── */
.navbar-scrolled {
    background: rgba(10, 10, 15, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.menu-line:last-child {
    transform-origin: center;
}

.menu-toggle-active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle-active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 20px;
    margin-left: 0;
    background: #fbbf24;
}

/* ── Floating Cards Animation ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

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

/* ── Scroll Indicator ── */
@keyframes scroll-down {
    0% { top: -16px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 40px; opacity: 0; }
}

.animate-scroll-down {
    animation: scroll-down 1.8s ease-in-out infinite;
}

/* ── Reveal Animations (Progressive Enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Default state: always visible */
.reveal {
    opacity: 1;
    transform: none;
}

/* ── Service Cards ── */
.service-card {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Gold Divider ── */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
}

/* ── Button Focus States ── */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Input Focus States ── */
input:focus,
textarea:focus {
    outline: none;
}
