/* ==========================================================================
   NUMA EARTH LLC - MODERN CORPORATE STYLESHEET
   Supports: Dark / Light Theme, Full RTL (Arabic) & LTR (English), Responsive Design
   ========================================================================== */

:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-primary: #06110e;
    --bg-secondary: #0b1a16;
    --bg-surface: #0f241f;
    --bg-card: rgba(15, 36, 31, 0.7);
    --bg-card-hover: rgba(22, 54, 46, 0.85);
    --border-color: rgba(16, 185, 129, 0.18);
    --border-highlight: rgba(52, 211, 153, 0.45);
    
    --text-primary: #f0fdf4;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: #34d399;
    --primary-dark: #064e3b;
    --primary-glow: rgba(16, 185, 129, 0.3);
    
    --accent-gold: #f59e0b;
    --accent-blue: #0ea5e9;
    --accent-emerald: #059669;
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --glow-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --header-height: 80px;
    --announcement-height: 40px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --border-color: rgba(16, 185, 129, 0.2);
    --border-highlight: rgba(16, 185, 129, 0.5);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #10b981;
    --primary-dark: #064e3b;
    --primary-glow: rgba(5, 150, 105, 0.18);
    
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --glow-shadow: 0 0 20px rgba(5, 150, 105, 0.15);
}

/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

html[lang="en"] body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Typography & General Utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    border: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-green {
    color: var(--primary-light) !important;
}

.gradient-text {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #064e3b, #047857, #064e3b);
    color: #e6fffa;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 101;
}

.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.announcement-bar .badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn:hover {
    background: #ffffff;
    color: var(--primary-dark);
}

/* Header & Navigation */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(6, 17, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: all var(--transition-normal);
}

[data-theme="light"] .main-header {
    background: rgba(248, 250, 252, 0.9);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.leaf-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #34d399;
    color: #064e3b;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-light);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(15deg);
}

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

.mobile-toggle .bar {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    padding: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(6, 17, 14, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, rgba(6, 17, 14, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-highlight);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.arrow-icon {
    transition: transform var(--transition-normal);
}

html[dir="rtl"] .btn:hover .arrow-icon {
    transform: translateX(-5px);
}

html[dir="ltr"] .btn:hover .arrow-icon {
    transform: translateX(5px);
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-item i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* Hero Visual Card */
.hero-card-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pulse-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cert-code {
    font-family: monospace;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.visual-graphic {
    padding: 30px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eco-globe-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-center {
    font-size: 5.5rem;
    color: var(--primary-light);
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
    z-index: 2;
}

.spinning-globe {
    animation: slowSpin 25s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(52, 211, 153, 0.3);
    pointer-events: none;
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: rotateRing 15s linear infinite reverse;
}

.ring-2 {
    width: 250px;
    height: 250px;
    border-color: rgba(16, 185, 129, 0.15);
    animation: rotateRing 30s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-badge {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 3;
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-top {
    top: -10px;
    left: -20px;
}

.badge-bottom {
    bottom: -10px;
    right: -20px;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

.floating-badge i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.badge-num {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.badge-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.live-metrics-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

.mini-metric {
    text-align: center;
}

.m-val {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.m-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mini-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
}

/* Stats Counter Strip */
.stats-counter-strip {
    margin-top: 50px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 35px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    text-align: center;
    padding: 10px;
}

.stat-num-wrap {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Common Headers */
.section-header {
    max-width: 760px;
    margin: 0 auto 56px;
}

.section-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-light);
    border: 1px solid var(--border-color);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--glow-shadow);
}

.about-card.highlight {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, var(--bg-card) 100%);
    border-color: var(--primary);
}

.about-icon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.about-icon-header i {
    font-size: 2rem;
    color: var(--primary-light);
}

.about-step {
    font-size: 1.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    font-family: monospace;
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.custom-check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.custom-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.custom-check-list li i {
    color: var(--primary-light);
    margin-top: 4px;
}

/* Solutions & Services */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition-normal);
}

.solution-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.sol-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.solution-card:hover .sol-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.08);
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.card-features span {
    font-size: 0.82rem;
    color: var(--primary-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Calculator Section */
.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
}

.calc-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.calc-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.calc-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.calc-body-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.form-group label i {
    color: var(--primary-light);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
}

.calc-select, .calc-slider, .contact-form input, .contact-form select, .contact-form textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: all var(--transition-fast);
}

.calc-select:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Custom Slider Style */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    padding: 0;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results .results-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--card-shadow);
}

.results-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.res-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.res-lbl {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.res-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.res-val small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.res-item.highlight-res .res-val {
    color: var(--primary-light);
    font-size: 1.3rem;
}

/* Portfolio Section */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--glow-shadow);
}

.project-img-box {
    height: 180px;
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-bg-icon {
    font-size: 4.5rem;
    color: rgba(52, 211, 153, 0.2);
    transition: transform var(--transition-slow);
}

.project-card:hover .project-bg-icon {
    transform: scale(1.15) rotate(8deg);
}

.project-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

html[dir="rtl"] .project-tag {
    left: auto;
    right: 14px;
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.project-info h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.project-meta i {
    color: var(--primary-light);
}

.open-modal-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.open-modal-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Governance Section */
.gov-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 78, 59, 0.2) 100%);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 44px;
    display: flex;
    gap: 36px;
    align-items: center;
}

.gov-badge-seal {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.gov-info h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.gov-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.gov-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    background: rgba(0, 0, 0, 0.25);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.gov-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.g-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.g-val {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.contact-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.c-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.c-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.c-detail h4 {
    font-size: 0.92rem;
    margin-bottom: 3px;
}

.c-detail p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.error-text {
    color: #ef4444;
    font-size: 0.78rem;
    display: block;
    min-height: 18px;
}

.form-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.error-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

.success-alert {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary-light);
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

html[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

.footer-about {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 16px 0 20px;
}

.corp-reg-info {
    font-size: 0.78rem;
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

html[dir="rtl"] .footer-links a:hover {
    transform: translateX(-4px);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.newsletter-form .input-with-btn {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: var(--text-primary);
    flex-grow: 1;
    font-size: 0.88rem;
}

.newsletter-form button {
    background: var(--primary);
    color: #ffffff;
    padding: 0 18px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-legal-links a:hover {
    color: var(--primary-light);
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

html[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 18px;
}

.modal-close-btn:hover {
    color: var(--primary-light);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: all var(--transition-fast);
}

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust-badges {
        justify-content: center;
    }
    
    .about-grid, .solutions-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-body-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .announcement-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        padding: 40px 24px;
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        overflow-y: auto;
    }
    
    .nav-menu.open {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid, .solutions-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .gov-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 28px;
    }
    
    .gov-details-grid {
        grid-template-columns: 1fr;
        text-align: right;
    }
    
    html[dir="ltr"] .gov-details-grid {
        text-align: left;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
