/* ===== Custom Styles for New Donut ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f1115;
}
::-webkit-scrollbar-thumb {
    background: #3a3e48;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5a1a;
}

/* Selection color */
::selection {
    background: rgba(255, 90, 26, 0.3);
    color: #f6f6f7;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 17, 21, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Image hover zoom container */
img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle fade-in for below-fold sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

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

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

/* Ensure all text meets contrast ratios */
.text-charcoal-50 { color: #f6f6f7; }
.text-charcoal-100 { color: #e2e3e5; }
.text-charcoal-200 { color: #c4c6cb; }
.text-charcoal-300 { color: #a1a5b0; }
.text-charcoal-400 { color: #7b8090; }
.text-charcoal-500 { color: #5f6472; }
.text-coral-400 { color: #ff7a40; }
.text-coral-500 { color: #ff5a1a; }
.text-coral-700 { color: #c43005; }

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal { display: none; }
    body { background: white; color: black; }
}
