:root {
    /* --- NEW Greenish Color Palette --- */
    --primary-color: #33B864;         /* Main Green */
    --primary-hover: #27994f;         /* Darker Green */
    --secondary-color: #045D56;       /* Dark Teal/Green */
    --accent-color: #59CEBB;          /* Light Teal/Aqua */
    --light-gray: #F8FCFA;            /* Very Light Greenish White (was --light-bg) */
    --medium-gray: #6B7280;           /* Mid Gray (from source) */
    --dark-gray: #374151;             /* Dark Gray (from source) */
    --white: #ffffff;
    --black: #000000;
    --border-color: #e0e0e0;          /* Added for subtle borders (original --medium-gray value) */

    /* Derived/Adjusted from new palette */
    --secondary-color-dark: #023a36;  /* Darker version of secondary */
    --secondary-color-light: #067d73; /* Lighter version of secondary */
    --primary-color-dark: #27994f;    /* Using primary-hover as dark variant */
    --primary-color-light: #5fcf8a;   /* Lighter version of primary */

    /* Kept from original, might be redundant or useful */
    --greenish-grey: #485d56;

    /* --- Structure & Effects (Mostly Unchanged) --- */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem; /* Adjusted from 0.5rem to 8px for consistency */
    --border-radius-lg: 1rem;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.08); /* Adjusted shadow slightly for new palette */
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08); /* Adjusted shadow slightly */
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.08); /* Adjusted shadow slightly */
    --shadow-elevation: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);

    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* --- AI Chatbot Widget Styles --- */
    --chatbot-primary-red: #D9534F; /* A common 'soothing' red */
    --chatbot-primary-red-hover: #C9302C;
    --chatbot-secondary-red: #FDECEA; /* Very light pink/red for backgrounds */
    --chatbot-text-dark: #333333;
    --chatbot-text-light: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem; /* Default margin, can be overridden by spacing utilities */
    color: var(--secondary-color); /* Default heading color to secondary */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Layout utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Adjusted padding from 20px to 1.5rem for consistency */
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }

/* Spacing utilities */
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Typography */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.tracking-wide { letter-spacing: 0.025em; }

/* Colors */
.text-white { color: var(--white); }
.text-primary { color: var(--primary-color); }
.text-gray { color: var(--medium-gray); }
.bg-primary { background-color: var(--primary-color); }
.bg-dark { background-color: var(--secondary-color); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

/* Border & radius */
.rounded { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius-md); }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Animations */
.transition { transition: var(--transition-normal); }
.transition-transform { transition: transform 0.3s ease; }
.hover-elevate:hover { transform: translateY(-5px); box-shadow: var(--shadow-elevation); }

/* About Section Adjustments */
#about .text-center { text-align: center !important; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; justify-items: center; margin: 0 auto; max-width: 1200px; }
.stat-card { text-align: center; width: 100%; max-width: 240px; }

/* Quote Button Styles */
.quote-button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 40px; min-width: 180px; background: var(--primary-color); color: white !important; border-radius: 10px; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; border: none; text-decoration: none !important; text-align: center; }
.quote-button:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.1); opacity: 0; transition: opacity 0.3s ease; }
.quote-button:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
.quote-button:hover:before { opacity: 1; }
.quote-button .button-icon { transition: transform 0.3s ease; }
.quote-button:hover .button-icon { transform: translateX(3px); }
@media (max-width: 767px) { .quote-button { padding: 12px 30px; min-width: 160px; font-size: 0.9rem; } }
.nav-item .quote-button:hover { color: white !important; }

/* General Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--border-radius-sm); font-weight: 600; cursor: pointer; transition: var(--transition-normal); line-height: 1; outline: none; }
.button-primary { background-color: var(--primary-color); color: var(--white); border: none; }
.nav-item .button-primary { padding-left: 2.5rem; padding-right: 2.5rem; color: var(--white); }
.button-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button-outline { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.button-outline:hover { background-color: var(--primary-color); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button-white { background-color: var(--white); color: var(--primary-color); }
.button-white:hover { background-color: #f5f5f5; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button-icon { margin-left: 0.5rem; }

/* Header & Navigation */
.topbar { background-color: var(--secondary-color); color: var(--white); padding: 0.5rem 0; font-size: 0.875rem; }
.header { background-color: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.header .container img.header-logo-img { height: 48px; }
.nav-menu { display: flex; list-style: none; }
.nav-item { margin: 0 1rem 0 1.5rem; position: relative; }
.nav-item a { font-weight: 600; display: flex; align-items: center; padding: 0.5rem 0; color: var(--dark-gray); }
.nav-item > a:hover { color: var(--primary-color); }
.nav-dropdown { position: absolute; top: 100%; left: 10px; min-width: 240px; background-color: var(--white); box-shadow: var(--shadow-lg); padding: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition-normal); z-index: 100; border: 1px solid var(--medium-gray); }
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-section { border-bottom: 1px solid var(--medium-gray); padding: 8px 0; }
.dropdown-section:last-child { border-bottom: none; }
.dropdown-section-title { font-weight: 600; color: var(--white); padding: 10px 20px; display: block; background-color: var(--greenish-grey); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.dropdown-item { padding-left: 5px; padding-right: 20px; display: block; transition: var(--transition-fast); color: var(--dark-gray); background-color: var(--white); border-bottom: 1px solid var(--border-color); }
.nav-dropdown .dropdown-item { padding-left: 20px; padding-right: 20px; }
.nav-mega-dropdown .dropdown-item { padding-left: 20px; padding-right: 20px; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { color: var(--white); background-color: var(--primary-color); }
.nav-mega-dropdown { position: absolute; top: 100%; left: 10px; width: 940px; max-width: 95vw; background-color: var(--white); box-shadow: var(--shadow-lg); padding: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition-normal); z-index: 100; border: 1px solid var(--border-color); display: flex; flex-wrap: wrap; max-height: 85vh; overflow-y: auto; border-radius: 4px; }
.nav-item:hover .nav-mega-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-dropdown-section { width: 25%; padding: 10px; border-right: 1px solid var(--border-color); box-sizing: border-box; }
.mega-dropdown-section:last-child { border-right: none; }
@media (max-width: 1380px) { .nav-mega-dropdown { width: 880px; left: -200px; } .mega-dropdown-section { width: 33.333%; } .mega-dropdown-section:nth-child(3n) { border-right: none; } .mega-dropdown-section:nth-child(n+4) { border-top: 1px solid var(--border-color); } }
@media (max-width: 1200px) { .nav-mega-dropdown { width: 700px; left: -250px; } }
@media (max-width: 991px) { .nav-mega-dropdown { position: static; width: 100%; max-height: none; box-shadow: none; border: none; display: none; padding: 0 0 0 15px; } .mega-dropdown-section { width: 100%; padding: 0; border-right: none; border-bottom: 1px solid var(--border-color); } .mega-dropdown-section:last-child { border-bottom: none; } .dropdown-section { border-bottom: none; padding: 0; } .dropdown-section-title { padding: 8px 10px; } .dropdown-item, .nav-dropdown .dropdown-item, .nav-mega-dropdown .dropdown-item { padding: 8px 15px 8px 30px; } .dropdown-item:last-child { border-bottom: 1px solid var(--border-color); } .mega-dropdown-section:last-child .dropdown-section:last-child .dropdown-item:last-child { border-bottom: none; } }
.mobile-menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark-gray); }

/* Main Carousel */
.main-carousel { position: relative; height: 550px; }
.carousel-slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-position: center; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s ease; }
.carousel-slide.active { opacity: 1; visibility: visible; animation: carouselZoom 15s ease-in-out infinite alternate; }
@keyframes carouselZoom { 0% { background-size: 100% auto; } 100% { background-size: 110% auto; } }
.carousel-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); background-color: rgba(0, 0, 0, 0.5); padding: 2rem; }
.carousel-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; transform: translateY(20px); opacity: 0; transition: transform 0.8s ease, opacity 0.8s ease; transition-delay: 0.2s; color: var(--white); }
.carousel-description { font-size: 1.25rem; margin-bottom: 2rem; max-width: 600px; transform: translateY(20px); opacity: 0; transition: transform 0.8s ease, opacity 0.8s ease; transition-delay: 0.4s; color: var(--white); }
.carousel-button { transform: translateY(20px); opacity: 0; transition: transform 0.8s ease, opacity 0.8s ease; transition-delay: 0.6s; }
.carousel-slide.active .carousel-title, .carousel-slide.active .carousel-description, .carousel-slide.active .carousel-button { transform: translateY(0); opacity: 1; }
.carousel-controls { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 10; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: var(--transition-fast); }
.carousel-dot.active { background-color: var(--white); transform: scale(1.2); }
.carousel-arrows { position: absolute; top: 50%; width: 100%; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 2rem; z-index: 10; }
.carousel-arrow { width: 48px; height: 48px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.2); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; transition: var(--transition-normal); }
.carousel-arrow:hover { background-color: rgba(255, 255, 255, 0.4); }

/* Product Categories */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.category-card { border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition-normal); }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-image { height: 200px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.category-image::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.3); opacity: 0; transition: var(--transition-normal); }
.category-card:hover .category-image::before { opacity: 1; }
.category-content { padding: 1.5rem; }

/* Solutions */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.solution-card { background-color: var(--white); border-radius: var(--border-radius-md); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-md); transition: var(--transition-normal); border-bottom: 3px solid transparent; }
.solution-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-bottom: 3px solid var(--primary-color); }
.solution-icon { width: 64px; height: 64px; margin: 0 auto 1rem; background-color: rgba(51, 184, 100, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary-color); transition: var(--transition-normal); }
.solution-card:hover .solution-icon { background-color: var(--primary-color); color: var(--white); transform: rotateY(180deg); }

/* Clients Section */
.clients-section { padding: var(--py-16, 4rem 0); background-color: var(--white); overflow: hidden; position: relative; }
.clients-slider-container { width: 100%; overflow: hidden; padding: 10px 20px; position: relative; z-index: 10; margin-top: 20px; }
.clients-slider { width: 100%; overflow: visible; position: relative; background-color: transparent; padding: 5px 0px; } /* Reverted to overflow: visible */
.clients-track { display: inline-flex; animation: scrollX 86.7s linear infinite; } /* Changed to inline-flex, speed already 16.7s */
.clients-track:hover { animation-play-state: paused; }
.client-logo { flex: 0 0 auto; margin: 0 15px; height: 160px; width: 160px; display: flex; align-items: center; justify-content: center; opacity: 1; transition: var(--transition-normal); background-color: var(--white); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.client-logo:hover { transform: scale(1.05); box-shadow: var(--shadow-md); opacity: 1; border-color: var(--primary-color); }
.client-logo img { display: block; max-width: 90%; max-height: 90%; width: auto; height: auto; object-fit: contain; filter: none; transition: var(--transition-normal); padding: 1px; }
@keyframes scrollX { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Featured Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-card { background-color: var(--white); border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition-normal); position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-badge { position: absolute; top: 1rem; right: 1rem; padding: 0.25rem 0.75rem; border-radius: var(--border-radius-lg); font-size: 0.75rem; font-weight: 600; z-index: 10; }
.badge-bestseller { background-color: var(--primary-color); color: var(--white); }
.badge-new { background-color: var(--accent-color); color: var(--secondary-color); }
.product-image { height: 200px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.product-image::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%); opacity: 0; transition: var(--transition-normal); }
.product-card:hover .product-image::before { opacity: 1; }
.product-content { padding: 1.5rem; }
.product-cta { display: flex; justify-content: space-between; align-items: center; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; }
.project-card { border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-md); position: relative; transition: var(--transition-normal); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-image { height: 250px; background-size: cover; background-position: center; position: relative; }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%); opacity: 0.7; transition: var(--transition-normal); }
.project-card:hover .project-overlay { opacity: 0.9; }
.project-content { padding: 1.5rem; }
.project-category { margin-left: -0.6rem; display: inline-block; padding: 0.25rem 0.75rem; background-color: var(--light-gray); border-radius: var(--border-radius-lg); font-size: 0.75rem; margin-bottom: 0.5rem; font-weight: 500; }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; position: relative; display: inline-block; }
.stat-value::after { content: ''; position: absolute; bottom: -0.5rem; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background-color: var(--primary-color); border-radius: 3px; }
.stat-label { font-size: 1rem; color: var(--dark-gray); font-weight: 500; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card { border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition-normal); background-color: var(--white); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-image { height: 200px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.news-image::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%); opacity: 0; transition: var(--transition-normal); }
.news-card:hover .news-image::before { opacity: 1; }
.news-content { padding: 1.5rem; }
.news-date { color: var(--medium-gray); font-size: 0.875rem; margin-bottom: 0.5rem; display: flex; align-items: center; }
.news-date i { margin-right: 0.5rem; color: var(--primary-color); }

/* Contact Section (Main Page) */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.contact-form { background-color: var(--white); padding: 2rem; border-radius: var(--border-radius-md); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); font-family: inherit; font-size: 1rem; transition: var(--transition-fast); }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(51, 184, 100, 0.1); }
textarea.form-control { min-height: 150px; resize: vertical; }
.contact-info { background-color: var(--white); padding: 2rem; border-radius: var(--border-radius-md); }
.contact-item { margin-bottom: 1.5rem; transition: var(--transition-normal); padding: 0.5rem 0; display: flex; align-items: flex-start; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .contact-icon { color: var(--primary-color); margin-right: 0.75rem; font-size: 1.25rem; width: 25px; text-align: center; margin-top: 0.1em; flex-shrink: 0; }
.contact-item .contact-text { flex-grow: 1; }
.contact-item .contact-text h4 { margin-bottom: 0.25rem; line-height: 1.4; color: var(--secondary-color); }
.contact-item .contact-text p { margin: 0; line-height: 1.5; color: var(--dark-gray); }

/* Footer */
.footer { background-color: var(--secondary-color); color: var(--white); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: var(--accent-color); margin-bottom: 1rem; }
.footer-description { color: var(--border-color); margin-bottom: 1.5rem; }
.footer-links h3 { font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--white); position: relative; padding-bottom: 0.75rem; }
.footer-links h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background-color: var(--primary-color); border-radius: 3px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--border-color); transition: var(--transition-normal); display: block; padding: 0.25rem 0; }
.footer-links a:hover { color: var(--primary-color); transform: translateX(5px); }
.footer-bottom { margin-top: 2rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 0.875rem; color: var(--border-color); }
.social-icons { display: flex; gap: 1rem; margin-top: 1.25rem; justify-content: center; }
.footer-grid .social-icons { justify-content: flex-start; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--white); /* Ensure icon color is white initially */ transition: var(--transition-normal); }
.social-icon:hover { background-color: var(--primary-color); color: var(--white); transform: translateY(-3px); }

/* Page Header Specifics */
.page-header { background-color: var(--secondary-color-dark); padding: 3rem 0; color: var(--white); position: relative; overflow: hidden; }
.page-header h1, .page-header h2, .page-header h3, .page-header h4, .page-header h5, .page-header h6 { color: var(--white); }
.breadcrumbs { display: flex; list-style: none; position: relative; z-index: 1; padding: 0; margin-top: 0.5rem; }
.breadcrumbs li { display: flex; align-items: center; font-size: 1rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin: 0 0.5rem; color: var(--medium-gray); }
.breadcrumbs a { color: var(--accent-color); transition: var(--transition-fast); }
.breadcrumbs a:hover { color: var(--primary-color-light); }
.breadcrumbs .current { color: var(--white); font-weight: 600; }

/* Product Category Section Specifics */
.product-category .products-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }
.product-category .product-item { display: flex; flex-direction: column; }
.product-category .product-image { height: 250px; }
.product-category .product-image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5)); opacity: 1; pointer-events: none; }
.product-category .product-content { flex-grow: 1; display: flex; flex-direction: column; }
.product-category .product-content h3 { margin-bottom: 0.75rem; }
.product-category .product-content p { color: var(--dark-gray); margin-bottom: 1.25rem; line-height: 1.7; flex-grow: 1; }
.product-category .button-outline { margin-top: auto; align-self: flex-start; }

/* CTA Section Specifics */
.cta-section { background-color: var(--white); padding: 4rem 0; text-align: center; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { max-width: 700px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.bg-primary .button-outline { color: var(--white); border-color: var(--white); background-color: transparent; }
.bg-primary .button-outline:hover { background-color: var(--white); color: var(--primary-color); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bg-dark .button-outline { color: var(--white) !important; border-color: var(--white) !important; background-color: transparent !important; }
.bg-dark .button-outline:hover { background-color: var(--white) !important; color: var(--secondary-color) !important; box-shadow: var(--shadow-md); }
.bg-light .button-outline, .bg-white .button-outline { color: var(--primary-color); border-color: var(--primary-color); }
.bg-light .button-outline:hover, .bg-white .button-outline:hover { background-color: var(--primary-color); color: var(--white); }
.bg-secondary .button-outline { color: var(--white) !important; border-color: var(--white) !important; background-color: transparent !important; }
.bg-secondary .button-outline:hover { background-color: var(--white) !important; color: var(--secondary-color) !important; box-shadow: var(--shadow-md); }

/* Responsive Adjustments */
@media (min-width: 768px) { .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); } .grid-cols-md-3 { grid-template-columns: repeat(3, 1fr); } .grid-cols-md-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px) { .carousel-title { font-size: 2rem; } .project-card { max-width: 450px; margin: 0 auto; } .product-category .products-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
@media (max-width: 767px) {
    h1 { font-size: 2rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.25rem; }
    .container { padding: 0 1rem; }
    .mobile-menu-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column; background-color: var(--white); box-shadow: var(--shadow-md); padding: 1rem 0; max-height: calc(100vh - 70px); overflow-y: auto; z-index: 100; border-top: 1px solid var(--border-color); }
    .nav-menu.active { display: flex; }
    .nav-item { margin: 0; width: 100%; border-bottom: 1px solid var(--border-color); }
    .nav-item:last-child { border-bottom: none; }
    .nav-item a { padding: 0.75rem 1.5rem; justify-content: space-between; width: 100%; }
    .nav-item .button-primary { padding: 0.75rem 1.5rem; margin: 0.5rem 1.5rem; width: calc(100% - 3rem); text-align: center; }
    .nav-dropdown, .nav-mega-dropdown { position: static; opacity: 1; visibility: visible; box-shadow: none; transform: none; display: none; border: none; background-color: var(--light-gray); padding: 0.5rem 0; }
    .nav-mega-dropdown .dropdown-item, .nav-dropdown .dropdown-item, .dropdown-item { padding-left: 2.5rem; padding-right: 1.5rem; padding-top: 0.5rem; padding-bottom: 0.5rem; border-bottom: none; }
    .dropdown-section { padding: 0; border-bottom: none; }
    .dropdown-section-title { padding: 0.75rem 1.5rem; background-color: var(--border-color); color: var(--dark-gray); font-weight: 600; border-bottom: none; }
    .nav-mega-dropdown { padding: 0; }
    .mega-dropdown-section { width: 100%; padding: 0; border: none; }
    .mega-dropdown-section .dropdown-section-title { background-color: var(--border-color); }
    .mega-dropdown-section .dropdown-item { padding-left: 2.5rem; }
    .nav-dropdown.show, .nav-mega-dropdown.show { display: block; }
    .dropdown-toggle i.fa-chevron-down { transition: var(--transition-normal); }
    .nav-item.active > .dropdown-toggle i.fa-chevron-down { transform: rotate(180deg); }
    .topbar { display: none; }
    .main-carousel { height: 400px; }
    .carousel-arrows { display: none; }
    .carousel-title { font-size: 1.75rem; }
    .carousel-description { font-size: 1rem; }
    .category-card, .solution-card, .product-card, .news-card, .project-card { max-width: 350px; margin-left: auto; margin-right: auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links h3::after { left: 50%; transform: translateX(-50%); }
    .footer-links a:hover { transform: none; }
    .footer-grid .social-icons { justify-content: center; }
    .breadcrumbs { font-size: 0.9rem; }
    .page-header { padding: 2rem 0; }
    .product-category .products-list { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-category .product-item { max-width: 350px; margin-left: auto; margin-right: auto; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
    .cta-buttons .button { width: 100%; max-width: 300px; }
}

/* Special Animations */
.animate-float { animation: float 5s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.appear-right { opacity: 0; transform: translateX(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.appear-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.appear-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.in-view .appear-right, .in-view .appear-left, .in-view .appear-up { opacity: 1; transform: translate(0); }

/* Loading Spinner */
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(51, 184, 100, 0.1); border-top-color: var(--primary-color); animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form validation */
.invalid-feedback { color: #e53e3e; font-size: 0.875rem; margin-top: 0.25rem; display: none; width: 100%; text-align: left; }
.form-control.invalid { border-color: #e53e3e; }


/* Scroll to top button (New Position: Bottom Left) */
.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}
.scroll-top.active {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}


/* Container for Floating Action Buttons on the RIGHT */
.floating-action-buttons-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row; /* Make them side-by-side */
    align-items: flex-end; /* Align to bottom of flex line */
    gap: 15px; /* Space between the AI chat and Contact popup toggles */
}

/* --- AI Chatbot Widget Styles --- */
.ai-chat-widget {
    display: flex; 
    align-items: center; 
    position: relative; 
}

.ai-chat-toggle {
    background-color: var(--chatbot-primary-red);
    color: var(--chatbot-text-light);
    padding: 10px 15px;
    border-radius: 25px; /* Pill shape */
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.9em; 
    letter-spacing: 0.5px;
    white-space: nowrap; 
}
.ai-chat-toggle:hover {
    background-color: var(--chatbot-primary-red-hover);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.ai-chat-toggle .chat-icon {
    margin-right: 8px;
    font-size: 1.1em; 
}
.ai-chat-toggle .chat-text {
     display: block;
}

/* Chatbot UI Container (Positioning relative to the new toggle position) */
.chatbot-container-wrapper {
    position: fixed; 
    bottom: calc(20px + 60px + 15px); 
    right: 20px; 
    width: 380px;
    height: 70vh;
    max-height: 550px;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-elevation);
    z-index: 1001;
    overflow: hidden;
    display: none;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    border: 1px solid var(--chatbot-primary-red);
}
.chatbot-container-wrapper.active {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}


/* Contact Popup styles */
.contact-popup {
    position: relative; 
    display: flex; 
    align-items: center;
}
.popup-toggle { 
    width: 60px; 
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.popup-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.popup-content { 
    position: absolute;
    bottom: calc(100% + 10px); 
    right: 0; 
    width: 300px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    z-index: 1002; 
}
.contact-popup.active .popup-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.popup-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.popup-header h3, .popup-header h4 {
    margin: 0;
    font-weight: 600;
    color: var(--white) !important;
}
.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}
.popup-form {
    padding: 20px;
}
.popup-form .form-group {
    margin-bottom: 1rem;
}
.popup-form input, .popup-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--white);
    color: var(--dark-gray);
}
.popup-form textarea {
    resize: vertical;
    min-height: 100px;
}
.w-full { width: 100%; }
.popup-form input.invalid, .popup-form textarea.invalid {
    border-color: #e53e3e !important;
}


/* --- Styles for the INJECTED chatbot content --- */
#chatbot-ui-placeholder .chat-container {
    max-width: 100% !important; 
    height: 100% !important;     
    margin: 0 !important;         
    border-radius: 0 !important;  
    box-shadow: none !important;  
    display: flex !important;     
    flex-direction: column !important;
    background-color: var(--chatbot-secondary-red); 
}

#chatbot-ui-placeholder .chat-header {
    background: var(--chatbot-primary-red);
    color: var(--chatbot-text-light);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
#chatbot-ui-placeholder .chat-header h2 {
    font-size: 16px;
    color: var(--chatbot-text-light);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
#chatbot-ui-placeholder .close-chat {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: var(--chatbot-text-light);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
#chatbot-ui-placeholder .close-chat:hover,
#chatbot-ui-placeholder .close-chat:focus {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.55);
    outline: none;
}
#chatbot-ui-placeholder .close-chat:active {
    transform: scale(0.94);
}

#chatbot-ui-placeholder .chat-status {
    padding: 8px 15px;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    font-size: 0.85em;
}
#chatbot-ui-placeholder .status-indicator {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px;
    background-color: var(--primary-color); 
}
#chatbot-ui-placeholder .status-indicator.error {
    background-color: var(--chatbot-primary-red); 
}
#chatbot-ui-placeholder .status-text { color: var(--medium-gray); }

#chatbot-ui-placeholder .chat-messages {
    background-color: var(--chatbot-secondary-red); 
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
}

#chatbot-ui-placeholder .message { clear: both; margin-bottom: 12px; max-width: 85%; }
#chatbot-ui-placeholder .message.user { float: right; }
#chatbot-ui-placeholder .message.bot { float: left; }

#chatbot-ui-placeholder .message-content {
    padding: 10px 15px; border-radius: 12px; line-height: 1.5;
    word-wrap: break-word;
    font-size: 14px;
    text-align: justify; /* Justified text alignment */
}
#chatbot-ui-placeholder .message.user .message-content {
    background-color: #FFE0E0; 
    color: var(--chatbot-text-dark);
    border-bottom-right-radius: 0;
}
#chatbot-ui-placeholder .message.bot .message-content {
    background-color: var(--white);
    color: var(--chatbot-text-dark);
    border-bottom-left-radius: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
#chatbot-ui-placeholder .message-content img { max-width: 100%; border-radius: 4px; margin-top: 8px; }
#chatbot-ui-placeholder .message-content .original-question {
    font-size: 0.85em; padding: 4px 8px; border-radius: 4px; margin-bottom: 6px; display: inline-block;
    color: var(--chatbot-primary-red);
    background-color: #f0f0f0; 
}
#chatbot-ui-placeholder .message-content .confidence-indicator { font-size: 0.75em; color: var(--medium-gray); margin-top: 4px; display: block;}

#chatbot-ui-placeholder .chat-input {
    background-color: var(--white);
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex; align-items: flex-end; gap: 10px;
}
#chatbot-ui-placeholder .chat-input textarea {
    flex-grow: 1; border: 1px solid #ccc; padding: 10px; font-size: 14px; border-radius: var(--border-radius-sm);
    resize: none; max-height: 100px; overflow-y: auto;
}
#chatbot-ui-placeholder .chat-input textarea:focus {
    border-color: var(--chatbot-primary-red);
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.2);
}
#chatbot-ui-placeholder .chat-input button {
    background-color: var(--chatbot-primary-red); color: var(--white);
    border: none; padding: 0 15px; height: 40px; min-width: 40px;
    border-radius: var(--border-radius-sm); cursor: pointer; transition: background-color 0.2s ease;
    display: flex; align-items: center; justify-content: center;
}
#chatbot-ui-placeholder .chat-input button:hover { background-color: var(--chatbot-primary-red-hover); }
#chatbot-ui-placeholder .chat-input button:disabled { background-color: #aaa; cursor: not-allowed; }
#chatbot-ui-placeholder .chat-input button i { font-size: 1.1em; }

#chatbot-ui-placeholder .suggestions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
#chatbot-ui-placeholder .suggestion-button {
    background-color: #FADBD8; border: 1px solid #F5B7B1; color: #A93226;
    font-size: 0.8rem; padding: 6px 12px; border-radius: 15px; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
#chatbot-ui-placeholder .suggestion-button:hover {
    background-color: var(--chatbot-primary-red);
    color: var(--chatbot-text-light);
    border-color: var(--chatbot-primary-red-hover);
}
#chatbot-ui-placeholder .typing-indicator { margin-bottom: 10px; }
#chatbot-ui-placeholder .typing-indicator span {
    width: 8px; height: 8px; border-radius: 50%; background: var(--chatbot-primary-red);
    display: inline-block; margin: 0 2px; animation: typingDots 1.4s infinite ease-in-out both;
}
@keyframes typingDots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

#chatbot-ui-placeholder .chat-messages::-webkit-scrollbar { width: 6px; }
#chatbot-ui-placeholder .chat-messages::-webkit-scrollbar-thumb { background-color: var(--chatbot-primary-red); border-radius: 3px; }
#chatbot-ui-placeholder .chat-messages::-webkit-scrollbar-track { background-color: var(--chatbot-secondary-red); }

/* Responsive adjustments for floating buttons and popups */
@media (max-width: 767px) {
    .scroll-top {
        bottom: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .floating-action-buttons-right {
        bottom: 10px;
        right: 10px;
        gap: 10px; /* Reduced gap on mobile */
    }

    .ai-chat-toggle {
        padding: 8px 12px;
        font-size: 12px;
    }
    .ai-chat-toggle .chat-icon {
        font-size: 1em;
        margin-right: 5px;
    }

    .popup-toggle {
        width: 50px;
        height: 50px;
    }
    .popup-toggle i {
        font-size: 1.2rem; /* Adjust headset icon size */
    }
    
    .chatbot-container-wrapper {
        left: 10px;
        right: 10px;
        bottom: 10px; 
        width: auto; 
        height: calc(100vh - 70px); 
        max-height: none;
        top: 60px; 
        border-radius: var(--border-radius-sm);
    }

    .popup-content { /* Contact form popup */
        bottom: calc(100% + 5px); 
        right: 0; 
        width: calc(100vw - 40px); 
        max-width: 280px; 
    }
}

/* --- New Contact Page Styles & Nav Highlight --- */

/* Utility for light green background used in icons on contact page */
.bg-light-green {
    background-color: rgba(51, 184, 100, 0.1);
}

/* Hover effect for contact cards */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* Specific Height Utilities for Map */
.h-full { height: 100%; }
.min-h-\[400px\] { min-height: 400px; }

/* Active Menu Highlight */
/* This highlights the link for the page you are currently on */
.nav-item.current-page > a {
    color: var(--primary-color) !important;
    position: relative;
}

/* Add a small underline for active state on desktop */
@media (min-width: 992px) {
    .nav-item.current-page > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        transform: scaleX(1);
        transition: transform 0.3s ease;
    }
}

/* Mobile Menu Active State */
@media (max-width: 991px) {
    .nav-item.current-page > a {
        background-color: rgba(51, 184, 100, 0.05);
        border-left: 4px solid var(--primary-color);
    }
}

/* --- Professional polish and reliability fixes --- */
:root {
    --primary-color: #25a85a;
    --primary-hover: #1f8c4b;
    --secondary-color: #063f3c;
    --secondary-color-dark: #022c2a;
    --accent-color: #42d6bd;
    --light-gray: #f4f8f6;
    --dark-gray: #23313d;
    --border-color: #dce7e2;
    --shadow-sm: 0 4px 16px rgba(6, 63, 60, 0.08);
    --shadow-md: 0 12px 32px rgba(6, 63, 60, 0.12);
    --shadow-lg: 0 18px 48px rgba(6, 63, 60, 0.16);
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.25rem;
}

body {
    background: linear-gradient(180deg, #ffffff 0%, var(--light-gray) 100%);
    color: var(--dark-gray);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

section { scroll-margin-top: 96px; }

.container { max-width: 1220px; }

.topbar {
    background: linear-gradient(90deg, var(--secondary-color-dark), var(--secondary-color));
    letter-spacing: 0.01em;
}

.header {
    border-bottom: 1px solid rgba(6, 63, 60, 0.08);
    box-shadow: 0 8px 30px rgba(6, 63, 60, 0.08);
}

.header .container { min-height: 78px; }
.header-logo-img { display: block; width: auto; max-width: 190px; object-fit: contain; }
.nav-item { margin: 0 0.65rem; }
.nav-item > a { color: #1f2937; letter-spacing: -0.01em; }
.nav-item > a:not(.quote-button)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1rem;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.nav-item > a:not(.quote-button):hover::after { transform: scaleX(1); }
.quote-button, .button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(37, 168, 90, 0.24);
}
.button { border-radius: 999px; min-height: 44px; }
.button-white { color: var(--secondary-color); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); }
.button-outline { border-width: 1.5px; }

.nav-mega-dropdown, .nav-dropdown {
    border: 1px solid rgba(6, 63, 60, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(6, 63, 60, 0.18);
}
.dropdown-section-title { background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-dark)); }
.dropdown-item { font-size: 0.92rem; }

.main-carousel {
    height: min(680px, calc(100vh - 80px));
    min-height: 540px;
    overflow: hidden;
    background: var(--secondary-color-dark);
}
.carousel-slide { background-size: cover !important; background-position: center center; }
.carousel-slide.active { animation: carouselZoom 18s ease-in-out infinite alternate; }
@keyframes carouselZoom { 0% { transform: scale(1); } 100% { transform: scale(1.06); } }
.carousel-content {
    background: linear-gradient(90deg, rgba(2, 44, 42, 0.88) 0%, rgba(2, 44, 42, 0.62) 42%, rgba(2, 44, 42, 0.28) 100%);
    align-items: flex-start;
    text-align: left;
    padding-left: max(2rem, calc((100vw - 1220px) / 2 + 1.5rem));
    padding-right: 2rem;
}
.carousel-title {
    font-size: clamp(2.4rem, 5vw, 4.75rem);
    max-width: 760px;
    letter-spacing: -0.055em;
    line-height: 1.04;
    margin-bottom: 1.25rem;
}
.carousel-description {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}
.carousel-controls { bottom: 2.25rem; }
.carousel-dot { width: 34px; height: 4px; border-radius: 999px; border: none; }
.carousel-dot.active { transform: none; background-color: var(--accent-color); }
.carousel-arrow { border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); }

.py-16 { padding-top: 5rem; padding-bottom: 5rem; }
.text-center h2, .product-category-header h2 { letter-spacing: -0.035em; }
.text-center h2::after, .product-category-header h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0.85rem auto 0;
}

.clients-section { background: #ffffff; }
.client-logo {
    border-radius: 18px;
    border-color: rgba(6, 63, 60, 0.10);
    box-shadow: 0 10px 30px rgba(6, 63, 60, 0.08);
}

.categories-grid, .news-grid, .projects-grid, .solutions-grid, .product-category .products-list { gap: 2rem; }
.category-card, .news-card, .project-card, .solution-card, .product-card, .product-category .product-item, .contact-form, .contact-info, .contact-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(6, 63, 60, 0.10);
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(6, 63, 60, 0.09);
}
.category-card:hover, .news-card:hover, .project-card:hover, .solution-card:hover, .product-card:hover, .product-category .product-item:hover, .contact-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 54px rgba(6, 63, 60, 0.16);
    border-color: rgba(37, 168, 90, 0.34);
}
.category-image, .news-image, .product-image, .project-image { overflow: hidden; }
.category-image picture, .news-image picture { display: block; height: 100%; width: 100%; }
.category-image img, .news-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.category-card:hover .category-image img, .news-card:hover .news-image img { transform: scale(1.06); }
.category-content, .news-content, .product-content { padding: 1.7rem; }
.category-content h3, .news-content h3, .product-content h3 { color: var(--secondary-color-dark); }

.youtube-lite-wrapper {
    position: relative;
    width: min(920px, 100%);
    aspect-ratio: 16 / 9;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--secondary-color-dark);
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 60px rgba(6, 63, 60, 0.18);
    cursor: pointer;
}
.youtube-lite-wrapper::before {
    content: 'Company Promo';
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    color: #fff;
    background: rgba(2, 44, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.youtube-lite-wrapper.video-loaded::before { display: none; }
.youtube-lite-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }
.play-button {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.play-button::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 27px;
    border-left: 24px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
}
.youtube-lite-wrapper:hover .play-button { transform: scale(1.06); }

.solution-icon, .contact-icon { box-shadow: inset 0 0 0 1px rgba(37, 168, 90, 0.12); }
.bg-primary { background: linear-gradient(135deg, var(--secondary-color), var(--primary-hover)); }
.page-header {
    background: radial-gradient(circle at 20% 20%, rgba(66, 214, 189, 0.25), transparent 34%), linear-gradient(135deg, var(--secondary-color-dark), var(--secondary-color));
    padding: 4.5rem 0;
}
.page-header h1 { letter-spacing: -0.045em; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.breadcrumbs a { color: var(--accent-color); }

.product-category .product-item { overflow: hidden; transition: var(--transition-normal); }
.product-category .product-image { background-size: cover; background-position: center; }
.product-category .button-outline { border-radius: 999px; }

.form-control, .popup-form input, .popup-form textarea, #chatbot-ui-placeholder .chat-input textarea {
    border-radius: 12px;
    border: 1px solid rgba(6, 63, 60, 0.16);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .popup-form input:focus, .popup-form textarea:focus, #chatbot-ui-placeholder .chat-input textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 168, 90, 0.14);
}
.contact-info, .contact-form { padding: 2rem; }

.footer {
    background: linear-gradient(135deg, #022c2a, #063f3c 55%, #082f49);
}
.footer-description, .footer-links a, .footer-bottom { color: rgba(255, 255, 255, 0.76); }
.footer-logo { color: #ffffff; letter-spacing: 0.03em; }
.social-icon { background: rgba(255, 255, 255, 0.11); }
.social-icon:hover { background: var(--primary-color); }

#contact-popup-placeholder.contact-popup, body > .contact-popup {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1002;
}
.floating-action-buttons-right .contact-popup {
    position: relative;
    right: auto;
    bottom: auto;
}
.popup-toggle, .ai-chat-toggle {
    box-shadow: 0 16px 36px rgba(6, 63, 60, 0.22);
}
.popup-content, .chatbot-container-wrapper {
    border-radius: 18px;
    border: 1px solid rgba(6, 63, 60, 0.12);
    box-shadow: 0 24px 70px rgba(6, 63, 60, 0.22);
}

.block { display: block; }
.items-start { align-items: flex-start; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.h-32 { height: 8rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.hover\:text-primary:hover { color: var(--primary-color); }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:block { display: block; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .header .container { min-height: 68px; }
    .nav-menu { border-radius: 0 0 18px 18px; }
    .nav-item > a:not(.quote-button)::after { display: none; }
    .main-carousel { min-height: 480px; height: 540px; }
    .carousel-content { align-items: center; text-align: center; padding-left: 1.5rem; padding-right: 1.5rem; background: linear-gradient(180deg, rgba(2, 44, 42, 0.80), rgba(2, 44, 42, 0.62)); }
}
@media (max-width: 767px) {
    .py-16 { padding-top: 3.25rem; padding-bottom: 3.25rem; }
    .main-carousel { height: 480px; min-height: 440px; }
    .carousel-title { font-size: 2.35rem; }
    .carousel-description { font-size: 1rem; }
    .category-card, .solution-card, .product-card, .news-card, .project-card, .product-category .product-item { max-width: none; }
    .youtube-lite-wrapper { border-radius: 18px; }
    .play-button { width: 68px; height: 68px; }
    .play-button::after { left: 28px; top: 21px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
    #contact-popup-placeholder.contact-popup, body > .contact-popup { right: 14px; bottom: 14px; }
}

/* Final header polish and tablet navigation fix */
.header {
    border-bottom: 1px solid rgba(4, 93, 86, 0.08);
}
.header .container {
    gap: 2rem;
}
.header nav {
    display: flex;
    align-items: center;
}
.main-logo-link {
    width: 180px;
    height: 56px;
    flex: 0 0 180px;
    display: inline-flex;
    align-items: center;
    background-image: url('images/logo/AMOGE-Logo-White_Clean.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}
.header .container img.header-logo-img,
.header-logo-img {
    width: 180px;
    height: 56px;
    object-fit: contain;
    opacity: 0;
    display: block;
}
.header .nav-menu {
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
}
.header .nav-item {
    margin: 0 0 0 1.1rem;
}
.header .nav-item > a:not(.quote-button) {
    color: #1f2937;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.header .nav-item > a:not(.quote-button):hover,
.header .nav-item.current-page > a:not(.quote-button) {
    color: var(--primary-color);
}
.header .nav-item .quote-button,
.header .quote-button {
    background: linear-gradient(135deg, #25A85A, #168F4A) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-width: 170px;
    padding: 0.9rem 1.7rem !important;
    box-shadow: 0 12px 26px rgba(22, 143, 74, 0.25) !important;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap;
}
.header .nav-item .quote-button:hover,
.header .quote-button:hover {
    background: linear-gradient(135deg, #168F4A, #0f6f3a) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(22, 143, 74, 0.32) !important;
}
.header .quote-button .button-icon,
.header .quote-button i {
    color: #ffffff !important;
}

@media (min-width: 1101px) and (max-width: 1220px) {
    .header .container { gap: 1.2rem; }
    .main-logo-link { width: 165px; height: 52px; flex-basis: 165px; }
    .header .container img.header-logo-img,
    .header-logo-img { width: 165px; height: 52px; }
    .header .nav-item { margin-left: 0.75rem; }
    .header .nav-item .quote-button,
    .header .quote-button { min-width: 150px; padding-left: 1.35rem !important; padding-right: 1.35rem !important; }
}

@media (max-width: 1100px) {
    .topbar { display: none; }
    .header { top: 0; }
    .header .container {
        min-height: 72px;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
    .main-logo-link {
        width: 172px;
        height: 54px;
        flex-basis: 172px;
    }
    .header .container img.header-logo-img,
    .header-logo-img {
        width: 172px;
        height: 54px;
    }
    .mobile-menu-toggle {
        width: 46px;
        height: 46px;
        border-radius: 999px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: var(--secondary-color);
        background: rgba(4, 93, 86, 0.08);
        border: 1px solid rgba(4, 93, 86, 0.12);
        margin-left: auto;
    }
    .mobile-menu-toggle:hover {
        background: rgba(4, 93, 86, 0.13);
    }
    .header .nav-menu,
    .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--white);
        box-shadow: 0 18px 42px rgba(4, 93, 86, 0.14);
        padding: 0.7rem 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        z-index: 1000;
        border-top: 1px solid rgba(4, 93, 86, 0.1);
        border-radius: 0 0 18px 18px;
    }
    .header .nav-menu.active,
    .nav-menu.active {
        display: flex !important;
    }
    .header .nav-item,
    .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(4, 93, 86, 0.08);
    }
    .header .nav-item:last-child,
    .nav-item:last-child {
        border-bottom: 0;
    }
    .header .nav-item > a,
    .nav-item > a {
        width: 100%;
        justify-content: space-between;
        padding: 0.9rem 1.5rem;
    }
    .header .nav-item .quote-button,
    .header .quote-button {
        width: calc(100% - 3rem);
        min-width: 0;
        margin: 0.8rem 1.5rem;
        justify-content: center;
        padding: 0.9rem 1.2rem !important;
    }
    .nav-dropdown,
    .nav-mega-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        display: none;
        width: 100%;
        max-width: none;
        max-height: none;
        border: 0;
        background-color: var(--light-gray);
        padding: 0;
        border-radius: 0;
        overflow: visible;
    }
    .nav-dropdown.show,
    .nav-mega-dropdown.show {
        display: block;
    }
    .mega-dropdown-section {
        width: 100%;
        padding: 0;
        border: 0;
    }
    .dropdown-section {
        padding: 0;
        border-bottom: 1px solid rgba(4, 93, 86, 0.08);
    }
    .dropdown-section-title {
        padding: 0.7rem 1.5rem;
        color: var(--secondary-color);
        background: rgba(4, 93, 86, 0.08);
        border: 0;
    }
    .dropdown-item,
    .nav-dropdown .dropdown-item,
    .nav-mega-dropdown .dropdown-item {
        padding: 0.7rem 1.5rem 0.7rem 2.4rem;
        border-bottom: 1px solid rgba(4, 93, 86, 0.06);
    }
}

@media (max-width: 420px) {
    .main-logo-link {
        width: 150px;
        height: 48px;
        flex-basis: 150px;
    }
    .header .container img.header-logo-img,
    .header-logo-img {
        width: 150px;
        height: 48px;
    }
    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }
}


/* Final contrast correction: keep Request Quote readable on every screen */
.quote-button,
a.quote-button,
.nav-menu .quote-button,
.header .quote-button,
.header .nav-item .quote-button,
.header a.quote-button,
.nav-item a.quote-button {
    background: #045D56 !important;
    background-color: #045D56 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #045D56 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
    box-shadow: 0 12px 26px rgba(4, 93, 86, 0.28) !important;
}
.quote-button::before,
a.quote-button::before,
.header .quote-button::before,
.header .nav-item .quote-button::before {
    display: none !important;
    opacity: 0 !important;
}
.quote-button *,
a.quote-button *,
.quote-button i,
a.quote-button i,
.quote-button .button-icon,
a.quote-button .button-icon,
.header .quote-button *,
.header .quote-button i,
.header .quote-button .button-icon {
    color: #ffffff !important;
    opacity: 1 !important;
}
.quote-button:hover,
a.quote-button:hover,
.nav-menu .quote-button:hover,
.header .quote-button:hover,
.header .nav-item .quote-button:hover,
.header a.quote-button:hover,
.nav-item a.quote-button:hover {
    background: #023a36 !important;
    background-color: #023a36 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #023a36 !important;
    box-shadow: 0 16px 32px rgba(2, 58, 54, 0.34) !important;
}
