* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a2e;
    --accent-purple: #7c3aed;
    --accent-purple-light: #a78bfa;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

body {
    font-family: 'Segoe UI', 'Courier New', Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ====== TOP NAVIGATION BAR ====== */
.topbar {
    background-color: var(--primary-dark);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.topbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-button {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

/* ====== MAIN CONTAINER ====== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 40px;
    min-height: 100vh;
    background-color: var(--primary-dark);
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====== HERO SECTION ====== */
.hero {
    margin: 40px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* ====== EXPANSION CARD ====== */
.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    align-items: center;
}

.expansion-card {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #2a1a4a, #1a0a2a);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.expansion-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.3);
    transform: translateY(-5px);
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a2a5a, #2a1a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(124, 58, 237, 0.3);
}

.icon-large {
    font-size: 80px;
    opacity: 0.5;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(167, 139, 250, 0.2));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

.expansion-card:hover .card-image-overlay {
    opacity: 1;
}

.card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.6s ease;
    z-index: 3;
}

.card-title-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.expansion-card:hover .card-title-overlay {
    opacity: 0;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(167, 139, 250, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.6s ease;
    text-align: center;
    z-index: 4;
}

.expansion-card:hover .card-overlay {
    opacity: 1;
}

.expansion-card:hover .card-image {
    opacity: 0;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

.card-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-purple-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ====== PROJECTS GRID ====== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.project-card {
    background: linear-gradient(135deg, var(--secondary-dark), #2a1a4a);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.project-category {
    display: inline-block;
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-purple-light);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 15px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

/* ====== VIDEOS SECTION ====== */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 50px 0;
}

.video-card {
    background: linear-gradient(135deg, var(--secondary-dark), #2a1a4a);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.video-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
}

.video-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.video-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
}

.video-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.video-card.expanded .video-content,
.video-card:hover .video-content {
    max-height: 500px;
    margin-top: 15px;
}

.video-overlay {
    display: none;
}

.video-card:hover .video-overlay {
    display: none;
}


.video-description {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.video-description::-webkit-scrollbar {
    width: 8px;
}

.video-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.video-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.video-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.watch-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.watch-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ====== EPISODES SECTION ====== */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.episode-card {
    background: linear-gradient(135deg, var(--secondary-dark), #2a1a4a);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.episode-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
    transform: translateY(-5px);
}

.episode-card.expanded {
    background: linear-gradient(135deg, #3a2a6a, #2a1a4a);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
}

.episode-card.expanded .episode-title {
    font-size: 26px;
}

.episode-card.expanded .episode-description {
    font-size: 15px;
    line-height: 1.8;
}

.episode-card.expanded .episode-tasks li {
    font-size: 14px;
}

.episode-card .episode-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.episode-card.expanded .episode-content {
    max-height: 600px;
    overflow-y: auto;
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.episode-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 1px;
}

.episode-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.episode-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.episode-status.in-progress {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.episode-status.upcoming {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple-light);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.episode-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.episode-content {
    margin-bottom: 20px;
}

.episode-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.episode-tasks h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-purple-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.episode-tasks ul {
    list-style: none;
    padding: 0;
}

.episode-tasks li {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.episode-tasks li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

.episode-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.meta-item {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-purple-light);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ====== PROGRESS SECTION ====== */
.progress-section {
    background: linear-gradient(135deg, var(--secondary-dark), #2a1a4a);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-percentage {
    color: var(--accent-purple);
    font-size: 18px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-purple-light));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-details p {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-details strong {
    color: var(--accent-purple-light);
}

/* ====== BUTTONS ====== */
button {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

button:active {
    transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .topbar-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .container {
        padding: 100px 20px 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .expansion-card:hover {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
