/* Base & utilities */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f2;
}
::-webkit-scrollbar-thumb {
    background: #a02828;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #842121;
}

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim:nth-child(2) { animation-delay: 0.12s; }
.hero-anim:nth-child(3) { animation-delay: 0.24s; }
.hero-anim:nth-child(4) { animation-delay: 0.36s; }
.hero-anim:nth-child(5) { animation-delay: 0.48s; }

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transition */
#nav.scrolled {
    background: rgba(140, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Smooth focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Selection */
::selection {
    background: #a02828;
    color: #fff8f6;
}
