/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-light: #F3F4F6;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-white);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rtl .lang-switcher {
    right: auto;
    left: 20px;
}

.lang-switcher a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--primary-color);
}

.lang-switcher .divider {
    color: var(--border-color);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(79, 70, 229, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   STATS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   PHONE MOCKUP
   ============================================ */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.phone-mockup img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

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

.floating-card {
    position: absolute;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: -80px;
}

.card-2 {
    bottom: 25%;
    right: -80px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 100px 0;
    background: var(--bg-gray);
}

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

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-card img {
    width: 100%;
    display: block;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-text > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dark);
}

/* ============================================
   BLOGS SECTION
   ============================================ */
.blogs {
    padding: 100px 0;
    background: var(--bg-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    color: inherit;
}

.blog-card-image {
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}

.blog-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.blog-card-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.blog-card-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-cta::after {
    content: '→';
    transition: transform 0.3s ease;
}

.blog-card-link:hover .blog-card-cta::after {
    transform: translateX(4px);
}

.blog-articles {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-article {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.blog-article-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.blog-article-header h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.blog-article-body p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.blog-article-body ul {
    margin: 0 0 20px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.rtl .blog-article-body ul {
    margin: 0 20px 20px 0;
}

.blog-article-body li {
    margin-bottom: 8px;
}

.blog-download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.blog-download-link::after {
    content: '⤵';
}

.blog-download-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.inline-download-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-content > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 48px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    color: var(--text-dark);
    padding: 20px 32px;
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

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

.download-btn svg {
    flex-shrink: 0;
}

.download-btn div {
    text-align: left;
}

.rtl .download-btn div {
    text-align: right;
}

.download-btn span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.download-btn strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--bg-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-info > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 15px;
    color: var(--text-light);
}

/* Phone, Email, and WhatsApp Clickable Links */
.contact-item .phone-link,
.contact-item .email-link,
.contact-item .whatsapp-link {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.contact-item .phone-link::before,
.contact-item .email-link::before,
.contact-item .whatsapp-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 0;
}

.contact-item .phone-link:hover,
.contact-item .email-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    border-color: var(--primary-color);
}

/* WhatsApp with green gradient */
.contact-item .whatsapp-link {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.1) 100%);
    color: #25D366;
}

.contact-item .whatsapp-link::before {
    background: rgba(37, 211, 102, 0.2);
}

.contact-item .whatsapp-link:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    border-color: #25D366;
}

.contact-item .phone-link:hover::before,
.contact-item .email-link:hover::before,
.contact-item .whatsapp-link:hover::before {
    width: 300px;
    height: 300px;
}

.contact-item .phone-link:active,
.contact-item .email-link:active,
.contact-item .whatsapp-link:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.contact-item .whatsapp-link:active {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.contact-item .phone-link::after {
    content: '📞';
    font-size: 16px;
}

.contact-item .email-link::after {
    content: '✉️';
    font-size: 16px;
}

.contact-item .whatsapp-link::after {
    content: '💬';
    font-size: 16px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-content {
        padding: 24px;
    }

    .blog-article {
        padding: 24px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .phone-mockup {
        max-width: 300px;
    }
    
    .floating-card {
        font-size: 12px;
        padding: 12px 16px;
    }
    
    .card-1 {
        left: -40px;
    }
    
    .card-2 {
        right: -40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        right: 100%;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        border-radius: 0 0 20px 20px;
    }
    
    .rtl .nav-menu {
        left: 100%;
        right: -100%;
    }
    
    .nav-menu.active {
        left: 0;
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 350px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
        justify-content: center;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-header h2,
    .about-text h2,
    .contact-info h2,
    .download-content h2 {
        font-size: 28px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .contact-form {
        padding: 24px;
    }
}

/* ============================================
   MODAL - CREATIVE DESIGN
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background particles */
.modal.active::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.modal.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease infinite;
    pointer-events: none;
    z-index: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 50px 40px;
    border-radius: 30px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    text-align: center;
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    z-index: 10;
    pointer-events: auto;
}

/* Shimmer effect on modal */
.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 0;
}

.modal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
    pointer-events: auto;
}

.modal-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.3;
    animation: ripple 2s infinite;
    pointer-events: none;
}

.modal-icon.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4),
                0 0 0 20px rgba(16, 185, 129, 0.1),
                0 0 0 40px rgba(16, 185, 129, 0.05);
}

.modal-icon.success::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
}

.modal-icon.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4),
                0 0 0 20px rgba(239, 68, 68, 0.1),
                0 0 0 40px rgba(239, 68, 68, 0.05);
    animation: iconShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.modal-icon.error::before {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, transparent 70%);
}

.modal-icon svg {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.modal-icon.success svg {
    animation: checkmarkDraw 0.6s ease-out 0.3s both;
}

.modal-icon.error svg {
    animation: errorPulse 0.5s ease-out;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1F2937 0%, #4B5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFadeIn 0.5s ease-out 0.2s both;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.modal-message {
    font-size: 17px;
    color: #6B7280;
    margin-bottom: 40px;
    line-height: 1.7;
    animation: messageFadeIn 0.5s ease-out 0.3s both;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    padding: 0 10px;
}

.modal-button {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    animation: buttonFadeIn 0.5s ease-out 0.4s both;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 5;
    pointer-events: auto;
    font-size: 14px;
}

.modal-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.modal-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.modal-button:hover::before {
    width: 300px;
    height: 300px;
}

.modal-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Confetti particles for success */
.modal-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #10B981;
    top: -10px;
    animation: confettiFall 3s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

.modal-confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #10B981; }
.modal-confetti:nth-child(2) { left: 20%; animation-delay: 0.1s; background: #3B82F6; }
.modal-confetti:nth-child(3) { left: 30%; animation-delay: 0.2s; background: #8B5CF6; }
.modal-confetti:nth-child(4) { left: 40%; animation-delay: 0.3s; background: #F59E0B; }
.modal-confetti:nth-child(5) { left: 50%; animation-delay: 0.4s; background: #EF4444; }
.modal-confetti:nth-child(6) { left: 60%; animation-delay: 0.5s; background: #10B981; }
.modal-confetti:nth-child(7) { left: 70%; animation-delay: 0.6s; background: #3B82F6; }
.modal-confetti:nth-child(8) { left: 80%; animation-delay: 0.7s; background: #8B5CF6; }
.modal-confetti:nth-child(9) { left: 90%; animation-delay: 0.8s; background: #F59E0B; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Creative Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotateX(10deg);
    }
    60% {
        transform: translateY(-10px) scale(1.05) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px) rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: translateX(5px) rotate(5deg); }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes checkmarkDraw {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 100 0;
        opacity: 1;
    }
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50px, -50px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, 20px) scale(1.1);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-text,
.hero-image,
.feature-card,
.about-card,
.about-text {
    animation: fadeIn 0.8s ease-out;
}

.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:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   DOWNLOAD MODAL SPECIFIC STYLES
   ============================================ */
.download-modal-content {
    max-width: 500px;
    padding: 40px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 20;
    pointer-events: auto;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.rtl .modal-close {
    right: auto;
    left: 20px;
}

.modal-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 10px;
    animation: messageFadeIn 0.5s ease-out 0.4s both;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.download-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
    background: white;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.download-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.download-form input:required {
    border-left: 3px solid var(--primary-color);
}

.download-form button svg {
    margin-right: 8px;
}

.rtl .download-form button svg {
    margin-right: 0;
    margin-left: 8px;
}

/* ============================================
   PRIVACY/LEGAL PAGES
   ============================================ */
.privacy-container {
    max-width: 900px;
    margin: 100px auto 60px;
    padding: 40px 60px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.rtl .privacy-container {
    direction: rtl;
    text-align: right;
}

.privacy-container .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: var(--transition);
}

.rtl .privacy-container .back-link {
    flex-direction: row-reverse;
}

.privacy-container .back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.rtl .privacy-container .back-link:hover {
    transform: translateX(5px);
}

.privacy-container .back-link svg {
    width: 20px;
    height: 20px;
}

.rtl .privacy-container .back-link svg {
    transform: rotate(180deg);
}

.privacy-container h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.privacy-container .last-updated {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.privacy-container section {
    margin-bottom: 40px;
}

.privacy-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    margin-top: 40px;
}

.privacy-container h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 24px;
}

.privacy-container p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.privacy-container ul,
.privacy-container ol {
    margin: 16px 0;
    padding-left: 24px;
}

.rtl .privacy-container ul,
.rtl .privacy-container ol {
    padding-left: 0;
    padding-right: 24px;
}

.privacy-container li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 8px;
}

.privacy-container strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Cookies Table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cookies-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.cookies-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.rtl .cookies-table th {
    text-align: right;
}

.cookies-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.3s ease;
}

.cookies-table tbody tr:last-child {
    border-bottom: none;
}

.cookies-table tbody tr:hover {
    background-color: #f9fafb;
}

.cookies-table td {
    padding: 16px;
    font-size: 15px;
    color: var(--text-light);
}

.cookies-table td:first-child {
    color: var(--text-dark);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .privacy-container {
        margin: 80px 20px 40px;
        padding: 30px 24px;
        border-radius: 16px;
    }

    .privacy-container h1 {
        font-size: 32px;
    }

    .privacy-container h2 {
        font-size: 24px;
    }

    .privacy-container h3 {
        font-size: 20px;
    }

    .privacy-container p,
    .privacy-container li {
        font-size: 15px;
    }

    .cookies-table {
        font-size: 14px;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 12px 8px;
    }

    /* Make table scrollable on mobile */
    .cookies-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cookies-table thead,
    .cookies-table tbody,
    .cookies-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
}


/* ============================================
   DOWNLOAD MODAL BUTTON STYLES
   ============================================ */
/* Modal buttons container - ensures buttons are in same row */
.modal-buttons-container {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 25px !important;
    flex-wrap: wrap !important;
}

/* Download redirect button - green color */
.download-redirect-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    flex: 1 !important;
    max-width: 220px !important;
    margin: 0 !important;
}

.download-redirect-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
}

/* Close button in container */
.modal-buttons-container .modal-button:not(.download-redirect-btn) {
    flex: 1 !important;
    max-width: 220px !important;
    margin: 0 !important;
}

/* Ensure both buttons same height */
.modal-buttons-container .modal-button {
    min-width: 150px;
    padding: 16px 30px;
}
