/* ── Base & Utilities ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(155, 77, 134, 0.2);
    color: #2a1223;
}

/* ── Card Elevation ── */
.card-elevated {
    box-shadow: 0 1px 3px rgba(107, 47, 91, 0.06), 0 4px 16px rgba(107, 47, 91, 0.04);
}

.card-elevated:hover {
    box-shadow: 0 8px 30px rgba(107, 47, 91, 0.12), 0 2px 8px rgba(107, 47, 91, 0.08);
}

/* ── Floating Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 47, 91, 0.08);
}

#navbar.scrolled .nav-link {
    color: #7b2f64;
}

#navbar.scrolled .nav-link:hover {
    color: #46203a;
    background: rgba(107, 47, 91, 0.06);
}

#navbar.scrolled .font-display,
#navbar.scrolled span:first-of-type {
    color: #2a1223;
}

#navbar.scrolled .text-plum-500 {
    color: #9b4d86;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s 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; }

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

.mobile-link {
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.mobile-link:hover {
    padding-left: 12px;
}

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

/* ── Smooth section transitions ── */
section {
    position: relative;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf5f8;
}

::-webkit-scrollbar-thumb {
    background: #d4a8c4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #be7ea8;
}
