:root {
    --primary-neon: #00f3ff;
    --secondary-neon: #ff0055;
    --bg-color: #050505;
    --text-color: #ffffff;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
a,
.nav-btn,
.social-link-card {
    cursor: pointer !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 2000px;
}

.grid-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotateX(45deg);
    z-index: -1;
    pointer-events: none;
}

.main-container {
    width: 90%;
    max-width: 800px;
    height: 850px;
    /* Increased to prevent cutting off contents */
    perspective: 3000px;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform-style: preserve-3d;
}

.card-face::-webkit-scrollbar {
    display: none;
}

.card-face-0 {
    transform: rotateY(0deg) translateZ(450px);
}

.card-face-1 {
    transform: rotateY(90deg) translateZ(450px);
}

.card-face-2 {
    transform: rotateY(180deg) translateZ(450px);
}

.card-face-3 {
    transform: rotateY(270deg) translateZ(450px);
}

.header {
    margin-bottom: 1rem;
    text-align: center;
}

h1 {
    font-weight: 900;
    font-size: 3.2rem;
    letter-spacing: -2px;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--primary-neon), #fff, var(--primary-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-neon);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.external-nav {
    position: absolute;
    bottom: -60px;
    /* Adjusted spacing */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1000;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.nav-btn:hover,
.nav-btn.active {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-neon);
    color: var(--primary-neon);
}

.hive-home {
    padding: 0.6rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hive-home svg {
    transition: transform 0.3s ease;
}

.hive-home:hover svg {
    transform: scale(1.1);
}

.nav-btn.stream-link.live {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
    text-shadow: 0 0 10px var(--secondary-neon);
}

.nav-btn.stream-link.live:hover {
    background: var(--secondary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--secondary-neon);
}

.terminal-box {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--primary-neon);
    border-radius: 8px;
    padding: 1.5rem 1rem 1rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    height: 160px;
    overflow: hidden;
    position: relative;
    margin: 1rem 0;
}

.terminal-box::before {
    content: 'SYSTEM_CONSOLE';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.65rem;
    color: var(--primary-neon);
    opacity: 0.4;
}

.terminal-prompt {
    color: var(--secondary-neon);
    margin-right: 8px;
}

.terminal-output {
    color: var(--primary-neon);
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 40px;
    margin: 1rem 0;
}

.bar {
    width: 4px;
    background: var(--primary-neon);
    height: 100%;
    animation: wave 1s infinite ease-in-out;
}

@keyframes wave {

    0%,
    100% {
        height: 20%;
    }

    50% {
        height: 100%;
    }
}

.stream-container-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s ease;
}

.stream-container-visible {
    max-height: 500px;
    opacity: 1;
    margin: 1.5rem 0;
}

.stream-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.stream-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.play-btn {
    display: block;
    margin: 1rem auto;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    font-weight: 700;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
}

.info-list {
    text-align: left;
    margin: 1rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.info-list b {
    color: var(--primary-neon);
}

.info-item {
    margin-bottom: 0.8rem;
}

.social-link-card {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    /* Ensure it's clickable */
    cursor: pointer !important;
}

.social-link-card:hover {
    border-color: var(--primary-neon);
    background: rgba(0, 243, 255, 0.1);
}