/* --- RESET & VARIABLES --- */
:root {
    --primary-dark: #222222; 
    --accent-blue: #0056D2; 
    --accent-hover: #003c96;
    --text-grey: #4a4a4a;
    --bg-light: #f4f6f8;
    --white: #ffffff;
}

/* ENABLE SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVIGATION --- */
.navbar {
    /* 1. Make background 85% opaque white */
    background: rgba(255, 255, 255, 0.70);
    
    /* 2. Add the Blur Effect (Frosted Glass) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari/Mac support */
    
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s; /* Smooth transition */
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; 
    width: auto;
    cursor: pointer; /* Shows hand icon on hover */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced gap slightly to fit the boxes */
}

/* Style for standard links */
.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 8px 15px; /* Added padding for the box effect */
    border-radius: 6px; /* Rounded corners */
}

.nav-links li a:hover {
    color: var(--accent-blue);
}

/* THE ACTIVE STATE (Dark Square) */
.nav-links li a.active-link {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Ensure the button keeps its own style and ignores the active link style if needed */
.btn-login {
    background: var(--accent-blue) !important; /* Blue background */
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 4px;
}

.btn-login:hover {
    background: var(--accent-hover) !important;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(34, 34, 34, 0.9), rgba(34, 34, 34, 0.9)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* --- SECTIONS --- */
.section-light { padding: 80px 0; background: var(--bg-light); }
.section-white { padding: 80px 0; background: var(--white); }
.section-dark { padding: 80px 0; background: var(--primary-dark); color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 { font-size: 2.2rem; margin-bottom: 10px; }
.divider { width: 60px; height: 4px; background: var(--accent-blue); margin: 0 auto; }

.lead-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

#about p { text-align: center; max-width: 800px; margin: 0 auto; }

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.service-icon { font-size: 3rem; color: var(--accent-blue); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: #666; margin-bottom: 20px; font-style: italic; }
.service-card ul { text-align: left; padding-left: 20px; }
.service-card ul li { list-style-type: disc; margin-bottom: 8px; color: var(--text-grey); }

/* --- QUALITY SECTION --- */
.quality-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    background: var(--accent-blue);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.subtitle { color: #ccc; margin-bottom: 20px; }

/* --- CONTACT FORM --- */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.full-width { width: 100%; }
.contact-info-footer { text-align: center; margin-top: 30px; }

/* --- LOGIN PAGE STYLES --- */
.login-body {
    background: var(--bg-light);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo img { width: 150px; margin-bottom: 20px; }
.login-input { margin-bottom: 15px; width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }
.portal-note { margin-top: 30px; font-size: 0.9rem; color: var(--text-grey); background: #f9f9f9; padding: 15px; border-radius: 4px; }
.portal-note a { color: var(--accent-blue); text-decoration: underline; }

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #666;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    margin-top: 0;
    padding-top: 50px;
    padding-bottom: 80px; /* Extra space at the very bottom */
}

section {
    /* This ensures when you click a menu link, it stops 80px above the section so the header doesn't cover text */
    scroll-margin-top: 80px;
}

/* --- PRODUCT & BRANDS SECTION --- */
.brand-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.brand-badge {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #555;
    padding: 10px 25px;
    border-radius: 30px; /* Pill shape */
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.product-list li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* --- MOBILE RESPONSIVE & HORIZONTAL SCROLL MENU --- */
@media (max-width: 768px) {
    
    /* 1. Stack Logo Top, Menu Bottom */
    .nav-flex { 
        flex-direction: column; 
        gap: 15px; 
    }

    /* 2. Shrink Logo for Mobile */
    .logo img {
        height: 40px; 
    }

    /* 3. The "One Line" Horizontal Scroll Menu */
    .nav-links {
        display: flex;           /* Ensure Flexbox is active */
        width: 100%;             /* Take full width of screen */
        flex-direction: row;     /* FORCE horizontal layout */
        flex-wrap: nowrap;       /* FORCE single line (no stacking) */
        justify-content: flex-start; /* Align to the left */
        
        overflow-x: auto;        /* Enable horizontal swiping */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iPhone */
        
        padding-bottom: 10px;    /* Space for scrollbar */
        padding-left: 5px;       /* Little start padding */
        gap: 10px;               /* Space between buttons */
        
        /* Hide scrollbars visually */
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }

    /* 4. Style the Links as "Pills" */
    .nav-links li a {
        font-size: 0.85rem;      
        padding: 8px 16px;       /* Bigger touch target */
        background: rgba(255, 255, 255, 0.6); /* Semi-transparent pill */
        border: 1px solid #e0e0e0;
        border-radius: 20px;     
        display: inline-block;
        white-space: nowrap;     /* Prevent text breaking */
    }

    /* Active State for Mobile */
    .nav-links li a.active-link {
        background: var(--primary-dark);
        color: var(--white);
        border-color: var(--primary-dark);
    }

    .hero h1 { font-size: 2rem; }
    .quality-steps { grid-template-columns: 1fr; }

    /* 5. THE SCROLL FIX FOR MOBILE */
    /* Adjust this if the header covers the text */
    section {
        scroll-margin-top: 140px; 
    }
}