/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(158, 37, 60, 0.15);
    color: #6c1b2d;
}

/* Scroll animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

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

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(108, 27, 45, 0.08);
}

.nav-scrolled .nav-link {
    color: #6c1b2d !important;
}

.nav-scrolled .nav-link:hover {
    color: #9e253c !important;
}

.nav-scrolled #navbar a span,
.nav-scrolled #navbar span {
    color: #6c1b2d !important;
}

/* Mobile menu transitions */
#mobile-menu.open {
    transform: translateX(0) !important;
}

#line1.open {
    transform: translateY(8px) rotate(45deg);
}

#line2.open {
    opacity: 0;
}

#line3.open {
    transform: translateY(-8px) rotate(-45deg);
    width: 24px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #9e253c;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c2324e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9e253c;
}
