/* Main Custom Styles for Spice Village Catering */

html { 
    scroll-behavior: smooth; 
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Container Improvements */
.container {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Logo Responsive Sizing */
.logo-container {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 640px) {
    .logo-container {
        max-width: 500px;
    }
}

@media (min-width: 768px) {
    .logo-container {
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .logo-container {
        max-width: 700px;
    }
}

/* Responsive Section Titles */
.section-title {
    font-size: 2rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Ensure images scale properly */
img {
    max-width: 100%;
    height: auto;
}

/* Better responsive padding for sections */
@media (max-width: 640px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Menu Item Hover Tooltip */
.menu-item {
    position: relative;
    cursor: pointer;
}

.menu-item-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.menu-item-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(26, 26, 26, 0.95);
}

.menu-item:hover .menu-item-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* AI Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 999;
}

/* Custom Menu Button Positioning */
a[href="/pages/custom-menu.html"] {
    position: fixed;
    bottom: 180px;
    right: 24px;
    z-index: 1000;
}

/* Custom Menu Button Styles */
a[href="/pages/custom-menu.html"] {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

#chatbot-window {
    display: none;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
}

#chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #C62828, #F59E0B);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chatbot-input-area {
    padding: 16px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

/* Hero Section Animations */
.hero-text-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: inline-block;
    padding: 0 8px;
    border-radius: 8px;
}

.hero-text-hover:hover {
    color: #FF6B6B !important;
    text-shadow: 
        0 0 10px rgba(255, 107, 107, 0.9),
        0 0 20px rgba(198, 40, 40, 0.8), 
        0 0 40px rgba(198, 40, 40, 0.6), 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.08) translateY(-2px);
    background: rgba(198, 40, 40, 0.15);
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

/* Special styling for "South Indian" text */
.text-secondary.hero-text-hover:hover {
    color: #FFD700 !important;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.9),
        0 0 20px rgba(245, 158, 11, 0.8), 
        0 0 40px rgba(245, 158, 11, 0.6), 
        0 4px 12px rgba(0, 0, 0, 0.4);
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Food Image Slider */
.food-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.food-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(198, 40, 40, 0.7), rgba(139, 0, 0, 0.8));
    z-index: 2;
}

.slider-container {
    display: flex;
    width: 500%;
    animation: slide 20s infinite;
    animation-timing-function: ease-in-out;
}

.slider-item {
    width: 20%;
    height: 100vh;
    flex-shrink: 0;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.5s ease;
}

.slider-item:hover {
    filter: brightness(1.1);
}

@keyframes slide {
    0%, 18% { transform: translateX(0); }
    20%, 38% { transform: translateX(-20%); }
    40%, 58% { transform: translateX(-40%); }
    60%, 78% { transform: translateX(-60%); }
    80%, 98% { transform: translateX(-80%); }
    100% { transform: translateX(0); }
}

/* Pause animation on hover */
#home:hover .slider-container {
    animation-play-state: paused;
}

/* Enhanced Button Styles */
.btn-explore-menu {
    background: linear-gradient(135deg, #C62828, #8B0000);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(198, 40, 40, 0.4), 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-explore-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-explore-menu:hover::before {
    left: 100%;
}

.btn-explore-menu:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(198, 40, 40, 0.6), 0 6px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
}

.btn-explore-menu:active {
    transform: translateY(-1px) scale(1.02);
}

/* Download Menu Button Styles */
#download-menu-btn,
#download-complete-menu-btn {
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-block;
    width: auto;
}

#download-menu-btn:hover,
#download-complete-menu-btn:hover {
    transform: translateY(-1px) scale(1.01);
}

#download-menu-btn:active,
#download-complete-menu-btn:active {
    transform: translateY(0) scale(1);
}

#download-menu-btn:disabled,
#download-complete-menu-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Ensure download button is visible and matches explore menu button style */
#download-menu-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    color: white !important;
    border-radius: 8px;
}

#download-menu-btn:hover {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
}

/* CTA Buttons Container - Better alignment */
.flex.flex-col.sm\:flex-row.gap-3 {
    align-items: center;
}

@media (min-width: 640px) {
    .flex.flex-col.sm\:flex-row.gap-3 {
        align-items: center;
        justify-content: flex-start;
    }
}

/* Customize Menu Styles */
.menu-item-card.customize-mode {
    border: 2px solid #F59E0B;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.menu-item-card.customize-mode:hover {
    border-color: #D97706;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.menu-item-checkbox {
    cursor: pointer;
}

#customize-controls {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#selected-count {
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    font-weight: 600;
}

/* Customer Information Modal Styles */
#customer-info-modal {
    backdrop-filter: blur(4px);
}

#customer-info-modal .bg-white {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#customer-info-form input:invalid,
#customer-info-form textarea:invalid {
    border-color: #ef4444;
}

#customer-info-form input:valid,
#customer-info-form textarea:valid {
    border-color: #10b981;
}

/* Quantity Input Styles */
.menu-item-quantity-container {
    pointer-events: auto;
}

.menu-item-quantity {
    pointer-events: auto;
}

/* Menu Tab Styles */
.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 16px;
}

.menu-tab {
    padding: 12px 24px;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 40, 40, 0.1), transparent);
    transition: left 0.5s;
}

.menu-tab:hover::before {
    left: 100%;
}

.menu-tab:hover {
    color: #C62828;
    border-color: #C62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.2);
}

.menu-tab.active {
    background: linear-gradient(135deg, #C62828, #B71C1C);
    color: white;
    border-color: #C62828;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.4);
}

.menu-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.menu-content.active {
    display: block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.menu-item-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s ease-out backwards;
}

.menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #C62828;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-item-card:hover::before {
    transform: scaleY(1);
}

.menu-item-card:hover {
    border-color: #C62828;
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(198, 40, 40, 0.15);
}

.menu-item-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.menu-item-card:hover .menu-item-name {
    color: #C62828;
}

.menu-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.menu-item-card:hover .menu-item-icon {
    background: linear-gradient(135deg, #C62828, #B71C1C);
    transform: scale(1.1) rotate(5deg);
}

.menu-item-icon i {
    color: #C62828;
    transition: color 0.3s ease;
}

.menu-item-card:hover .menu-item-icon i {
    color: white;
}

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

.menu-item-card:nth-child(1) { animation-delay: 0.1s; }
.menu-item-card:nth-child(2) { animation-delay: 0.2s; }
.menu-item-card:nth-child(3) { animation-delay: 0.3s; }
.menu-item-card:nth-child(4) { animation-delay: 0.4s; }
.menu-item-card:nth-child(5) { animation-delay: 0.5s; }
.menu-item-card:nth-child(6) { animation-delay: 0.6s; }

/* Menu Download Button Styles */
.menu-download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #C62828, #B71C1C);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
    z-index: 10;
    font-size: 14px;
}

.menu-download-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.5);
    background: linear-gradient(135deg, #D32F2F, #C62828);
}

.menu-download-btn:active {
    transform: scale(0.95);
}

.menu-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 404 Error Page Styles */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

