/* Color Variables */
:root {
    --primary-green: #2ecc71; /* Primary Green */
    --accent-blue: #3498db; /* Accent Blue */
    --whatsapp-green: #25d366; /* WhatsApp Green */
    --text-color: #333;
    --bg-color: #f8f8f8;
    --dark-gray: #444;
    --fixed-header-height: 110px; /* Calculated offset for fixed navigation (40px top bar + ~70px header) */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Updated Font: Roboto for general text */
    font-family: 'Roboto', sans-serif; 
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    /* CRITICAL FIX: Pushes content down past the fixed headers */
    padding-top: var(--fixed-header-height); 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Heading Font Application */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif; 
}

/* --- 1. Top Bar --- */
.top-bar {
    background-color: var(--dark-gray);
    color: white;
    font-size: 0.85em;
    padding: 10px 0;
    position: fixed; 
    width: 100%;    
    top: 0;         
    z-index: 1000;  
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* --- 2. Header & Navigation --- */
header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed; 
    width: 100%;
    top: 40px; /* Position below the 40px Top Bar */
    z-index: 999;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    font-family: 'Poppins', sans-serif; /* Ensure logo uses Poppins */
}
.logo .green-text { color: var(--primary-green); }
.logo .tech-text { color: var(--accent-blue); }

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    transition: color 0.3s;
}

/* Highlight on Hover */
nav ul li a:hover {
    color: var(--primary-green);
}

/* CRITICAL FIX: Highlight the Active link */
nav ul li a.active:not(.cta-nav) {
    color: var(--primary-green) !important; 
    font-weight: 600; 
}


/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block; 
}

.dropdown > a {
    padding-right: 25px; 
}

.dropdown-content {
    display: none; 
    position: absolute;
    background-color: white;
    min-width: 250px; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10; 
    top: 100%; 
    left: 0;
    list-style: none; 
    padding: 10px 0;
    border-top: 3px solid var(--primary-green);
    text-align: left;
}

.dropdown-content li a {
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    display: block; 
    white-space: nowrap; 
}

.dropdown-content li a:hover {
    background-color: var(--bg-color); 
    color: var(--accent-blue);
}

.dropdown:hover .dropdown-content {
    display: block; 
}

/* CTA Button */
.cta-nav {
    background-color: var(--primary-green);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    margin-left: 15px;
    transition: background-color 0.3s;
    font-weight: 600;
}
.cta-nav:hover {
    background-color: var(--accent-blue);
}


/* --- Content Sections Base --- */
section {
    padding: 60px 0;
    text-align: center;
}

h2 {
    color: var(--primary-green);
    margin-bottom: 30px;
    font-size: 2em;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    text-decoration: none;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--dark-gray);
}

.primary-btn {
    background-color: var(--accent-blue);
}
.primary-btn:hover {
    background-color: var(--primary-green);
}

.whatsapp-btn {
    background-color: var(--whatsapp-green);
}
.whatsapp-btn:hover {
    background-color: #20b45a;
}

/* --- 3. Image Slider Styling (Home Page) --- */
.slider-container {
    padding: 0 !important; 
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 450px; 
}

.slider {
    height: 100%;
}

.slide {
    display: none; 
    min-width: 100%; 
    height: 100%;
    position: relative; 
    align-items: center;
    justify-content: center;
    
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.slide:first-child {
    display: flex;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    z-index: 5;
    text-align: center;
}
.slider-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
}
.slider-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.slider-container button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}
.slider-container button:hover {
    background: rgba(0, 0, 0, 0.8);
}
.slider-container .prev { border-radius: 0 5px 5px 0; left: 0; }
.slider-container .next { border-radius: 5px 0 0 5px; right: 0; }

/* --- 4. About Brief (Home Page) --- */
.about-brief {
    background-color: white;
    padding: 40px 0;
}
.about-brief p {
    max-width: 800px;
    margin: 0 auto 20px;
}

/* --- 5. Products Overview (Home Page) --- */
.products-overview {
    background-color: var(--bg-color);
}
.product-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-cards .card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    max-width: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center; 
}

.product-cards .card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
}

.card-icon {
    font-size: 3.5em; 
    color: var(--primary-green);
    display: block; 
    margin-bottom: 15px;
    transition: color 0.3s;
}

.product-cards .card:hover .card-icon {
    color: var(--accent-blue);
}

.product-cards .card h3 {
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.product-cards .card p {
    margin-bottom: 25px;
    color: var(--text-color);
}

.product-cards .card .btn {
    margin-top: 0;
}


/* --- 6. Why Choose Us / Key Strengths (Home Page) --- */
.key-strengths {
    background-color: var(--bg-color); 
    padding: 80px 0;
}

.strengths-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px; 
    text-align: center; 
}

.strength-item {
    background-color: white; 
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    max-width: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.strength-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.15); 
}

.strength-icon {
    font-size: 3em;
    color: var(--primary-green); 
    display: block;
    margin-bottom: 10px;
}

.strength-item h3 {
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.strength-item p {
    color: var(--text-color);
}


/* --- 7. Gallery Preview (Home Page) --- */
.gallery-preview {
    background-color: white;
}
.preview-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px; 
    flex-wrap: wrap; 
}

.image-placeholder {
    width: 300px; 
    height: 200px; 
    background-color: var(--dark-gray); 
    color: white;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; 
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    transition: transform 0.3s, opacity 0.3s;
}

.image-placeholder:hover {
    opacity: 1; 
    transform: scale(1.03); 
    cursor: pointer;
}

/* --- 8. Call to Action (Home Page) --- */
.cta-action {
    background-color: var(--accent-blue);
    color: white;
    padding: 50px 0;
}
.cta-action h2 {
    color: white;
}
.cta-action p {
    margin-bottom: 30px;
    font-size: 1.1em;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.cta-buttons .btn {
    margin-top: 0;
}

/* --- 9. Footer --- */
footer {
    background-color: var(--dark-gray);
    color: white; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-block h3 {
    color: var(--primary-green); 
    margin-bottom: 15px;
}

.footer-block ul {
    list-style: none;
}

.footer-block a, 
.footer-block p {
    line-height: 1.8; 
    display: block; 
}

/* FIX: Link color to WHITE for high contrast */
.footer-block a {
    color: white; 
    text-decoration: none;
    transition: color 0.3s;
}

/* FIX: Use an accent color only for the hover effect */
.footer-block a:hover {
    color: var(--primary-green); 
}

.footer-bottom {
    background-color: #333;
    padding: 10px 0;
    border-top: 1px solid #555;
    text-align: center;
    font-size: 0.8em;
}


/* =================================================== */
/* --- SPECIFIC PAGE STYLES (ABOUT, CONTACT, PRODUCTS, GALLERY) --- */
/* =================================================== */

/* Utility to reverse grid order (used on molded-components.html) */
.reverse-grid {
    flex-direction: row-reverse;
}

/* Page Header/Banner (Used on all sub-pages) */
.page-header {
    background-color: var(--bg-color); 
    padding: 100px 0 60px; 
    text-align: center;
}

.page-header h1 {
    color: var(--accent-blue);
    font-size: 2.5em;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 1.1em;
    color: var(--text-color);
}


/* --- About Page Specific Styles --- */

.company-profile {
    padding: 80px 0;
}

.profile-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

.profile-text {
    flex: 1;
}

.profile-image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.key-pillars {
    background-color: var(--primary-green);
    color: white;
    padding: 60px 0;
}

.key-pillars h2 {
    color: white;
}

.pillar-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.pillar-item {
    background-color: rgba(255, 255, 255, 0.15); 
    padding: 25px;
    border-radius: 8px;
    max-width: 300px;
    text-align: center;
}

.pillar-icon {
    font-size: 2.5em;
    color: white;
    display: block;
    margin-bottom: 10px;
}

.pillar-item h3 {
    color: white;
    margin-bottom: 10px;
}

.team-section {
    padding: 80px 0;
    text-align: center;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    max-width: 200px;
    text-align: center;
}

.member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-blue);
}

.member-card h3 {
    color: var(--accent-blue);
    margin-bottom: 5px;
}


/* --- Contact Page Specific Styles --- */

.contact-section {
    padding: 80px 0;
    background-color: var(--bg-color); 
}

.contact-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start; 
}

.contact-form-container {
    flex: 2; 
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
    color: var(--accent-blue);
    margin-bottom: 25px;
    text-align: left;
}

.contact-details-container {
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box; 
    font-family: 'Roboto', sans-serif;
}

.contact-form textarea {
    resize: vertical;
}

.info-block {
    background-color: white;
    padding: 20px;
    border-left: 5px solid var(--primary-green);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}

.info-block h3 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 5px;
}

.info-block .info-icon {
    font-size: 1.5em;
    color: var(--accent-blue);
    margin-right: 10px;
}

.info-block p {
    margin: 5px 0;
    font-size: 0.95em;
}

/* Map Section */
.map-section {
    padding: 40px 0 80px;
    text-align: center;
}

.map-section h2 {
    color: var(--accent-blue);
}

.map-placeholder {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.map-placeholder iframe {
    display: block; 
}


/* --- Product Detail Page Styles (drip, molded, masterbatch) --- */

.product-details {
    padding: 80px 0;
    text-align: left;
}

.product-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-text {
    flex: 1;
}

.product-image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    background-color: var(--bg-color); 
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-text h2 {
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

.product-text h3 {
    color: var(--accent-blue);
    margin-top: 30px;
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Featured Component Cards (Product Gallery Snippet) */
.featured-components {
    background-color: var(--bg-color);
    padding: 60px 0;
}

.component-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.comp-card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    max-width: 250px;
    text-align: center;
    transition: transform 0.3s;
}

.comp-card:hover {
    transform: translateY(-5px);
}

.comp-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.comp-card h3 {
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 5px;
}


/* --- Gallery Page Specific Styles --- */

.photo-gallery {
    padding: 60px 0;
}

.photo-gallery h2 {
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: left;
    border-bottom: 2px solid var(--primary-green);
    display: inline-block;
    padding-bottom: 5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}


/* --- Media Queries (Responsiveness) --- */
@media (max-width: 900px) {
    /* Contact and Product Detail Grid Stack */
    .contact-grid, 
    .product-grid {
        flex-direction: column;
    }
    
    .contact-form-container,
    .contact-details-container,
    .product-text, 
    .product-image {
        flex: 1 1 100%;
        width: 100%;
    }
    
    /* Product Detail specific alignment */
    .product-details, .featured-components {
        text-align: center;
    }
    .product-text h2 {
        text-align: center;
    }
    .feature-list {
        text-align: left;
        margin: 0 auto 20px;
        max-width: 400px; 
    }
    
    /* Ensure reversed grid stacks correctly */
    .product-grid.reverse-grid {
        flex-direction: column; 
    }
    
    /* About Page Grid Stack */
    .profile-content {
        flex-direction: column;
    }
    .profile-image, .profile-text {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    /* Smaller Screens General */
    .logo {
        font-size: 1.5em;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-end;
    }
    header .container {
        flex-direction: column;
        align-items: center;
    }
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .top-info span, .top-address span {
        display: block;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .about-brief, .products-overview, .key-strengths, .gallery-preview {
        padding: 40px 0;
    }
    .slider-content h1 {
        font-size: 2em;
    }
    .slider-content p {
        font-size: 1.2em;
    }
    
    /* Gallery Grid Collapse */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .photo-gallery h2 {
        text-align: center;
        width: 100%;
    }
}