:root {
    --primary-color: #006C35;
    --secondary-color: #C5A059;
    --accent-color: #E6F4EA;
    --bg-color: #FCFCFC;
    --text-color: #1A1A1A;
    --text-light: #555555;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.97);
    --glass-border: rgba(197, 160, 89, 0.2);
    --shadow: 0 10px 30px -10px rgba(0, 108, 53, 0.15);
    --shadow-lg: 0 20px 60px -15px rgba(0, 108, 53, 0.25);
    --pattern: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23C5A059" fill-opacity="0.05" fill-rule="evenodd"><path d="M0 20L20 0h20L20 20 0 40V20zm20 20l20-20v20H20z"/></g></svg>');
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-heading-en: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-color);
    background-image: var(--pattern);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

html[dir="ltr"] body {
    font-family: var(--font-en);
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3 {
    font-family: var(--font-heading-en);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Nav Contact Button */
.nav-contact-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
    font-family: inherit;
}

.nav-contact-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-contact-btn:hover::after {
    width: 100%;
}

.nav-contact-btn:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 108, 53, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005028 100%);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 108, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 108, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #006C35 0%, #004D25 50%, #003D1D 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(197, 160, 89, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(230, 244, 234, 0.1) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="%23C5A059" fill-opacity="0.08" fill-rule="evenodd"><circle cx="30" cy="30" r="2"/><circle cx="10" cy="10" r="2"/><circle cx="50" cy="50" r="2"/></g></svg>');
    opacity: 0.4;
    animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(60px, 60px);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(197, 160, 89, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(230, 244, 234, 0.3) 100%);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1.5rem auto 0;
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.03) 0%, rgba(197, 160, 89, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--glass-border);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--secondary-color);
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 10px rgba(197, 160, 89, 0.3));
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--white);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    line-height: 1;
    font-weight: 300;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-align: right;
    font-weight: 700;
}

.modal-subtitle {
    text-align: right;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    text-align: right;
    direction: rtl;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #AAAAAA;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.08) 0%, rgba(197, 160, 89, 0.08) 100%);
    border-radius: 16px;
    border: 2px solid rgba(0, 108, 53, 0.2);
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-message p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Error Message */
.error-message {
    display: none;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.error-message.show {
    display: block;
}

.error-message p {
    color: #dc3545;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #006C35 0%, #004D25 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23C5A059" fill-opacity="0.05" fill-rule="evenodd"><path d="M0 20L20 0h20L20 20 0 40V20zm20 20l20-20v20H20z"/></g></svg>');
    opacity: 0.3;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Responsive */
/* Statistics Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004D25 100%);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="%23C5A059" fill-opacity="0.08" fill-rule="evenodd"><circle cx="30" cy="30" r="2"/><circle cx="10" cy="10" r="2"/><circle cx="50" cy="50" r="2"/></g></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(197, 160, 89, 0.3);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(197, 160, 89, 0.6);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--secondary-color);
    display: inline-block;
    margin-right: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.step-card {
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.05) 0%, rgba(197, 160, 89, 0.05) 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 108, 53, 0.3);
}

.step-icon {
    font-size: 4rem;
    margin: 1rem 0;
    filter: drop-shadow(0 4px 10px rgba(197, 160, 89, 0.2));
}

.step-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.step-arrow {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(230, 244, 234, 0.3) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--glass-border);
}

.quote-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--accent-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-info {
    text-align: right;
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq {
    padding: 120px 0;
    background: var(--white);
}

.faq-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--bg-color);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 2px solid #E5E5E5;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary-color);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 108, 53, 0.05);
}

.faq-question span:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
    text-align: right;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }


    .hero p {
        font-size: 1rem;
    }

    .logo-img {
        height: 50px;
    }
}