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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 148, 15, 0.3);
    color: #fff;
}

/* ── Scroll Reveal (progressive enhancement — content visible by default) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal-section:nth-child(2) { transition-delay: 0.08s; }
    .reveal-section:nth-child(3) { transition-delay: 0.16s; }
    .reveal-section:nth-child(4) { transition-delay: 0.24s; }
}

/* ── Floating Cards Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: -1s; animation-duration: 4.5s; }
.floating-card:nth-child(3) { animation-delay: -2s; animation-duration: 5s; }
.floating-card:nth-child(4) { animation-delay: -0.5s; animation-duration: 3.5s; }

/* ── Navbar ── */
.nav-scrolled {
    background: rgba(26, 10, 30, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 139, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled #navbar .text-white {
    color: #fff !important;
}

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

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, background-color 0.4s ease;
}

/* ── Buttons ── */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

::-webkit-scrollbar-track {
    background: #1A0A1E;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #61236D;
}

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