* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}


/* Navbar responsive styles */

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s ease-in-out;
        z-index: 999;
    }
    .nav-links.show {
        left: 0;
    }
    .nav-item {
        margin: 1rem 0;
        font-size: 1.2rem;
    }
}

html {
    font-size: 16px;
}

@media screen and (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 12px;
    }
}

 :root {
    --primary-bg: linear-gradient(135deg, #1b1b1d, #313d5d);
    --text-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.15);
}

.light-mode {
    --primary-bg: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    --text-color: #333;
    --card-bg: rgba(255, 255, 255, 0.8);
    --hover-bg: rgba(255, 255, 255, 0.95);
}

body {
    background: var(--primary-bg);
    color: var(--text-color);
    perspective: 1000px;
    transition: all 0.3s ease;
}

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #0088cc;
}

.navbar {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.nav-item.active {
    background: var(--hover-bg);
    color: #0088cc;
}

.nav-item i {
    margin-right: 5px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: all 0.3s ease;
    }
    .nav-links.show {
        left: 0;
    }
    .mobile-menu {
        display: block;
    }
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
    transform-style: preserve-3d;
}

header {
    text-align: center;
    padding: 2rem 0;
    transform-style: preserve-3d;
    animation: headerFloat 5s ease-in-out infinite;
}

@keyframes headerFloat {
    0%,
    100% {
        transform: translateZ(0px) rotateX(0deg);
    }
    50% {
        transform: translateZ(50px) rotateX(5deg);
    }
}

.logo {
    width: 180px;
    height: 180px;
    transform-style: preserve-3d;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    transform-style: preserve-3d;
}

.channel-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
}

.channel-card:hover {
    transform: translateY(-20px) rotateY(15deg) translateZ(50px);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    background: var(--hover-bg);
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    transform: translateZ(-1px);
    border-radius: 15px;
}

.channel-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(0.9);
}

.channel-card:hover .channel-logo {
    transform: rotateY(360deg) scale(1.1);
    filter: brightness(1.1);
}

.join-btn {
    background: #0088cc;
    color: white;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 800;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.join-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.join-btn:hover {
    background: #006699;
    transform: scale(1.05) translateZ(30px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.join-btn:hover::after {
    left: 100%;
}

@media (max-width: 768px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
    .channel-card:hover {
        transform: translateY(-10px) rotateY(5deg) translateZ(20px);
    }
    .nav-links {
        display: none;
    }
    .navbar {
        padding: 1rem;
    }
    .mobile-menu {
        display: block;
    }
}

.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: var(--hover-bg);
    transform: translateY(-5px);
}

h1,
h2,
p {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

h1:hover,
h2:hover {
    transform: translateZ(20px);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    color: #0088cc;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0088cc;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(100px);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.search-bar {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-color);
    outline: none;
    width: 200px;
}

.search-bar i {
    color: var(--text-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}