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

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: #c4264a;
    color: #fff;
}

/* Reveal animations - progressive enhancement, only active with JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.05s; }
    .reveal:nth-child(3) { transition-delay: 0.1s; }
    .reveal:nth-child(4) { transition-delay: 0.15s; }
    .reveal:nth-child(5) { transition-delay: 0.2s; }
    .reveal:nth-child(6) { transition-delay: 0.25s; }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(253, 246, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(100, 24, 57, 0.08);
}

.nav-scrolled .font-display {
    color: #70172e !important;
}

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

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

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

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c4264a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form focus */
input:focus,
textarea:focus {
    outline: none;
    border-color: #c4264a;
    box-shadow: 0 0 0 3px rgba(196, 38, 74, 0.1);
}

/* Subtle pulse for hero dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.animate-pulse {
    animation: soft-pulse 2.5s ease-in-out infinite;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Only apply float animation if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation: float 4s ease-in-out infinite;
    }
}

/* Print styles */
@media print {
    nav, #hero .absolute, .reveal { display: none; }
    body { color: #000; background: #fff; }
}
