/* Custom styles for Liliana's Italian Restaurant */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(8, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(14, 116, 144, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Floating card animations */
.floating-card-1 {
    animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}
.floating-card-3 {
    animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Feature items animation */
.feature-item {
    opacity: 0;
    transform: translateY(20px);
}
.feature-item.visible {
    animation: fadeUp 0.6s ease forwards;
}

/* Menu tab styles */
.menu-tab {
    background: transparent;
    color: #94a3b8;
    border: 1px solid transparent;
}
.menu-tab:hover {
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.3);
}
.menu-tab.active {
    background: rgba(13, 148, 136, 0.2);
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.4);
}

/* Menu item cards */
.menu-item-card {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}
.menu-item-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.menu-item-card:hover {
    border-color: rgba(45, 212, 191, 0.3) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Testimonial cards */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
}
.testimonial-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

/* Gallery items */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
}
.gallery-item.visible {
    animation: scaleIn 0.6s ease forwards;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero entrance animations */
.hero-element {
    opacity: 0;
    transform: translateY(30px);
}
.hero-element.visible {
    animation: heroFadeUp 0.8s ease forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Mobile menu transition */
#mobileMenu {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #fff;
}

/* Reduce motion for accessibility */
@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;
    }
}
