*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --plum-400: #f0abfc;
    --plum-600: #c026d3;
    --plum-900: #701a75;
    --plum-950: #4a044e;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --dark-850: #0f0518;
    --dark-900: #0a0312;
    --dark-950: #06010c;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-950);
    color: #fff;
    overflow-x: hidden;
}

.font-crimson {
    font-family: 'Crimson Pro', Georgia, serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* NAVBAR */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(6, 1, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 30px rgba(0,0,0,0.4);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--amber-400) !important;
}

/* MOBILE MENU */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.75rem;
}

/* HERO STAT CARDS */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-card:nth-child(1) { animation: float1 6s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: float2 7s ease-in-out infinite; }
.stat-card:nth-child(3) { animation: float3 6.5s ease-in-out infinite; }
.stat-card:nth-child(4) { animation: float4 7.5s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* SERVICE CARDS */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 60%);
    pointer-events: none;
}

/* REASON CARDS */
.reason-card {
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* REVEAL ANIMATIONS (progressive enhancement — only when JS runs and motion is preferred) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .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; }
}

/* Loader */
#loader {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Selection */
::selection {
    background: rgba(212, 70, 239, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-950);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--amber-400);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .font-crimson.text-5xl,
    .font-crimson.text-4xl {
        font-size: 2.25rem;
        line-height: 1.1;
    }
}
