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

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

body {
    overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.nav-scroller {
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-scroller.scrolled {
    background: rgba(254, 253, 251, 0.95);
    border-bottom-color: rgba(123, 45, 59, 0.08);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-overlay {
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: #7B2D3B;
    padding-left: 8px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .mobile-menu {
        transition: none;
    }
    .nav-scroller {
        transition: none;
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #f9c5cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec6b80;
}

/* ========== SELECTION ========== */
::selection {
    background: #f9c5cc;
    color: #4a1720;
}
