/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== NAVBAR ===== */
.nav-scrolled {
    box-shadow: 0 1px 3px rgba(107, 58, 107, 0.08);
}

.mobile-link {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-link:hover {
    background-color: rgb(237, 224, 240);
    color: rgb(107, 58, 107);
}

/* ===== 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: 400px;
    height: 400px;
    background: rgb(168, 105, 168);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 300px;
    height: 300px;
    background: rgb(245, 197, 24);
    bottom: -80px;
    left: 10%;
    animation-delay: -3s;
}

.hero-blob-3 {
    width: 200px;
    height: 200px;
    background: rgb(217, 189, 217);
    top: 30%;
    left: 40%;
    animation-delay: -5s;
}

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

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

.why-blob-1 {
    width: 500px;
    height: 500px;
    background: rgb(168, 105, 168);
    top: -150px;
    left: -100px;
}

.why-blob-2 {
    width: 350px;
    height: 350px;
    background: rgb(245, 197, 24);
    bottom: -100px;
    right: -50px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    border: 1px solid rgb(237, 224, 240);
}

.service-card:hover {
    border-color: transparent;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion: make everything immediately visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== SELECTION ===== */
::selection {
    background: rgb(217, 189, 217);
    color: rgb(49, 29, 53);
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid rgb(245, 197, 24);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== FORM SELECT ARROW ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B3A6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    appearance: none;
}
