﻿/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff; /* A nice blue inspired by the brochure */
    --secondary-color: #4dc4d1;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --text-color: #555;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}


body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    background-color: #fff;
}


.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}


/* --- Header & Navigation --- */


/* Find and edit this rule */
.navbar {
    /* Change background to transparent */
    background: transparent; 
    padding: 1rem 0;
    /* Remove the border */
    border-bottom: none; 
    position: absolute; /* Lifts the navbar on top of the hero section */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Ensures it stays on top */
}




.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.navbar .logo img {
    height: 50px;
}


.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}


.nav-links li {
    margin-left: 20px;
}


.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}


.nav-links a.active, .nav-links a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}


/* --- Hero Section (Homepage) --- */


/* --- START OF NEW HERO SECTION STYLES --- */
.hero {
    position: relative; /* Essential for layering */
    height: 100vh; /* Makes the section take up the full screen height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff; /* Changes text color to white */
    overflow: hidden; /* Hides any video overflow */
}


/* This creates the dark overlay for text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1;
}


.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; /* Sits behind everything */
}


.hero-content {
    position: relative; /* Sits on top of the video and overlay */
    z-index: 2;
    /* We remove the old white box background */
    background: none; 
    padding: 2rem;
    max-width: 800px;
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
/* --- END OF NEW HERO SECTION STYLES --- */




.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.3s ease;
}


.btn:hover {
    background: #0056b3;
}


/* --- General Section Styling --- */
.section {
    padding: 4rem 0;
}


.section-title, .page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}


.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}


/* --- Brands Section --- */
.brands-section {
    background-color: var(--light-color);
    padding: 4rem 0;
}


.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}


/* Find and replace this entire block in your CSS */
.brand-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex; /* ADD THIS: Turns the card into a flex container */
    flex-direction: column; /* ADD THIS: Stacks items vertically */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


/* Also find or add this new rule for the button */
.brand-card .btn {
    margin-top: auto; /* ADD THIS: The magic! Pushes the button to the bottom */
}


/* You should already have this, but make sure it's there */
.brand-card-logo {
    max-height: 80px; /* Controls max logo size */
    margin: 0 auto 1.5rem auto; /* Centers logo and adds space below */
    object-fit: contain;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
/* --- Product Grid --- */


/* ADD THIS NEW RULE TO YOUR STYLESHEET */


/* This rule applies only to grids with our new class,
   and only on screens wider than a mobile phone. */
@media (min-width: 768px) {
    .grid-two-col {
        /* This is the magic line: it creates exactly two equal-width columns */
        grid-template-columns: repeat(2, 1fr);
        
        /* Optional: We can make the grid wider for a more premium feel */
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}


}




.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
/* This is the NEW, corrected code */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain; /* This is the FIX for the cropping */
    background-color: #f9f9f9; /* Optional: Adds a nice background */
    padding: 10px; /* Optional: Gives the image some breathing room */
    box-sizing: border-box; /* Ensures padding is included in the height */
}


.product-card h3 {
    margin: 1rem 0 0.5rem 0;
    color: var(--dark-color);
}


.product-card p {
    font-size: 0.9rem;
    padding: 0 1rem;
}


.product-card .price {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}


.brand-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin: 3rem 0 1.5rem 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}


/* --- About Page --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}


.about-image img {
    width: 100%;
    border-radius: 8px;
}


/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}


.contact-details h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}


.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}


.contact-form form {
    display: flex;
    flex-direction: column;
}


.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}


/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}


/* --- Responsive Design --- */
@media(max-width: 768px) {
    .nav-links {
        /* Basic mobile menu toggle can be added here with JavaScript */
        display: none; 
    }


    .hero h1 {
        font-size: 2.2rem;
    }


    .brands-grid, .about-content, .contact-grid {
        grid-template-columns: 1fr;
    }


    .about-image {
        margin-top: 2rem;
    }
}
/* --- START OF MOBILE NAVIGATION STYLES --- */


/* Style for the hamburger icon itself */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}


.hamburger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 10px;
}


/* This is the main media query for mobile devices */
@media(max-width: 768px) {
    /* Show the hamburger icon on mobile */
    .hamburger-menu {
        display: flex;
    }


    /* Hide the original desktop navigation */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
        z-index: 100;
    }


    /* This is the style for the OPEN mobile menu */
    .nav-links.active {
        right: 0; /* Slide into view */
    }


    /* Style the links for mobile view */
    .nav-links li {
        margin: 20px 0;
    }


    .nav-links a {
        font-size: 1.5rem; /* Make text bigger and easier to tap */
    }
}
/* --- END OF MOBILE NAVIGATION STYLES --- */




.navbar {
    position: fixed; /* Make the navbar stick to the top */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Give it a background so video doesn't show through */
    z-index: 1000; /* Ensure it's above the video */
    height: 60px; /* Example height, adjust as needed */
    /* Other navbar styles */
}


.video-background {
    position: absolute;
    top: 60px; /* This should be the same height as your navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px); /* Adjust height to fill remaining screen below navbar */
    overflow: hidden; /* Hide any overflow from the video */
    z-index: -1; /* Place it behind other content */
}


#myVideo {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Cover the entire container without stretching */
    object-fit: cover;
}


.content {
    position: relative;
    z-index: 1; /* Ensure your page content is above the video */
    /* Add padding-top to the content if it starts immediately below the navbar to prevent content being hidden */
    padding-top: 20px; /* Example padding */
}


body {
    margin: 0; /* Remove default body margin */
}