/* Root Variables */
:root {
    --primary-color: #001F3F;
    --secondary-color: #74C465;
    --accent-color: #74C465;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Page background image (Kurdistan-style mountains/river/trees) */
    --page-hero-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1920&q=80');
}

[data-theme="dark"] {
    --text-dark: #74C465;
    --text-light: #2c3e50;
    --bg-light: #1a1a1a;
    --bg-dark: #0a0a0a;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

    /* Make primary & text-related colors green in night mode */
    --primary-color: #74C465;
    --text-color: #74C465;
    --border-color: #74C465;
    --hover-bg: #74C465;
    
    /* NEW: Footer specific background for dark mode */
    --footer-bg: ##0a0a0a; 
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Makes fonts look sharper */
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HERO SECTION REFINED ===== */
.hero {
    position: relative;
    /* FIX: min-height allows the section to grow if content is tall */
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Prevent cutting off the logo shadow */
    padding: 100px 0 50px 0; /* Add top padding to give the logo breathing room */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    z-index: 2;
}
/* ===== FORCE GLOBAL CENTERING ===== */
.page, .hero {
    padding-top: 10px !important; /* Tiny gap at the top */
    text-align: center !important; /* This centers the logo AND the text */
}

.page .container, .hero .container {
    margin: 0 auto !important;
    padding-top: 0 !important;
    display: block !important; /* Resetting flex to avoid alignment bugs */
}

/* ===== LOGO: CENTERED & TIGHT ===== */
.page-logo, .hero-logo {
    display: inline-block !important; /* Allows text-align center to work */
    width: 180px; 
    height: auto;
    margin: 0 auto !important; /* Horizontal center */
    margin-bottom: 5px !important; /* Tight gap to title */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}


/* When the language is Kurdish or Arabic */
[dir="rtl"] body {
    text-align: right;
    font-family: 'Unikurd Web', 'Segoe UI', Tahoma, sans-serif; /* Use a good Kurdish font */
}

[dir="rtl"] .nav-desktop {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-controls {
    flex-direction: row-reverse;
}

/* Fix the product info for RTL */
[dir="rtl"] .product-info {
    text-align: right;
}
/* ===== TITLES: TIGHTENED UP ===== */
.page h1, .hero-title {
    margin: 0 !important; 
    padding: 0 !important;
    line-height: 1.1 !important;
    font-size: 2.5rem;
    color: var(--secondary-color) !important;
}

.section-subtitle, .hero-subtitle {
    margin-top: 5px !important; /* Tiny gap under H1 */
    margin-bottom: 25px !important; /* Room before page content starts */
    font-size: 1.1rem;
    color: #ffffff !important; /* Ensure visibility on dark background */
}

/* ===== MOBILE TIGHTENING ===== */
@media (max-width: 480px) {
    .page-logo, .hero-logo {
        width: 110px;
    }

    .page h1, .hero-title {
        font-size: 1.6rem !important;
    }
    
    .section-subtitle, .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }
}



.hero-content h1, 
.hero-content h2, 
.hero-content p,
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-motto,
.hero-content .hero-description {
    color: #ffffff !important; /* Forces white text */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Adds a shadow to make it pop against the trees */
}

/* Keep the Welcome title green if you prefer that branding */
.hero-content .hero-title {
    color: var(--secondary-color) !important; /* This keeps "Welcome to Dewar" Green */
}

/* Fix the button text if it's disappearing */
.hero-content .cta-button {
    color: #001F3F !important; /* Dark navy text inside the green button */
}
/* ===== HERO LOGO REFINED ===== */
.hero-logo {
    width: 240px; /* Slightly smaller to ensure it fits better */
    height: auto;
    margin-bottom: 0.1rem; /* Very small gap */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
    animation: fadeInDown 1s ease-out;
}

/* ===== HERO TEXT REFINED ===== */
.hero-title {
    font-size: 3rem;
    color: var(--secondary-color); /* Matches your "Welcome" color */
    margin: 0; /* REMOVE ALL DEFAULT SPACE */
    padding: 0;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-top: 0.5rem; /* Tight gap between title and subtitle */
    margin-bottom: 0.5rem;
    direction: rtl;
}

.hero-motto {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-style: italic;
    opacity: 0.9;
}

/* MOBILE FIXES */
@media (max-width: 480px) {
    .hero {
        min-height: 500px; /* Ensure enough height on mobile */
        padding-top: 60px;
    }

    .hero-logo {
        width: 130px;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-top: -5px; /* Pull text up towards logo */
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.85rem;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-toggle {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 20px;
    border-top: 1px solid var(--secondary-color);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--secondary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    background-image: var(--page-hero-image);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.6);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    direction: rtl;
    font-weight: 600;
}

.hero-motto {
    font-size: 1.3rem;
    margin: 1rem 0;
    direction: rtl;
    font-style: italic;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(116, 196, 101, 0.3);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.social-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.social-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.social-btn i {
    font-size: 1.5rem;
}

/* ===== PAGES SECTION ===== */
.page {
    display: none;
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
    animation: fadeIn 0.5s ease-in;

    /* Kurdistan-style background for all pages */
    position: relative;
    background-image: var(--page-hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Remove background image for HOME page (first page) */
.page#home {
    background-image: none;
    background-color: var(--bg-light);
}

.page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 31, 63, 0.55);
    z-index: 0;
}

/* Remove overlay for HOME page */
.page#home::before {
    background: none;
}

.page > * {
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== PRODUCTS SECTION ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

/* Dark mode: Product cards turn black */
[data-theme="dark"] .product-card {
    background-color: #000000;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.add-to-cart-btn {
    display: none; /* This completely hides the green circle */
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    transform: scale(1.1);
    background-color: white;
}

.product-info {
    padding: 1.5rem;
    text-align: start; /* English: Left | Kurdish/Arabic: Right */
}

.product-name {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    height: auto; 
    overflow: visible; 
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.favorite-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.favorite-btn:hover,
.favorite-btn.active {
    color: #e74c3c;
    transform: scale(1.2);
}



/* ===== ADVANTAGES SECTION (PARALLAX EFFECT) ===== */
/* ===== ADVANTAGES SECTION ===== */
/* ===== ADVANTAGES SECTION - ALTERNATING LAYOUT ===== */
/* ===== ADVANTAGES PAGE GLOBAL BACKGROUND ===== */
#advantages {
    background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 0;
}

/* Global dark overlay - Sharp, no blur */
#advantages::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 31, 63, 0.5);
    z-index: 0;
}

[data-theme="dark"] #advantages::before {
    background: rgba(0, 0, 0, 0.5);
}

.advantages-wrapper, #advantages h1, .section-subtitle {
    position: relative;
    z-index: 2;
}

#advantages h1 { 
    padding-top: 2rem; 
    margin-bottom: 0.5rem;
}

/* ===== INDIVIDUAL SHOWCASE SECTIONS (SEAMLESS - NO SPACE) ===== */
.advantage-showcase {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding: 0 10%;
    background-attachment: fixed; 
    background-position: center;
    background-size: cover;
    /* Removed margin to make sections touch each other */
    margin-bottom: 0; 
    border: none;
}

.advantage-showcase:nth-child(even) {
    justify-content: flex-end;
}

/* Sharp Overlay - Removed all blur effects */
.advantage-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #0a0a0a; 
    opacity: 0.55; 
    z-index: 1;
    backdrop-filter: none !important; /* Forces no blur */
    -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] .advantage-showcase::before {
    background-color: #000000;
    opacity: 0.4; /* Lighter overlay for better image visibility in dark mode */
}

/* ===== ADVANTAGE CONTENT BOX (CRISP GLASS) ===== */
.advantage-content-box {
    position: relative;
    z-index: 2;
    /* Solid Alpha Color - Blur removed for total clarity */
    background: rgba(0, 31, 63, 0.9); 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(116, 196, 101, 0.5);
    padding: 3.5rem;
    border-radius: var(--border-radius);
    max-width: 550px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease-out;
}

[data-theme="dark"] .advantage-content-box {
    background: rgba(10, 10, 10, 0.95);
}

.advantage-content-box.visible {
    transform: translateY(0);
    opacity: 1;
}

/* ===== MOBILE RESPONSIVE (SHARP & COMPACT) ===== */
@media (max-width: 768px) {
    .advantage-showcase {
        padding: 0 5%;
        background-attachment: scroll; /* Scroll is sharper/smoother on mobile browsers */
        justify-content: center !important;
        min-height: 70vh;
    }

    .advantage-content-box {
        padding: 1.8rem;
        width: 92%;
        max-width: 92%;
        background: rgba(0, 31, 63, 0.85); 
        backdrop-filter: none !important;
        text-align: center;
    }

    [data-theme="dark"] .advantage-content-box {
        background: rgba(0, 0, 0, 0.9); 
    }

    /* Tighten fonts for small screens */
    .advantage-content-box h3 {
        font-size: 1.25rem;
        margin-bottom: 0.7rem;
    }

    .advantage-content-box ul {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

.advantage-content-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(116, 196, 101, 0.3);
    padding-bottom: 10px;
    color: var(--secondary-color); /* Bright green text/icons like your image */
}

.advantage-content-box ul {
    list-style-type: disc;
    list-style-position: inside;
    font-size: 1.15rem;
    line-height: 2;
    color: #ffffff; /* White text so it's readable on the dark glass */
}

.advantage-content-box ul li {
    margin-bottom: 12px;
}

/* ===== ENHANCED TESTIMONIALS SECTION ===== */

/* Header Section */
.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

.testimonials-main-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

/* Statistics Section */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(116, 196, 101, 0.1) 0%, rgba(0, 31, 63, 0.1) 100%);
    border-radius: var(--border-radius);
    border: 2px solid rgba(116, 196, 101, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(116, 196, 101, 0.15) 0%, rgba(0, 31, 63, 0.15) 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Featured Testimonials */
.featured-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(116, 196, 101, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(116, 196, 101, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.testimonial-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 40px rgba(116, 196, 101, 0.15);
    border-color: var(--secondary-color);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .testimonial-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(116, 196, 101, 0.08) 100%);
    border-color: rgba(116, 196, 101, 0.3);
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #60a652 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(116, 196, 101, 0.3);
}

.testimonial-avatar.secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a4c8c 100%);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

/* Testimonial Meta */
.testimonial-meta {
    flex: 1;
}

.testimonial-meta h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.3rem;
    color: #ffc107;
    font-size: 0.9rem;
}

/* Testimonial Text */
.testimonial-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: -10px;
}

/* Verified Badge */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.verified-badge i {
    font-size: 1rem;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Featured Card Enhanced */
.testimonial-card.featured {
    grid-column: span 1;
}

/* Trust Section */
.trust-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(116, 196, 101, 0.1) 0%, rgba(0, 31, 63, 0.05) 100%);
    border-radius: var(--border-radius);
    border: 2px solid rgba(116, 196, 101, 0.2);
    margin-top: 4rem;
}

.trust-item {
    text-align: center;
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-8px);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.trust-item h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTACT SECTION REFINED ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Reusable Glass Card utility */
.glass-card {
    background: rgba(0, 31, 63, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(116, 196, 101, 0.2);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-form-wrapper {
    padding: 3rem 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: start; /* English: Left | Kurdish/Arabic: Right */
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    background: rgba(0, 0, 0, 0.05); /* Subtle dark tint to contrast with the glass */
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: transparent;
    box-shadow: 0 0 15px var(--border-color);
    transform: translateY(-2px);
}

.submit-btn {
    background-color: var(--text-color);
    color: var(--bg-light);
    border: 2px solid var(--text-color);
    padding: 16px;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: transparent;
    color: var(--text-color);
    box-shadow: 0 5px 15px var(--border-color);
    transform: translateY(-3px);
}

/* Contact Info Grid */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-box {
    background: rgba(0, 31, 63, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(116, 196, 101, 0.2);
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-box:hover {
    transform: translateY(-10px);
    border-color: var(--border-color);
    background: rgba(0, 31, 63, 0.2);
}

/* Main Box Icons */
.info-box .icon-main {
    font-size: 3.5rem; /* Increased size */
    margin-bottom: 1.2rem;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-box h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.info-box p {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Fixed Social Icons (No Circles, Bigger, Centered) */
.info-box .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem; /* Creates perfect spacing between icons */
    margin-top: auto; 
    width: 100%;
}

.info-box .social-icons a {
    background-color: transparent; /* Removes background blob */
    color: var(--text-color);
    border: none; /* Removes circle border */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem; /* Made the icons much larger */
    transition: var(--transition);
    text-decoration: none;
}

.info-box .social-icons a i {
    margin: 0;
    font-size: inherit; 
}

.info-box .social-icons a:hover {
    color: var(--hover-bg);
    transform: scale(1.2) translateY(-3px);
    background-color: transparent;
    box-shadow: none; /* Removes shadow blob on hover */
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0; /* Reduced padding to keep it slim */
    margin-top: 3rem;
    transition: var(--transition);
}

[data-theme="dark"] .footer {
    background-color: #000000;
    border-top: 1px solid rgba(116, 196, 101, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    /* Removed the border-top and extra padding that created the 'second layer' */
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Ensure the paragraph inside has no extra margin pushing the box out */
.footer-bottom p {
    margin: 0;
}
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important; /* Now it only forces flex on smaller screens */
    }
    .nav-desktop {
        display: none !important;
    }
    
    .logo {
        display: flex;
        align-items: center;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet */
@media (max-width: 1024px) {
    .header-content {
        gap: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .nav-desktop {
        display: none;
    }
    .language-switcher {
        gap: 5px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .page h1 {
        font-size: 2rem;
    }


    /* Product Grid Scaling - TWO ITEMS PER ROW */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Forces 2 columns */
        gap: 10px !important; /* Smaller gap so they fit side-by-side */
        padding: 0 5px;
    }

    .product-card {
        padding: 0.5rem; /* Reduce padding inside the card */
    }

    .product-image {
        height: 140px; /* Shorter height so cards aren't too tall */
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-name {
        font-size: 0.9rem; /* Smaller text to prevent overlapping */
        margin-bottom: 0.3rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
    .product-image {
        height: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Adjusted Advantages section for tablet */
    .advantage-showcase {
        min-height: 60vh;
        padding: 0 5%;
        background-attachment: scroll; /* Mobile browsers handle scroll better than fixed */
    }
    
    .advantage-content-box {
        padding: 2rem;
    }
    
    .advantage-content-box h3 {
        font-size: 1.4rem;
    }

    .testimonials-main-title {
        font-size: 2rem;
    }

    .featured-testimonials {
        grid-template-columns: 1fr;
    }

    .testimonials-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .trust-section {
        grid-template-columns: 1fr 1fr;
        padding: 2rem;
        gap: 1.5rem;
    }
}

/* ===== MOBILE REFINEMENTS (max-width: 480px) ===== */
@media (max-width: 480px) {
    /* Global Mobile Font Scaling */
    html {
        font-size: 14px;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .header {
        padding: 0.5rem 0;
    }

    .header-content {
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .logo-img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .language-switcher {
        gap: 3px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    [data-theme="dark"] .mobile-menu-toggle span {
        background-color: var(--primary-color);
    }

    /* Hero Refinements */
    .hero {
        height: 300px;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-motto {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Features Section */
    .features {
        padding: 2rem 0;
    }

    .features h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card i {
        font-size: 1.8rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    /* Social Section */
    .social-section {
        padding: 2rem 0;
    }

    .social-section h2 {
        font-size: 1.4rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }

    /* Page Titles */
    .page {
        padding: 1.5rem 0;
    }

    .page h1 {
        font-size: 1.4rem;
    }

    /* Product Grid: single column on phones */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    .product-image {
        height: 180px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    /* Advantages Mobile */
    .advantage-showcase {
        justify-content: center !important;
        padding: 0 15px;
        min-height: 60vh;
    }

    .advantage-content-box {
        padding: 1.2rem;
        width: 90%;
        background: rgba(0, 31, 63, 0.7) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    [data-theme="dark"] .advantage-content-box {
        background: rgba(0, 0, 0, 0.7) !important;
    }

    .advantage-content-box h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .advantage-content-box ul {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Contact & Info */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.2rem;
    }

    .info-box {
        padding: 1rem;
    }

    .info-box i {
        font-size: 1.8rem;
    }

    /* Trust Section */
    .trust-section {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }

    /* Testimonials */
    .testimonials-main-title {
        font-size: 1.6rem;
    }

    .featured-testimonials {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}