/* Core Variables */
:root {
    --primary-gradient: linear-gradient(45deg, #667eea, #764ba2);
    --secondary-gradient: linear-gradient(45deg, #ff6b6b, #ee5a24);
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a2e;
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-glow: rgba(102, 126, 234, 0.5);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Hero Section - Enhanced */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 50%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-elements i {
    position: absolute;
    color: rgba(138, 43, 226, 0.3);
    font-size: 2rem;
    animation: float3d 15s infinite ease-in-out;
}

@keyframes float3d {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
    }
    75% {
        transform: translate(-20px, 30px) scale(0.8);
    }
}

.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary-gradient);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

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

.hero-title {
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.title-sub {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.8rem;
    margin-bottom: 50px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stat {
    text-align: center;
    position: relative;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.cta-button {
    background: var(--primary-gradient);
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.cta-button i {
    margin-right: 10px;
}

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

/* Free Course Banner */
.free-course-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.free-course-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

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

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge-free {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.free-course-banner h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
}

.free-course-banner p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.launch-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.launch-date {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.early-bird {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 25px;
}

/* Course Path */
.course-path {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
}

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

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.path-container {
    position: relative;
}

.path-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
}

.level-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.level-card:hover, .level-card.expanded {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.level-number-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.level-icon-main {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.level-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    flex: 1;
}

.expand-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.level-card.expanded .expand-btn {
    transform: rotate(180deg);
}

.level-content-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.level-card.expanded .level-content-expanded {
    max-height: 1000px;
}

.level-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin: 20px 0;
}

.level-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.detail-section h4 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.detail-section ul {
    list-style: none;
}

.detail-section li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    border-left: 3px solid var(--border-glow);
    padding-left: 15px;
    margin-bottom: 10px;
}

.project-preview, .file-structure, .final-cta {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.final-cta {
    text-align: center;
    margin-top: 40px;
}

.final-enroll-btn {
    background: var(--secondary-gradient);
    border: none;
    padding: 20px 60px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.final-enroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
}

/* Skills Preview Section */
.skills-preview {
    margin: 40px 0;
}

.skills-preview h4 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Footer with Personal Touch */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bio h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.emoji-wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.footer-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 300;
}

.footer-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.footer-contact {
    margin: 40px 0;
}

/* Footer Links Grid */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.discord-btn {
    background: #7289da;
    color: white;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-btn i {
    margin-left: 8px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.footer-copyright {
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* Floating Emojis */
.floating-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.emoji-float {
    position: absolute;
    font-size: 2rem;
    animation: floatEmoji 8s ease-in-out infinite;
}

.emoji-float:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.emoji-float:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.emoji-float:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.emoji-float:nth-child(4) {
    top: 30%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50px) rotate(-10deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title .title-main {
        font-size: 3.5rem;
    }
    
    .hero-title .title-sub {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .level-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .level-header {
        flex-wrap: wrap;
    }
    
    .footer-bio h3 {
        font-size: 2rem;
    }
    
    .footer-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .emoji-float {
        font-size: 1.5rem;
    }
    
    .free-course-banner h2 {
        font-size: 1.8rem;
    }
    
    .free-course-banner p {
        font-size: 1.1rem;
    }
}