/* ========== المتغيرات العامة - ألوان مبهجة للأطفال ========== */
:root {
    --primary: #FF6B6B;
    --primary-dark: #EE5A5A;
    --secondary: #4ECDC4;
    --secondary-dark: #45B7AA;
    --accent: #FFE66D;
    --accent-dark: #FFD93D;
    --purple: #A78BFA;
    --pink: #F472B6;
    --orange: #FB923C;
    --blue: #60A5FA;
    --green: #34D399;
    
    --arabic-color: #059669;
    --english-color: #2563EB;
    --french-color: #DC2626;
    
    --bg-primary: #FFF5F5;
    --bg-secondary: #F0FDF4;
    --bg-accent: #FFF7ED;
    --bg-blue: #EFF6FF;
    --bg-purple: #F5F3FF;
    
    --card-shadow: 0 8px 25px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 15px 35px rgba(0,0,0,0.12);
    --border-radius-sm: 15px;
    --border-radius: 25px;
    --border-radius-lg: 35px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== الأساسيات ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(180deg, #FFF5F5 0%, #F0FDF4 50%, #FFF7ED 100%);
    overflow-x: hidden;
    direction: rtl;
    color: #333;
}

/* ========== شريط التنقل المحسن ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #FF6B6B, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mascot-small {
    font-size: 2rem;
    animation: bounceSmall 2s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

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

.nav-link {
    font-weight: 600;
    color: #555;
    transition: var(--transition);
    border-radius: 30px;
    padding: 10px 22px !important;
    margin: 0 3px;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    background: #FFF5F5;
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* ========== زر CTA المحسن ========== */
.btn-primary-custom {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.35);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.45);
    color: white;
    background: linear-gradient(135deg, #EE5A5A, #FF6B6B);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ========== الشخصية الكرتونية المحسنة ========== */
.mascot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
}

.mascot {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFE66D, #FFD93D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.4);
    transition: var(--transition);
    border: 4px solid white;
}

.mascot:hover {
    transform: scale(1.15);
}

.mascot-speech {
    position: absolute;
    bottom: 95px;
    right: 0;
    background: white;
    padding: 12px 18px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
    width: 220px;
    text-align: center;
    border: 2px solid #FFE66D;
}

.mascot-speech::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 35px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid white;
}

/* ========== الهيرو سيكشن المحسن ========== */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF5F5 0%, #F5F3FF 50%, #FFF7ED 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B, #A78BFA, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.9;
}

.hero-image {
    max-width: 100%;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

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

/* ========== كروت الميزات المحسنة ========== */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px 25px;
    margin: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card:nth-child(1):hover { border-color: #FF6B6B; background: #FFF5F5; }
.feature-card:nth-child(2):hover { border-color: #4ECDC4; background: #F0FDF4; }
.feature-card:nth-child(3):hover { border-color: #A78BFA; background: #F5F3FF; }
.feature-card:nth-child(4):hover { border-color: #FFE66D; background: #FFF7ED; }
.feature-card:nth-child(5):hover { border-color: #60A5FA; background: #EFF6FF; }
.feature-card:nth-child(6):hover { border-color: #F472B6; background: #FDF2F8; }

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-shadow-hover);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #FF6B6B, #A78BFA, #4ECDC4, #FFE66D);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    display: block;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

/* ========== التقييمات المحسنة ========== */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 10px;
    box-shadow: var(--card-shadow);
    position: relative;
    border: 2px solid #f0f0f0;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: #FFE66D;
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #A78BFA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* ========== صفحة اللغات المحسنة ========== */
.world-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 45px 25px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.world-card:hover {
    transform: scale(1.03);
    box-shadow: var(--card-shadow-hover);
}

.world-arabic { 
    border-top: 6px solid var(--arabic-color);
    background: linear-gradient(180deg, #ECFDF5 0%, white 100%);
}

.world-english { 
    border-top: 6px solid var(--english-color);
    background: linear-gradient(180deg, #EFF6FF 0%, white 100%);
}

.world-french { 
    border-top: 6px solid var(--french-color);
    background: linear-gradient(180deg, #FEF2F2 0%, white 100%);
}

.world-flag {
    font-size: 4.5rem;
    margin-bottom: 18px;
    display: block;
    transition: var(--transition);
}

.world-card:hover .world-flag {
    transform: scale(1.2);
}

.world-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

/* ========== الألعاب المحسنة ========== */
.games-preview {
    padding: 80px 0;
    background: linear-gradient(135deg, #A78BFA 0%, #F472B6 100%);
    color: white;
}

.game-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    color: #333;
    border: 3px solid transparent;
}

.game-card:hover {
    transform: translateY(-12px) rotate(-3deg);
    border-color: #FFE66D;
    box-shadow: var(--card-shadow-hover);
}

.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF6B6B, #F472B6);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* ========== شريط التقدم المحسن ========== */
.progress-custom {
    height: 22px;
    border-radius: 12px;
    background: #F0F0F0;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.progress-bar-custom {
    height: 100%;
    background: linear-gradient(90deg, #4ECDC4, #60A5FA, #A78BFA);
    border-radius: 12px;
    transition: width 1.2s ease;
    position: relative;
}

.progress-bar-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* ========== قسم الاشتراكات المحسن ========== */
.subscription-preview {
    padding: 80px 0;
    background: linear-gradient(180deg, #F5F3FF 0%, #FFF5F5 100%);
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.pricing-card.popular {
    border: 3px solid #FFE66D;
    background: linear-gradient(180deg, #FFFDF5 0%, white 100%);
}

.pricing-card.best-value {
    border: 3px solid #4ECDC4;
    background: linear-gradient(180deg, #F0FDF4 0%, white 100%);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 8px 40px;
    transform: rotate(-45deg);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== الفوتر المحسن ========== */
.footer {
    background: linear-gradient(135deg, #2D3561 0%, #1a1a3e 100%);
    color: white;
    padding: 50px 0 25px;
    margin-top: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #FFE66D, #4ECDC4, #A78BFA);
}

.footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer a:hover {
    color: #FFE66D;
    padding-right: 8px;
}

/* ==========  CTA Section ========== */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #A78BFA 50%, #4ECDC4 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}

/* ========== Loading Animation ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-character {
    font-size: 5rem;
    animation: bounceLoader 0.6s ease-in-out infinite;
}

@keyframes bounceLoader {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-35px) scale(1.1); }
}

/* ========== Confetti ========== */
.confetti-piece {
    position: fixed;
    width: 12px;
    height: 12px;
    top: -15px;
    animation: confettiFall linear forwards;
    z-index: 9999;
    border-radius: 3px;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========== أزرار التنقل السفلية للموبايل ========== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    justify-content: space-around;
    padding: 8px 5px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 20px 20px 0 0;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #888;
    text-decoration: none;
    font-size: 0.7rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 15px;
}

.mobile-nav-item.active {
    color: var(--primary);
    background: #FFF5F5;
}

.mobile-nav-item .icon {
    font-size: 1.5rem;
}

/* ========== Toast Notifications ========== */
.notification-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    animation: slideDown 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: none;
}

.notification-toast.alert-success {
    background: linear-gradient(135deg, #4ECDC4, #34D399);
    color: white;
}

.notification-toast.alert-warning {
    background: linear-gradient(135deg, #FFE66D, #FFD93D);
    color: #333;
}

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(0); opacity: 1; }
    to { transform: translateX(-50%) translateY(-100px); opacity: 0; }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .mascot {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .mascot-speech {
        width: 180px;
        font-size: 0.8rem;
        bottom: 75px;
        right: -10px;
    }
    
    .feature-card {
        padding: 25px 18px;
        margin: 6px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .world-card {
        min-height: 250px;
        padding: 30px 20px;
    }
    
    .world-flag {
        font-size: 3.5rem;
    }
    
    .world-title {
        font-size: 1.4rem;
    }
    
    .btn-primary-custom {
        padding: 12px 28px;
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 8px 0;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    .footer {
        padding: 30px 0 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .feature-card {
        padding: 20px 15px;
        margin: 5px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .game-card {
        padding: 18px 12px;
    }
    
    .counter-number {
        font-size: 1.6rem;
    }
    
    .counter-item {
        padding: 15px;
    }
    .row {
  
    margin-top: 80px;
}
.mascot {
    
    margin-bottom: 80px;
}
.mascot-speech {
   
    margin-bottom: 80px;
}
}