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

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

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #c92452;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1163b;
}

/* ===== Gallery Scroll Animation ===== */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-272px * 3));
    }
}

.animate-scroll {
    display: flex;
    gap: 16px;
    animation: scroll 20s linear infinite;
}

.animate-scroll img {
    flex-shrink: 0;
}

/* ===== Fade-in on Scroll ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar Transition ===== */
nav.scrolled {
    background: rgba(100, 22, 59, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
}

/* ===== Selection Color ===== */
::selection {
    background: #ff9fb5;
    color: #5e132e;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
