/* Modern Homepage Styles */

/* Modern Hero Section */
.modern-hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.modern-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.hero-content-modern {
    position: relative;
    z-index: 3;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.accent-text {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.hero-description-modern {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
}

.hero-actions-modern {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-modern {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Hero Image Section */
.hero-image-modern {
    position: relative;
    z-index: 3;
}

.main-hero-image {
    position: relative;
    z-index: 2;
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    animation: floatCard 6s infinite ease-in-out;
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--primary-color, #007bff);
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 30%;
    right: -15%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 30%;
    left: -20%;
    animation-delay: 3s;
}

.card-4 {
    bottom: 10%;
    right: -10%;
    animation-delay: 4.5s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Modern Features Section */
.modern-features-section {
    background: #f8f9fa;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-description-modern {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card-modern {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Modern Testimonials Section */
.modern-testimonials-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    color: white;
}

.testimonial-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    color: #333;
}

.testimonial-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonial-rating {
    color: #ffd700;
}

.testimonial-content {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-footer {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.testimonial-course {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modern CTA Section */
.modern-cta-section {
    background: #f8f9fa;
    position: relative;
}

.cta-container-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-container-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: ctaBackground 20s infinite ease-in-out;
}

@keyframes ctaBackground {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

.cta-content-modern {
    position: relative;
    z-index: 2;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.cta-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-description-modern {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-actions-modern {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cta-features {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cta-feature i {
    color: #ffd700;
}

/* Arabic Learning Levels Section */
.arabic-levels-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

.arabic-levels-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(168, 85, 163, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 93, 35, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.levels-call-to-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.levels-call-to-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.levels-call-to-action i {
    font-size: 0.9rem;
}

.levels-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.level-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.level-item:hover {
    transform: translateY(-8px);
}

.level-box {
    width: 140px;
    height: 100px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.level-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.level-box:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.level-box:hover::before {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.level-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.level-description {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 160px;
    line-height: 1.4;
}

/* Level Specific Colors */
.level-a1 .level-box::before {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.level-a2 .level-box::before {
    background: linear-gradient(90deg, var(--primary-light), #c084c5);
}

.level-a2b1 .level-box::before {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

.level-b1b2 .level-box::before {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

.level-b2plus .level-box::before {
    background: linear-gradient(90deg, #629e45, #92b295);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .floating-card {
        display: none;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .cta-title-modern {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-actions-modern {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-container-modern {
        padding: 40px 20px;
    }
    
    .cta-actions-modern {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Arabic Levels Responsive */
    .levels-container {
        gap: var(--spacing-xs);
    }
    
    .level-box {
        width: 120px;
        height: 90px;
    }
    
    .level-number {
        font-size: 1.3rem;
    }
    
    .level-description {
        font-size: 0.85rem;
        max-width: 140px;
    }
}

@media (max-width: 576px) {
    .hero-title-modern {
        font-size: 1.8rem;
    }
    
    .section-title-modern {
        font-size: 1.8rem;
    }
    
    .cta-title-modern {
        font-size: 1.8rem;
    }
    
    .feature-card-modern {
        padding: 24px;
    }
    
    .testimonial-card-modern {
        padding: 24px;
    }
    
    /* Arabic Levels Mobile */
    .levels-call-to-action {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .levels-container {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }
    
    .level-box {
        width: 100px;
        height: 80px;
    }
    
    .level-number {
        font-size: 1.1rem;
    }
    
    .level-description {
        font-size: 0.8rem;
        max-width: 120px;
    }
}
