/* Base & Reset */
*, *::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: #b52045;
    color: #fff;
}

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

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

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

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

/* Reveal 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.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Navbar transitions */
.navbar-scrolled {
    background: rgba(250, 248, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(120, 23, 51, 0.08);
}

.navbar-scrolled .nav-text {
    color: #3a0a16 !important;
}

.navbar-scrolled .nav-subtext {
    color: #781733 !important;
}

.navbar-scrolled .nav-link {
    color: rgba(58, 10, 22, 0.6) !important;
}

.navbar-scrolled .nav-link:hover {
    color: #b52045 !important;
}

.navbar-scrolled .nav-logo {
    color: #781733 !important;
}

.navbar-scrolled #line1,
.navbar-scrolled #line2,
.navbar-scrolled #line3 {
    background: #3a0a16 !important;
}

/* Mobile menu animations */
.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger animation */
.menu-active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-active #line2 {
    opacity: 0;
    width: 0;
}

.menu-active #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23781733' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Focus visible */
:focus-visible {
    outline: 1px solid #d64063;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
