:root {
    --bg-dark: #050508;
    --text-main: #f0f0f0;
    --neon-cyan: #00f3ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff007f;
    --glass-bg: rgba(15, 15, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography & Colors */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

/* 3D Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through to UI */
}

/* UI Overlays */
.ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Glassmorphism Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.logo-number {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    font-style: italic;
}

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-purple);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-purple);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Sections General */
.section {
    min-height: 100vh;
    padding: 100px 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-header.right-align {
    flex-direction: row-reverse;
}

.section-title {
    font-size: 3rem;
    letter-spacing: 5px;
    color: transparent;
    -webkit-text-stroke: 1px var(--neon-cyan);
    position: relative;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-cyan);
    width: 0%;
    overflow: hidden;
    transition: width 0.5s ease;
    white-space: nowrap;
}

.section:hover .section-title::before {
    width: 100%;
}

.center-title {
    text-align: center;
    margin-bottom: 60px;
}

.h-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.right-align .h-line {
    background: linear-gradient(270deg, var(--neon-pink), transparent);
}

/* 1. Landing Hero */
#landing {
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.glitch-text {
    font-size: 7rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: white;
    letter-spacing: -2px;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(5% 0 80% 0); }
}

.neon-text {
    font-size: 1.5rem;
    color: var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple), 0 0 20px var(--neon-purple);
    letter-spacing: 8px;
    font-weight: 300;
    text-transform: uppercase;
}

.hero-subtext {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin-top: 10px;
}

.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 2. News Hub */
.news-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    perspective: 1000px;
    flex-wrap: wrap;
}

.glass-card {
    width: 320px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.15);
    border-color: rgba(0, 243, 255, 0.4);
}

.center-card {
    transform: translateZ(50px);
}
.center-card:hover {
    transform: translateZ(50px) translateY(-10px) rotateX(5deg) scale(1.02);
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(5,5,8,0.9));
}

.card-content {
    padding: 25px;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.tag.cyan { background: rgba(0, 243, 255, 0.2); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.tag.purple { background: rgba(176, 38, 255, 0.2); color: var(--neon-purple); border: 1px solid var(--neon-purple); }
.tag.pink { background: rgba(255, 0, 127, 0.2); color: var(--neon-pink); border: 1px solid var(--neon-pink); }

.glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.glass-card p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.5;
}

.neon-btn {
    background: transparent;
    color: #fff;
    border: 1px solid var(--neon-cyan);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.neon-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan);
}

/* 3. Zona Video (TikTok style horizontal array) */
.video-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 500px;
}

.video-panel {
    width: 250px;
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.6;
    transform: scale(0.9);
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.video-panel.active-video {
    width: 300px;
    height: 500px;
    opacity: 1;
    transform: scale(1);
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.3);
    z-index: 2;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(5,5,8,1), rgba(5,5,8,0.2) 50%, transparent);
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 3;
    transition: all 0.3s ease;
}

.video-panel:hover .play-btn {
    transform: scale(1.1);
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

.video-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3;
}

.video-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.video-info p {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 300;
}

/* 4. Meme Wall */
.infinite-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.infinite-scroll-wrapper::before,
.infinite-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.infinite-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.infinite-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.meme-track {
    display: flex;
    width: calc(300px * 8); /* 4 unique memes * 2 times * width */
    animation: scroll-x 20s linear infinite;
    gap: 20px;
}

.meme-track:hover {
    animation-play-state: paused;
}

.meme-card {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.meme-card:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 20px rgba(176, 38, 255, 0.2);
    z-index: 5;
}

.meme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scroll-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 4)); }
}

/* 5. Interactive Section (Polls & Interviews) */
.interactive-interviews-polls-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.glass-panel h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
}

/* Polls */
.poll-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 15px;
}

.poll-option .label {
    width: 150px;
    font-size: 0.95rem;
    font-weight: 500;
}

.bar-bg {
    flex-grow: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cyan-glow { background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
.purple-glow { background: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); }
.pink-glow { background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }

.poll-option .percent {
    width: 50px;
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

/* Interviews */
.avatars-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-item span {
    font-size: 0.8rem;
    color: #aaa;
}

.avatar-item:hover {
    transform: translateY(-5px);
}

.avatar-item:hover img, .avatar-item.active img {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.avatar-item.active span {
    color: var(--neon-cyan);
}

.qa-display {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 12px;
    min-height: 120px;
    border-left: 4px solid var(--neon-cyan);
    position: relative;
    overflow: hidden;
}

.qa-display .question {
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.qa-display .answer {
    color: #ddd;
    font-style: italic;
    line-height: 1.6;
}

/* Footer */
.glass-footer {
    padding: 30px 50px;
    background: rgba(5, 5, 8, 0.8);
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

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

.footer-content p {
    font-size: 0.9rem;
    color: #888;
}

/* Dynamic Backgrounds (Unsplash Placeholders for High-End Look) */
.bg-news-1 { background-image: url('https://images.unsplash.com/photo-1633424160472-886801c107bf?q=80&w=600'); }
.bg-news-2 { background-image: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=600'); }
.bg-news-3 { background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=600'); }

.bg-vid-1 { background-image: url('https://images.unsplash.com/photo-1571210904423-f308cc4bbfd6?q=80&w=600'); }
.bg-vid-2 { background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=600'); }
.bg-vid-3 { background-image: url('https://images.unsplash.com/photo-1542751110-97427bbecf20?q=80&w=600'); }

/* Responsive */
@media (max-width: 968px) {
    .glitch-text { font-size: 4rem; }
    .interactive-interviews-polls-container {
        grid-template-columns: 1fr;
    }
    .video-carousel {
        flex-direction: column;
        height: auto;
    }
    .video-panel {
        width: 100%;
        max-width: 350px;
        height: 200px;
        transform: scale(1);
    }
    .video-panel.active-video {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
}
