/* Premium Corporate CSS for Al-Osoor Factory */

:root {
    /* Olive Green Core from Logo */
    --primary: #859A3D;
    --primary-hover: #728434;
    --primary-light: rgba(133, 154, 61, 0.15);

    /* LIGHT THEME (DEFAULT FORMATTING) */
    --bg-body: #f4f6f8;
    /* Main background */
    --bg-surface: #ffffff;
    /* Card, header, stats bg */
    --bg-alt: #e9ecef;
    /* Alternative background */

    --text-main: #1a1a1a;
    /* Headings, primary text */
    --text-muted: #555555;
    /* Descriptions, subtitles */
    --text-inverse: #ffffff;
    /* Text on dark/primary backgrounds */

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

    --font-main: 'Cairo', sans-serif;

    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.3s ease;
    /* RTL Direction Control */
    --rtl-direction: -1;
    /* RTL moves left (-) on X axis */
}

/* ===== Simple Footer ===== */
.footer-grid-simple {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.corporate-footer {
    background: #f5f6f7;
    padding-top: 70px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 800;
    color: #8aa034;
    text-decoration: none;
}

.footer-logo i {
    font-size: 1.8rem;
}

.footer-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 22px;
    color: #111827;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 14px;
}

.footer-nav a,
.footer-nav span {
    text-decoration: none;
    color: #5f6368;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #8aa034;
    padding-inline-start: 4px;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.social-links a:hover {
    background: #8aa034;
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-links a {
    text-decoration: none;
    color: #5f6368;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #8aa034;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-grid-simple {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 767px) {
    .footer-grid-simple {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .legal-links {
        flex-wrap: wrap;
    }
}

/* Right-To-Left overrides */
html[dir="ltr"] {
    --rtl-direction: 1;
    /* LTR moves right (+) on X axis */
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-surface: #1e1e1e;
    --bg-alt: #0a0a0a;

    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --text-inverse: #ffffff;

    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-muted);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.py-large {
    padding: 100px 0;
}

.py-med {
    padding: 60px 0;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 20px;
}

.mt-4 {
    margin-top: 30px;
}

.mt-5 {
    margin-top: 50px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 20px;
}

.mb-4 {
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

/* Colors Utility */
.text-main {
    color: var(--text-main) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-inverse {
    color: var(--text-inverse) !important;
}

.color-primary {
    color: var(--primary) !important;
}

.bg-body {
    background-color: var(--bg-body) !important;
}

.bg-surface {
    background-color: var(--bg-surface) !important;
}

.bg-alt {
    background-color: var(--bg-alt) !important;
}

.w-100 {
    width: 100%;
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.z-index-1 {
    position: relative;
    z-index: 1;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

span.highlight {
    color: var(--primary);
    font-weight: 800;
}

/* Grid Systems */
.grids-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grids-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    gap: 10px;
    font-family: var(--font-main);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(133, 154, 61, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(133, 154, 61, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-surface);
}

/* Section Titles & Badges */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(133, 154, 61, 0.3);
}

.bg-surface-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
      text-align:center;
   
    margin:auto;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-slow);
    padding: 25px 0;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--bg-surface);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    margin: 0;
}

.brand-text h1 span {
    color: var(--primary);
}

.brand-text .tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 35px;
    margin: 0;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.btn-contact {
    background: var(--primary);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-contact:hover {
    background: var(--text-main);
    color: var(--bg-surface) !important;
}

/* Navbar Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-switch {
    display: flex;
    background: var(--bg-body);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.lang-btn {
    text-decoration: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: monospace;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.lang-btn:not(.active):hover {
    background: var(--border-subtle);
}

.mobile-toggle {
    display: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--bg-alt);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transform: scale(1.05);
}

/* Bright overlay by default, dark when theme is dark */
.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

html[dir="rtl"] .overlay-gradient {
    background: linear-gradient(90deg, var(--bg-surface) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%);
}

html[dir="ltr"] .overlay-gradient {
    background: linear-gradient(-90deg, var(--bg-surface) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%);
}

html[data-theme="dark"][dir="rtl"] .overlay-gradient {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(10, 10, 10, 0.3) 100%);
}

html[data-theme="dark"][dir="ltr"] .overlay-gradient {
    background: linear-gradient(-90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(10, 10, 10, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-inline-end: auto;
    margin-inline-start: 8%;
    padding-inline-start: 20px;
}

.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.badge-tech i {
    color: #f1c40f;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    line-height: 1.8;
}

.cta-group {
    margin-bottom: 60px;
}

.arrow-icon {
    margin-inline-start: 10px;
}

/* LTR/RTL gap handled implicitly too */

.hero-metrics {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    width: fit-content;
}

.metric {
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
}

.metric .highlight {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* About / Impact */
.corporate-impact {
    background-color: var(--bg-surface);
}

.impact-list {
    list-style: none;
}

.impact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: var(--transition-fast);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

/* Core Expertise Cards */
.core-expertise {
    background-color: var(--bg-body);
}

.shadow-shape-1 {
    position: absolute;
    top: 10%;
    inset-inline-end: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(133, 154, 61, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.expertise-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.expertise-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(133, 154, 61, 0.5);
}

.card-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.expertise-card:hover .card-img-wrapper img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(133, 154, 61, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
    backdrop-filter: blur(2px);
}

.expertise-card:hover .card-overlay {
    opacity: 1;
}

.btn-circle {
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.expertise-card:hover .btn-circle {
    transform: translateY(0);
}

.btn-circle i {
    transform: rotate(calc(180deg * (1 + var(--rtl-direction)) / 2));
    /* RTL dir=-1 -> rotate(0); LTR dir=1 -> rotate(180deg). Makes arrow point forward dynamically! */
}

.card-body {
    padding: 40px 30px;
    position: relative;
    flex-grow: 1;
}

.icon-wrapper {
    position: absolute;
    top: -30px;
    inset-inline-end: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(133, 154, 61, 0.3);
}

.card-body h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    margin-top: 10px;
    font-weight: 800;
}

.card-body p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 25px;
}

.feature-tags li {
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: monospace;
    border: 1px solid var(--border-subtle);
}

/* Process Timeline */
.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 10px;
    min-width: 200px;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--border-subtle);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    font-family: sans-serif;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 20px;
    z-index: 2;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--bg-body);
    transition: var(--transition-fast);
}

.process-step:hover .step-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}

.process-step h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
    color: var(--text-main);
}

.process-step p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.process-line {
    height: 2px;
    flex: 0.5;
    background: var(--border-strong);
    margin-top: 40px;
}

/* Innovation Banner - specifically always sort of dark to look cool, but uses semantic colors */
.innovation-banner {
    background: #0a0a0a;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 0;
    pointer-events: none;
}

.innovation-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffffff;
}

.innovation-content h2 span {
    color: var(--primary);
}

.innovation-content p {
    color: #aaaaaa;
}

.feature-bullets .f-bullet {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #dddddd;
}

.f-bullet span {
    color: var(--primary);
    font-size: 1.3rem;
}

/* Abstract tech globe */
.tech-globe {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-pulse {
    font-size: 5rem;
    color: var(--primary);
    z-index: 10;
    animation: pulse 2s infinite alternate;
    text-shadow: 0 0 40px var(--primary);
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(133, 154, 61, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation-duration: 10s;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.05);
    border-width: 2px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    animation-duration: 30s;
    border: 1px dotted rgba(133, 154, 61, 0.2);
}

@keyframes pulse {
    from {
        transform: scale(1);
        filter: brightness(1);
    }

    to {
        transform: scale(1.1);
        filter: brightness(1.5);
    }
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Contact Section */
.contact-section {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-alt);
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--bg-surface);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.method-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.method-text h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 5px;
    font-weight: 700;
}

.method-text a,
.method-text span {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: sans-serif;
}

.corporate-form {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
}

.input-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-body);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(133, 154, 61, 0.2);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Deep Footer */
.corporate-footer {
    background: var(--bg-alt);
    padding-top: 80px;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
}

.footer-logo i {
    color: var(--primary);
}

.footer-logo span {
    color: var(--primary);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    color: var(--text-main);
    border-radius: 50%;
    margin-inline-start: 10px;
    transition: var(--transition-fast);
    text-decoration: none;
    border: 1px solid var(--border-subtle);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: #fff;
    border-color: var(--primary);
}

.footer-title {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--primary);
    transform: translateX(calc(-5px * var(--rtl-direction)));
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-main);
    border-radius: 0 4px 4px 0;
    outline: none;
}

html[dir="ltr"] .newsletter-form input {
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    padding: 12px 20px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px 0 0 4px;
    transition: var(--transition-fast);
}

html[dir="ltr"] .newsletter-form button {
    border-radius: 0 4px 4px 0;
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.border-top-glass {
    border-top: 1px solid var(--border-subtle);
    margin-top: 40px;
}

.copyright {
    color: var(--text-muted);
    font-weight: 600;
}

.legal-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 600;
}

.legal-links a:hover {
    color: var(--primary);
}

/* Animation Reveal Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s all ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: 1s all ease-out;
}

.reveal-fade.active {
    opacity: 1;
}

/* Dynamic RTL/LTR Transforms using calc() */
.reveal-left {
    opacity: 0;
    transform: translateX(calc(50px * var(--rtl-direction)));
    transition: 0.8s all ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(calc(-50px * var(--rtl-direction)));
    transition: 0.8s all ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- NEW CORPORATE SECTIONS --- */

/* Mission & Vision */
.mission-vision-grid {
    gap: 30px;
    margin-top: 50px;
}

.mv-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.mv-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 800;
}

.mv-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Products Showcase */
.products-section {
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-surface);
}

.bg-body-badge {
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: var(--bg-body);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
}

.product-info {
    padding: 30px 25px;
}

.product-cat {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: monospace;
    border: 1px solid rgba(133, 154, 61, 0.2);
    margin-bottom: 10px;
}

.product-info h4 {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 800;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Why Choose Us */
.why-us-section {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-body);
}

.f-box {
    padding: 20px;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    transition: var(--transition-fast);
}

.f-box:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.f-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.f-box h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 800;
}

.f-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-lg {
    border-radius: 16px;
}

/* Partners Marquee */
.partners-section {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.border-bottom-subtle {
    border-bottom: 1px solid var(--border-subtle);
}

.text-uppercase {
    text-transform: uppercase;
}

.partners-marquee {
    display: flex;
    width: 200%;
}

.marquee-track {
    display: flex;
    gap: 60px;
    padding: 20px 0;
    align-items: center;
    justify-content: space-around;
    /* Uses LTR translation implicitly even in RTL if we apply specific logic, but normal CSS transform is fine */
    animation: marquee-scroll 30s linear infinite;
}

.partner-logo {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

.partner-logo span {
    font-family: monospace;
    font-weight: 900;
    font-size: 1.5rem;
    border: 2px solid;
    padding: 5px 10px;
    border-radius: 8px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% * var(--rtl-direction)));
    }
}

/* RTL Icon Arrow Overrides */
html[dir="rtl"] .send-icon {
    transform: scaleX(-1);
}

/* ============================================= */
/* ====== RESPONSIVE DESIGN (FULL OVERHAUL) ====== */
/* ============================================= */

/* --- Tablet Landscape / Small Desktop --- */
@media (max-width: 1200px) {
    .grids-4 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 2.4rem; }
    .innovation-content h2 { font-size: 2.5rem; }
    .nav-container { padding: 0 20px; }
    .nav-menu { gap: 20px; }
    .nav-link { font-size: 0.9rem; }
    .hero-content { margin-inline-start: 5%; }
}

/* --- Tablet Portrait --- */
@media (max-width: 992px) {
    .py-large { padding: 70px 0; }
    .grids-2 { grid-template-columns: 1fr; gap: 30px; }
    .grids-4 { grid-template-columns: repeat(2, 1fr); gap: 25px; }

    /* Hero */
    .hero-section { min-height: 600px; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-content { margin-inline-start: 5%; max-width: 90%; }
    .hero-metrics { flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .cta-group { margin-bottom: 40px; }
    .cta-group .btn { font-size: 1rem; padding: 14px 28px; }
    .overlay-gradient { background: linear-gradient(to bottom, var(--bg-surface) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0.3) 100%) !important; }
    html[data-theme="dark"] .overlay-gradient { background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 40%, rgba(10,10,10,0.3) 100%) !important; }

    /* Process */
    .process-timeline { flex-direction: column; align-items: center; padding: 0; }
    .process-step { margin-bottom: 30px; width: 100%; max-width: 400px; }
    .process-line { display: none; }

    /* Innovation */
    .innovation-banner { padding: 80px 0; }
    .innovation-visual { display: none; }
    .innovation-content h2 { font-size: 2.2rem; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr 1fr; }

    /* Why Us Image */
    .why-visual { order: -1; }
    .why-visual img { max-height: 350px; object-fit: cover; width: 100%; }

    /* Products */
    .products-carousel { grid-template-columns: repeat(2, 1fr); }

    /* Contact */
    .corporate-form { padding: 35px 25px; }
    .form-title { font-size: 1.3rem; }

    /* Mission Vision */
    .mission-vision-grid { gap: 20px; }
}

/* --- Mobile / Small Tablet --- */
@media (max-width: 768px) {
    .py-large { padding: 50px 0; }
    .container { padding: 0 15px; }

    /* Navbar Mobile */
    .nav-menu {
        position: fixed; top: 70px;
        inset-inline-start: -100%; width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-surface); flex-direction: column;
        padding: 30px 20px; transition: 0.4s; z-index: 999;
        gap: 0; align-items: stretch; overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { inset-inline-start: 0; }
    .nav-menu li { border-bottom: 1px solid var(--border-subtle); }
    .nav-menu .nav-link,
    .nav-menu .btn-contact { display: block; padding: 15px 10px; font-size: 1.1rem; text-align: start; border-radius: 0; }
    .nav-menu .btn-contact { text-align: center; margin-top: 10px; border-radius: 8px; }
    .mobile-toggle { display: block; }
    .navbar { padding: 15px 0; }
    .navbar.scrolled { padding: 10px 0; }
    .nav-container { padding: 0 15px; }
    .brand-logo-img { height: 36px; }
    .brand-text h1 { font-size: 20px; }
    .brand-text .tagline { font-size: 9px; }

    /* Hero Mobile */
    .hero-section { min-height: auto; height: auto; padding: 100px 0 60px; }
    .hero-title { font-size: 2rem; margin-bottom: 15px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 25px; line-height: 1.7; max-width: 100%; }
    .hero-content { margin-inline-start: 0; max-width: 100%; padding: 0 15px; }
    .badge-tech { font-size: 0.8rem; padding: 6px 12px; margin-bottom: 15px; }
    .cta-group { margin-bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
    .cta-group .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.95rem; }
    .hero-metrics { flex-direction: row; gap: 15px; flex-wrap: wrap; justify-content: center; width: 100%; }
    .metric { text-align: center; flex: 1; min-width: 90px; }
    .metric .highlight { font-size: 1.2rem; }
    .metric { font-size: 0.85rem; }
    .scroll-indicator { display: none; }

    /* Section Titles Mobile */
    .section-title { font-size: 1.8rem; line-height: 1.4; }
    .section-desc { font-size: 1rem; }
    .lead-text { font-size: 1.05rem; }
    .section-badge { font-size: 0.8rem; padding: 5px 12px; }

    /* About / Impact Mobile */
    .corporate-impact { padding: 50px 0; }
    .impact-list li { font-size: 0.95rem; gap: 10px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-box { padding: 20px 15px; }
    .stat-box h3 { font-size: 1.8rem; }
    .stat-box p { font-size: 0.8rem; }
    .stat-icon { font-size: 1.5rem; margin-bottom: 10px; }

    /* Mission/Vision Mobile */
    .mission-vision-grid.grids-2 { grid-template-columns: 1fr; }
    .mv-card { padding: 25px 20px; }
    .mv-card h3 { font-size: 1.3rem; }
    .mv-card p { font-size: 0.95rem; }

    /* Expertise Cards Mobile */
    .cards-grid-3 { grid-template-columns: 1fr; }
    .card-img-wrapper { height: 200px; }
    .card-body { padding: 30px 20px; }
    .card-body h3 { font-size: 1.3rem; }
    .icon-wrapper { width: 50px; height: 50px; font-size: 1.4rem; top: -25px; inset-inline-end: 20px; }

    /* Products Mobile */
    .products-carousel { grid-template-columns: 1fr; gap: 20px; }
    .product-item img { height: 180px; }
    .product-info { padding: 20px 18px; }
    .product-info h4 { font-size: 1.15rem; }

    /* Why Us Mobile */
    .features-grid.grids-2 { grid-template-columns: 1fr; gap: 15px; }
    .f-box { padding: 18px; }
    .f-box i { font-size: 1.6rem; margin-bottom: 10px; }
    .f-box h4 { font-size: 1.05rem; }
    .f-box p { font-size: 0.85rem; }
    .why-visual img { border-radius: 12px; }

    /* Process Mobile */
    .process-step { max-width: 100%; }
    .step-icon { width: 65px; height: 65px; font-size: 1.6rem; }
    .step-number { font-size: 2.5rem; }
    .process-step h4 { font-size: 1.1rem; }

    /* Innovation Mobile */
    .innovation-banner { padding: 60px 0; }
    .innovation-content h2 { font-size: 1.8rem; }
    .feature-bullets .f-bullet { font-size: 0.95rem; }

    /* Partners Mobile */
    .partners-section .container h5 { font-size: 0.75rem !important; }
    .marquee-track { gap: 35px; }
    .partner-logo { font-size: 1.8rem; }
    .partner-logo span { font-size: 1rem; padding: 4px 8px; }

    /* Contact Mobile */
    .contact-section .grids-2 { gap: 30px; }
    .method-item { padding: 15px; gap: 15px; }
    .method-icon { width: 45px; height: 45px; font-size: 1.2rem; min-width: 45px; }
    .method-text h4 { font-size: 0.9rem; }
    .method-text a, .method-text span { font-size: 0.95rem; }
    .corporate-form { padding: 25px 18px; }
    .form-title { font-size: 1.2rem; }
    .form-row.grids-2 { grid-template-columns: 1fr; gap: 0; }
    .input-group input, .input-group select, .input-group textarea { padding: 12px 15px; font-size: 0.95rem; }

    /* Footer Mobile */
    .grids-4 { grid-template-columns: 1fr; gap: 30px; }
    .corporate-footer { padding-top: 50px; }
    .footer-logo { font-size: 1.5rem; }
    .footer-title { font-size: 1.1rem; margin-bottom: 15px; }
    .newsletter-form { flex-direction: column; gap: 10px; }
    .newsletter-form input { border-radius: 6px !important; }
    .newsletter-form button { border-radius: 6px !important; padding: 14px; }
    .footer-bottom { margin-top: 25px; }
    .flex-between { flex-direction: column; gap: 12px; text-align: center; }
    .legal-links { justify-content: center; flex-wrap: wrap; gap: 15px; }
    .copyright { font-size: 0.85rem; }
    .social-links { justify-content: center; }
    .social-links a { margin-inline-start: 5px; }
}

/* --- Small Phone --- */
@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .section-title { font-size: 1.5rem; }
    .lead-text { font-size: 0.95rem; }

    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-box { padding: 15px; }
    .stat-box h3 { font-size: 1.5rem; }

    .cta-group .btn { font-size: 0.85rem; padding: 12px 16px; }

    .brand-text h1 { font-size: 17px; }
    .brand-text .tagline { display: none; }
    .brand-logo-img { height: 30px; }

    .innovation-content h2 { font-size: 1.5rem; }
    .f-bullet { font-size: 0.85rem !important; }

    .product-item img { height: 150px; }

    .mv-card { padding: 20px 15px; }
    .mv-card h3 { font-size: 1.15rem; }

    .form-title { font-size: 1.05rem; }
}



/* ===== Footer Dark Mode ===== */
html[data-theme="dark"] .corporate-footer { background: #11161d; color: #e5e7eb; }
html[data-theme="dark"] .footer-title { color: #ffffff; }
html[data-theme="dark"] .footer-logo { color: #8aa034; }
html[data-theme="dark"] .footer-nav a, html[data-theme="dark"] .footer-nav span, html[data-theme="dark"] .copyright { color: #b8c0cc; }
html[data-theme="dark"] .footer-nav a:hover, html[data-theme="dark"] .legal-links a:hover { color: #8aa034; }
html[data-theme="dark"] .social-links a { background: #1b222c; color: #ffffff; box-shadow: none; }
html[data-theme="dark"] .social-links a:hover { background: #8aa034; color: #ffffff; }
html[data-theme="dark"] .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
html[data-theme="dark"] .legal-links a { color: #b8c0cc; }