/* --- TABLE OF CONTENTS ---
1.  Global Styles & Variables
2.  Top Bar
3.  Navigation Bar
4.  Hero Section
5.  Section Globals (Title, Padding)
6.  Featured Products Grid
7.  Top Brands Scroller
8.  Offers & EMI Section
9.  Why Choose Us (Features)
10. Gallery & Testimonials
11. Contact & Footer
12. Mobile Bottom Bar
13. Animation Keyframes
14. Media Queries (Responsiveness)
-----------------------------*/

/* 1. Global Styles & Variables */
:root {
    --primary-color: #0A0A23; /* Midnight Blue */
    --secondary-color: #1a1a3d;
    --accent-color: #00BFFF; /* Electric Blue */
    --accent-glow: #00BFFF99;
    --text-light: #F5F7FA;
    --text-dark: #333;
    --text-silver: #bdc3c7;
    --font-english: 'Poppins', sans-serif;
    --font-gujarati: 'Noto Sans Gujarati', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-english);
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.gujarati, [lang="gu"] h1, [lang="gu"] p, .gujarati-offer, .gujarati-caption, .logo-gujarati, .product-name {
    font-family: var(--font-gujarati), var(--font-english);
}

/* 2. Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, #000 100%);
    color: var(--text-silver);
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-bar .contact-info a {
    color: var(--text-light);
    text-decoration: none;
}
.top-bar .social-icons a {
    color: var(--text-silver);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.top-bar .social-icons a:hover {
    color: var(--accent-color);
}

/* 3. Navigation Bar */
.navbar {
    background-color: #ffffffcc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease-in-out;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(0);
    animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.logo-gujarati {
    font-family: var(--font-gujarati);
    font-weight: 700;
}
.navbar-brand .logo-english {
    animation: neon-shimmer 4s infinite linear;
    text-shadow: 0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow);
}

.navbar-toggler {
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
}
.navbar-toggler:focus {
    box-shadow: none;
}
.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 10px;
    padding: 10px 15px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    background-color: var(--accent-color);
    color: #fff !important;
}

/* 4. Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    background: url('https://via.placeholder.com/1920x1080/0A0A23/fff.png?text=Luxury+Showroom+Background') no-repeat center center;
    background-size: cover;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.hero-headline {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}
.hero-subheadline {
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.btn-cta, .btn-cta-secondary {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    margin: 5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.btn-cta {
    background-color: var(--accent-color);
    color: #fff;
    animation: pulse 2s infinite;
}
.btn-cta:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.btn-cta-secondary {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}
.btn-cta-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.hero-carousel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}
.hero-carousel img {
    width: 80%;
    margin: 0 auto;
    height: auto;
}
.hero-carousel h3 {
    font-family: var(--font-gujarati);
    font-size: 1rem;
    color: #fff;
    margin-top: 10px;
}

/* 5. Section Globals */
.section-padding {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
.section-title p {
    max-width: 600px;
    margin: 10px auto 0;
    color: #6c757d;
}

/* 6. Featured Products Grid */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}
.offer-badge {
    background-color: #e74c3c;
    animation: pulse-badge 1.5s infinite;
}
.new-badge {
    background-color: var(--accent-color);
}
.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 20px;
}
.product-info {
    padding: 25px;
    text-align: center;
}
.brand-logo {
    height: 30px;
    margin-bottom: 15px;
}
.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    height: 50px; /* Fixed height for alignment */
}
.product-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: var(--font-gujarati), var(--font-english);
}
.emi-badge {
    margin-bottom: 20px;
}
.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.btn-primary-custom:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* 7. Top Brands Scroller */
.brands-scroller {
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.brands-track {
    display: flex;
    width: calc(200px * 14); /* tile width * number of tiles */
    animation: scroll 30s linear infinite;
}
.brand-tile {
    width: 200px;
    height: 120px;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.brand-tile img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.brand-tile p {
    margin-top: 10px;
    font-family: var(--font-gujarati);
    font-weight: 700;
    color: var(--text-dark);
}
.brand-tile:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.brand-tile:hover {
    transform: scale(1.05);
}

/* 8. Offers & EMI Section */
.offers-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}
.offer-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.exchange-offer {
    background-color: var(--accent-color);
    color: #fff;
}
.gujarati-offer {
    font-size: 1.8rem;
    font-weight: 700;
}
.finance-logos img {
    height: 40px;
    margin-right: 20px;
    margin-top: 15px;
    opacity: 0.8;
}

/* 9. Why Choose Us (Features) */
.feature-card {
    padding: 20px;
}
.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* 10. Gallery & Testimonials */
#storeGalleryCarousel .carousel-inner {
    border-radius: 15px;
    overflow: hidden;
}
.testimonial-card {
    background: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.rating {
    color: #f1c40f;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}
.customer-name {
    margin-top: 20px;
    font-family: var(--font-gujarati), var(--font-english);
}

/* 11. Contact & Footer */
.contact-form .form-control {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.map-container {
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
}
.footer {
    background-color: var(--primary-color);
    color: var(--text-silver);
    padding: 60px 0 20px;
}
.footer-heading {
    color: #fff;
    margin-bottom: 20px;
}
.footer-links li a {
    color: var(--text-silver);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 2;
}
.footer-links li a:hover {
    color: var(--accent-color);
}
.copyright-text {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 12. Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 999;
}
.mobile-bottom-bar .action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.8rem;
}
.mobile-bottom-bar .action-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

/* 13. Animation Keyframes */
@keyframes neon-shimmer {
    0% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-color), 0 0 20px var(--accent-color); }
    50% { text-shadow: 0 0 10px #fff, 0 0 15px var(--accent-glow), 0 0 20px var(--accent-glow), 0 0 25px var(--accent-glow); }
    100% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-color), 0 0 20px var(--accent-color); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); } /* tile width * half of total tiles */
}

/* 14. Media Queries (Responsiveness) */
@media (max-width: 991.98px) {
    .nav-link { margin: 5px 0; text-align: center; }
    .hero-headline { font-size: 2.8rem; }
    .hero-subheadline { font-size: 1.2rem; }
    .hero-carousel { display: none; } /* Hide complex element on smaller screens for clarity */
}

@media (max-width: 767.98px) {
    .top-bar { text-align: center; }
    .top-bar .contact-info, .top-bar .social-icons {
        width: 100%;
        margin-bottom: 5px;
    }
    .hero-section { height: 80vh; }
    .hero-headline { font-size: 2.2rem; }
    .hero-cta-group { display: flex; flex-direction: column; align-items: center; }
    .btn-cta, .btn-cta-secondary { width: 80%; margin: 8px 0; }
    .section-padding { padding: 60px 0; }
    .section-title h2 { font-size: 2rem; }
    body { padding-bottom: 70px; } /* Space for fixed mobile bar */
}