:root {
    --primary-color: #19ac56;
    --primary-dark: #148a45;
    --secondary-color: #0e0e03;
    --text-color: #1A202C;
    --text-muted: #718096;
    --bg-color: #f5f6f9;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Inter', sans-serif;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    will-change: transform;
}

@media (min-width: 993px) {
    .navbar {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
    }
}

.navbar .container {
    display: flex;
    flex-direction: row-reverse; /* نقل اللوغو لليسار في نظام RTL */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    flex-direction: row-reverse; /* يجعل اللوغو على يسار الكلمة في نظام RTL */
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color); /* تغيير اللون للأخضر */
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(25, 172, 86, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(25, 172, 86, 0.05), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-store {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.btn-store i {
    font-size: 24px;
}

.btn-store b {
    display: block;
    font-size: 18px;
}

.btn-store:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.direct-hero {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(25, 172, 86, 0.2);
}

.direct-hero:hover {
    background: var(--primary-dark);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.app-logo-bg {
    background: var(--primary-color);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(25, 172, 86, 0.3);
    padding: 30px;
}

.app-logo-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.desktop-size {
    width: 320px;
    height: 320px;
}

.mobile-logo-wrapper {
    display: none;
    justify-content: center;
    margin-bottom: 30px;
}

.mobile-logo-wrapper .app-logo-bg {
    width: 200px;
    height: 200px;
    border-radius: 30px;
    padding: 20px;
}

/* Features */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
}

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

.feature-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--bg-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 25px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 20px;
    font-size: 20px;
}

/* Download Section */
.download-section {
    padding: 100px 0;
}

.download-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    color: var(--white);
}

.download-card h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.download-card p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.download-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.store-link img {
    height: 60px;
    transition: var(--transition);
}

.store-link img:hover {
    transform: scale(1.05);
}

.btn-direct {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.qr-code {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-code img {
    width: 150px;
    height: 150px;
    padding: 10px;
    background: var(--white);
    border-radius: 15px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--secondary-color);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.6;
}

.footer-links ul {
    margin-top: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.6;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 24px;
    opacity: 0.6;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.4;
    font-size: 14px;
}

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

.fade-in { animation: fadeIn 0.8s ease forwards; }
.fade-in-delay { animation: fadeIn 0.8s ease 0.2s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.8s ease 0.4s forwards; opacity: 0; }

/* Responsive Design */

/* Small Desktop / Laptops (up to 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .hero-content h1 {
        font-size: 48px;
    }
}

/* Tablets Landscape (up to 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .desktop-logo-wrapper {
        display: none;
    }
    .mobile-logo-wrapper {
        display: flex;
    }
    .hero-content h1 {
        font-size: 42px;
    }
    .hero-content p {
        margin: 0 auto 30px;
    }
    .hero-btns {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets Portrait (up to 768px) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    .navbar .nav-links {
        display: none; /* Can be replaced with a hamburger menu later if needed */
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .download-card {
        padding: 40px 20px;
    }
    .download-card h2 {
        font-size: 32px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}

/* Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero {
        padding: 120px 0 60px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .btn-store {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    .mobile-logo-wrapper .app-logo-bg {
        width: 160px;
        height: 160px;
    }
    .section-title {
        font-size: 28px;
    }
    .btn-direct {
        padding: 12px 25px;
        font-size: 16px;
    }
    .logo-img {
        height: 32px; /* تصغير إضافي للوغو في الموبايل */
    }
}
