:root {
    --primary-color: #0ea5e9;
    --primary-light: #38bdf8;
    --accent-pink: #f472b6;
    --accent-glow: #db2777;
    --background-dark: #020617;
    --background-card: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-fast: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --gradient-ice: linear-gradient(135deg, #0ea5e9 0%, #f472b6 100%);
    --gradient-glow: linear-gradient(90deg, #38bdf8, #f472b6);
}

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

[lang="ar"] {
    direction: rtl;
    font-family: 'Inter', 'Outfit', 'Cairo', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Background Animations */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.2;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background-color: var(--primary-color);
    filter: blur(120px);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background-color: var(--accent-pink);
    animation-delay: -5s;
    filter: blur(120px);
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition-fast);
    opacity: 0.8;
}

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

.lang-toggle {
    background: var(--gradient-ice);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    /* Note: image will be added via JS or later */
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--background-dark) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: var(--gradient-ice);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.btn-primary {
    background: var(--gradient-ice);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    display: inline-block;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(244, 114, 182, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Features Section */
.features {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-light);
}

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

.feature-card {
    background: var(--background-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: var(--gradient-ice);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-pink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Legal Content Styles */
.legal-container {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--background-card);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-ice);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    color: var(--accent-pink);
    font-weight: 700;
    margin-bottom: 2rem;
}

.data-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-box.important {
    border-color: rgba(244, 114, 182, 0.3);
    background: rgba(244, 114, 182, 0.05);
}

.data-box h3 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 2px solid var(--accent-pink);
    display: inline-block;
}

.legal-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.legal-content ul {
    list-style: none;
}

.legal-content li {
    margin-bottom: 1rem;
    position: relative;
    padding-right: 1.5rem;
}

.legal-content li::before {
    content: '❄';
    position: absolute;
    right: 0;
    color: var(--accent-pink);
}

/* Download Section */
.download-section {
    padding: 100px 10%;
    text-align: center;
}

.download-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 50px;
}

.download-card {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 20px;
    width: 250px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.download-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    padding: 50px 10%;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    nav {
        padding: 1rem 5%;
    }
}