/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Initial state for reduced-motion users — always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating Cards ── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}
.floating-card:nth-child(2) { animation-delay: -1s; }
.floating-card:nth-child(3) { animation-delay: -2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Navbar ── */
#navbar.scrolled {
    background: rgba(250, 245, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(216, 180, 254, 0.3);
    box-shadow: 0 4px 24px rgba(126, 34, 206, 0.06);
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Custom 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='%23a855f7' 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 12px center;
    padding-right: 36px;
}

/* ── Smooth Focus ── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ── Selection ── */
::selection {
    background: rgba(168, 85, 247, 0.2);
    color: #581c87;
}
