/* ===== CSS Variables ===== */
:root {
    --primary-purple: #4B2D7F;
    --primary-purple-dark: #3A2263;
    --primary-purple-light: #6B4D9F;
    --accent-yellow: #F5B800;
    --accent-yellow-light: #FFD54F;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-light: #E9ECEF;
    --gray: #505565;
    --gray-dark: #2D3142;
    --black: #1A1A2E;

    --font-primary: 'Poppins', sans-serif;
    --font-arabic: 'Tajawal', sans-serif;

    --shadow-sm: 0 2px 8px rgba(75, 45, 127, 0.1);
    --shadow-md: 0 8px 24px rgba(75, 45, 127, 0.15);
    --shadow-lg: 0 16px 48px rgba(75, 45, 127, 0.2);
    --shadow-glow: 0 0 60px rgba(245, 184, 0, 0.3);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Light mode specific */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-primary: #1a1a1a;
    --text-secondary: #505565;
    --header-bg: rgba(255, 255, 255, 0.95);
}

/* ===== Dark Mode Variables ===== */
[data-theme="dark"] {
    --bg-primary: #0F0F1A;
    --bg-secondary: #1A1A2E;
    --bg-card: #252540;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D0;
    --header-bg: rgba(15, 15, 26, 0.95);
    --gray-light: #3A3A50;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    position: relative;
}

.theme-toggle:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    position: absolute;
    transition: var(--transition-normal);
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
    stroke: var(--primary-purple);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
    stroke: var(--primary-purple);
}

.theme-toggle:hover .sun-icon,
.theme-toggle:hover .moon-icon {
    stroke: var(--white);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-card);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    stroke: var(--accent-yellow);
}

/* ===== RTL Support ===== */
html[dir="rtl"] {
    font-family: var(--font-arabic);
}

html[dir="rtl"] body,
html[dir="rtl"] * {
    font-family: var(--font-arabic), sans-serif;
}

/* RTL Mobile Fixes */
@media (max-width: 768px) {

    /* Disable RTL direction on mobile - center everything instead */
    html[dir="rtl"] {
        direction: ltr !important;
    }

    html[dir="rtl"] body {
        overflow-x: hidden;
        direction: ltr !important;
    }

    html[dir="rtl"] .hero,
    html[dir="rtl"] .download,
    html[dir="rtl"] .footer {
        direction: ltr !important;
        text-align: center !important;
    }

    html[dir="rtl"] .hero-content,
    html[dir="rtl"] .download-content {
        direction: ltr !important;
        align-items: center !important;
    }

    html[dir="rtl"] .nav {
        direction: ltr !important;
    }

    html[dir="rtl"] .hero-text {
        text-align: center !important;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    html[dir="rtl"] .hero-description {
        text-align: center !important;
        padding: 0 15px;
        word-break: break-word;
    }

    html[dir="rtl"] .hero-stats {
        justify-content: center !important;
        padding: 0 15px;
    }

    html[dir="rtl"] .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    html[dir="rtl"] .hero-badge {
        font-size: 0.7rem;
        padding: 8px 12px;
        text-align: center;
    }

    html[dir="rtl"] .section-description {
        text-align: center !important;
        padding: 0 15px;
        word-break: break-word;
    }

    html[dir="rtl"] .download-text {
        padding: 0 15px;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    html[dir="rtl"] .container {
        padding: 0 15px;
    }

    html[dir="rtl"] .download-buttons {
        align-items: center;
    }

    html[dir="rtl"] .download-features {
        justify-content: center;
    }

    html[dir="rtl"] .section-badge,
    html[dir="rtl"] .section-title {
        text-align: center !important;
    }

    html[dir="rtl"] .cta-button {
        margin: 0 auto;
    }

    html[dir="rtl"] .hero-image {
        display: flex;
        justify-content: center;
    }
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--off-white);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Dark Mode Element Overrides ===== */
[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .header {
    background: var(--header-bg);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-links a {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .lang-toggle {
    background: var(--bg-card);
}

[data-theme="dark"] .lang-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .lang-btn.active {
    background: var(--primary-purple);
    color: var(--white);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, rgba(75, 45, 127, 0.1) 100%);
}

[data-theme="dark"] .hero-title {
    color: var(--text-primary);
}

[data-theme="dark"] .hero-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .stat-number {
    color: #FFFFFF;
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .floating-card {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] .scroll-indicator {
    color: var(--text-secondary);
}

[data-theme="dark"] .scroll-arrow {
    border-color: var(--text-secondary);
}

[data-theme="dark"] .download {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .section-badge {
    background: linear-gradient(135deg, rgba(75, 45, 127, 0.3), rgba(245, 184, 0, 0.2));
    color: var(--accent-yellow);
    border-color: rgba(245, 184, 0, 0.3);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .section-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .feature {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] .phone-frame {
    background: linear-gradient(180deg, #2a2a45 0%, #1a1a2e 100%);
}

[data-theme="dark"] .footer {
    background: #0a0a14;
}

[data-theme="dark"] .highlight {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-light));
    -webkit-background-clip: text;
    background-clip: text;
}

/* ===== Animations ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 184, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 184, 0, 0.6);
    }
}

@keyframes scrollArrow {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Reveal animations */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
    opacity: 1;
    transform: translate(0);
}

/* RTL reveal directions */
html[dir="rtl"] .reveal-left {
    transform: translateX(60px);
}

html[dir="rtl"] .reveal-right {
    transform: translateX(-60px);
}

/* Hide decorative shapes in RTL to prevent text overlap */
html[dir="rtl"] .hero-bg-shapes {
    display: none;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(75, 45, 127, 0.1);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 50px;
    transition: var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-dark);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-yellow));
    border-radius: 2px;
    transition: var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

.lang-toggle {
    display: flex;
    gap: 8px;
    background: var(--gray-light);
    padding: 4px;
    border-radius: var(--radius-lg);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.lang-btn.active {
    background: var(--primary-purple);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: rgba(75, 45, 127, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 50%, rgba(75, 45, 127, 0.03) 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-purple);
    top: -200px;
    right: -200px;
    animation: pulse 8s infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-purple-light);
    bottom: -100px;
    left: -100px;
    animation: pulse 6s infinite 1s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-purple), var(--accent-yellow));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s infinite 2s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: glow 3s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.highlight {
    background: linear-gradient(135deg, #B8860B, #8B6914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.15));
}

.hero-description {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 40px;
    max-width: 100%;
    line-height: 1.7;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 80px;
    max-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 600;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: var(--white);
    padding: 18px 36px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.cta-button:hover .arrow-icon {
    transform: translateX(4px);
}

html[dir="rtl"] .cta-button:hover .arrow-icon {
    transform: translateX(-4px) scaleX(-1);
}

html[dir="rtl"] .arrow-icon {
    transform: scaleX(-1);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image>img {
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(60px);
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.card-icon {
    font-size: 1.5rem;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -5%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 5%;
    animation-delay: 2s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 2px;
    animation: scrollArrow 1.5s infinite;
}

/* ===== Download Section ===== */
.download {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--accent-yellow), transparent);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(180deg, var(--gray-dark) 0%, var(--black) 100%);
    border-radius: 48px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: var(--black);
    border-radius: 20px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-screen img {
    width: 70%;
    filter: brightness(0) invert(1);
}

.phone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(75, 45, 127, 0.1), rgba(245, 184, 0, 0.1));
    color: var(--primary-purple);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(75, 45, 127, 0.2);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 24px;
}

.section-title span {
    display: block;
}

.section-description {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 32px;
    line-height: 1.7;
    font-weight: 500;
}

.download-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.feature-icon {
    font-size: 1.3rem;
}

.download-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-normal);
    min-width: 180px;
}

.apple-btn {
    background: var(--black);
    color: var(--white);
}

.google-btn {
    background: var(--primary-purple);
    color: var(--white);
}

.store-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.store-icon {
    width: 28px;
    height: 28px;
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ===== Contact Section ===== */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 50%, rgba(75, 45, 127, 0.05) 100%);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

html[dir="rtl"] .info-card:hover {
    transform: translateX(-8px);
}

.info-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(75, 45, 127, 0.1), rgba(245, 184, 0, 0.1));
    border-radius: var(--radius-md);
}

.info-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.info-text p {
    color: var(--gray);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--primary-purple);
    transition: var(--transition-normal);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-4px);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-normal);
    background: var(--off-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
    transition: var(--transition-normal);
    background: var(--off-white);
    padding: 0 8px;
}

html[dir="rtl"] .form-group label {
    left: auto;
    right: 20px;
}

.form-group textarea~label {
    top: 24px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-purple);
    outline: none;
    background: var(--white);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary-purple);
    background: var(--white);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: var(--white);
    padding: 18px 36px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 100%;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.send-icon {
    width: 20px;
    height: 20px;
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

.footer-logo p {
    color: var(--accent-yellow);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gray-light);
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 16px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {

    .hero-content,
    .download-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-image {
        order: -1;
    }

    .download-image {
        order: -1;
    }

    .floating-card {
        display: none;
    }

    .hero-text {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .cta-button {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        padding: 0 16px;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .hero-text {
        padding: 0 15px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 10px 18px;
        max-width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 12px;
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .stat {
        flex: 0 0 30%;
        max-width: 100px;
    }

    .stat-number {
        font-size: 1.6rem;
        font-weight: 800;
    }

    .stat-label {
        font-size: 0.75rem;
        word-wrap: break-word;
        font-weight: 600;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .store-btn {
        justify-content: center;
        width: 100%;
    }

    .phone-frame {
        width: 200px;
        height: 420px;
    }

    .contact-form {
        padding: 20px;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-image>img {
        max-width: 100%;
        width: 100%;
    }

    .download {
        padding: 80px 0;
    }

    .download-text {
        text-align: center;
    }

    .download-features {
        justify-content: center;
    }

    .section-badge {
        font-size: 0.85rem;
    }

    .section-description {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 15px;
        line-height: 1.6;
    }

    .hero-description {
        font-size: 1.05rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 15px;
        line-height: 1.6;
        font-weight: 500;
    }

    .footer {
        padding: 40px 0 30px;
    }

    .footer-logo img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .lang-toggle {
        padding: 2px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .phone-frame {
        width: 180px;
        height: 380px;
    }

    .feature {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .store-btn {
        padding: 12px 20px;
    }

    .store-icon {
        width: 24px;
        height: 24px;
    }

    .store-name {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 10px 18px;
    }
}