/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
   html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Added to prevent horizontal scrolling with mobile menu */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* UPTREND BRAND COLORS */
    --primary-color: #2C3E50; /* Dark Blue */
    --accent-color: #F39C12;  /* Orange */
    --light-bg: #f4f4f4;      /* Light Grey Background */
    --text-color: #333;       /* Dark Grey Text */
    --white: #fff;
    --whatsapp-green: #25D366;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
#main-header {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    padding-top: 5px;
}

/* Change 1 CSS: Hide hamburger logic on desktop */
.menu-checkbox, .hamburger-label {
    display: none; 
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-contact {
    background-color: var(--accent-color);
    padding: 8px 25px;
    border-radius: 5px;
    color: var(--white) !important;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
#hero {
    background-image: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1517604931442-71053e6e2306?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    color: var(--white);
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.highlight {
    color: var(--accent-color);
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* =========================================
   4. BRAND SLIDER
   ========================================= */
.brand-slider {
    background: #e6e6e6; /* Silver/Grey to contrast with white page */
    padding: 30px 0;
    overflow: hidden;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
}

.slider-track {
    display: flex;
    width: calc(200px * 18);
    animation: scroll 30s linear infinite;
}

.slide {
    width: 200px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    max-height: 65px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.slide img:hover {
    transform: scale(1.1); 
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.2));
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 9)); }
}

/* =========================================
   5. PRODUCTS SECTION
   ========================================= */
#products {
    padding: 60px 5%;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    height: 50px;
    overflow: hidden;
}

.product-card button {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card button:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* =========================================
   6. REPAIR SECTION
   ========================================= */
#repairs {
    padding: 80px 5%;
    background-color: #eef2f5;
}

.repair-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.repair-content {
    flex: 1;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

#repairs h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 10px 0 20px;
}

.repair-list {
    list-style: none;
    margin-bottom: 30px;
}

.repair-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.repair-list strong {
    color: var(--primary-color);
}

.btn-repair {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-repair:hover {
    transform: translateY(-3px);
    background-color: #1a252f;
}

/* Change 2 CSS: Added the matching CSS for the new repair stats grid */
.repair-stats { 
    flex: 1; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    min-width: 300px;
}

.stat-card { 
    background: var(--white); 
    border-radius: 10px; 
    padding: 20px 16px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease;
}

.stat-card:hover { 
    transform: translateY(-5px); 
}

.stat-icon { 
    font-size: 2.2rem; 
    margin-bottom: 8px; 
}

.stat-num { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: var(--primary-color); /* Uses your existing dark blue */
}

.stat-label { 
    font-size: 0.9rem; 
    color: #777; 
    margin-top: 4px; 
}

/* =========================================
   7. ABOUT SECTION
   ========================================= */
#about {
    padding: 60px 5%;
    background-color: white;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tagline {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.about-features {
    list-style: none;
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: #222;
    color: #ddd;
    padding: 50px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
    width: fit-content;
}

.footer-phone {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 10px;
}

.footer-col a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .about-container, .repair-container {
        flex-direction: column;
    }
    
    .repair-container {
        flex-direction: column-reverse;
    }

    /* Change 1 CSS: Added the styling for the slide-out hamburger menu */
    nav {
        display: flex;
        justify-content: space-between; /* Ensures logo stays left, menu stays right */
        align-items: center;
        width: 100%;
    }
    
    .hamburger-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
        z-index: 1001; /* Keeps the icon above the sliding menu */
    }

    .hamburger-label span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden offscreen by default */
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Logic: when checkbox is clicked, slide menu out */
    .menu-checkbox:checked ~ .nav-links {
        right: 0;
    }

    /* Logic: Animate hamburger bars into an X */
    .menu-checkbox:checked ~ .hamburger-label span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .menu-checkbox:checked ~ .hamburger-label span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked ~ .hamburger-label span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    
    .slider-track {
        width: calc(150px * 18);
    }
    
    .slide {
        width: 150px;
    }
    /* ==========================================
   FOOTER CONTACT LINKS
   ========================================== */
.footer-contact-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #f39c12 !important; /* Highlights in your brand's orange when hovered */
}
}