/* Global Styles */
:root {
    --primary-color: #00A859;
    --secondary-color: #008B4A;
    --accent-color: #00C96D;
    --text-color: #2C3E50;
    --light-bg: #F8F9FA;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-bg: var(--white);
    --section-bg: var(--light-bg);
    --header-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --text-color: #E1E1E1;
    --light-bg: #1A1A1A;
    --white: #2C2C2C;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --card-bg: #2C2C2C;
    --section-bg: #1A1A1A;
    --header-bg: rgba(28, 28, 28, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.main-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 15px 0;
    background: var(--white);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo-dark {
    display: none;
}

.main-header.scrolled .logo-light {
    display: none;
}

.main-header.scrolled .logo-dark {
    display: block;
}

/* Dark mode adjustments for logo */
[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

/* Footer logo styles */
.footer-logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .logo img {
        height: 35px;
    }
    
    .footer-logo img {
        height: 30px;
    }
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
    position: relative;
    padding: 0 5px;
    letter-spacing: -1px;
}

.logo-text:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.1;
    border-radius: 8px;
    transform: scale(0.95);
    transition: var(--transition);
    z-index: -1;
}

.logo-text:hover {
    transform: translateY(-2px);
}

.logo-text:hover:before {
    transform: scale(1.05);
    opacity: 0.15;
}

.main-header.scrolled .logo-text {
    font-size: 2rem;
}

/* Dark mode adjustments for logo */
[data-theme="dark"] .logo-text {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .logo-text:before {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }
    
    .main-header.scrolled .logo-text {
        font-size: 1.6rem;
    }
}

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    right: 0;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover:after {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(0, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge span {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white);
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-app {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-app:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-app i {
    font-size: 2rem;
    margin-left: 15px;
    color: var(--primary-color);
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 0.9rem;
    color: #666;
}

.btn-platform {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--section-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-bg);
    padding: 45px 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover:before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
    font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    position: relative;
}

.step {
    text-align: center;
    flex: 1;
    padding: 25px;
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 45px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    z-index: 1;
    animation: lineGrow 1s ease-out 0.5s backwards;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-weight: bold;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.step:hover .step-icon {
    background: var(--gradient);
    transform: scale(1.1);
}

.step-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.step:hover .step-icon i {
    color: var(--white);
}

/* Coverage Section */
.coverage {
    padding: 120px 0;
    background: var(--section-bg);
}

.coverage-content {
    max-width: 800px;
    margin: 0 auto;
}

.coverage-text ul {
    list-style: none;
}

.coverage-text li {
    margin-bottom: 25px;
    padding-right: 35px;
    position: relative;
    font-size: 1.2rem;
}

.coverage-text li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 120px 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 25px 40px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out backwards;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }

.social-link:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.social-link:hover i {
    color: var(--white);
}

.social-link i {
    font-size: 2rem;
    margin-left: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-link span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--gradient);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.footer-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background: var(--white);
    transition: var(--transition);
}

.footer-links a:hover:after {
    width: 100%;
}

.copyright {
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background: var(--light-bg);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .close-menu {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Header Mobile Styles */
    .main-header {
        padding: 15px 0;
    }

    .logo img {
        height: 35px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-color);
        cursor: pointer;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin: 30px 0;
    }

    .stat-item {
        background: rgba(255, 255, 255, 0.1);
        padding: 15px;
        border-radius: 12px;
        width: 100%;
    }

    .app-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn-app {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Features Section Mobile */
    .features {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    /* How It Works Mobile */
    .how-it-works {
        padding: 60px 0;
    }

    .steps {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        padding: 20px;
        background: var(--card-bg);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }

    .step:not(:last-child):after {
        display: none;
    }

    /* Coverage Section Mobile */
    .coverage {
        padding: 60px 0;
    }

    .coverage-text li {
        font-size: 1rem;
        margin-bottom: 15px;
        padding-right: 25px;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 60px 0;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .social-link {
        width: 100%;
        padding: 15px 20px;
    }

    /* Footer Mobile */
    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .copyright {
        font-size: 0.9rem;
        padding-top: 20px;
    }

    /* Theme Toggle Mobile */
    .theme-toggle {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: var(--card-bg);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .close-menu {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        padding: 6px 15px;
    }

    .hero-badge span {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .step-icon {
        width: 55px;
        height: 55px;
    }

    .step-icon i {
        font-size: 1.5rem;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show on mobile */
    }
    
    /* Rest of mobile styles */
    .container {
        padding: 0 16px;
    }
    
    /* Header Mobile Styles */
    .main-header {
        padding: 15px 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .main-nav {
        display: none;
    }
} 