/* Base reset and custom styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(200, 31, 70, 0.15);
    color: #6b132c;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #c81f46;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

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

/* Mobile nav animations */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#menuBtn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active #bar2 {
    opacity: 0;
}
#menuBtn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.4s ease;
}
img[data-src] {
    opacity: 0;
}
