*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #3a0c0c 0%, #671b1b 25%, #962222 50%, #7a1e1e 75%, #3a0c0c 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Navbar */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(122, 30, 30, 0.08);
}

#navbar.scrolled .nav-logo {
    color: #7a1e1e;
}

#navbar.scrolled .nav-line {
    background-color: #7a1e1e;
}

#navbar.scrolled a:not(.bg-burgundy-700) {
    color: #6b7280;
}

#navbar.scrolled a:not(.bg-burgundy-700):hover {
    color: #7a1e1e;
}

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

.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #7a1e1e;
}

/* Scroll Reveal */
.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);
}

/* Menu hover effects */
.group:hover .group-hover\:text-burgundy-200 {
    color: #f3a8a8;
}

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

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

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

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

/* Selection */
::selection {
    background: #fce7e7;
    color: #3a0c0c;
}

/* 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;
    }
}

/* Image loading placeholder */
img {
    background-color: #fce7e7;
}
