/* style.css - Third Fusion Futuristic Cybernetic Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg-dark: #05070f;
    --bg-surface: #0a0e1a;
    --bg-card: rgba(12, 18, 36, 0.65);
    --bg-card-hover: rgba(20, 30, 58, 0.85);
    --border-color: rgba(0, 240, 255, 0.2);
    --border-glow: 0 0 20px rgba(0, 240, 255, 0.3);
    
    --cyber-cyan: #00f0ff;
    --cyber-purple: #9d00ff;
    --cyber-red: #ff0055;
    --cyber-emerald: #00ffaa;
    --cyber-gold: #ffbe00;
    --text-primary: #f0f4ff;
    --text-secondary: #8c9ba5;
    --text-muted: #516278;

    --font-heading: 'Orbitron', sans-serif;
    --font-subheading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Cyber Grid & Canvas — sits above robot image */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -4;
    pointer-events: none;
}

.cyber-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 50% 20%, rgba(0, 240, 255, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(157, 0, 255, 0.06) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(5, 7, 15, 0.2), rgba(5, 7, 15, 0.75));
    z-index: -5;
    pointer-events: none;
}


/* App Container */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-purple));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--cyber-cyan);
}

.brand-icon::after {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--bg-dark);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffffff, var(--cyber-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    color: var(--cyber-cyan);
    letter-spacing: 1px;
    background: rgba(0, 240, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyber-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyber-emerald);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-subheading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--cyber-cyan);
    background: rgba(0, 240, 255, 0.08);
    text-shadow: 0 0 10px var(--cyber-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--cyber-cyan);
    box-shadow: 0 0 8px var(--cyber-cyan);
}

.audio-toggle-btn {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--cyber-cyan);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.audio-toggle-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Page Views Container */
.main-content {
    flex: 1;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* LANDING PAGE (#home) */
.hero-header {
    text-align: center;
    margin-bottom: 50px;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cyber-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 30%, var(--cyber-cyan) 70%, var(--cyber-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.hero-privacy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    max-width: 960px;
    margin: 8px auto 0;
}

.privacy-badge {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyber-emerald);
    background: rgba(0, 255, 170, 0.06);
    border: 1px solid rgba(0, 255, 170, 0.22);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.08);
    transition: all 0.25s ease;
}

.privacy-badge:hover {
    background: rgba(0, 255, 170, 0.12);
    border-color: var(--cyber-emerald);
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.25);
}

/* PORTALS SECTION - 3 Horizontal Banner Boxes Stacking Vertically */
#view-home.view-section {
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

#view-home.view-section.active {
    display: flex;
}

@media (min-height: 700px) and (min-width: 1024px) {
    #view-home.view-section {
        min-height: calc(100vh - 140px);
    }
}

.portals-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    justify-content: space-between;
}

.portal-box {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 22px 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-height: 125px;
    gap: 28px;
}

/* Corner Cyber Decors */
.portal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-top: 3px solid var(--box-accent, var(--cyber-cyan));
    border-left: 3px solid var(--box-accent, var(--cyber-cyan));
    border-top-left-radius: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.portal-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid var(--box-accent, var(--cyber-cyan));
    border-right: 3px solid var(--box-accent, var(--cyber-cyan));
    border-bottom-right-radius: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.portal-box.youtube-portal {
    --box-accent: var(--cyber-red);
    --box-glow: rgba(255, 0, 85, 0.25);
    border-color: rgba(255, 0, 85, 0.3);
}

.portal-box.gamedev-portal {
    --box-accent: var(--cyber-purple);
    --box-glow: rgba(157, 0, 255, 0.25);
    border-color: rgba(157, 0, 255, 0.3);
}

.portal-box.app-portal {
    --box-accent: var(--cyber-emerald);
    --box-glow: rgba(0, 255, 170, 0.25);
    border-color: rgba(0, 255, 170, 0.3);
}

.portal-box:hover {
    transform: translateX(8px) scale(1.005);
    background: var(--bg-card-hover);
    border-color: var(--box-accent);
    box-shadow: 0 16px 50px var(--box-glow);
}

.portal-box:hover::before, .portal-box:hover::after {
    width: 70px;
    height: 70px;
    opacity: 1;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1.2;
    min-width: 0;
}

.banner-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.banner-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.portal-icon-wrapper {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.portal-icon {
    width: 36px;
    height: 36px;
    fill: var(--box-accent);
    filter: drop-shadow(0 0 10px var(--box-accent));
}

.portal-badge {
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--box-accent);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--box-accent);
}

.portal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 0;
    letter-spacing: 1px;
    color: #ffffff;
}

.portal-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0;
}

.portal-description strong {
    color: #ffffff;
    font-weight: 700;
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.portal-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.highlight-tag {
    font-family: var(--font-subheading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-subheading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--box-accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.portal-action-btn {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #ffffff;
    background: var(--box-accent);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--box-glow);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.portal-box:hover .portal-action-btn {
    transform: translateX(6px);
    box-shadow: 0 6px 25px var(--box-accent);
}

/* SECTION SHOWCASE HEADERS & CONTROLS */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* WIDE HORIZONTAL BANNER CARDS SYSTEM (MATCHING SCREENSHOT AESTHETIC) */
.youtube-grid, .gamedev-grid, .applab-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.wide-banner-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    background: rgba(10, 14, 28, 0.78);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 0, 85, 0.25);
    border-radius: 18px;
    padding: 18px 24px;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    gap: 24px;
}

.gamedev-grid .wide-banner-card {
    border-color: rgba(157, 0, 255, 0.25);
}

.applab-grid .wide-banner-card {
    border-color: rgba(0, 240, 180, 0.25);
}

/* Subtle corner accent indicator line like in screenshot */
.wide-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--cyber-red);
    box-shadow: 0 0 14px var(--cyber-red);
    transition: background 0.3s ease;
}

.gamedev-grid .wide-banner-card::before {
    background: var(--cyber-purple);
    box-shadow: 0 0 14px var(--cyber-purple);
}

.applab-grid .wide-banner-card::before {
    background: var(--cyber-emerald);
    box-shadow: 0 0 14px var(--cyber-emerald);
}

.wide-banner-card:hover {
    transform: translateY(-3px) scale(1.006);
    background: rgba(13, 18, 36, 0.92);
    border-color: var(--cyber-red);
    box-shadow: 0 12px 35px rgba(255, 0, 85, 0.25);
}

.gamedev-grid .wide-banner-card:hover {
    border-color: var(--cyber-purple);
    box-shadow: 0 12px 35px rgba(157, 0, 255, 0.25);
}

.applab-grid .wide-banner-card:hover {
    border-color: var(--cyber-emerald);
    box-shadow: 0 12px 35px rgba(0, 240, 180, 0.25);
}

/* LEFT SIDE THUMBNAIL BOX */
.wide-card-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-thumb-container.wide-thumb {
    position: relative;
    width: 240px;
    height: 135px;
    border-radius: 12px;
    overflow: hidden;
    background: #080a12;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.game-thumb-container.wide-thumb, .app-thumb-container.wide-thumb {
    position: relative;
    width: 150px;
    height: 120px;
    border-radius: 14px;
    background: rgba(157, 0, 255, 0.06);
    border: 1px solid rgba(157, 0, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: inset 0 0 20px rgba(157, 0, 255, 0.1);
}

.app-thumb-container.wide-thumb {
    background: rgba(0, 240, 180, 0.06);
    border-color: rgba(0, 240, 180, 0.25);
    box-shadow: inset 0 0 20px rgba(0, 240, 180, 0.1);
}

.game-thumb-badge, .app-thumb-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.yt-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.yt-thumb-container.wide-thumb:hover .yt-thumb-img {
    transform: scale(1.08);
}

.yt-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.15) 0%, rgba(8, 10, 18, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.yt-play-btn-circle {
    width: 46px;
    height: 46px;
    background: rgba(255, 0, 85, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(255, 0, 85, 0.6);
    transition: all 0.3s ease;
    padding-left: 2px;
}

.yt-thumb-container.wide-thumb:hover .yt-play-btn-circle {
    transform: scale(1.15);
    background: #ff0055;
    box-shadow: 0 0 32px var(--cyber-red);
}

.yt-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* CENTER INFORMATION AREA */
.wide-card-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.wide-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wide-card-header h3, .wide-card-header .yt-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wide-card-center .yt-card-category {
    font-family: var(--font-subheading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cyber-red);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wide-card-center .game-tagline {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyber-cyan);
}

.wide-card-center .yt-card-desc, .wide-card-center .game-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wide-card-center .yt-card-tags, .wide-card-center .game-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.yt-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* RIGHT ACTION AREA (MATCHING SCREENSHOT BUTTON AESTHETIC) */
.wide-card-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.wide-meta-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-family: var(--font-subheading);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.wide-btn {
    background: linear-gradient(135deg, var(--cyber-red) 0%, #ff0055 100%);
    border: none;
    color: #ffffff;
    font-family: var(--font-subheading);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 0, 85, 0.4);
    transition: all 0.25s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.wide-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 26px rgba(255, 0, 85, 0.7);
}

.game-action-btn.wide-btn {
    background: linear-gradient(135deg, var(--cyber-purple) 0%, #7b00ff 100%);
    box-shadow: 0 4px 18px rgba(157, 0, 255, 0.4);
}

.game-action-btn.wide-btn:hover {
    box-shadow: 0 6px 26px rgba(157, 0, 255, 0.7);
}

.app-action-btn.wide-btn {
    background: linear-gradient(135deg, var(--cyber-emerald) 0%, #00c896 100%);
    color: #03050c;
    box-shadow: 0 4px 18px rgba(0, 240, 180, 0.4);
}

.app-action-btn.wide-btn:hover {
    box-shadow: 0 6px 26px rgba(0, 240, 180, 0.7);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyber-purple);
    box-shadow: 0 16px 40px rgba(157, 0, 255, 0.3);
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.game-title-group h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.game-tagline {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cyber-cyan);
    margin-top: 4px;
}

.game-status-badge {
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-alpha { background: rgba(157, 0, 255, 0.2); color: var(--cyber-purple); border: 1px solid var(--cyber-purple); }
.status-engine { background: rgba(0, 240, 255, 0.2); color: var(--cyber-cyan); border: 1px solid var(--cyber-cyan); }
.status-beta { background: rgba(255, 0, 85, 0.2); color: var(--cyber-red); border: 1px solid var(--cyber-red); }
.status-dev { background: rgba(0, 255, 170, 0.2); color: var(--cyber-emerald); border: 1px solid var(--cyber-emerald); }

.game-description {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-features-list {
    list-style: none;
    margin-bottom: 24px;
}

.game-features-list li {
    font-size: 0.88rem;
    color: var(--text-primary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-features-list li::before {
    content: '◈';
    color: var(--cyber-cyan);
    font-size: 0.8rem;
}

.game-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-pill {
    font-family: var(--font-subheading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-engine-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.game-action-btn {
    background: linear-gradient(135deg, var(--cyber-purple), rgba(0, 240, 255, 0.8));
    border: none;
    color: #ffffff;
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.game-action-btn:hover {
    box-shadow: 0 6px 25px rgba(157, 0, 255, 0.6);
    transform: translateY(-2px);
}

/* APPLICATION LAB SHOWCASE GRID */
.applab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 32px;
}

.app-card {
    color: inherit;
    text-decoration: none;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 170, 0.25);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.app-card:focus-visible {
    outline: 3px solid var(--cyber-emerald);
    outline-offset: 4px;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyber-emerald);
    box-shadow: 0 16px 40px rgba(0, 255, 170, 0.3);
}

.app-action-btn {
    background: linear-gradient(135deg, var(--cyber-emerald), rgba(0, 240, 255, 0.8));
    border: none;
    color: #05070f;
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 170, 0.3);
    transition: all 0.3s ease;
}

.app-action-btn:hover {
    box-shadow: 0 6px 25px rgba(0, 255, 170, 0.6);
    transform: translateY(-2px);
}

/* MODAL OVERLAY & POPUP */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 12, 0.88);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop.open {
    display: flex;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--cyber-cyan);
    border-radius: 20px;
    width: min(90vw, 900px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
}

.modal-close-btn:hover {
    background: var(--cyber-red);
    border-color: var(--cyber-red);
    box-shadow: 0 0 15px var(--cyber-red);
}

.modal-header {
    padding: 24px 64px 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
}

.modal-subtitle {
    font-family: var(--font-subheading);
    color: var(--cyber-cyan);
    margin-top: 6px;
    font-size: 1rem;
}

.modal-body {
    padding: 30px;
    flex: 1;
}

.video-embed-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.video-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FOOTER */
.footer {
    padding: 30px 40px;
    background: rgba(5, 7, 15, 0.95);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-brand {
    font-family: var(--font-heading);
    color: var(--text-secondary);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .portal-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        min-height: auto;
    }
    .banner-left {
        width: 100%;
    }
    .banner-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .wide-banner-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 20px;
    }

    .wide-card-left {
        width: 100%;
    }

    .yt-thumb-container.wide-thumb {
        width: 100%;
        height: 190px;
    }

    .game-thumb-container.wide-thumb, .app-thumb-container.wide-thumb {
        width: 100%;
        height: 85px;
        flex-direction: row;
    }

    .wide-card-header h3, .wide-card-header .yt-card-title {
        white-space: normal;
    }

    .wide-card-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 0;
        padding-top: 14px;
    }

    .wide-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .navbar {
        padding: 16px 20px;
    }
    .nav-menu {
        gap: 10px;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* ROBOT BACKGROUND IMAGE */
.humanoid-4k-bg-container {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
    background-color: #03050c;
}

.android-4k-artwork {
    position: absolute;
    inset: 0;
    background-image: url("images/robot_bg.png");
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 0.95;
    animation: android-bg-pulse 8s infinite alternate ease-in-out;
}

@keyframes android-bg-pulse {
    0%   { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.02); opacity: 1; }
}

.android-cyber-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(5, 7, 15, 0.25) 0%, rgba(5, 7, 15, 0.65) 50%, rgba(5, 7, 15, 0.85) 100%),
        linear-gradient(to bottom, rgba(5, 7, 15, 0.3) 0%, transparent 40%, rgba(5, 7, 15, 0.8) 100%);
}


