html {
    scroll-behavior: smooth;
}

:root {
    --color-bg: #070707;
    --color-accent: #32cd32;
    /* Lime Green */
    --color-accent-dim: rgba(50, 205, 50, 0.3);
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-fill {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: 2px;
    animation: preloaderFill 2s ease-out forwards;
    box-shadow: 0 0 10px var(--color-accent);
}

.preloader-text {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--color-accent);
    opacity: 0.6;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes preloaderFill {
    0% { width: 0%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;

    /* HUD Dot Grid Background */
    background-image: radial-gradient(var(--color-accent-dim) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px dashed var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Gravitational Lens – invisible distortion field around cursor */
.cursor-warp {
    position: fixed;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    /* Pure distortion – no visual artifacts */
    backdrop-filter: url(#gravitational-lens);
    -webkit-backdrop-filter: url(#gravitational-lens);
    /* Smooth falloff so distortion fades naturally at edges */
    -webkit-mask-image: radial-gradient(circle, black 20%, rgba(0,0,0,0.5) 40%, transparent 70%);
    mask-image: radial-gradient(circle, black 20%, rgba(0,0,0,0.5) 40%, transparent 70%);
}

/* Global Voxel Trail */
#trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 8500;
}

/* Bottom Gradient Canvas */
#bottom-gradient-canvas {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 30vh;
    z-index: 8000;
    pointer-events: none;
    /* Seamless fade - masks the top edge so no cutoff is ever visible */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.8) 60%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.8) 60%, black 100%);
}

/* ========== SIDE NAVIGATION BAR ========== */
.side-nav {
    position: fixed;
    left: 28px;
    top: 18%;
    bottom: 18%;
    z-index: 9500;
    display: flex;
    align-items: center;
}

.side-nav-track {
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(50, 205, 50, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.side-nav-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--color-accent), rgba(50, 205, 50, 0.4));
    border-radius: 2px;
    transition: height 0.3s ease-out;
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.5);
}

.side-nav-dots {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}

.side-nav-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(50, 205, 50, 0.2);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
}

.side-nav-dot svg {
    width: 20px;
    height: 20px;
    color: rgba(50, 205, 50, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.side-nav-dot:hover {
    border-color: rgba(50, 205, 50, 0.6);
    background: rgba(50, 205, 50, 0.08);
    transform: scale(1.15);
}

.side-nav-dot:hover svg {
    color: var(--color-accent);
}

/* Tooltip */
.side-nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(50, 205, 50, 0.3);
    color: var(--color-accent);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.side-nav-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Active state */
.side-nav-dot.active {
    border-color: var(--color-accent);
    background: rgba(50, 205, 50, 0.15);
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.3), 0 0 30px rgba(50, 205, 50, 0.1), inset 0 0 8px rgba(50, 205, 50, 0.1);
}

.side-nav-dot.active svg {
    color: var(--color-accent);
    filter: drop-shadow(0 0 4px rgba(50, 205, 50, 0.6));
}

/* Pulse animation for active dot */
.side-nav-dot.active::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    animation: sideNavPulse 2s ease-out infinite;
}

@keyframes sideNavPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* HUD Overlay Elements */
.hud-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
    z-index: 9000;
}

.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.hud-text {
    position: absolute;
    font-family: monospace;
    font-size: 10px;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Liquid Background Blobs */
.liquid-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
    animation: float 12s infinite alternate ease-in-out;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: -50px;
    animation: float 18s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: 40%;
    animation: float 15s infinite alternate ease-in-out;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 150px) scale(1.2);
    }
}

/* LIQUID GLASS EFFECT */
.liquid-glass {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0 40px;
    height: 55px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 100px;
    z-index: 100;
}

.logo {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(50, 205, 50, 0.3));
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* Main Layout */
section {
    min-height: 100vh;
    padding: 150px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.accent {
    color: var(--color-accent);
}

/* Hero / Canvas Container */
.hero {
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.canvas-container {
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
}

.hero-content {
    margin-top: -80px;
}

canvas {
    width: 100%;
    height: 100%;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 10px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    background: rgba(50, 205, 50, 0.05);
}

.cta-button:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.5);
}

/* Games Section */
.game-showcase {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 40px;
    border-radius: 20px;
}

.game-info {
    flex: 1;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.game-desc {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-features {
    list-style: none;
    color: var(--color-text);
}

.game-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.game-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-family: monospace;
}

.game-visual {
    flex: 1;
}

.image-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.5s, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-wrapper:hover .game-img {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.05);
}

.game-logo-overlay {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 60%;
    height: auto;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
}

.image-wrapper:hover .game-logo-overlay {
    transform: translate(-50%, 50%) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    /* Subtle red glow for horror */
}

/* Store Section */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.store-card {
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.4s, border-color 0.4s;
}

.store-card:hover {
    transform: translateY(-10px);
    border-color: rgba(50, 205, 50, 0.5);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-desc {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.card-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-family: monospace;
}

/* ========== ABOUT ME SECTION ========== */
.about-showcase {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 50px;
    border-radius: 20px;
}

.about-photo-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.about-photo-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(50, 205, 50, 0.3);
    transition: border-color 0.4s;
}

.about-photo-frame:hover {
    border-color: var(--color-accent);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.5s, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-photo-frame:hover .about-photo {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.05);
}

.about-photo-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: photoGlow 3s ease-in-out infinite alternate;
}

@keyframes photoGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.about-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--color-accent); }
    50% { opacity: 0.4; box-shadow: 0 0 8px var(--color-accent); }
}

.about-bio {
    flex: 1;
}

.about-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.about-role {
    color: var(--color-accent);
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.about-desc {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.about-desc strong {
    color: var(--color-accent);
    font-weight: 700;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s;
    padding: 0;
    cursor: none;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(50, 205, 50, 0.5);
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    transition: filter 0.5s, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-card:hover .portfolio-img {
    filter: brightness(0.9) contrast(1.2);
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tag {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-transform: uppercase;
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
}

.portfolio-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 16px 20px;
    color: var(--color-text);
}

/* Portfolio scroll-down hint */
.portfolio-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    opacity: 0.5;
}

.portfolio-scroll-hint span {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-transform: uppercase;
}

.portfolio-scroll-hint svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    animation: scrollHintBounce 1.5s ease-in-out infinite;
}

@keyframes scrollHintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ========== PORTFOLIO LIGHTBOX ========== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    cursor: none;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    display: flex;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 15, 0.8);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1) translateY(0);
}

.lightbox-image-area {
    flex: 1.5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    min-height: 400px;
}

.lightbox-image-area img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(50, 205, 50, 0.3);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s;
    z-index: 5;
}

.lightbox-nav:hover {
    background: rgba(50, 205, 50, 0.15);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.3);
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-info {
    flex: 0.7;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-text);
}

.lightbox-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.lightbox-programs-label {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-top: 8px;
}

.lightbox-programs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lightbox-program-tag {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--color-text);
    background: rgba(50, 205, 50, 0.08);
    border: 1px solid rgba(50, 205, 50, 0.2);
    padding: 5px 12px;
    border-radius: 6px;
}

.lightbox-counter {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-top: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s;
    z-index: 6;
}

.lightbox-close:hover {
    border-color: rgba(255, 80, 80, 0.6);
    color: #ff5050;
    background: rgba(255, 80, 80, 0.1);
}

.lightbox-close svg {
    width: 18px;
    height: 18px;
}

.lightbox-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: none;
}

.lightbox-dot.active {
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.5);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    min-height: auto;
}

.contact-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Contact Form Card */
.contact-form-card {
    flex: 1.5;
    padding: 40px;
    border-radius: 20px;
}

.contact-form-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.contact-form-subtext {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-group label {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
    cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.08), 0 0 20px rgba(50, 205, 50, 0.06);
    background: rgba(50, 205, 50, 0.03);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2332cd32' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: #111;
    color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    align-self: flex-start;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    cursor: none;
}

.form-submit.sending {
    pointer-events: none;
    border-color: rgba(50, 205, 50, 0.5);
    animation: submitPulse 1s ease-in-out infinite;
}

.form-submit.done {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

@keyframes submitPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(50, 205, 50, 0.2); }
    50% { box-shadow: 0 0 25px rgba(50, 205, 50, 0.5); }
}

/* Contact Info Sidebar */
.contact-info-card {
    flex: 0.8;
    padding: 40px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-detail svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-label {
    display: block;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact-detail a,
.contact-detail span {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--color-accent);
}

.contact-socials-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.2), transparent);
    margin: 4px 0;
}

.contact-socials-title {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0.6;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: none;
    text-decoration: none;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(50, 205, 50, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.15);
}

/* Footer */
.footer {
    padding: 30px 10%;
    margin: 0 5% 30px 5%;
    border-radius: 20px;
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(50, 205, 50, 0.15));
    transition: opacity 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-social-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social-row a {
    color: var(--color-text-muted);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    cursor: none;
}

.footer-social-row a svg {
    width: 16px;
    height: 16px;
}

.footer-social-row a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.footer-copy {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    opacity: 0.4;
}

/* ========== TRAILER ========== */
.trailer-section {
    margin-top: 40px;
    text-align: center;
}

.trailer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.trailer-wrapper {
    border-radius: 20px;
    padding: 6px;
    overflow: hidden;
}

.trailer-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.trailer-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* ========== STEAM WIDGET ========== */
.steam-widget-wrapper {
    margin-top: 30px;
    border-radius: 14px;
    overflow: hidden;
}

/* ========== PRESS KIT ========== */
.press-kit-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.press-kit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.press-kit-card {
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.press-kit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(50, 205, 50, 0.08);
}

.press-kit-card svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.press-kit-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.press-kit-card p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.press-download {
    padding: 8px 20px;
    font-size: 0.7rem;
    margin-top: auto;
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
    padding: 60px 5%;
    min-height: auto;
}

.newsletter-card {
    padding: 50px 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.newsletter-desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    max-width: 400px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
}

.newsletter-input-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    width: 280px;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: none;
}

.newsletter-input-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.08);
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.newsletter-submit {
    white-space: nowrap;
    cursor: none;
}

.newsletter-privacy {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(50, 205, 50, 0.2);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.3);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ========== RESPONSIVE ========== */

/* === Hamburger Menu Button (mobile only) === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === TABLET (max-width: 1024px) === */
@media (max-width: 1024px) {
    section {
        padding: 120px 6%;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .game-showcase {
        flex-direction: column;
        padding: 30px;
    }

    .game-title {
        font-size: 2rem;
    }

    .about-showcase {
        flex-direction: column;
        text-align: center;
        padding: 35px;
    }

    .about-stats {
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .lightbox-container {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .lightbox-image-area {
        min-height: 250px;
    }

    .lightbox-info {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding: 25px 20px;
    }

    .lightbox-title {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .side-nav {
        left: 12px;
    }

    .side-nav-dot {
        width: 36px;
        height: 36px;
    }

    .side-nav-dot svg {
        width: 16px;
        height: 16px;
    }

    /* Hide gravitational lens on tablets (no precision hover) */
    .cursor-warp {
        display: none;
    }

    .blob-1 { width: 400px; height: 400px; }
    .blob-2 { width: 350px; height: 350px; }
    .blob-3 { width: 250px; height: 250px; }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 30px;
    }
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
    body {
        cursor: auto;
        background-size: 30px 30px;
    }

    .cursor,
    .cursor-follower,
    .cursor-warp {
        display: none !important;
    }

    .side-nav {
        display: none;
    }

    /* Navbar → hamburger */
    .navbar {
        width: 92%;
        padding: 0 20px;
        height: 50px;
        border-radius: 16px;
        top: 16px;
    }

    .logo {
        left: 20px;
    }

    .logo img {
        height: 55px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(50, 205, 50, 0.15);
        border-radius: 16px;
        padding: 20px 30px;
        flex-direction: column;
        gap: 18px;
        min-width: 200px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    /* Hero */
    section {
        padding: 100px 5%;
        min-height: auto;
    }

    .hero {
        padding-top: 60px;
        min-height: 100vh;
    }

    .canvas-container {
        height: 350px;
    }

    .hero-content {
        margin-top: -40px;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 5px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* Game showcase */
    .game-showcase {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }

    .game-title {
        font-size: 1.6rem;
    }

    .game-desc {
        font-size: 0.9rem;
    }

    /* About */
    .about-showcase {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 30px;
    }

    .about-photo-frame {
        width: 150px;
        height: 150px;
    }

    .about-name {
        font-size: 1.8rem;
    }

    .about-stats {
        justify-content: center;
        gap: 25px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .portfolio-card-title {
        font-size: 0.85rem;
        padding: 12px 14px;
    }

    /* Lightbox - full screen on mobile */
    .lightbox-container {
        width: 96%;
        flex-direction: column;
        max-height: 92vh;
        border-radius: 14px;
        overflow-y: auto;
    }

    .lightbox-image-area {
        min-height: 200px;
    }

    .lightbox-info {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding: 20px 16px;
    }

    .lightbox-title {
        font-size: 1.2rem;
    }

    .lightbox-desc {
        font-size: 0.8rem;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .lightbox-nav svg {
        width: 16px;
        height: 16px;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    /* Store */
    .store-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .store-card {
        padding: 25px;
    }

    /* Contact */
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-form-card {
        padding: 24px 20px;
    }

    .contact-info-card {
        padding: 24px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .contact-form-heading {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        cursor: auto;
    }

    .form-submit {
        cursor: auto;
        width: 100%;
        text-align: center;
    }

    .social-link {
        cursor: auto;
    }

    /* Footer */
    .footer {
        margin: 0 3% 20px 3%;
        padding: 30px 5%;
    }

    .footer-logo-img {
        height: 45px;
    }

    /* HUD */
    .hud-overlay {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .hud-corner {
        width: 14px;
        height: 14px;
    }

    .hud-text {
        font-size: 7px;
        letter-spacing: 1px;
    }

    /* Blobs smaller */
    .blob-1 { width: 250px; height: 250px; }
    .blob-2 { width: 200px; height: 200px; }
    .blob-3 { width: 150px; height: 150px; }
    .liquid-blobs { filter: blur(60px); opacity: 0.4; }

    /* Bottom gradient smaller on mobile */
    #bottom-gradient-canvas {
        height: 20vh;
    }
}

/* === SMALL PHONE (max-width: 480px) === */
@media (max-width: 480px) {
    section {
        padding: 80px 4%;
    }

    .hero {
        padding-top: 50px;
    }

    .canvas-container {
        height: 250px;
    }

    .hero-subtitle {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .game-showcase,
    .about-showcase {
        padding: 16px;
    }

    .about-photo-frame {
        width: 120px;
        height: 120px;
    }

    .about-name {
        font-size: 1.4rem;
    }

    .about-role {
        font-size: 0.75rem;
    }

    .about-desc {
        font-size: 0.85rem;
    }

    .about-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    /* Portfolio: single column on very small screens */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .store-card {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .footer {
        margin: 0 2% 16px 2%;
        padding: 24px 4%;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.7rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }
}