/* Global Variables */
:root {
    --bg-dark: #141414;
    --bg-lighter: #181818;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --primary: #E50914;
    /* Netflix Red */
    --primary-hover: #b20710;
    --text-light: #ffffff;
    --text-dim: #b3b3b3;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Bebas Neue', display;
    /* Cinematic Font */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #333 #141414;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    /* Wider for cinematic feel */
    margin: 0 auto;
    padding: 0 4%;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.relative-z {
    position: relative;
    z-index: 2;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 4px;
    /* Netflix buttons are squarer */
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #7c7c7c;
    color: #7c7c7c;
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.2rem;
}

.btn-xl {
    padding: 20px 50px;
    font-size: 1.5rem;
}

/* Navbar */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, rgba(0, 0, 0, 0));
    /* Gradient overlay instead of solid */
    transition: background-color 0.4s;
}

header.scrolled {
    background-color: #141414;
    /* Solid black when scrolled */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    width: 120px;
    height: auto;
}

.nav-logo {
    width: 100%;
    object-fit: contain;
    /* In case the logo is dark text on transparent, we might need a filter. 
       Assuming the uploaded logo works well on dark, otherwise: filter: invert(1); */
}

.main-nav {
    display: none;
    /* Hidden on mobile */
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #e5e5e5;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a.active,
.main-nav a:hover {
    color: #b3b3b3;
}

.btn-nav {
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 85vh;
    /* Cinematic aspect */
    position: relative;
    display: flex;
    align-items: center;
    background:
        url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #141414 10%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(to right, #141414 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    padding-top: 60px;
}

.hero-badge {
    background-color: rgba(51, 51, 51, 0.6);
    padding: 5px 10px;
    border-left: 3px solid var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
}

.hero-title {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Carousel Section */
.catalog-section {
    padding: 20px 0 60px;
    background: #141414;
    overflow: hidden;
    /* Hide horizontal scrollbar of body */
}

.carousel-row {
    margin-bottom: 50px;
    position: relative;
}

.row-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #e5e5e5;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}

.carousel-container-outer {
    width: 100%;
    overflow: hidden;
    /* Enable hiding overflow for carousel wrapper */
    position: relative;
}

.carousel-track,
.carousel-track-reverse {
    display: flex;
    gap: 10px;
    width: max-content;
    /* Ensure width fits all children */
    padding: 20px 0;
    /* Space for hover scale */
}

.carousel-track {
    animation: scroll 60s linear infinite;
}

.carousel-track-reverse {
    animation: scroll-reverse 70s linear infinite;
}

/* Hover pauses animation */
.carousel-track:hover,
.carousel-track-reverse:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes duplication of content for infinite loop */
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.content-card {
    width: 250px;
    height: 140px;
    /* 16:9 thumbnails */
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0s;
    flex-shrink: 0;
    background-color: #222;
}

.content-card:hover {
    transform: scale(1.4);
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
}

.content-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.content-card:hover .content-info {
    opacity: 1;
}

.content-title {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
}

.content-tags {
    font-size: 0.7rem;
    color: #46d369;
    /* Match score color */
    margin-top: 2px;
}

/* Device Section */
.devices {
    padding: 80px 0;
    background-color: #000;
    text-align: center;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.device-card {
    background: #181818;
    padding: 40px 20px;
    border-radius: 8px;
    cursor: default;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.device-card:hover {
    background: #222;
}

.device-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #e5e5e5;
}

.device-card h3 {
    font-family: var(--font-main);
    font-weight: 400;
}

/* Plans Section - Enhanced Visuals */
.plans {
    padding: 100px 0;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Featured Plan Effects */
.plan-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, rgba(229, 9, 20, 0.1) 0%, rgba(20, 20, 20, 0.8) 100%);
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.plan-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.6);
}

.plan-card.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.plan-card.featured:hover::before {
    opacity: 1;
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.5);
    letter-spacing: 1px;
}

.features-list {
    margin-bottom: 30px;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e5e5e5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    font-size: 1.05rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--primary);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(229, 9, 20, 0.5));
}

/* Guarantee */
.guarantee-content {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.guarantee-icon {
    font-size: 3rem;
    color: #e5e5e5;
}

/* Final CTA */
.final-cta {
    padding: 120px 0;
    position: relative;
    background: url('../img/cta-bg-movies.png') no-repeat center center/cover;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(229, 9, 20, 0.85);
    /* Red overlay */
    mix-blend-mode: multiply;
}

.final-cta h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    padding: 50px 0;
    color: #757575;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 2rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* WhatsApp Sticky */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

.whatsapp-label {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-sticky:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

.email-signup-mock {
    display: inline-block;
}

/* Specific fix for Channel Logos to prevent cropping */
#track-channels .content-card {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    /* Reverted to transparent */
    background-position: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (min-width: 768px) {
    .main-nav {
        display: block;
    }

    .device-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .guarantee-content {
        flex-direction: row;
        text-align: left;
    }
}

/* FAQ Widget Styles */
.faq-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    background-color: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #333;
}

.faq-widget.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.faq-header {
    background-color: var(--primary);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.faq-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-main);
}

.faq-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.faq-content {
    max-height: 400px;
    overflow-y: auto;
}

.faq-item {
    border-bottom: 1px solid #333;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e5e5;
    background: #1f1f1f;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #2a2a2a;
}

.faq-question i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: #252525;
    color: #b3b3b3;
    font-size: 0.9rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 15px 20px;
    max-height: 200px;
    /* Arbitrary limit for animation */
}

.faq-footer {
    padding: 15px 20px;
    background: #141414;
    text-align: center;
    border-top: 1px solid #333;
}

.faq-footer p {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin-bottom: 10px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive adjustment for FAQ */
@media (max-width: 480px) {
    .faq-widget {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 100px;
    }
}

/* Super Responsive Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 5%;
    }

    /* Navbar */
    .logo-container {
        width: 100px;
    }

    .btn-nav {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        padding-top: 100px;
    }

    .hero-badge {
        margin: 0 auto 20px auto;
        display: inline-block;
    }

    /* Carousel */
    .catalog-section {
        padding-bottom: 40px;
    }

    .content-card {
        width: 160px;
        height: 90px;
        /* Smaller cards for mobile */
    }

    .row-title {
        font-size: 1.2rem;
    }

    /* Device Section */
    .devices {
        padding: 50px 0;
    }

    .device-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols is fine for mobile */
        gap: 10px;
    }

    .device-card {
        padding: 20px 10px;
    }

    .device-card i {
        font-size: 2rem;
    }

    .device-card h3 {
        font-size: 0.9rem;
    }

    .device-cta a {
        width: 100%;
        font-size: 1rem;
        padding: 15px;
    }

    /* Plans Section */
    .plan-card .price {
        font-size: 2.5rem;
    }

    .plan-card h3 {
        font-size: 1.5rem;
    }

    /* Final CTA */
    .final-cta h2 {
        font-size: 2.5rem;
    }

    .final-cta p {
        font-size: 1.1rem;
    }

    .whatsapp-final-link {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}