:root {
    --primary: #0F2C59;
    --primary-light: #1e4b8a;
    --accent: #334155;
    --highlight: #0ea5e9;
    --gold: #c56565;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-body: #ffffff;
    --bg-section: #f8fafc;
    --border: #e2e8f0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container: 1400px;
    --radius: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Typography & Animations */
.text-reveal-wrapper {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}

.text-reveal {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.text-reveal.visible {
    transform: translateY(0);
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-xl {
    font-size: 3.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    font-weight: 300;
    font-family: var(--font-heading);
}

.text-lg {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-weight: 400;
    font-family: var(--font-heading);
}

.text-md {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.text-sm {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-link {
    padding: 0;
    color: var(--primary);
    border-bottom: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover {
    border-bottom-color: var(--primary);
}

/* Small CTA Button */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 2px;
    letter-spacing: 0.5px;
}


/* Layout Helpers */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-section);
}

.bg-dark {
    background-color: #0f172a;
    color: white;
}

/* Header */
.top-nav {
    background: #0f172a;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.8rem;

}

/* Update the selector to match the new class */
.top-nav .marquee-container {
    width: 100%;
    /* Forces full width */
    margin: 0;
    padding: 0 20px;
    /* Optional: Adds a tiny safety buffer on edges */
    display: flex;
    overflow: hidden;
    /* Ensures no scrollbars appear */
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.mini-marquee-wrapper {
    width: 100%;
    flex: 1;
    /* Ensure it grows to fill space */
    overflow: hidden;
    position: relative;
    height: 20px;
    background: transparent;
}

.marquee-content {
    white-space: nowrap;
    width: 100%;
    display: inline-block;
    /* Use CSS variable for speed, default to 20s if not set */
    animation: marquee var(--marquee-speed, 20s) linear infinite;
}

.logo-img {
    height: 60px;
    width: auto;
}


/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: var(--radius);
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
    border: 1px solid var(--border);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-section);
    color: var(--primary);
    padding-left: 25px;
    /* Hover effect */
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* Space between text and icon */
}

/* Remove margin since we're using flex gap */
.nav-link i,
.nav-link svg {
    margin-left: 0;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Hero */
.hero-slider-container {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: #0f172a;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    padding-left: 5%;
}

.hero-number {
    font-size: 5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    opacity: 0.1;
    line-height: 0.8;
    position: absolute;
    top: 20%;
    left: 4%;
}

.hero-overline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bis-badge {
    background: white;
    color: var(--primary);
    padding: 2px 8px;
    font-weight: 700;
    border-radius: 2px;
    font-size: 0.75rem;
}

.slide-title {
    margin-bottom: 1.5rem;
}

.slide-desc {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.nav-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.slider-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.progress-fill {
    height: 100%;
    background: var(--highlight);
    width: 0%;
}

/* Trust Strip */
.trust-strip {
    background: var(--primary);
    color: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    opacity: 0.9;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.trust-icon {
    color: var(--highlight);
}

/* Products with Badges */
.product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
}

.prod-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    isolation: isolate;
}

.prod-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.prod-card:hover .prod-img {
    transform: scale(1.08);
}

.prod-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 1), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.prod-details {
    color: white;
    width: 100%;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.prod-card:hover .prod-details {
    transform: translateY(0);
}

.prod-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--gold);
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    font-family: var(--font-heading);
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    text-align: center;
}

.cert-card {
    padding: 2rem;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.cert-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

/* Arrivals Slider */
.arrivals-track-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.arrivals-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-snap-type: x mandatory;
}

.arrivals-track::-webkit-scrollbar {
    display: none;
}

.arrival-slide {
    min-width: 400px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: start;
}

.arrival-img-box {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.arrival-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.arrival-slide:hover .arrival-img-box img {
    transform: scale(1.1);
}

.arrival-content-box {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-dark);
}

.slider-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* General Sections */
.infra-section {
    background: url('https://images.unsplash.com/photo-1565515263728-90eec1163159?q=80&w=2070') center/cover fixed;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.infra-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
}

/* Tabs */
.tabs-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: #e2e8f0;
    padding: 0.5rem;
    border-radius: 3rem;
    display: flex;
    justify-content: space-between;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 2.5rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: 0.3s;
    color: var(--text-gray);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News & Events */
.news-section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    transition: 0.3s;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.news-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--highlight);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}

.news-link:hover {
    color: var(--primary);
}

.events-list {
    background: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.event-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-date-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    border-radius: var(--radius);
    color: white;
}

.event-date-num {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}


footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-btm {
    border-top: 1px solid #1e293b;
    margin-top: 4rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----- MIGRATED STYLES FOR SUB-PAGES (Contact, Products) ----- */

/* Page Hero (Shared) */
.page-hero {
    background: #0f172a;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: url('https://images.unsplash.com/photo-1581093458791-9f302e6d38e9?q=80&w=2070') center/cover;
    filter: grayscale(100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--highlight);
}

/* Products Page Layout */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--primary);
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 0.75rem;
}

.filter-item a {
    color: var(--text-gray);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-item a:hover,
.filter-item a.active {
    color: var(--highlight);
    font-weight: 500;
}

.count {
    font-size: 0.75rem;
    background: var(--bg-section);
    padding: 2px 6px;
    border-radius: 10px;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.prod-img-box {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.prod-content {
    padding: 1.5rem;
}

.prod-cat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.prod-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
    min-height: 40px;
    /* Aligns tiles slightly better */
}

.prod-specs {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-pill {
    background: var(--bg-section);
    padding: 2px 6px;
    border-radius: 2px;
}

.btn-full {
    width: 100%;
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-section);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.form-input:focus {
    outline: 1px solid var(--primary);
}

.map-section {
    height: 450px;
    width: 100%;
    background: #e2e8f0;
}

@media (max-width: 1024px) {
    .trust-grid {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .trust-item {
        justify-content: center;
    }

    .hero-slider-container {
        height: 70vh;
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .prod-card.featured {
        grid-column: auto;
        grid-row: auto;
        height: 400px;
    }

    .arrival-slide {
        min-width: 100%;
        margin-right: 0;
    }

    .news-section-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Mobile Marquee Fix */
    .mini-marquee-wrapper {
        width: 100% !important;
        margin-right: 0 !important;
        flex: 1;
    }

    .top-nav .container {
        flex-direction: row;
        /* Keep row for marquee */
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }

    .nav-link svg,
    .dropdown>a svg {
        vertical-align: middle;
        margin-left: 4px;
        position: relative;
        top: -1px;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

/* --- MINI MARQUEE (TOP NAV) --- */
.mini-marquee-wrapper {
    flex: 1;
    width: 100%;
    margin-right: 0;
    overflow: hidden;
    position: relative;
    height: 24px;
    /* Fixed height to match font */
    background: rgba(255, 255, 255, 0.1);
    /* Slight bg for debug/visibility */
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.mini-marquee-wrapper .marquee-content {
    display: inline-block;
    white-space: nowrap;
    color: white;
    /* Ensure text is white on dark nav */
    font-size: 0.85rem;
    font-weight: 500;
}

/* Ensure Top Nav is flex */
.top-nav .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}


/* --- POPUP MODAL (CENTERED) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    /* Vertical Center */
    justify-content: center;
    /* Horizontal Center */
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay.active .popup-modal {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    transition: 0.2s;
}

.popup-close:hover {
    transform: scale(1.1);
}

.popup-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.popup-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.popup-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}


/* Partnership Form Styles */
.form-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

textarea.form-control {
    height: 120px;
    resize: none;
}

/* --- Marquee Animation --- */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Floating Actions --- */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    font-size: 0;
    /* Hide text if any, show icon */
}

.fab-btn.call {
    background: #3b82f6;
    /* Blue */
}

.fab-btn:hover {
    transform: scale(1.1);
}

/* --- Mobile Menu Overlay Styles --- */
.mobile-toggle {
    display: none;
    /* Default hidden */
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: block;
        /* Show on mobile */
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-menu {
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-links a,
.mobile-links span {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-content {
    display: none;
    background: var(--bg-section);
    padding-left: 1rem;
}

.mobile-dropdown-content.active {
    display: block;
}

.mobile-dropdown-content a {
    font-size: 0.95rem;
    border-bottom: none;
    padding: 0.5rem 0;
}

/* Footer Responsive Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 0;
        /* Remove negative margin on tablet/mobile to prevent overlap */
        padding-bottom: 2rem;
    }

    .contact-card {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        gap: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .map-section {
        height: 300px;
    }
}

/* --- Page: Company (Legacy/About) --- */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.story-img {
    width: 100%;
    border-radius: var(--radius);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 6rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.mv-card {
    background: var(--bg-section);
    padding: 3rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--primary);
}

@media (max-width: 1024px) {
    .story-section {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Page: Careers --- */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    background: white;
    transition: 0.3s;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.job-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-desc {
    color: var(--text-dark);
    opacity: 0.8;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.form-box {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .job-card {
        padding: 1.5rem;
    }

    .job-header {
        flex-direction: column;
    }

    .job-meta {
        gap: 1rem;
    }

    .form-box {
        padding: 1.5rem;
    }

    .btn-block-mobile {
        width: 100%;
        text-align: center;
    }
}

/* --- Page: Partnership --- */
.form-box-partnership {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.client-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1rem;
    display: block;
}

.client-role {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Responsive Grids for Partnership */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: 0.3s;
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .feature-grid,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-box-partnership {
        padding: 1.5rem;
    }
}

/* --- Page: Sustainability --- */
.pillar-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2.5rem;
    text-align: center;
    transition: 0.3s;
    border-top: 4px solid transparent;
    height: 100%;
}

.pillar-card:hover {
    border-top-color: #16a34a;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    color: #16a34a;
    margin-bottom: 1.5rem;
}

.compliance-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    background: white;
    transition: 0.3s;
}

.compliance-card:hover {
    border-color: var(--primary);
}

.comp-icon {
    background: #ECFDF5;
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 4px;
}

.air-quality-section {
    background: #f0fdf4;
    padding: 4rem 0;
    margin: 4rem 0;
    border-top: 1px solid #d1fae5;
    border-bottom: 1px solid #d1fae5;
}

.csr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.csr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.csr-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.air-quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

@media(max-width: 1024px) {

    .pillars-grid,
    .air-quality-grid,
    .compliance-grid,
    .csr-grid {
        grid-template-columns: 1fr;
    }

    .csr-img img {
        min-height: 250px;
    }
}

/* --- Page: Certifications --- */
.cert-display-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.cert-item {
    text-align: center;
}

.cert-frame {
    border: 1px solid var(--border);
    padding: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    position: relative;
}

.cert-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: 0.5s;
}

.cert-frame:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cert-frame:hover .cert-img {
    filter: grayscale(0%);
}

.cert-badge {
    background: var(--gold);
    color: white;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.quality-block {
    background: var(--primary);
    color: white;
    padding: 4rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 6rem;
}

@media(max-width: 1024px) {
    .cert-display-grid {
        grid-template-columns: 1fr;
    }

    .quality-block {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Component: Testimonial Carousel --- */
.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    min-width: 250px;
    flex: 0 0 calc(33.333% - 1.35rem);
    /* Show 3 items */
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 1rem);
        /* Show 2 */
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 100%;
        /* Show 1 item full width */
        min-width: 100%;
        padding: 1.5rem;
        scroll-snap-align: center;
    }

    .t-quote {
        font-size: 0.9rem;
    }
}

.t-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.t-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.t-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.t-info p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0;
}

.t-quote {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Product Subpages */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.btn-white-outline {
    border-color: white;
    color: white;
}

.btn-white-outline:hover {
    background: white;
    color: #000;
}

.tech-specs-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.tech-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.tech-specs-table th {
    background: var(--bg-section);
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.tech-specs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}


/* Partnership Page Grids */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* Footer Responsive Updates */
@media (max-width: 1024px) {
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-btm {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* --- Improved Footer Legal Styling --- */
.footer-btm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    grid-column: 1 / -1;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-legal a {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary);
}

.power-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

/* Tablet & Mobile Adjustments */
@media (min-width: 768px) {
    .footer-btm {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .footer-legal {
        gap: 1rem;
        flex-direction: column;
    }

    .footer-btm span {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Trust Strip Mobile Fixes */
@media (max-width: 768px) {
    .trust-strip {
        padding: 1rem 0;
    }

    .trust-grid {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        /* Centers the items horizontally */
    }

    .trust-item {
        width: 280px;
        /* Fixed width to ensure consistent alignment */
        justify-content: flex-start;
        text-align: left;
    }

    .trust-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }
}

/* --- Global Mobile/Tablet Uniformity Fixes --- */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
        /* Reduced from 6rem */
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Ensure all grids have reduced gaps on mobile */
    .product-grid,
    .feature-grid,
    .cert-grid,
    .stat-grid {
        gap: 1.5rem;
    }

    /* Reduce Heading Sizes for Mobile */
    .text-xl {
        font-size: 2.5rem;
    }

    .text-lg {
        font-size: 2rem;
    }

    .text-md {
        font-size: 1.25rem;
    }
}