/* Custom Styles for TavaTadka Website */

:root {
    --brand-color: #e22025;
    --brand-dark: #c41c21;
    --brand-light: #ff5a5f;
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Preloader */
#preloader {
    transition: opacity 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--brand-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark);
}

/* Hero Slide Transitions */
.hero-slide {
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

/* Menu Item Transitions */
.menu-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Gallery Image Hover */
.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Button Hover Effects */
button, .btn {
    transition: all 0.3s ease;
}

/* Form Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(226, 32, 37, 0.1);
}

/* Animation for alerts */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Image Loading Animation */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Hero Background Overlay */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

/* Section Headings */
.section-heading {
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-color);
}

/* Stats Counter Section */
.stats-section {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-dark) 100%);
}

/* Menu Category Badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.category-badge.veg {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.category-badge.non-veg {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Pricing Display */
.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-color);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Quote Icon */
.quote-icon {
    color: var(--brand-color);
    opacity: 0.3;
    font-size: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-heading::after {
        width: 40px;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(226, 32, 37, 0.1);
    border-left-color: var(--brand-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success and Error Messages */
.alert-success {
    background-color: #10b981;
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-error {
    background-color: #ef4444;
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Back to Top Button Animation */
#back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

/* Form Labels */
label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

/* Required Field Indicator */
.required::after {
    content: ' *';
    color: var(--brand-color);
}

/* Disabled State */
button:disabled, input:disabled, textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header, footer, #back-to-top {
        display: none;
    }
}


/* Reset scrollbar inside Job Modal only */
#jobModal *::-webkit-scrollbar {
    width: 5px;
}

#jobModal *::-webkit-scrollbar-track {
    background: transparent;
}

#jobModal *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3); /* neutral gray */
    border-radius: 10px;
}

#jobModal *::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.45);
}


