:root {
    --primary-color: #1a6b3c;
    --secondary-color: #c9a84c;
    --bg-light: #ffffff;
    --bg-alt: #f4f6f8;
    --text-heading: #1a1a1a;
    --text-body: #4a4a4a;
    --white: #ffffff;
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}

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

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

body, button, input, textarea, select {
    font-family: var(--font-en);
}

html[dir="rtl"] body, 
html[dir="rtl"] button, 
html[dir="rtl"] input, 
html[dir="rtl"] textarea, 
html[dir="rtl"] select {
    font-family: var(--font-ar);
}

/* Force Poppins for logo and English-only segments */
.logo-text, .hero-title, .en-text, .stat-number, .stat-currency, .use-num {
    font-family: var(--font-en) !important;
}

body {
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-heading);
}

/* Language Toggle */
.lang-toggle-group {
    display: flex;
    background: #eee;
    padding: 3px;
    border-radius: 50px;
}

.lang-btn {
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    color: #666;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #13522d;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(26, 107, 60, 0.05) 0%, rgba(255, 255, 255, 1) 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#1a6b3c11 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.pill-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease forwards;
}

.badge {
    background: white;
    color: var(--primary-color);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(26, 107, 60, 0.1);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.hero-title {
    font-size: 6.5rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a6b3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-tagline {
    font-size: 1.6rem;
    color: var(--text-body);
    margin-bottom: 3.5rem;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

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

/* Sections */
section {
    padding: 8rem 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-alt { background-color: var(--bg-alt); }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

/* Cards Grid */
.cards-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h2 { margin-bottom: 1rem; }

.combined-result {
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 8px;
}

.combined-result h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 500;
}

/* Stats Bar */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-currency {
    font-size: 1.2rem;
    margin-inline-end: 8px;
    font-weight: 600;
    color: var(--text-body);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

/* Use Cards */
.use-card {
    padding: 2.5rem;
}

.use-num {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.use-card h4 { margin-bottom: 1rem; }

/* Buyers Grid */
.buyers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.buyer-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.buyer-icon {
    font-size: 2.5rem;
    background: var(--bg-alt);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.buyer-item h4 { margin-bottom: 0.5rem; }

/* Contact Section */
.contact-box {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.section-label {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-box h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.direct-email {
    text-align: center;
    margin-top: 3rem;
    color: #888;
}

.direct-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.footer-logo { margin-bottom: 1.5rem; }
.footer-logo .logo-text { color: white; }

.footer p {
    color: #888;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.copyright a { color: #888; text-decoration: none; }

/* Animations */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RTL Adjustments */
html[dir="rtl"] .hero-title { letter-spacing: 0; }
html[dir="rtl"] .stat-currency { margin-inline-start: 8px; margin-inline-end: 0; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title { font-size: 4.5rem; }
    .cards-grid-3 { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav-container { padding: 0 1.5rem; }
    .nav-center { display: none; }
    
    section { padding: 5rem 0; }
    
    .hero { height: auto; min-height: 100vh; padding: 8rem 0 4rem; }
    .hero-title { font-size: 3.2rem; letter-spacing: -1px; }
    .hero-tagline { font-size: 1.2rem; margin-bottom: 2.5rem; }
    
    .cards-grid-2, .cards-grid-3, .buyers-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    
    .card { padding: 2rem; }
    
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .stat-number { font-size: 2.2rem; }
    
    .contact-box { padding: 2rem 1.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    
    .buyer-item { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.6rem; }
    .pill-badges { gap: 0.5rem; }
    .badge { padding: 0.4rem 1rem; font-size: 0.75rem; }
    .stats-grid { grid-template-columns: 1fr; }
}
