/* TAKFIL CSS - Enterprise Premium Theme */

:root {
    --primary-green: #00d26a;
    --dark-green: #003b2b;
    --bg-dark: #050b09;
    --dark-text: #1a1a1a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-en: 'Inter', sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial; /* Handled by Lenis */
}

body {
    font-family: var(--font-ar); /* Using Arabic font globally */
    background-color: var(--white);
    color: var(--dark-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

/* Typography */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--dark-text);
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--dark-green);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 106, 0.2);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--dark-green);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-green);
}
.btn-secondary:hover {
    background-color: rgba(0, 59, 43, 0.05);
}

/* ========================================================= */
/* Navbar & Group Eco-System Header */
/* ========================================================= */
.clomix-floating-header {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none; /* Let clicks pass through empty areas */
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
.minimalist-logo {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pill-nav-control {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}
.pill-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pill-btn:hover {
    background: var(--primary-green);
    color: white;
}
.burger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.burger-menu span::before, .burger-menu span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    left: 0;
    transition: 0.3s;
}
.burger-menu span::before { top: -6px; }
.burger-menu span::after { top: 6px; }
.btn-lbl { font-weight: 600; font-size: 0.9rem; }

.desktop-pill-links {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
}
.pill-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.pill-link:hover { color: var(--primary-green); }

.pill-scroll-progress {
    background: rgba(0,0,0,0.05);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-green);
    margin-left: 0.5rem;
    min-width: 55px;
    text-align: center;
}
.header-actions-placeholder { width: 150px; } /* To balance logo width in flex-between */

/* Brand Selector Dropdown */
.brand-dropdown-container {
    position: relative;
}
.arrow-down { font-size: 0.8rem; margin-right: 2px; }
.brand-selector-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.brand-dropdown-container:hover .brand-selector-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.brand-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}
/* Individual Brand Background Touches (5%) */
.brand-card.factory-card { background: rgba(0, 80, 160, 0.05); }
.brand-card.clomix-card { background: rgba(138, 43, 226, 0.05); }
.brand-card.taiten-card { background: rgba(212, 175, 55, 0.05); }
.brand-card.takfil-card { background: rgba(0, 210, 106, 0.05); }

.brand-card:not(.active):hover {
    transform: translateY(-2px);
    background: rgba(0,0,0,0.03);
}
.brand-card:not(.active):hover .b-arrow {
    transform: translate(-3px, -3px);
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.b-name { font-weight: 700; color: var(--dark-text); font-size: 0.95rem; }
.b-desc { font-size: 0.75rem; color: #666; font-weight: 500; line-height: 1.3; }
.b-arrow { font-weight: 800; font-size: 1rem; color: var(--dark-text); transition: 0.3s; }
.b-active-text { font-size: 0.75rem; font-weight: 700; color: var(--primary-green); background: rgba(0, 210, 106, 0.1); padding: 4px 8px; border-radius: 20px; }

/* TAKFIL Active Card */
.brand-card.takfil-card.active {
    border: 1px solid rgba(0, 210, 106, 0.3);
    pointer-events: none;
}

/* ========================================================= */
/* Mobile Capsule Drawer */
/* ========================================================= */
.capsule-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 2000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.capsule-nav.active { pointer-events: auto; }
.capsule-nav-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.5s ease;
}
.capsule-nav.active .capsule-nav-overlay { opacity: 1; }

.capsule-nav-wrapper {
    background: #fff;
    width: 100%;
    max-width: 450px;
    height: 90vh;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.capsule-nav.active .capsule-nav-wrapper {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.capsule-top-pill {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.capsule-close-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.capsule-logo { font-weight: 800; font-size: 1.2rem; color: var(--primary-green); }
.capsule-content-area {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}
.capsule-main-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.c-link {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-text);
}
.capsule-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 2rem 0;
}

/* Mobile Accordion */
.accordion-trigger {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.acc-arrow { transition: transform 0.3s; font-size: 1rem; color: #666; }
.mobile-accordion.open .acc-arrow { transform: rotate(180deg); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0;
}
.mobile-accordion.open .accordion-content {
    margin-top: 1.5rem;
    max-height: 500px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .desktop-pill-links, .header-actions-placeholder { display: none; }
    .clomix-floating-header { top: 1rem; }
    .header-container { justify-content: center; } /* Center the pill on mobile if logo is hidden or keep flex-start? */
    
    /* We want logo on right (or left in RTL, let's keep it flex-between) */
    .header-container { justify-content: space-between; align-items: center; }
}
@media (min-width: 992px) {
    .burger-menu { display: none; }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(245,247,246,0.9) 0%, rgba(232,240,235,0.9) 100%), url('../images/takfil_hero_engine.jpg') center/cover no-repeat;
    z-index: 0;
}
.liquid-overlay {
    position: absolute;
    width: 150vw; height: 150vw;
    top: -25vw; left: -25vw;
    background: radial-gradient(circle, rgba(0,210,106,0.03) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 10s infinite alternate;
}
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    z-index: 1;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--dark-green);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--dark-text);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.mouse {
    width: 26px; height: 40px;
    border: 2px solid var(--dark-green);
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 4px; height: 8px;
    background: var(--dark-green);
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* About Section */
.about {
    background: var(--white);
    position: relative;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}
.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}
.stat-card p {
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 0.5rem;
}
.about-visual {
    position: relative;
}
.about-image-card {
    height: 500px;
    position: relative;
    overflow: hidden;
}
.factory-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(45deg, #e0e8e4, #f5f7f6);
}
.floating-glow {
    position: absolute;
    bottom: -50px; right: -50px; /* RTL */
    width: 200px; height: 200px;
    background: rgba(0, 210, 106, 0.2);
    filter: blur(50px);
    border-radius: 50%;
}

/* Products Section */
.products-showcase {
    background: var(--bg-dark);
    color: var(--white);
}
.products-showcase .section-title {
    color: var(--white);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}
.product-card {
    position: relative;
    padding: 4rem 3rem;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
    transform: translateY(-8px);
}

.product-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}
.product-glow.green { background: rgba(0, 210, 106, 0.15); }
.product-glow.white { background: rgba(255, 255, 255, 0.1); }
.product-card:hover .product-glow { opacity: 0.5; }

.product-image {
    position: relative;
    height: 280px;
    margin-bottom: 2.5rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Base style for all product images (Grid & Dynamic) */
.product-image img, #dyn-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ground shadow logic */
.product-image::after, #dyn-img-container::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 12px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image::after {
    width: 45%;
    bottom: -12px;
    opacity: 0.6;
}
.product-card:hover .product-image img {
    transform: scale(1.02);
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.12));
}

.product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.product-desc {
    color: #aaa;
    margin-bottom: 2rem;
    position: relative; z-index: 1;
}
.product-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative; z-index: 1;
}

/* Split Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.split-layout.reverse {
    direction: ltr; /* Native RTL reversal to keep Left visual, Right content */
}
.split-layout.reverse > * {
    direction: rtl; /* Fix internal text direction */
}

.engine-illustration, .pure-water-effect {
    height: 400px;
    background: var(--bg-dark);
    border-radius: 30px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: visible;
}
.pure-water-effect { background: #eef4f8; }

.benefits-list {
    list-style: none;
    margin-top: 2rem;
}
.benefits-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.benefit-icon {
    font-size: 2rem;
    background: #f0f7f4;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature-card {
    padding: 2rem;
    background: var(--white);
}

/* Technology Redesign */
.technology {
    background: var(--bg-dark);
    color: var(--white);
    padding: 8rem 0;
}
.technology .section-title {
    color: var(--white);
}
.cooling-cycle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 0;
    gap: 1rem;
}
.cycle-step-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    text-align: center;
    width: 220px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.step-number {
    position: absolute;
    top: -15px; right: -15px; /* RTL layout */
    width: 36px; height: 36px;
    background: var(--primary-green);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.step-title {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.step-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}
.highlight-step {
    border-color: var(--primary-green);
    background: rgba(0, 210, 106, 0.05);
}
.cycle-arrow {
    color: rgba(255,255,255,0.2);
    font-size: 2rem;
}
.flowing-line {
    position: absolute;
    top: 50%; left: 10%; right: 10%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}
.flowing-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 50px; height: 100%;
    background: var(--primary-green);
    box-shadow: 0 0 10px var(--primary-green);
    animation: flowLine 3s infinite linear;
}
@keyframes flowLine {
    0% { left: 100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 0%; opacity: 0; }
}

/* Applications Grid */
.applications { background: #f5f7f6; }
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
.app-card {
    padding: 3rem 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    background: var(--white);
}

/* Why Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}
.why-card {
    padding: 3rem;
    background: var(--white);
    text-align: center;
}
.why-card .icon { font-size: 3rem; margin-bottom: 1.5rem; }

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}
.contact-detail {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-form {
    padding: 3rem;
    background: var(--white);
}
.form-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}
.footer-logo {
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-note {
    color: #888;
    margin-bottom: 2rem;
}
.footer-links {
    display: flex; justify-content: center; gap: 2rem; margin-bottom: 3rem;
}
.footer-links a {
    color: var(--white); text-decoration: none;
}
.copyright { color: #555; font-size: 0.9rem; }


/* ==============================================================
   RESPONSIVE DESIGN (1440px to 320px) 
   ============================================================== */

@media (max-width: 1200px) {
    .nav-links a { margin: 0 1rem; font-size: 0.95rem; }
    .cooling-cycle-container { gap: 0.5rem; }
    .cycle-step-card { width: 190px; padding: 2rem 1rem; }
}

@media (max-width: 992px) {
    .section-container { padding: 6rem 2rem; }
    
    .split-layout, .split-layout.reverse, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .cooling-cycle-container {
        flex-direction: column;
        gap: 2rem;
    }
    .cycle-step-card { width: 100%; max-width: 400px; padding: 2.5rem; }
    
    .flowing-line {
        width: 2px;
        height: 80%;
        top: 10%; left: 50%;
        transform: translateX(-50%);
    }
    @keyframes flowLine {
        0% { top: 0%; left: 0; width: 100%; height: 50px; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 100%; left: 0; width: 100%; height: 50px; opacity: 0; }
    }
    
    .cycle-arrow { transform: rotate(90deg) scaleX(-1); }
    .why-grid { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: 1fr 1fr; }
    .app-card[style] { grid-column: auto !important; }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .nav-links { display: none; }
    .hamburger-btn { display: flex; }
    .nav-logo { right: 2rem; }
    
    .section-container { padding: 5rem 1.5rem; }
    
    /* Hero Mobile Refinements */
    .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 1rem; width: 100%; max-width: 350px; margin: 0 auto; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    
    /* Global Adjustments */
    .products-grid { grid-template-columns: 1fr; }
    .product-card { padding: 3rem 2rem; }
    .stats-container { flex-direction: column; gap: 1.5rem; }
    
    /* Footer */
    .footer-links { flex-direction: column; gap: 1rem; }
}

@media (max-width: 576px) {
    .section-container { padding: 4rem 1.5rem; }
    .app-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .benefits-list li { flex-direction: column; align-items: center; text-align: center; }
    .split-content { text-align: center; }
}

@media (max-width: 430px) {
    .product-card { padding: 2rem 1.5rem; }
    .contact-form { padding: 2rem 1.5rem; }
    .why-card { padding: 2rem 1.5rem; }
    
    /* Mobile Menu adjustments */
    .mobile-menu { width: 90%; }
    .mobile-link { font-size: 1.8rem; }
}

@media (max-width: 320px) {
    /* Extreme small devices (iPhone SE / older models) */
    .hero-title { font-size: 2rem; }
    .section-container { padding: 3rem 1rem; }
    .nav-logo { font-size: 1.2rem; }
}


/* Hero Video Background Integration Styles */
.hero-video {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark premium overlay with industrial green tint matching Takfil branding */
    background: linear-gradient(135deg, rgba(15, 45, 30, 0.65) 0%, rgba(8, 25, 16, 0.85) 100%);
    z-index: 2;
}
.hero-bg .liquid-overlay {
    z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

/* About Section Factory Image styling */
.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.5s ease;
}
.about-image-card:hover .about-img {
    transform: scale(1.02);
}
