﻿:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a1a1aa;
    --surface-color: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #FFA726 0%, #F4511E 100%);
    --nav-bg: rgba(5, 5, 5, 0.8);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --font-main: 'Cairo', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}


body.light-theme {
    --bg-color: #ffffff;
    --text-color: #111827;
    --text-muted: #6b7280;
    --surface-color: #f3f4f6;
    --border-color: #e5e7eb;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --card-hover-bg: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[dir="rtl"] {
    font-family: var(--font-ar), var(--font-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links .btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.nav-links .btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: var(--bg-color);
}

/* Controls */
.controls {
    display: flex;
    gap: 16px;
    align-items: center;
    border-left: 1px solid var(--border-color);
    /* LTR Default */
    padding-left: 16px;
    /* LTR Default */
    margin-left: 16px;
}

body[dir="rtl"] .controls {
    border-left: none;
    border-right: 1px solid var(--border-color);
    padding-left: 0;
    padding-right: 16px;
    margin-left: 0;
    margin-right: 16px;
}


button {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted);
    transition: color 0.3s;
    font-family: inherit;
}

button:hover {
    color: var(--text-color);
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    /* Aligns to right edge of button */
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    transform: translateY(16px);
    /* push down slightly */
    pointer-events: all;
}

.lang-item {
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    /* LTR default */
    display: flex;
    align-items: center;
    gap: 8px;
}

body[dir="rtl"] .lang-item {
    text-align: right;
}

.lang-item:hover {
    background: var(--surface-color);
    color: var(--text-color);
}

.lang-item.active {
    color: #F4511E;
    /* Primary color */
    background: rgba(244, 81, 30, 0.1);
}

.text-btn {
    font-weight: 600;
    font-size: 0.95rem;
}


.mobile-menu-btn {
    display: none;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Main Hero Title */
.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 8px;
    /* Reduced margin */
    color: var(--text-color);
    min-height: 1.2em;
    /* Adjusted height for single line */
    display: inline-block;
    /* For cursor */
}

/* Subtitle styling - Separated Element */
.hero-subtitle {
    font-size: 1.5rem !important;
    /* Explicit size, much smaller than 4rem */
    font-weight: 600;
    color: var(--primary-gradient);
    /* Or use gradient-text class logic */
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
    margin-bottom: 24px;
    opacity: 0.9;
    min-height: 1.5em;
    /* Reserve space */
    display: block;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
        /* Smaller on mobile */
    }
}


/* --- Mobile Menu Styles --- */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
    z-index: 99;
}

.mobile-menu.active {
    max-height: 300px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px;
    width: 100%;
    text-align: center;
    transition: background-color 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .mobile-menu {
    background: rgba(255, 255, 255, 0.95);
}

/* Responsive Font Adjustments */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.8rem;
        /* Smaller hero title on mobile to prevent overflow */
    }

    .hero-small {
        font-size: 0.4em;
        /* Slightly larger relative on mobile for readability but still small */
        margin-top: 0;
    }
}

/* Blinking Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary-gradient);
    /* Or text color */
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.gradient-text {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: var(--card-hover-bg);
    transform: translateY(-2px);
}

.store-btn div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 642px;
    background: #111;
    border-radius: 40px;
    border: 8px solid #333;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e1e2e, #0f0f13);
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    border-radius: 50%;
}

.blob-1 {
    background: #FFA726;
    top: -50px;
    right: -50px;
    animation: float 10s ease-in-out infinite;
}

body[dir="rtl"] .blob-1 {
    right: auto;
    left: -50px;
}

.blob-2 {
    background: #F4511E;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

body[dir="rtl"] .blob-2 {
    left: auto;
    right: -50px;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, background-color 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.2), rgba(244, 81, 30, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box .material-icons-round {
    font-size: 32px;
    color: var(--text-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
}

/* --- New Content Styling --- */

.feat-subtitle {
    font-size: 1rem;
    color: var(--primary-gradient);
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    font-weight: 600;
}

.feat-tagline {
    margin-top: 16px;
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.9;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(255, 167, 38, 0.05) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-color);
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background: var(--bg-color);
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* --- Legal Pages & Language Utilities --- */

html[lang="ar"] .lang-en {
    display: none !important;
}

html[lang="en"] .lang-ar {
    display: none !important;
}

.legal-content {
    padding: 140px 0 80px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.legal-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 24px;
    padding-inline-start: 24px;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-content strong {
    color: var(--text-color);
    font-weight: 600;
}

/* --- Contact Page Styles --- */
.contact-section {
    padding: 120px 0 80px;
    min-height: 85vh;
    /* Increased slightly to accommodate taller mockup if needed */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

/* Info Cards */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 140, 0, 0.3);
}

.info-link {
    display: block;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: 16px;
    font-weight: 600;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Update for Interactive Map */
#interactive-map {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    /* Match phone radius - padding */
    overflow: hidden;
    /* Clip map content */
}

/* Remove old img styles if they conflict, though class .screen-content is shared */
.screen-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fix stretched image */
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: background-color 0.3s;
}

.faq-item:hover {
    background: var(--card-hover-bg);
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    /* LTR default */
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

body[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question .icon {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Download CTA Section --- */
.download-cta {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(255, 167, 38, 0.05) 0%, var(--bg-color) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-btns {
    justify-content: center;
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}



/* --- New Visual Enhancements --- */

/* 1. Animated Stats Section */
.stats-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-main);
    /* Ensure consistent font for numbers */
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* 2. Glow/Pulse Effect for Store Buttons */
@keyframes soft-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 167, 38, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 167, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 167, 38, 0);
    }
}

.store-btn {
    animation: soft-glow 3s infinite;
}

/* 3. 3D Tilt Effect Utilities */
.feature-card {
    /* Keep existing styles */
    transform-style: preserve-3d;
    perspective: 1000px;
    /* Remove the simple transform transition to avoid lag with mouse movement */
    transition: transform 0.1s ease-out, background-color 0.3s, border-color 0.3s;
}

/* Inner element lift effect (optional) */
.feature-card .icon-box,
.feature-card h3 {
    transform: translateZ(20px);
}

/* --- Floating CTA --- */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    /* Hidden by default */
    z-index: 98;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
    /* JS will toggle flex */
}

.floating-cta.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-cta .btn-primary {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 12px 32px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(244, 81, 30, 0.4);
}

@media (max-width: 480px) {
    .floating-cta {
        width: 90%;
        bottom: 20px;
        text-align: center;
    }

    .floating-cta .btn-primary {
        width: 100%;
    }
}