
/* ========================================================
   Modern Scrollbar Styling
   ======================================================== */

/* 1. Firefox (Standardized Properties) */
* {
    scrollbar-width: thin; /* Options: auto, thin, none */
    scrollbar-color: #b0b0b0 transparent; /* thumb color | track color */
}

/* 2. WebKit Browsers (Chrome, Safari, Edge) */

/* The entire scrollbar */
::-webkit-scrollbar {
    width: 8px;  /* Width of the vertical scrollbar */
    height: 8px; /* Height of the horizontal scrollbar */
}

/* The track (the background area the thumb slides along) */
::-webkit-scrollbar-track {
    background: transparent; /* Keeping it transparent looks cleaner */
    border-radius: 10px;     /* Rounds the track edges */
}

/* The draggable scrolling handle (the thumb) */
::-webkit-scrollbar-thumb {
    background: #b0b0b0; /* A soft, modern gray */
    border-radius: 10px; /* Fully rounded edges */
    border: 2px solid transparent; /* Creates a subtle padding effect */
    background-clip: padding-box;  /* Ensures the border acts as padding */
}

/* The thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: #8e8e8e; /* Darkens slightly when the user interacts */
    border: 2px solid transparent;
    background-clip: padding-box;
}


/* ==========================================================================
   CSS Reset and Variables
   ========================================================================== */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --light-gray: #f9f9f9;
    --border-gray: #e0e0e0;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography & Base Styles
   ========================================================================== */
h1, h2, h3 {
    line-height: 1.2;
    color: var(--text-color);
}

a {
    color: var(--text-color);
    text-decoration: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Spacing between the small logo and the text */
}

.logo-icon {
    height: 40px; /* Small logo size */
    width: auto;
    display: block;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}


/* Hide mobile elements on desktop */
.hamburger-menu, 
.close-menu, 
.nav-overlay {
    display: none;
}




/* ==========================================================================
   About / Hero Section
   ========================================================================== */
.about-section {
    padding: 8rem 5%;
    text-align: center;
    background-color: var(--text-color);
    color: var(--bg-color);
}

.about-section h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--bg-color);
}

.about-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: #cccccc;
    font-weight: 400;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-section {
    padding: 6rem 5%;
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-card p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.product-btn {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.product-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-gray);
    padding: 5rem 5% 2rem; /* Reduced bottom padding to account for the bottom bar */
    display: flex;
    flex-direction: column;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Brand takes up more space than link columns */
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-logo-main {
    max-height: 100px; /* Kept to a sleek size */
    display: block;
}

.footer-brand p {
    color: #555555;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-group h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.footer-links-group a {
    color: #555555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.85rem;
    color: #777777;
}
/* ==========================================================================
   Media Queries (Responsiveness)
   ========================================================================== */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-section h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-section {
        padding: 5rem 5%;
    }

    .about-section h1 {
        font-size: 2.8rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        padding: 2rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-logo-main {
        max-height: 70px; /* Scales down slightly for mobile */
    }
}

@media (max-width: 480px) {
    .about-section h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    
    nav {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.8rem;
    }
}



/* ==========================================================================
   Media Queries (Responsiveness)
   ========================================================================== */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-section h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    /* Keep header items in a row and space them out */
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.25rem 5%;
    }

    /* Style the hamburger button */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 101; 
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Background overlay that fades in */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 105;
        backdrop-filter: blur(3px); /* Nice modern touch */
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Sidebar Navigation Setup */
    nav {
        position: fixed;
        top: 0;
        right: -300px; /* Hide off-screen to the right by default */
        width: 280px;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2.5rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 110;
    }

    nav.active {
        right: 0; /* Slide in */
    }

    nav a {
        font-size: 1.25rem; /* Make links bigger for touch targets */
    }

    /* Close Button inside Sidebar */
    .close-menu {
        display: block;
        position: absolute;
        top: 1.25rem;
        right: 1.5rem;
        background: transparent;
        border: none;
        font-size: 2.5rem;
        line-height: 1;
        cursor: pointer;
        color: var(--text-color);
        transition: color 0.3s ease;
    }

    .close-menu:hover {
        color: #777777;
    }

    /* Other Mobile Adjustments */
    .about-section {
        padding: 5rem 5%;
    }

    .about-section h1 {
        font-size: 2.8rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        padding: 2rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-logo-main {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .about-section h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
}


/* ==========================================================================
   Footer (Modern Multi-Column Layout)
   ========================================================================== */
footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-gray);
    padding: 5rem 5% 2rem; /* Reduced bottom padding to account for the bottom bar */
    display: flex;
    flex-direction: column;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Brand takes up more space than link columns */
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-logo-main {
    max-height: 60px; /* Kept to a sleek size */
    display: block;
}

.footer-brand p {
    color: #555555;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-group h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.footer-links-group a {
    color: #555555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.85rem;
    color: #777777;
}

/* ==========================================================================
   Add these to your existing Media Queries
   ========================================================================== */

@media (max-width: 768px) {
    /* Transforms the 3 columns into 1 stacked column on tablets and mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand p {
        text-align: center;
    }

    .footer-links-group {
        align-items: center;
    }
    
    .footer-logo-main {
        max-height: 50px;
    }
}