/* ========================================
   Hello India Restaurant - Custom Styles
   ======================================== */

:root {
    --primary-color: #FF9800;
    --secondary-color: #8BC34A;
    --accent-orange: #FF9800;
    --accent-green: #8BC34A;
    --dark-bg: #2c2c2c;
    --light-bg: #000000;
}

/* General Styles */
html, body {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-padding-top: 100px;
}

body {
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--accent-orange) !important;
}

section.bg-light,
.bg-light,
.hero-section,
.about-preview,
.cta-section {
    background-color: #000 !important;
    color: #fff !important;
}

/* Navbar Styles */
.navbar {
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar-brand .brand-text {
    color: var(--accent-orange) !important;
    line-height: 1.2;
}

.navbar-brand .brand-tagline {
    font-size: 0.65rem;
    color: #aaa;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-order-btn {
    background-color: var(--accent-orange);
    color: #000 !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    border: 0;
    line-height: 1.2;
}

.nav-order-btn:hover,
.nav-order-btn:focus {
    background-color: #e68a00;
    color: #000 !important;
}

/* Carousel Styles */
#bannerCarousel {
    width: 100%;
}

#bannerCarousel .carousel-inner {
    height: clamp(240px, 56vw, 600px);
    background-color: #000;
}

.carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide {
    position: relative;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.carousel-indicators button.active {
    background-color: white;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
}

.cta-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.cta-card h2 {
    color: #fff;
}

.cta-card p {
    font-size: 0.95rem;
}

.delivery-partner-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-height: 24px;
    align-items: center;
}

.partner-logo {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.delivery-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.grubhub-logo {
    background-color: #f63440;
    border-radius: 12px;
    padding: 6px;
    filter: brightness(0) invert(1);
}

.partner-logo.grubhub-logo {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 8px;
}

/* About Preview Section */
.about-preview {
    background-color: #000;
}

.about-preview img {
    transition: transform 0.3s ease;
}

.about-preview img:hover {
    transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

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

.feature-card,
.cta-card,
.specialty-card,
.delivery-card,
.gallery-item,
.contact-item,
.map-container,
.bg-white,
.card,
.about-preview-carousel {
    background-color: #111 !important;
    color: #fff !important;
    border-color: #222 !important;
}

/* Specialty Cards */
.specialty-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-left: 4px solid var(--primary-color) !important;
}

.specialty-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    transform: translateX(5px);
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #111;
}

.gallery-img {
    object-fit: cover;
    width: 100%;
    height: 300px;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.gallery-hover:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Delivery Cards */
.delivery-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.delivery-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-8px);
}

.delivery-card .btn {
    font-weight: 600;
    padding: 10px 20px;
}

/* Contact Item Styles */
.contact-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h5 {
    color: #fff;
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Map Container */
.map-container {
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a !important;
    border-top: 3px solid var(--primary-color);
}

footer h5 {
    color: white;
    position: relative;
    padding-bottom: 10px;
}

footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    align-self: flex-start;
}

footer .footer-brand img {
    flex: 0 0 auto;
    height: 90px;
    width: auto;
}

footer .row {
    align-items: flex-start;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer .footer-brand::after {
    display: none;
}

footer a {
    color: #fff !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

footer .copyright-message {
    background-color: var(--primary-color);
    color: #000 !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

footer .copyright-message p {
    margin-bottom: 0;
    color: inherit !important;
    font-weight: 700;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 152, 0, 0.18);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white !important;
    transform: translateY(-3px);
}

/* Button Styles */
.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #e68a00;
    border-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #76a83b;
    border-color: #76a83b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
    transform: translateY(-2px);
}

.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
    border-bottom: 3px solid var(--primary-color);
}

.text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

.text-primary,
.text-success {
    color: var(--secondary-color) !important;
}

.text-danger,
.text-warning,
.text-info {
    color: var(--primary-color) !important;
}

.carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.35);
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
}

.form-control,
.form-select {
    background-color: #111;
    color: #fff;
    border-color: #333;
}

.form-control:focus,
.form-select:focus {
    background-color: #111;
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.2);
}

.form-control::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .carousel-item {
        min-height: 300px !important;
    }

    .cta-card {
        margin-bottom: 20px;
    }

    .gallery-item {
        min-height: 250px;
    }

    .gallery-img {
        height: 250px;
    }

    .map-container {
        height: 400px !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    footer h5::after {
        width: 20px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .display-5 {
        font-size: 1.4rem;
    }

    .carousel-item {
        min-height: 250px !important;
    }

    .hero-section {
        padding: 40px 0 !important;
    }

    .cta-section {
        padding: 40px 0 !important;
    }

    /* Delivery page: compact on mobile */
    .delivery-section {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .delivery-card.card {
        padding: 0.5rem !important;
    }

    .delivery-card .card-body {
        padding: 0.5rem !important;
    }

    .delivery-brand-logo {
        width: 36px !important;
        height: 36px !important;
    }

    .delivery-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem !important;
    }

    .delivery-section .row {
        --bs-gutter-y: 0.4rem;
    }

    .gallery-item {
        min-height: 200px;
    }

    .gallery-img {
        height: 200px;
    }

    .map-container {
        height: 300px !important;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* Print Styles */
@media print {
    .navbar,
    footer {
        display: none;
    }

    body {
        background-color: white;
    }
}
