/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Poppins:wght@400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
    --tata-blue: #003B6F;
    --primary-color: #0d6efd; /* Bootstrap Blue for CTAs */
    --dark-grey: #212529;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --accent-gold: #D4AF37;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* --- Global Styles --- */
body {
    font-family: var(--body-font);
    line-height: 1.6;
    background-color: var(--white);
    color: #444;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tata-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* --- Animations --- */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px 2px rgba(13, 110, 253, 0.4); }
    50% { box-shadow: 0 0 20px 8px rgba(13, 110, 253, 0.1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}
.top-bar a:hover {
    color: var(--primary-color);
}
.top-bar .social-icons a {
    margin-left: 15px;
    font-size: 1rem;
}

/* --- Header / Navbar --- */
#main-header .navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease-in-out, padding 0.3s ease;
    padding: 0.75rem 1rem;
}
#main-header.scrolled .navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--tata-blue);
}
.navbar-brand strong { color: var(--primary-color); }
.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0.5rem;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}
.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    color: var(--tata-blue);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    background: url('https://via.placeholder.com/1920x1080.png?text=Modern+Tata+Showroom') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}
.btn-cta {
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    margin: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse 2s infinite;
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-primary.btn-cta {
    animation-name: pulse, glow;
    animation-duration: 2s, 1.5s;
    animation-iteration-count: infinite;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}
.mouse span {
    width: 4px;
    height: 10px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}
@keyframes scroll-wheel {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}


/* --- Featured Cars Section --- */
.car-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,59,111,0.15);
}
.car-card .card-body {
    padding: 1.5rem;
}
.car-card .card-title {
    color: var(--tata-blue);
    font-size: 1.5rem;
}
.car-card .card-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}
.car-features {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
    color: #6c757d;
}
.car-features i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* --- EV Highlight Section --- */
#ev-highlight {
    background-color: var(--tata-blue);
    color: var(--white);
    background-image: linear-gradient(45deg, var(--tata-blue) 0%, #005aa7 100%);
}
.section-title-light, .section-subtitle-light {
    color: var(--white);
}
.ev-benefits {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}
.ev-benefits li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.ev-benefits i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--accent-gold);
    width: 30px;
    text-align: center;
}

/* --- Finance & Offers Section --- */
.feature-box {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.feature-box .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}
.feature-box h4 {
    color: var(--tata-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Services Section --- */
.service-card {
    padding: 2rem;
    background: var(--light-grey);
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}
.service-card:hover {
    background: var(--tata-blue);
    color: var(--white);
}
.service-card:hover i { color: var(--white); }
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s;
}
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* --- Testimonials Section --- */
.testimonial-card {
    max-width: 700px;
    margin: auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    text-align: center;
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.testimonial-card .rating {
    color: #ffc107;
    margin: 1rem 0;
}
.testimonial-card h4 {
    color: var(--tata-blue);
}
.testimonial-card span {
    color: #6c757d;
    font-style: italic;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--tata-blue);
    border-radius: 50%;
    padding: 1.2rem;
}

/* --- Contact Section --- */
#contact form .form-control {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}
#contact form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
#contact iframe {
    border-radius: 15px;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-grey);
    color: rgba(255,255,255,0.7);
}
.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-link:hover {
    color: var(--white);
}
.social-icon-footer {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    margin: 0 5px;
    transition: background-color 0.3s;
}
.social-icon-footer:hover {
    background-color: var(--primary-color);
}

/* --- Mobile-Only Features --- */
.whatsapp-fl {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    line-height: 60px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}
.mobile-bottom-nav a {
    color: var(--dark-grey);
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
}
.mobile-bottom-nav a i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 3px;
    color: var(--primary-color);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .lead {
        font-size: 1.2rem;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
    }
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .contact-info span { display: none; }
    body {
        padding-bottom: 60px; /* Space for bottom nav */
    }
}