
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');


:root {
    --primary-color: #2e7d32;  /* Green primary matching your logo */
    --secondary-color: #4caf50;  /* Lighter green */
    --accent-color: #ff6b35;  /* Orange accent for CTAs */
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);  /* Green gradient */
    --shadow: 0 10px 30px rgba(46, 125, 50, 0.1);  /* Green shadow */
    --shadow-hover: 0 20px 60px rgba(46, 125, 50, 0.2);
    --green-50: #e8f5e8;
    --green-100: #c8e6c9;
    --green-900: #1b5e20;
    
    /* Font families */
    --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-arabic: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}

/* Force font consistency */
* {
    font-family: inherit;
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    transition: background-color 0.3s ease;
    font-display: swap;
    text-rendering: optimizeSpeed;
}

/* Stronger font application */
html[lang="en"] body,
html[lang="en"] * {
    font-family: var(--font-primary) !important;
}

html[lang="ar"] body,
html[lang="ar"] *,
html[lang="ku"] body,
html[lang="ku"] * {
    font-family: var(--font-arabic) !important;
}

/* Keep specific elements with primary font even in Arabic/Kurdish */
html[lang="ar"] .lang-btn,
html[lang="ku"] .lang-btn,
html[lang="ar"] input,
html[lang="ku"] input,
html[lang="ar"] textarea,
html[lang="ku"] textarea,
html[lang="ar"] button,
html[lang="ku"] button {
    font-family: var(--font-primary) !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.section-title { font-size: 2.8rem; margin-bottom: 3.5rem; color: var(--primary-color); font-weight: 600; text-align: center; }

/* --- Logo Styles --- */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
    max-width: 400px;
    transition: all 0.3s ease;
}

/* --- Header & Navigation --- */
.header { 
    background: var(--white); 
    box-shadow: var(--shadow); 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease; 
}
.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
}

.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-item { 
    cursor: pointer; 
    padding: 0.5rem 1rem; 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    font-weight: 500; 
}
.nav-item:hover { 
    background: var(--green-100); 
    color: var(--primary-color); 
}
.nav-item.active { 
    background: var(--gradient); 
    color: white; 
}
.language-selector { display: flex; gap: 0.5rem; margin-left: 2rem; }
.lang-btn { 
    padding: 0.5rem 1rem; 
    border: 2px solid var(--primary-color); 
    background: transparent; 
    color: var(--primary-color); 
    border-radius: 25px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-weight: 500; 
    font-family: var(--font-primary) !important;
}
.lang-btn.active, 
.lang-btn:hover { 
    background: var(--primary-color); 
    color: white; 
    transform: translateY(-2px); 
}
.mobile-menu { display: none; flex-direction: column; cursor: pointer; }
.mobile-menu span { 
    width: 25px; 
    height: 3px; 
    background: var(--primary-color); 
    margin: 3px 0; 
    transition: 0.3s; 
    border-radius: 2px; 
}

/* --- Video Hero Section --- */
.video-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(46, 125, 50, 0.8) 0%, 
        rgba(76, 175, 80, 0.6) 100%
    );
    z-index: 2;
}

.video-hero .hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-hero .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.video-hero .hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.video-hero .cta-button {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Main Content & Sections --- */
.main-content { margin-top: 80px; }
.section { display: none; animation: fadeIn 0.7s ease-in-out; }
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- HOME PAGE SECTIONS --- */
#home { padding: 0; }

.cta-button { 
    display: inline-block; 
    padding: 1rem 2.5rem; 
    background: var(--white); 
    color: var(--primary-color); 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3); 
    border: 2px solid var(--primary-color);
}
.cta-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4); 
    background: var(--primary-color);
    color: var(--white);
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.service-card { 
    background: white; 
    border-radius: 20px; 
    padding: 2.5rem; 
    box-shadow: var(--shadow); 
    transition: all 0.3s ease; 
    border: 1px solid rgba(46, 125, 50, 0.1); 
    display: flex; 
    flex-direction: column; 
}
.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--primary-color);
}
.service-icon { 
    width: 70px; 
    height: 70px; 
    background: var(--gradient); 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 1.5rem; 
    font-size: 2.5rem; 
    color: white; 
}
.service-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    color: var(--primary-color); 
    font-weight: 600; 
}
.service-card p { color: var(--text-light); line-height: 1.7; flex-grow: 1; }

.why-choose-section { background: var(--green-50); }
.why-choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.why-choose-item { text-align: center; padding: 1.5rem; }
.why-choose-item .service-icon { margin: 0 auto 1.5rem auto; font-size: 2.5rem; }
.why-choose-item h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--primary-color); }

.stats-section { background: var(--gradient); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-number { font-size: 3.8rem; font-weight: 600; display: block; }
.stat-label { font-size: 1.2rem; opacity: 0.9; }

.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.industry-card { 
    background: var(--green-50); 
    padding: 2.5rem; 
    border-radius: 15px; 
    text-align: center; 
    transition: all 0.3s ease; 
}
.industry-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow); 
    background: var(--white); 
    border: 2px solid var(--primary-color);
}
.industry-card h3 { color: var(--primary-color); font-size: 1.4rem; }

.commitment-section { background: var(--green-50); }
.commitment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.commitment-text p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.iso-badges-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.iso-badge { 
    background: var(--white); 
    border: 2px solid var(--primary-color); 
    padding: 0.7rem 1.2rem; 
    border-radius: 50px; 
    font-weight: 600; 
    color: var(--primary-color); 
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.1); 
    transition: all 0.3s ease;
}
.iso-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cta-section { background: var(--primary-color); color: white; text-align: center; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2.5rem auto; opacity: 0.9; }

/* --- Other Pages --- */
#about, #services, #contact { padding: 0; }
.page-header { padding: 5rem 2rem; background: var(--green-50); text-align: center; }
.page-header h1 { font-size: 3rem; color: var(--primary-color); }
.page-header p { font-size: 1.2rem; color: var(--text-light); max-width: 800px; margin: 1rem auto 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }
.qhse-section { background: var(--green-50); padding: 4rem; border-radius: 20px; margin-top: 4rem; }
.qhse-section h3 { text-align: center; font-size: 2rem; color: var(--primary-color); margin-bottom: 2rem; }
.qhse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.qhse-item ul { list-style-type: '✓'; padding-left: 1.5rem; }
.qhse-item ul li { margin-bottom: 1rem; padding-left: 0.5rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-info { background: var(--gradient); color: white; padding: 3rem; border-radius: 20px; }
.contact-item { display: flex; align-items: center; margin-bottom: 2rem; gap: 1.5rem; }
.contact-icon { 
    width: 50px; 
    height: 50px; 
    background: rgba(255,255,255,0.2); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    flex-shrink: 0; 
}
.contact-form { background: white; padding: 3rem; border-radius: 20px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
    color: var(--primary-color); 
}
.form-group input, 
.form-group textarea, 
.form-group select { 
    width: 100%; 
    padding: 1rem; 
    border: 2px solid #e1e5e9; 
    border-radius: 10px; 
    transition: all 0.3s ease; 
    font-family: inherit; 
}
.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); 
}
.submit-btn { 
    width: 100%; 
    padding: 1rem 2rem; 
    background: var(--gradient); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
}

/* --- Footer (UPDATED 3-COLUMN CENTERED LAYOUT) --- */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 2rem;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all items in each column */
    text-align: center; /* Center all text in each column */
}

/* Column 1: Left */
.footer-column:nth-child(1) .logo {
    justify-content: center; /* Ensure logo itself is centered if it has a specific width */
}
.footer .logo-img {
    filter: brightness(0) invert(1);
    height: 120px; /* Adjusted size */
    max-width: 300px;
    margin-bottom: 0.5rem;
}
.footer p[data-translate="footer_tagline"] {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Column 2: Center */
.footer-links {
    display: flex;
    flex-direction: column; /* Stack nav links vertically */
    gap: 1rem;
    margin-top: 1.5rem;
}
.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 500;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Column 3: Right */
.social-media-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}
.social-icons {
    display: flex;
    justify-content: center; /* Center the icons horizontally */
    gap: 1rem;
    flex-wrap: wrap;
}
.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease-in-out;
}
.social-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}
.social-icon:hover {
    transform: translateY(-4px);
    border-color: transparent;
}
.social-icon.linkedin:hover { background-color: #0077b5; }
.social-icon.twitter:hover { background-color: #1da1f2; }
.social-icon.facebook:hover { background-color: #1877f2; }
.social-icon.instagram:hover { background: #e4405f; }
.social-icon.youtube:hover { background-color: #ff0000; }
.social-icon.whatsapp:hover { background-color: #25d366; }

/* Copyright Row */
.footer-copyright {
    grid-column: 1 / -1; /* Make this span all 3 columns */
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Spinner for form submission */
.spinner { 
    width: 20px; 
    height: 20px; 
    border: 3px solid rgba(255,255,255,0.3); 
    border-top: 3px solid var(--white); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .video-hero { height: 70vh; min-height: 500px; }
    .video-hero .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .about-grid, 
    .contact-grid, 
    .commitment-grid, 
    .qhse-grid { grid-template-columns: 1fr; text-align: center; }
    .commitment-text { order: 2; }
    .commitment-image { order: 1; }
    .section-title { font-size: 2.2rem; }
    .section-title[style*="text-align: left"] { text-align: center !important; }
    .video-hero { height: 60vh; min-height: 450px; }
    .video-hero .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .section-container { padding: 3rem 1rem; }
    .mobile-menu { display: flex; }
    .nav-menu { 
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); 
        background: white; flex-direction: column; justify-content: center; align-items: center; 
        transition: left 0.3s ease; z-index: 999; 
    }
    .nav-menu.active { left: 0; }
    .nav-item { width: 80%; text-align: center; margin-bottom: 1rem; font-size: 1.2rem; padding: 1rem; }
    .video-hero { height: 50vh; min-height: 400px; }
    .video-hero .hero-content h1 { font-size: 2rem; } 
    .video-hero .hero-content p { font-size: 1.1rem; }
    .services-grid, .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-card, .contact-form, .contact-info { padding: 2rem; }
    .nav-container { padding: 0 1rem; }
    .mobile-menu.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .mobile-menu.active span:nth-child(2) { opacity: 0; }
    .mobile-menu.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    [dir="rtl"] .nav-menu { right: -100%; left: auto; }
    [dir="rtl"] .nav-menu.active { right: 0; }
    .logo-img { height: 110px; max-width: 320px; }
    .footer .logo-img { height: 130px; max-width: 340px; }
    .iso-badges-grid { justify-content: center; }

    /* Updated Footer Responsive Layout */
    .footer-content {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 2.5rem; /* Increase gap between items on mobile */
    }
}

@media (max-width: 480px) {
    .video-hero .hero-content h1 { font-size: 1.8rem; }
    .video-hero .hero-content p { font-size: 1rem; }
    .cta-button { padding: 0.8rem 2rem; font-size: 0.9rem; }
    .section-title { font-size: 2rem; }
    .logo-img { height: 90px; max-width: 280px; }
    .footer .logo-img { height: 115px; max-width: 300px; }
    .nav-container { padding: 0 0.5rem; }
}

/* --- RTL Fixes --- */
[dir="rtl"] .language-selector { margin-left: 0; margin-right: 2rem; }
[dir="rtl"] .contact-item p { direction: ltr; unicode-bidi: embed; text-align: right; }
[dir="rtl"] .section-title[style*="text-align: left"] { text-align: center !important; }
[dir="rtl"] .qhse-item ul { padding-left: 0; padding-right: 1.5rem; }

/* --- Video Loading States --- */
.video-background video { transition: opacity 0.5s ease; }
.video-background video:not([data-loaded]) { opacity: 0; }
.video-background video[data-loaded] { opacity: 1; }

/* --- Accessibility Improvements --- */
@media (prefers-reduced-motion: reduce) {
    .video-background video { animation-play-state: paused !important; }
    .hero-content h1, .hero-content p, .cta-button { animation: none; }
    .service-card:hover, .cta-button:hover, .lang-btn:hover { transform: none; }
}