/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #e50914;
    /* Netflix Red-ish */
    --secondary-color: #b3b3b3;
    --background-color: #141414;
    --surface-color: #1f1f1f;
    --text-color: #ffffff;
    --text-muted: #8c8c8c;
    --nav-bg: rgba(20, 20, 20, 0.9);
    --card-bg: #1f1f1f;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --primary-color: #e50914;
    --secondary-color: #555555;
    --background-color: #f5f5f5;
    --surface-color: #ffffff;
    --text-color: #141414;
    --text-muted: #666666;
    --nav-bg: rgba(245, 245, 245, 0.95);
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loading svg polyline {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.loading svg polyline#back {
    fill: none;
    stroke: #333333;
}

.loading svg polyline#front {
    fill: none;
    stroke: var(--primary-color);
    stroke-dasharray: 48, 144;
    stroke-dashoffset: 192;
    animation: dash_682 1.4s linear infinite;
}

@keyframes dash_682 {
    72.5% {
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed), padding var(--transition-speed);
}

nav.scrolled {
    background-color: var(--nav-bg);
    padding: 15px 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 48px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 18px;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Header */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    padding-top: 80px;
    /* nav height */
    position: relative;
    background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.1), transparent 40%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
}

.header-text {
    flex: 1;
}

.logo-wrapper {
    font-size: 4rem;
    font-weight: 900;
    display: flex;
    line-height: 1;
    margin-bottom: 20px;
}

.logo-white {
    color: var(--text-color);
}

.logo-collapse {
    color: var(--text-muted);
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    vertical-align: bottom;
    animation: breathe-logo 10s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes breathe-logo {

    0%,
    10% {
        max-width: 0;
        opacity: 0;
    }

    15%,
    45% {
        max-width: 3ch;
        opacity: 0.5;
    }

    50%,
    100% {
        max-width: 0;
        opacity: 0;
    }
}

.logo-red {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c40812;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.header-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: rotate(-5deg);
    transition: transform 0.5s;
}

.header-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Sections General */
section {
    padding: 80px 5%;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--secondary-color);
}

/* How It Works */
.how-it-works,
.active-rooms,
.gallery,
.testimonials,
.faq,
.contact,
.download-section {
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    text-align: left;
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
}

/* Active Rooms */
.search-container {
    margin-bottom: 40px;
}

.search-input {
    padding: 12px 20px;
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    border: 1px solid var(--text-muted);
    background-color: var(--surface-color);
    color: var(--text-color);
    font-size: 1rem;
}

/* Room Card Apple Style Redesign */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.room-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.room-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.room-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.room-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Glassmorphism Overlay */
.room-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.room-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.room-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hide button by default, maybe show on hover or make entire card clickable */
.join-btn-small {
    display: none;
}

/* Refined Live Badge */
.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(229, 9, 20, 0.85);
    /* Slightly transparent red */
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.join-btn-small:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Gallery */
.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.gallery-item img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.testimonial-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: left;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.testimonial-author {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.stars {
    color: gold;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

details.faq-item {
    background-color: var(--surface-color);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

details.faq-item[open] {
    background-color: var(--card-bg);
    /* slightly brighter or different */
    border-color: rgba(255, 255, 255, 0.1);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
    color: var(--primary-color);
}

details[open] summary::after {
    transform: rotate(45deg);
}

details.faq-item p {
    padding: 0 20px 20px 20px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-top: -10px;
    /* Slight pull up */
    animation: fadeDown 0.3s ease-out;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: var(--surface-color);
    color: var(--text-color);
    font-family: inherit;
}

/* Download */
.download-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.download-content {
    flex: 1;
}

.download-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.download-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .download-container {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--surface-color);
    color: var(--text-color);
    box-shadow: var(--shadow);
}

.download-btn svg {
    fill: currentColor;
    transition: transform 0.3s;
}

.download-btn:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.download-btn:hover svg {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #000;
    padding: 50px 5%;
    text-align: center;
    color: var(--text-muted);
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s;
}

.social-icons a:hover .social-icon {
    stroke: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: 80%;
    position: relative;
    border-radius: var(--border-radius);
}

.close-modal {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

.privacy-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s;
    z-index: 1500;
}

.cookie-banner.show {
    bottom: 0;
}

/* Back to Top */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
}

#backToTop:hover {
    background-color: #c40812;
}

/* Sponsors */
.sponsors {
    padding: 60px 5%;
    text-align: center;
    background-color: var(--surface-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sponsors-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.sponsors-container img {
    height: 35px;
    width: auto;
    object-fit: contain;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.sponsors-container img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        padding-top: 50px;
    }

    nav ul.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-content {
        flex-direction: column-reverse;
        padding-top: 80px;
    }

    .logo-wrapper {
        font-size: 2.5rem;
        justify-content: center;
    }

    .header-text {
        text-align: center;
    }

    .subtitle {
        margin: 0 auto 30px;
    }
}

/* Video Feature Sections */
.video-feature {
    padding: 100px 5%;
    overflow: hidden;
}

.video-feature-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.video-text {
    flex: 1;
    text-align: left;
}

.video-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.video-text h2 span {
    color: var(--primary-color);
}

.video-text p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.video-wrapper {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    /* Smooth fade at bottom to blend with bg if needed, or clear */
}

.video-feature-reverse .video-feature-container {
    flex-direction: row-reverse;
}

.platform-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.platform-tag {
    background-color: var(--surface-color);
    border: 1px solid var(--text-muted);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .video-feature {
        padding: 60px 5%;
    }

    .video-feature-container {
        flex-direction: column;
        text-align: center;
    }

    .video-feature-reverse .video-feature-container {
        flex-direction: column;
    }

    .video-text {
        text-align: center;
        margin-bottom: 30px;
    }

    .platform-icons {
        justify-content: center;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}