/* =========================================
   LAGOM STUDIO - GAME PAGE STYLES
   ========================================= */

:root {
    --studio-bg: #0c1930;
    --studio-accent: #00d4ff;
    --studio-secondary: #00d4ff;
    /* Purple for gaming vibes */
    --studio-text: #ebebeb;
    --glass-bg: rgba(12, 25, 48, 0.7);
    --glass-border: rgba(0, 212, 255, 0.2);
}

body.studio-page {
    background-color: var(--studio-bg);
    color: var(--studio-text);
    overflow-x: hidden;
}

/* Back Button */

.btn-back {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    background: rgba(12, 25, 48, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #ebebeb;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* =========================================
   HERO SECTION
   ========================================= */
/* =========================================
   HERO SECTION
   ========================================= */
.studio-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/game/Ss_11.jpg') no-repeat center center/cover;
    overflow: hidden;
}

/* Atmospheric Overlay */
.studio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(12, 25, 48, 0.4) 0%, rgba(12, 25, 48, 0.95) 90%);
    z-index: 1;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    animation: floatParticle 15s infinite linear;
}

/* Randomize particles */
.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-duration: 25s;
    opacity: 0.6;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-duration: 35s;
    opacity: 0.4;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 20%;
    animation-duration: 20s;
    opacity: 0.7;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 60%;
    animation-duration: 30s;
    opacity: 0.5;
}

.particle:nth-child(5) {
    width: 2px;
    height: 2px;
    top: 10%;
    left: 90%;
    animation-duration: 15s;
    opacity: 0.8;
}

.particle:nth-child(6) {
    width: 4px;
    height: 4px;
    top: 70%;
    left: 40%;
    animation-duration: 28s;
    opacity: 0.5;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-floating-group {
    animation: floatLogo 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* Context for mascot positioning */
    /* Groups Logo + Text + Button to swing together */
}

/* Mascot - Peeking from Top Left */
.hero-mascot {
    position: absolute;
    top: clamp(-100px, -8vw, -120px);
    left: clamp(-60px, -5vw, -80px);
    width: clamp(180px, 15vw, 250px);
    height: auto;
    z-index: 10;
    transform: rotate(-10deg);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: mascotWave 4s ease-in-out infinite alternate;
}

@keyframes mascotWave {
    from {
        transform: rotate(-10deg) translateY(0);
    }

    to {
        transform: rotate(-5deg) translateY(-10px);
    }
}

.mascot-speech {
    position: absolute;
    top: clamp(-130px, -10vw, -160px);
    left: clamp(80px, 8vw, 120px);
    background: #fff;
    color: #1b2838;
    padding: clamp(10px, 1vw, 15px) clamp(15px, 1.5vw, 25px);
    border-radius: 20px;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    /* Ensure on top of everything */
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1s;
    /* Wait for mascot to appear */
    white-space: nowrap;
}

.mascot-speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-logo {
    width: 100%;
    max-width: clamp(450px, 40vw, 650px);
    margin-bottom: clamp(15px, 2vw, 30px);
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
    /* Animation removed here, moved to group */
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.game-subtitle {
    display: inline-block;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(8px, 0.8vw, 10px) clamp(20px, 2vw, 30px);
    border-radius: 50px;
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-steam-hero {
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1vw, 15px);
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    /* Classic Steam Gradient */
    color: #fff;
    padding: clamp(15px, 1.5vw, 20px) clamp(40px, 4vw, 60px);
    font-size: clamp(1.1rem, 1.2vw, 1.4rem);
    font-weight: 800;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(102, 192, 244, 0.3);
    /* Steam Blue Border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-steam-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 192, 244, 0.4), transparent);
    /* Steam Blue Shine */
    transition: 0.5s;
}

.btn-steam-hero:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 50px rgba(65, 126, 168, 0.6);
    border-color: #66c0f4;
    background: linear-gradient(135deg, #2a475e 0%, #66c0f4 100%);
    /* Bright Steam Blue on Hover */
}

.btn-steam-hero:hover::before {
    left: 100%;
}

.btn-steam-hero img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    /* Force White Icon */
}

/* =========================================
   SCROLL INDICATOR
   ========================================= */
/* =========================================
   SCROLL INDICATOR
   ========================================= */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: scrollArrow 2s infinite;
    animation-delay: 0.2s;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* =========================================
   CONTENT SECTIONS
   ========================================= */
.studio-section {
    padding: 100px 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--studio-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.game-desc-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(235, 235, 235, 0.9);
}

.game-desc-container strong {
    color: var(--studio-accent);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.feature-card {
    position: relative;
    background: rgba(12, 25, 48, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: left;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.feature-card::before {
    content: attr(data-step);
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    transition: all 0.4s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--studio-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(12, 25, 48, 0.8);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1);
}

.feature-card:hover::before {
    color: rgba(0, 212, 255, 0.1);
    transform: translateY(10px);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--studio-accent);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    color: #fff;
    filter: drop-shadow(0 0 15px var(--studio-accent));
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}



/* SYSTEM REQS */
.specs-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    /* Tech vibe */
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.spec-col h4 {
    color: var(--studio-accent);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.spec-list li {
    list-style: none;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* FOOTER */
.studio-footer {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-logo {
        max-width: 500px;
    }

    .btn-steam-hero {
        padding: 15px 40px;
        font-size: 1.2rem;
    }

    .commander-profile {
        gap: 40px;
    }

    .commander-hex {
        width: 250px;
        height: 288px;
        /* Perfect pointy hex ratio w * 1.1547 */
    }

    .commander-name h3 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-floating-group {
        transform: scale(0.9);
    }

    .hero-mascot {
        width: 150px;
        top: -80px;
        left: -40px;
    }

    .mascot-speech {
        top: -100px;
        left: 60px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .hero-logo {
        max-width: 100%;
    }

    .btn-steam-hero {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .game-desc-container {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .media-gallery {
        grid-template-columns: 1fr;
    }

    .commander-profile {
        flex-direction: column;
        gap: 30px;
    }

    .commander-hex {
        width: 200px;
        height: 231px;
        /* Perfect pointy hex ratio */
    }

    .commander-name h3 {
        font-size: 1.8rem;
    }

    .commander-stats {
        padding: 20px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .community-content h2 {
        font-size: 2rem;
    }

    .community-content p {
        font-size: 1rem;
    }

    .community-icon {
        font-size: 3rem;
    }

    .studio-section {
        padding: 60px 1rem;
    }
}

/* =========================================
   ACTIVE OPERATORS (COMMANDER PROFILE)
   ========================================= */
.team-section {
    position: relative;
    background: linear-gradient(to bottom, rgba(12, 25, 48, 0), rgba(12, 25, 48, 0.8));
}

.commander-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    flex-wrap: wrap;
    /* Responsive wrap */
}

/* Left: Avatar */
.commander-avatar-container {
    text-align: center;
    position: relative;
}

.commander-hex {
    width: 300px;
    height: 346px;
    /* Perfect pointy hex ratio w * 1.1547 */
    background: #000;
    clip-path: url(#rounded-hex);
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    padding: 5px;
    /* Border thickness */
    background: linear-gradient(45deg, var(--studio-accent), #2a475e);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transition: transform 0.3s ease;
}

.commander-hex img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: url(#rounded-hex);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.commander-hex:hover {
    transform: scale(1.05);
}

.commander-hex:hover img {
    filter: grayscale(0%);
}

.commander-name h3 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.commander-name span {
    color: var(--studio-accent);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Right: Holographic Data Panel */
.commander-stats {
    flex: 1;
    min-width: 300px;
    background: rgba(12, 25, 48, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Decorative corner markers for "Tech" look */
.commander-stats::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--studio-accent);
    border-left: 2px solid var(--studio-accent);
}

.commander-stats::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--studio-accent);
    border-right: 2px solid var(--studio-accent);
}

.stat-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.stat-row:last-of-type {
    border-bottom: none;
}

.stat-entry {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--studio-accent);
    width: 30px;
    text-align: center;
    filter: drop-shadow(0 0 5px var(--studio-accent));
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.stat-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.status-online {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    font-size: 0.6rem;
    animation: blinkStatus 1.5s infinite;
}

@keyframes blinkStatus {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.commander-bio-wrapper {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    background: rgba(0, 212, 255, 0.05);
    /* Very subtle blue tint */
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--studio-accent);
}

.bio-icon {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    margin-top: 5px;
}

.commander-bio {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.team-card:hover .hex-image {
    transform: scale(1.1) rotate(5deg);
    /* Slight fun tilt */
}

/* =========================================
   ROADMAP SECTION (TIMELINE)
   ========================================= */
.roadmap-section {
    position: relative;
    padding-bottom: 150px;
}

/* Center Line - Glowing Data Stream */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom,
            rgba(0, 212, 255, 0) 0%,
            #00d4ff 15%,
            #00d4ff 50%,
            #00d4ff 85%,
            rgba(0, 212, 255, 0) 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    border-radius: 3px;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Item positioning */
.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* Connectors (Nodes) - Pulsing */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--studio-bg);
    border: 4px solid var(--studio-accent);
    top: 30px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--studio-accent), inset 0 0 10px var(--studio-accent);
    transition: all 0.3s ease;
    animation: pulseNode 2s infinite;
}

@keyframes pulseNode {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 212, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

.timeline-item.right::after {
    left: -12px;
    border-color: var(--studio-secondary);
    /* Alternating color */
}

.timeline-item:hover::after {
    transform: scale(1.5);
    background-color: #fff;
}


/* Hollow Data Nodes */
.timeline-deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    color: rgba(0, 212, 255, 0.03);
    pointer-events: none;
    z-index: 0;
    transition: all 0.5s ease;
}

.timeline-deco i {
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.timeline-item.left .timeline-deco {
    right: -70%;
    /* Position loosely on the right side */
}

.timeline-item.right .timeline-deco {
    left: -70%;
    /* Position loosely on the left side */
}

.timeline-item:hover .timeline-deco {
    color: rgba(0, 212, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Content Box - Holographic Card */
.timeline-content {
    padding: 30px 30px 30px 80px;
    /* Space for large icon */
    background: rgba(12, 25, 48, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    /* Ensure content is above holo background */
}

/* Phase Icon (Large background icon) */
.phase-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-content:hover .phase-icon {
    color: var(--studio-accent);
    transform: scale(1.2) rotate(10deg);
    text-shadow: 0 0 20px var(--studio-accent);
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-completed {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.badge-active {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid #00d4ff;
    animation: pulseBadge 2s infinite;
}

.badge-locked {
    background: rgba(255, 50, 50, 0.2);
    color: #ff3232;
    border: 1px solid #ff3232;
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

/* Gradient Border Effect on Hover */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, var(--studio-accent), transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.1);
    border-color: transparent;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content h3 {
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.timeline-content ul li {
    padding-left: 0;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-content ul li i {
    color: var(--studio-secondary);
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.timeline-content:hover ul li i {
    color: var(--studio-accent);
    filter: drop-shadow(0 0 5px var(--studio-accent));
}

.timeline-content ul li:hover {
    transform: translateX(5px);
    color: #fff;
}

/* Old arrow removal */
.timeline-content ul li::before {
    display: none;
}



/* Roadmap List Status Styling */
.roadmap-list li {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
    /* Neutral color for text */
}

/* Icons colored by status */
.roadmap-list li.completed i {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.roadmap-list li.in-progress i {
    color: #00d4ff;
    animation: spin 3s linear infinite;
}

.roadmap-list li.pending i {
    color: rgba(255, 255, 255, 0.3);
}

.roadmap-list li.locked i {
    color: rgba(255, 50, 50, 0.6);
}

.timeline-content h3 {
    padding-right: 120px;
    /* Prevent overlap with badge */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.roadmap-list li.pending {
    color: rgba(255, 255, 255, 0.5);
}

.roadmap-list li.pending i {
    color: rgba(255, 255, 255, 0.3);
}

.roadmap-list li.locked {
    color: rgba(255, 50, 50, 0.5);
}

.roadmap-list li.locked i {
    color: rgba(255, 50, 50, 0.4);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Timeline Adjustment */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        /* give it a bit more width on mobile */
    }

    .timeline-item::after {
        left: 21px;
        /* Align dot with line */
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 17px;
    }

    .timeline-deco {
        display: none;
        /* Hide holographic nodes on mobile to prevents overflow */
    }

    /* Fix timeline content and badges on mobile */
    .timeline-content {
        padding: 20px 15px 20px 60px;
        /* Reduced left padding to account for smaller phase-icon if needed, and give more right room */
        display: flex;
        flex-direction: column;
    }

    .phase-icon {
        font-size: 2rem;
        top: 15px;
        left: 15px;
    }

    .status-badge {
        position: relative;
        align-self: flex-start;
        top: 0;
        right: 0;
        margin-bottom: 10px;
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .timeline-content h3 {
        padding-right: 0;
        /* No longer need right padding to avoid absolute badge */
        font-size: 1.2rem;
    }
}

/* =========================================
   COMMUNITY PARALLAX
   ========================================= */
.community-section {
    position: relative;
    min-height: 400px;
    background-image: url('../images/studio-hero-single.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 25, 48, 0.85);
    /* Heavy overlay */
}

.community-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.community-icon {
    font-size: 4rem;
    color: #5865F2;
    /* Discord Color */
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.5));
}

.community-content h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.community-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-discord {
    display: inline-block;
    padding: 15px 40px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
    background: #4752c4;
}

/* =========================================
   MASCOT INTEGRATION
   ========================================= */
.mascot-container {
    position: absolute;
    bottom: -20px;
    z-index: 10;
    pointer-events: none;
    /* Allow clicks through */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(150px, 15vw, 250px);
    /* Responsive width */
    animation: floatMascot 4s ease-in-out infinite;
}

.mascot-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.mascot-bubble {
    background: #fff;
    color: #000;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    animation: popIn 0.5s ease-out 1s forwards;
    white-space: nowrap;
}

/* Bubble Arrow */
.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* Positioning & Flipping - Relative to max-width center */
.pos-right {
    left: 50%;
    margin-left: max(450px, 35vw);
    /* Keep outside max-width container */
}

.pos-right .mascot-img {
    transform: scaleX(-1);
    /* Look Left */
}

.pos-left {
    right: 50%;
    margin-right: max(450px, 35vw);
    /* Keep outside max-width container */
}

/* Roadmap specific positioning */
.roadmap-section .mascot-container {
    bottom: auto;
    top: 100px;
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .mascot-container {
        display: none;
        /* Hide on mobile to save space */
    }
}

/* =========================================
   VISUAL DATABASE (INFINITE CAROUSEL)
   ========================================= */
.media-carousel-container {
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.media-carousel-container::before,
.media-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.media-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--studio-bg), transparent);
}

.media-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--studio-bg), transparent);
}

.media-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollGallery 40s linear infinite;
    /* Calculated speed for smooth flow */
}

.media-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    width: 40vw;
    /* Responsive width: ~3 items per screen */
    max-width: 800px;
    /* Cap max size for ultrawide screens */
    flex-shrink: 0;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.media-overlay i {
    font-size: 2rem;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Effects */
.media-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.2);
    border-color: var(--studio-accent);
    z-index: 3;
    /* Bring to front on hover */
}

/* Pause on hover for easier viewing */
.media-track:hover {
    animation-play-state: paused;
}

.media-item:hover img {
    transform: scale(1.1);
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-item:hover .media-overlay i {
    transform: scale(1);
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
        /* Move half way minus half gap (30px/2) to match perfect loop */
    }
}


/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .btn-back {
        top: 20px;
        left: 20px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .studio-hero {
        padding-top: 100px;
        justify-content: flex-start;
    }

    .media-item {
        width: 300px;
    }
}

/* =========================================
   LIGHTBOX MODAL
   ========================================= */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--studio-accent);
}

#lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    max-width: 80%;
    font-weight: 300;
}

/* =========================================
   LAPTOP & 1080P DISPLAY FIXES
   ========================================= */
@media screen and (max-height: 1080px) and (min-width: 1024px) {

    .about-hero,
    .studio-hero {
        padding-top: 5vh;
    }

    .hero-logo {
        max-width: clamp(400px, 45vh, 550px);
        margin-bottom: 1.5rem;
    }

    .hero-mascot {
        width: clamp(160px, 20vh, 220px);
        top: clamp(-80px, -10vh, -110px);
        left: -60px;
    }

    .mascot-speech {
        top: clamp(-110px, -14vh, -140px);
        left: 90px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .game-subtitle {
        font-size: 1rem;
        padding: 10px 25px;
        margin-bottom: 2.5rem;
    }

    .btn-steam-hero {
        padding: 15px 45px;
        font-size: 1.2rem;
    }
}