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

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

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

#navbar.scrolled {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(140, 16, 62, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc4c76;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    transition: transform 0.2s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== FLOATING CARDS ========== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card--top {
    animation-delay: 0s;
}

.card--mid {
    animation-delay: -1.3s;
}

.card--bot {
    animation-delay: -2.6s;
}

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

/* ========== BLOBS ========== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: blobMove 12s ease-in-out infinite;
}

.blob--blush {
    background: #ffd6dc;
}

.blob--blush2 {
    background: #fce7eb;
    animation-delay: -4s;
    animation-duration: 15s;
}

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

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

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

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

/* ========== BUTTON HOVER EFFECTS ========== */
a {
    transition: all 0.2s ease;
}

/* ========== SELECTION ========== */
::selection {
    background: #fce7eb;
    color: #420619;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
