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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #d6c4eb;
    color: #3a214f;
}

/* ========== ANIMATED BLOBS ========== */
.hero-blob {
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -2s; }
.blob-3 { animation-delay: -4s; }
.blob-4 { animation-delay: -1s; }
.blob-5 { animation-delay: -3s; }
.blob-6 { animation-delay: -2.5s; }
.blob-7 { animation-delay: -5s; }
.blob-8 { animation-delay: -1.5s; }
.blob-9 { animation-delay: -4.5s; }

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

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-blob {
        animation: none;
    }
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-blur-xl;
    box-shadow: 0 1px 20px rgba(107, 63, 160, 0.08);
}

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

/* ========== CUSTOM SELECT ========== */
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='%236b3fa0' stroke-width='2' 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;
}

/* ========== BACK TO TOP ========== */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* ========== UTILITY ========== */
@media (max-width: 639px) {
    .font-serif {
        font-size: 2.5rem;
    }
}
