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

:root {
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-purple: #8b5cf6;
    --neon-orange: #ff6b35;
    --bg-black: #0a0a0f;
    --bg-darker: #050505;
    --glass-bg: rgba(10, 10, 15, 0.7);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-black);
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        var(--neon-purple), 
        var(--neon-cyan), 
        var(--neon-pink), 
        var(--neon-orange));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

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

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan),
                 0 0 20px var(--neon-cyan),
                 0 0 30px var(--neon-cyan);
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-text-alt {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink),
                 0 0 20px var(--neon-pink),
                 0 0 30px var(--neon-pink);
    animation: neonPulse 2s ease-in-out infinite 1s;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* Search */
.search-container {
    position: relative;
}

.search-input {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    width: 300px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: rgba(10, 10, 15, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(20px);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.search-results.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(139, 92, 246, 0.2);
    border-left: 3px solid var(--neon-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.glow-text {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8),
                 0 0 40px rgba(139, 92, 246, 0.6),
                 0 0 60px rgba(139, 92, 246, 0.4);
}

.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
}

@keyframes gradientText {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(45deg); }
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.neon-button {
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
}

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

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

.neon-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.8),
                inset 0 0 40px rgba(0, 255, 255, 0.2);
}

/* Featured Carousel */
.featured-carousel {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 500px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.carousel-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

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

.carousel-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--neon-pink);
    background: rgba(255, 0, 255, 0.1);
    color: var(--neon-pink);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.carousel-btn:hover {
    background: rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.6);
    transform: scale(1.1);
}

/* Marquee */
.marquee-container {
    margin: 40px 0;
    padding: 20px 0;
    background: rgba(255, 0, 255, 0.1);
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    overflow: hidden;
}

.marquee {
    display: flex;
    animation: marqueeScroll 20s linear infinite;
    white-space: nowrap;
}

.marquee span {
    padding: 0 50px;
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Filters */
.filters-section {
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--neon-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

/* Video Section */
.video-section {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    padding-left: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
}

.video-card {
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    transform-style: preserve-3d;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0) 0%, 
        rgba(255, 0, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.video-card:hover::before {
    opacity: 1;
}

.video-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.6),
                0 0 40px rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.5);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.1);
}

.video-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    min-height: 300px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    z-index: 10000;
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(139, 92, 246, 0.4);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transform: rotate(90deg);
}

.player-container {
    width: 100%;
}

#videoPlayerContainer {
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 15px;
    margin-bottom: 20px;
}

#videoPlayerContainer iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.video-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-column h4 {
    color: var(--neon-cyan);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--neon-pink);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .hero-title {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .carousel-item {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 200px;
    }
}