/* Base styles and custom properties */
:root {
    --plum-700: #7B2D8B;
    --plum-900: #3d1242;
    --plum-950: #2a0a2e;
    --amber-400: #F5A623;
    --amber-500: #e89510;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom selection color */
::selection {
    background: rgba(123, 45, 139, 0.2);
    color: var(--plum-900);
}

/* ===== HERO BLOBS ===== */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #c47dbf, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffd470, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.hero-blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #ebd3eb, transparent 70%);
    top: 40%;
    left: 15%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== WHY US BLOBS ===== */
.why-us-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.why-us-blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffd470, transparent 70%);
    top: -100px;
    left: -100px;
}

.why-us-blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #d9aed9, transparent 70%);
    bottom: -50px;
    right: -50px;
}

/* ===== NAVIGATION ===== */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

.nav-scrolled.scrolled {
    background-color: rgba(250, 245, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 139, 0.1);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 1;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-blob,
    .why-us-blob,
    .scroll-indicator {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .service-card .group {
        transition: none;
    }
    button, a {
        transition: none;
    }
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .service-card > div {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    #hero h1 {
        font-size: 3rem;
    }
}
