/* Custom styles and overrides */
:root {
    --burgundy: #a5213f;
    --burgundy-dark: #6e1c31;
    --blush: #f4a7b8;
    --cream: #fefdfb;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar scroll state */
header.scrolled {
    background: rgba(59, 10, 21, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

header.scrolled #nav-logo {
    color: white !important;
}

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

/* Smooth card hover effects */
.card {
    will-change: transform;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #6e1c31;
}

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