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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #F3C1CC;
    color: #7B2D3B;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ========== FLOATING CARDS ========== */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: floatA 5s ease-in-out infinite;
    }
    .floating-card-2 {
        animation: floatB 6s ease-in-out infinite;
    }
    .floating-card-3 {
        animation: floatC 5.5s ease-in-out infinite;
    }
    .floating-card-4 {
        animation: floatD 4.5s ease-in-out infinite;
    }
}

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

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

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

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

/* ========== NAVBAR SCROLLED STATE ========== */
.nav-scrolled {
    background: rgba(253, 248, 245, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.nav-transparent .nav-link {
    color: rgba(92, 33, 45, 0.85);
}

.nav-transparent .nav-logo-text {
    color: #5C212D;
}

/* ========== MOBILE LINKS ========== */
.mobile-link {
    display: block;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #7B2D3B;
}

/* ========== IMAGE PLACEHOLDER FALLBACK ========== */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid #C94160;
    outline-offset: 2px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
