:root {
    --primary-blue: #003366;
    --accent-blue: #00509d;
    --light-bg: #f8f9fa;
    --dark-grey: #333333;
    --medium-grey: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-green: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
}

/* Navigation */
nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--dark-grey);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--accent-blue);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Multi-level Dropdown */
.dropdown-content .sub-dropdown {
    position: relative;
}

.dropdown-content .sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 8px 8px 16px 0px rgba(0,0,0,0.1);
    border-radius: 0 4px 4px 0;
    z-index: 1002;
}

.dropdown-content .sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.dropdown-content a i.fa-chevron-right {
    float: right;
    font-size: 0.7rem;
    margin-top: 3px;
}

.dropbtn i {
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Advanced Home Modules */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Category Highlights */
.cat-highlight {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    color: white;
    cursor: pointer;
}

.cat-highlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cat-highlight:hover img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.cat-overlay h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.cat-overlay p { font-size: 0.9rem; opacity: 0.9; }

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-left: 5px solid var(--accent-blue);
    font-style: italic;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Stats Section */
.stats-section {
    background: var(--primary-blue);
    color: white;
    padding: 4rem 10%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item h2 { font-size: 3rem; margin-bottom: 0.5rem; }
.stat-item p { font-size: 1.1rem; opacity: 0.8; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Simplified for now */
}

/* Section Global */
.section-padding { padding: 4rem 10%; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h1, .section-title h2 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 0.8rem; }
.section-title p { color: var(--medium-grey); max-width: 800px; margin: 0 auto; }

/* One-stop Badge */
.one-stop-banner {
    background: var(--primary-blue);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Product Grid */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 1.5rem; 
}

.product-item { 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    background: white; 
    display: flex;
    flex-direction: column;
}

.product-item:hover { 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    transform: translateY(-3px); 
    border-color: var(--accent-blue);
}

.product-img { 
    height: 220px; /* Consistent small height */
    background: #ffffff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.product-img img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; /* Shows entire product without cropping */
}

.badge { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: var(--accent-blue); 
    color: white; 
    padding: 3px 8px; 
    border-radius: 3px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    z-index: 2;
}

.product-info { 
    padding: 1.2rem; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 { 
    font-size: 0.95rem; 
    margin-bottom: 0.8rem; 
    color: var(--primary-blue); 
    height: 2.8em; 
    overflow: hidden; 
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.spec-list { 
    list-style: none; 
    font-size: 0.8rem; 
    color: var(--medium-grey); 
    margin: 5px 0 15px; 
    min-height: 60px;
}

.spec-list li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px;
}

.spec-list li::before { 
    content: "•"; 
    color: var(--primary-blue); 
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-inquiry { 
    display: block; 
    text-align: center; 
    background: var(--primary-blue); 
    color: white; 
    padding: 0.7rem; 
    text-decoration: none; 
    font-weight: 700; 
    border-radius: 4px; 
    margin-top: auto; 
    transition: background 0.3s;
    font-size: 0.9rem;
}

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

/* Footer */
footer { background: #111; color: #888; padding: 4rem 10% 2rem; }
footer h3, footer h4 { color: white; margin-bottom: 1.5rem; }
footer a { color: #888; text-decoration: none; display: block; margin-bottom: 0.5rem; }
footer a:hover { color: white; }

@media (max-width: 768px) { .nav-links { display: none; } .section-padding { padding: 3rem 5%; } .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
