/* Custom styles and overrides */
:root {
    --color-charcoal-900: #121212;
    --color-charcoal-800: #1E1E1E;
    --color-charcoal-700: #2C2C2C;
    --color-coral-500: #E8735A;
    --color-coral-400: #F08A75;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Selection color */
::selection {
    background: #E8735A;
    color: #ffffff;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #E8735A;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    background: linear-gradient(90deg, #1E1E1E 25%, #2C2C2C 50%, #1E1E1E 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Reduced motion support */
@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;
    }
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav,
    footer {
        display: none;
    }
}
