/* Custom styles for Asian Cuisine website */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5c0017;
}

/* Hero animations */
.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

#hero-stats {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #800020;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.mobile-link:hover {
    padding-left: 16px;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 251, 240, 0.95) !important;
    backdrop-blur-md;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.1);
}

/* About section animations */
.about-image {
    animation: slideInLeft 0.8s ease-out forwards;
}

.about-content {
    animation: slideInRight 0.8s ease-out 0.2s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu section */
.menu-tab {
    background: transparent;
    color: #4B5563;
    border: 2px solid transparent;
}

.menu-tab.active {
    background: #800020;
    color: white;
}

.menu-tab:hover:not(.active) {
    border-color: #800020;
    color: #800020;
}

.menu-item {
    transition: all 0.4s ease;
}

/* Gallery */
.gallery-item {
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

/* Contact form */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-5xl {
        font-size: 3rem;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .mobile-menu {
        display: none;
    }
}

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