/* Additional custom styles for Mae Khan's Eggrolls */

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

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

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

::-webkit-scrollbar-thumb {
    background: #c4393b;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #c4393b;
    color: #FFF8F0;
}

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

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Geometric shape animations */
.geometric-shape {
    animation: float 6s ease-in-out infinite;
}

.geometric-shape:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 7s;
}

.geometric-shape:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.geometric-shape:nth-child(4) {
    animation-delay: -3s;
    animation-duration: 6.5s;
}

.geometric-shape:nth-child(5) {
    animation-delay: -4s;
    animation-duration: 7.5s;
}

/* Reduced motion preferences */
@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 {
    .geometric-shape,
    .animate-bounce {
        display: none;
    }
    
    .hero-bg {
        background: #8a1c20 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .menu-card:hover {
        transform: none;
    }
    
    .image-hover:hover {
        transform: none;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .font-display {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
