* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Netflix-style header */
.netflix-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1000;
    padding: 20px 40px;
    transition: background 0.3s ease;
}

.netflix-header.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e50914;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-menu li:hover {
    color: #e50914;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23141414"/><stop offset="100%" style="stop-color:%23000"/></linearGradient></defs><rect width="1200" height="600" fill="url(%23bg)"/><circle cx="200" cy="150" r="3" fill="%23e50914" opacity="0.6"/><circle cx="800" cy="300" r="2" fill="%23fff" opacity="0.3"/><circle cx="1000" cy="100" r="2" fill="%23e50914" opacity="0.4"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
}

.series-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #e50914, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
}

.series-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ccc;
    font-weight: 300;
}

.series-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #999;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: #e50914;
    color: white;
}

.btn-primary:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

/* Episodes Section */
.episodes-section {
    padding: 80px 40px;
    background: #111;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: #fff;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.episode-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.episode-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.2);
    border-color: #e50914;
}

.episode-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #e50914, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.episode-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.episode-card:hover .episode-thumbnail::before {
    transform: translateX(100%);
}

.episode-content {
    padding: 25px;
}

.episode-number {
    color: #e50914;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.episode-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.episode-description {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 20px;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.episode-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.episode-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Skills Section */
 /* Skills Section */
 .skills-section {
    padding: 80px 40px;
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.arsenal-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
}

.carousel-container {
    position: relative;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 30px;
    width: 100%;
    /* CRITICAL: Prevent overflow */
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    /* FIXED: Remove width: fit-content */
    width: 100%;
}

.skill-card {
    /* FIXED: Use flexible sizing */
    flex: 0 0 300px; /* Fixed width but flexible */
    min-width: 280px;
    max-width: 320px;
    background: linear-gradient(145deg, rgba(229, 9, 20, 0.1), rgba(0, 0, 0, 0.8));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(229, 9, 20, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.3);
    border-color: rgba(229, 9, 20, 0.6);
}

.skill-icon-large {
    font-size: 3rem;
    color: #e50914;
    margin-bottom: 20px;
}

.skill-category {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-tag:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.5);
    transform: scale(1.05);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.carousel-btn {
    background: rgba(229, 9, 20, 0.8);
    border: 2px solid rgba(229, 9, 20, 1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(229, 9, 20, 1);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #e50914;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e50914, #ff4757);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skill-card {
        flex: 0 0 280px;
        min-width: 260px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: 60px 20px;
    }
    
    .skill-card {
        flex: 0 0 260px;
        min-width: 240px;
        max-width: 280px;
        padding: 20px;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .carousel-container {
        padding: 15px;
    }
    
    .skill-category {
        font-size: 1.2rem;
    }
    
    .skill-icon-large {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .skill-card {
        flex: 0 0 240px;
        min-width: 220px;
        max-width: 260px;
        padding: 15px;
    }
    
    .skill-icon-large {
        font-size: 2rem;
    }
    
    .skill-category {
        font-size: 1.1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 40px;
    background: #111;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-link:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: #e50914;
    transform: translateY(-3px);
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .netflix-header {
        padding: 15px 20px;
    }

    .nav-menu {
        display: none;
    }

    .series-title {
        font-size: 2.5rem;
    }

    .series-subtitle {
        font-size: 1.3rem;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #e50914, #ff6b6b);
    z-index: 1001;
    transition: width 0.1s ease;
}