/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* ── Navbar ── */
#navbar {
    background: rgba(250, 245, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 173, 203, 0.3);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(74, 25, 66, 0.08);
}

/* ── Floating Cards ── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

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

/* ── Card Hover ── */
.card {
    will-change: transform;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 173, 203, 0.3);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ── Selection ── */
::selection {
    background: rgba(217, 119, 6, 0.2);
    color: #4A1942;
}

/* ── Focus ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D97706;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth image loading ── */
img {
    display: block;
    max-width: 100%;
}
