/* ========================================
   FIXED RESPONSIVE VERSION - PartsGenie
   All CSS errors corrected + Responsive added
   ======================================== */

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Background Video - Visible on ALL devices including mobile */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
    pointer-events: none; /* Prevents video from blocking clicks */
}

/* Mobile specific - KEEP video visible */
@media (max-width: 768px) {
    #bg-video {
        display: block; /* Make sure it's visible */
        object-fit: cover; /* Ensure it covers properly */
        opacity: 1; /* Slightly dimmer on mobile for better readability */
    }
}

/* Very small devices */
@media (max-width: 480px) {
    #bg-video {
        display: block;
        opacity: 1; /* Even dimmer for readability on small screens */
    }
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #0a1128;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100px;
}

/* HEADER - Fixed positioning */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #c0392b;
    color: white;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.2rem 0;
}

header .logo h1 {
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 3rem;
    margin: 0;
}

header .logo p {
    text-align: center;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    font-size: 1.5rem;
}
/* Navigation Home Tab Styling */
.hometab {
     background-color: transparent;
    padding: 1rem 0;
    width: 100%;
    position: relative;
    z-index: 100;
}

.hometab nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hometab nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.hometab nav ul li {
    margin: 0;
}

.hometab nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hometab nav ul li a:hover {
    background-color: rgba(192, 57, 43, 0.8);
}

/* Cart link in navigation */
.hometab .cart-link {
    position: relative;
}

.hometab .cart-count {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Responsive navigation for mobile */
@media (max-width: 768px) {
    .hometab nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hometab nav ul li {
        width: 100%;
        text-align: center;
    }
    
    .hometab nav ul li a {
        display: block;
        width: 100%;
    }
}

/* Cart Count Badge */
.cart-count {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    text-align: center;
    display: none;
}
/* Hero Message Section - White Text & Taller */
.hero-message {
    max-width: 1200px;
    margin: 40px auto;
    padding: 80px 30px; /* Increased from 30px to 80px for more height */
    text-align: center;
    font-family: Arial, sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    min-height: 400px; /* Added minimum height */
}

/* Make ALL text white */
.hero-message,
.hero-message *,
.hero-heading,
.hero-subtext,
.hero-message h1,
.hero-message p,
.hero-message a {
    color: white !important;
}

.hero-heading {
    font-size: 42px;
    font-weight: 800;
    color: white !important;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Stronger shadow for readability */
}

.hero-subtext {
    font-size: 22px;
    font-weight: 400;
    color: white !important;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* CTA Button in hero section */
.hero-message .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #e74c3c;
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.hero-message .cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-message {
        padding: 60px 20px;
        min-height: 300px;
    }
    
    .hero-heading {
        font-size: 32px;
    }
    
    .hero-subtext {
        font-size: 18px;
    }
}

/* MOTTO BANNER */
.motto-banner {
    background-image: url('https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.motto-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.motto-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 800px;
}

.motto-banner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.motto {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #f1c40f;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* WHY CHOOSE US SECTION */
.why-choose-us {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.benefit-item {
    display: inline-block;
    width: calc(30% - 20px);
    margin: 1.5%;
    padding: 20px;
    vertical-align: top;
    box-sizing: border-box;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background-color: #6ccc7628;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.benefit-item h3 {
    color: white;
    margin-top: 0;
    font-size: 25px;
}

.benefit-item p {
    color: #0a0a0ab4;
    line-height: 1.5;
    font-size: 20px;
}

/* SHOP BY CATEGORY */
.shop-by-category {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Arial', sans-serif;
}

.shop-by-category h2 {
    text-align: center;
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.shop-by-category p {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card h3 {
    color: #2c3e50;
    font-size: 22px;
    margin: 20px 20px 10px;
}

.category-card p {
    color: #7f8c8d;
    margin: 0 20px 20px;
    line-height: 1.5;
}

.shop-btn {
    display: inline-block;
    margin: 0 20px 25px;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.shop-btn:hover {
    background-color: #c0392b;
}

/* FEATURED PRODUCTS */
.featured-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: transparent;
    font-family: 'Arial', sans-serif;
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: visible;
}

.featured-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    color: white;
    padding: 20px;
}

.featured-header h2 {
    font-size: 46px;
    color: #ffffff;
    margin-bottom: 10px;
}

.featured-header p {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-details {
    padding: 20px;
}

.product-details h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #e74c3c;
    margin-right: 10px;
}

/* CUSTOMER FEEDBACK */
.customer-feedback-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px 20px;
    font-family: 'Arial', sans-serif;
    background-color: #c0392b;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.customer-feedback-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.rating {
    color: #f1c40f;
    font-size: 20px;
    margin-bottom: 15px;
}

.feedback {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 20px;
    font-style: italic;
}

.name {
    font-weight: bold;
    color: #333;
}

/* BRAND CAROUSEL */
/* Brand Carousel - Fixed Speed & Smooth Animation */
.brand-carousel-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.brand-carousel-container h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.brand-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 100px;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 0;
}

.brand-slide {
    flex: 0 0 auto;
    padding: 0 30px;
    animation: scroll 20s linear infinite; /* Changed from 30s to 20s */
}

.brand-slide img {
    height: 60px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    animation-play-state: paused; /* Pause animation on hover */
}

/* Smooth infinite scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.brand-carousel:hover .brand-slide {
    animation-play-state: paused;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .brand-slide {
        padding: 0 20px;
        animation: scroll 15s linear infinite; /* Faster on mobile */
    }
    
    .brand-slide img {
        height: 40px;
    }
}


/* PARTNERSHIP SECTION */
.partnership {
    background-image: url(https://images.unsplash.com/photo-1727893119356-1702fe921cf9?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2050);
    padding: 80px 20px;
    margin-top: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #e74c3c;
    font-size: 20px;
    box-sizing: border-box;
    /* text-shadow: -2px -2px 0 black, 2px -2px 0 black, -2px 2px 0 black, 2px 2px 0 black, 0px 0px 6px black; */
}

.partnership h1 {
    background-color: transparent;
    padding: 20px;
}

.partnership p {
    background-color: transparent;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 20px;
}

.partnership a {
    color: white;
    font-size: larger;
    display: inline-block;
    padding: 10px 20px;
    background-color: #e74c3c;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* FOOTER */
footer {
    background-color: #c0392b;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
}

footer a {
    color: white;
    text-transform: capitalize;
    margin: 0 15px;
    text-decoration: none;
}
/* ========================================
   CONTACT POPUP - FIXED VERSION
   ======================================== */

/* Popup container - initially hidden */
.contact-popup {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Very high z-index to appear above everything */
    border: 2px solid #c0392b;
    animation: slideInUp 0.5s ease-out;
    font-family: Arial, sans-serif;
}

/* Popup header */
.popup-header {
    background: #c0392b;
    color: white;
    padding: 18px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

/* Close button */
.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-popup:hover {
    transform: scale(1.2);
}

/* Popup content */
.popup-content {
    padding: 20px;
    background: white;
}

.popup-content p {
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

/* Popup buttons */
.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.popup-btn.primary {
    background: #c0392b;
    color: white;
}

.popup-btn.primary:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.3);
}

.popup-btn.secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.popup-btn.secondary:hover {
    background: #e0e0e0;
    border-color: #c0392b;
}

/* Slide in animation */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-popup {
        width: calc(100vw - 40px);
        bottom: 10px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
    }
    
    .popup-header {
        padding: 15px;
    }
    
    .popup-header h3 {
        font-size: 18px;
    }
    
    .popup-content {
        padding: 15px;
    }
    
    .popup-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}


/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* TABLET - 768px and below */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    header .logo {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    header .logo h1 {
        font-size: 2rem;
    }
    
    header .logo p {
        font-size: 1.2rem;
    }
    
    .motto-banner {
        height: 300px;
    }
    
    .motto-banner h1 {
        font-size: 2rem;
    }
    
    .motto {
        font-size: 1.3rem;
    }
    
    .why-choose-us h2,
    .shop-by-category h2,
    .brand-carousel-container h2 {
        font-size: 2rem;
    }
    
    .benefit-item {
        width: 100%;
        margin: 10px 0;
        display: block;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .brand-slide {
        padding: 0 20px;
    }
    
    .brand-slide img {
        height: 40px;
    }
    
    .featured-header h2 {
        font-size: 28px;
    }
    
    .featured-header p {
        font-size: 18px;
    }
    
    .partnership {
        padding: 40px 15px;
    }
}

/* MOBILE - 480px and below */
@media (max-width: 480px) {
    header .logo h1 {
        font-size: 1.5rem;
    }
    
    header .logo p {
        font-size: 1rem;
    }
    
    .motto-banner {
        height: 250px;
    }
    
    .motto-banner h1 {
        font-size: 1.5rem;
    }
    
    .motto {
        font-size: 1.1rem;
    }
    
    .why-choose-us h2,
    .shop-by-category h2 {
        font-size: 1.5rem;
    }
    
    .benefit-item h3 {
        font-size: 18px;
    }
    
    .benefit-item p {
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
