/* Base styles adapted from your CSS file */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #4e54c8;
    --secondary-purple: #8f94fb;
    --light-purple: #a1a5ff;
    --dark-purple: #3a3e9c;
    --accent-red: #EF4444;
    --dark-red: #DC2626;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --medium-gray: #64748B;
    --dark-gray: #334155;

    --font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    text-align: right;
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    color: #1a237e;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.badge-text {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-family);
    font-size: 2.8rem;
    font-weight: var(--font-weight-black);
    line-height: 1.2;
    margin-bottom: var(--spacing-xl);
    color: #1a237e;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    font-weight: var(--font-weight-regular);
}

.app-downloads {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.download-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--dark-gray);
    color: var(--white);
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.download-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.download-link.google-play {
    background: linear-gradient(90deg, #4285f4, #34a853);
}

.download-link.app-store {
    background: linear-gradient(90deg, #000, #333);
}

.download-icon {
    font-size: 1.5rem;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1;
}

.download-store {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 1.5rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite;
    transition: all var(--transition-normal);
}

.floating-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-2xl);
}

.icon-store {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.icon-handshake {
    top: 25%;
    right: 10%;
    animation-delay: 0.8s;
}

.icon-basket {
    bottom: 25%;
    left: 8%;
    animation-delay: 1.6s;
}

.icon-users {
    bottom: 20%;
    right: 15%;
    animation-delay: 2.4s;
}

.icon-star {
    top: 50%;
    left: 5%;
    animation-delay: 3.2s;
}

.phone-container {
    position: relative;
    z-index: 20;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    transform: perspective(1000px) rotateY(5deg);
    transition: all var(--transition-slow);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 40px;
    padding: 8px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    width: 72px;
    height: 18px;
    background: var(--dark-gray);
    border-radius: 15px;
    z-index: 30;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-content {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: var(--spacing-2xl);
    text-align: center;
}

.app-interface {
    text-align: center;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 2rem;
}

.app-title {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: var(--font-weight-extrabold);
    letter-spacing: 1px;
    margin: 0;
}

.app-subtitle {
    margin-top: var(--spacing-sm);
    font-size: 1rem;
    opacity: 0.9;
}

/* Background Decorations */
.bg-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: var(--radius-full);
    background: rgba(78, 84, 200, 0.1);
    animation: pulse 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.bg-shape {
    position: absolute;
    background: rgba(78, 84, 200, 0.05);
    border-radius: var(--radius-2xl);
}

.bg-shape-1 {
    width: 300px;
    height: 100px;
    top: 50%;
    left: 0;
    transform: rotate(-45deg);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(2deg);
    }

    50% {
        transform: translateY(-25px) rotate(-2deg);
    }

    75% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.1;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
        margin: 0 auto;
    }

    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .hero-description {
        margin: 0 auto var(--spacing-2xl);
    }

    .app-downloads {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .app-downloads {
        flex-direction: column;
        align-items: center;
    }

    .phone-frame {
        width: 200px;
        height: 400px;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .phone-frame {
        width: 180px;
        height: 360px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .app-title {
        font-size: 1.5rem;
    }
}

/* Focus States */
.download-link:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* RTL specific adjustments */
[dir="rtl"] .hero-content,
[dir="rtl"] .hero-description,
[dir="rtl"] .feature-card,
[dir="rtl"] .feature-description {
    text-align: right;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
    position: relative;
}

.section-title {
    font-family: var(--font-family);
    text-align: center;
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    border-radius: 2px;
}

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

.feature-card {
    background: #f8f9ff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eef2ff;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(78, 84, 200, 0.15);
    background: white;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-family: var(--font-family);
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-description {
    color: #555;
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 20px;
    }
}

/* Footer Section */
.footer {
    background: linear-gradient(135deg, #1a237e 0%, #4a148c 100%);
    color: white;
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
}

.footer-content {
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info {
    padding-right: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.9;
}

.links-title,
.contact-title {
    font-family: var(--font-family);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.links-title:after,
.contact-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    border-radius: 2px;
}

.links-list {
    list-style: none;
}

.links-list li {
    margin-bottom: 15px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: inline-block;
    position: relative;
}

.footer-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #8f94fb;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-link:hover:after {
    width: 100%;
}

.contact-info {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-info i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.copyright .footer-links {
    display: flex;
    gap: 20px;
}

/* Background decorations */
.footer-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.footer-bg-circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.footer-bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: -100px;
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright .footer-links {
        justify-content: center;
    }
}