/* Custom styles for Carnival House Chinese Restaurant */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1C1917;
}
::-webkit-scrollbar-thumb {
    background: #3A342C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A574;
}

/* Clip diagonal for about section */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}

/* Slow spin animation for decorative badge */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menuToggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuToggle.active #bar2 {
    opacity: 0;
}
#menuToggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-spin-slow {
        animation: none;
    }
    .group img {
        transition: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: none;
    }
    
    #hero h1 {
        font-size: 2.25rem;
    }
    
    #hero h1 {
        line-height: 1.15;
    }
}

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

/* Selection color */
::selection {
    background-color: rgba(196, 154, 108, 0.3);
    color: #FDF9F3;
}
