:root {
    /* "Ultra-Modern Design" - Sleek, Minimal, High-Impact */

    /* Backgrounds: The Deepest Dark (Premium Feel) */
    --bg-dark: #000000;
    /* Pure Black Base for OLED pop */

    /* Glass UI: Crystal & Premium */
    --bg-card: rgba(255, 255, 255, 0.02);
    /* Unified Glass strength */
    --glass: rgba(255, 255, 255, 0.02);
    /* Slight frost */

    --border-glass: rgba(255, 255, 255, 0.1);
    /* Crisp thin border */

    /* Accents: Sophisticated Gradients (The "Design" Touch) */
    --primary: #6366f1;
    /* Indigo 500 */
    --accent: #d946ef;
    /* Fuchsia 500 */
    --gold: #f59e0b;
    /* Amber 500 (Subtle pop) */

    /* Text: High Contrast & Clean */
    --text-main: #ffffff;
    /* Pure White */
    --text-muted: #a1a1aa;
    /* Zinc 400 */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Fix for sticky header covering content */
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    /* Ensure dark background behind the gradient */
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Ultra-smooth default transitions */
    transition: background-color 0.8s ease, color 0.8s ease;
}

main {
    flex: 1;
}

footer {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 100;


}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #000205;
    /* Deepest Void */
}

/* Layer 1: Calm Drift - Distant Stars */
body::before {
    background-image:
        radial-gradient(1px 1px at 17% 23%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        /* Distant faint */
        radial-gradient(1.5px 1.5px at 55% 88%, rgba(255, 255, 255, 0.6) 1px, transparent 2px),
        /* Distant faint */
        radial-gradient(1px 1px at 32% 12%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        /* Distant faint */
        radial-gradient(2px 2px at 80% 40%, rgba(255, 255, 255, 0.5) 1px, transparent 3px);
    background-size: 550px 550px, 450px 450px, 350px 350px, 600px 600px;
    animation: starCalm1 200s linear infinite;
    mix-blend-mode: screen;
}

/* Layer 2: Nearby Stars - Parallax & Twinkle */
body::after {
    background-color: transparent;
    /* Overlay only */
    background-image:
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(1.5px 1.5px at 90% 90%, rgba(255, 255, 255, 0.9) 1px, transparent 2px),
        radial-gradient(1px 1px at 45% 45%, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 400px 400px, 500px 500px, 300px 300px;
    animation: starCalm2 150s linear infinite, twinkle 3s ease-in-out infinite;
}

@keyframes starCalm1 {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: -550px 550px, -450px 450px, -350px 350px, -600px 600px;
    }
}

@keyframes starCalm2 {
    from {
        background-position: 0 0, 0 0, 0 0;
    }

    to {
        background-position: -400px 400px, -500px 500px, -300px 300px;
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.4;
    }
}

#quoteBox {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 720px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-style: italic;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    text-align: center;
    color: var(--text-muted);
    /* Reverted to muted/light for dark mode */
    background: var(--glass);
    /* Updated to match .glass-nav */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    /* Adjusted padding to match glass-nav feel */
    border-radius: 100px;
    /* Adjusted to match glass-nav radius */
    border: 1px solid var(--border-glass);
    z-index: 90;
}

h1,
h2,
h3 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

/* ... (Intermediate content skipped if contiguous, but here we are doing separate blocks, wait, I should assume I'm editing the blocks I see) */
/* Actually, I will just target #quoteBox and .reaction-bubble separately with multi_replace if needed, or just one big block if they are close. They are not very close. #quoteBox starts line 58. .reaction-bubble starts line 328. I should use multi_replace or sequential replace. Let's start with quoteBox. */



/* Custom Cursor - Sparkle Emojis */
#cursor {
    display: none;
    /* Hidden by default (Mobile/Touch) */
    position: fixed;
    top: 0;
    left: 0;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 600;
    /* Above terminal (500) but below loader (1000) */
    transform: translate(-50%, -50%);
    /* Animation: Dynamic Sparkle */
    animation: sparkleAnim 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Hide cursor while loading */
#loader:not(.fade-out)~#cursor {
    display: none !important;
}

/* Only show on devices with a fine pointer (Mouse) */
@media (hover: hover) and (pointer: fine) {
    #cursor {
        display: block;
    }
}

@keyframes sparkleAnim {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(15deg);
    }
}



/* Typography Gradient */
.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent), #ffffff);
    /* Indigo -> Fuchsia -> White */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ... context skipped ... */

.btn-primary:hover {
    background: rgba(167, 139, 250, 0.2);
    /* Lavender tint */
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.3);
    /* Soft Lavender Glow */
    color: white;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px;
}

.glass-nav {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 100px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

/* Glass Effect via Pseudo-element (Fix for Nested Blur) */
.glass-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 100px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
/* Buttons - Harmonized Glass Effect */
.btn-primary {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    /* Gold border on hover */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    /* Gold glow */
    color: white;
}

.btn-secondary {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

#lang-toggle {
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

#lang-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(360deg);
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
    z-index: 20;
    /* Keep hero on top for fixed children */
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 50px;
}



.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.wiggle {
    display: inline-block;
    animation: wiggle 2s infinite ease-in-out;
    color: var(--accent);
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-img {
    width: 100%;
    max-width: 450px;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Ultra smooth ease-out */
    /* Discreet, neutral glow (White/Grey) instead of Violet */
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
    display: block;
}

/* New Wrappers for Synced Movement */
.mascot-wrapper {
    z-index: 2;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.1, 1);
    /* Smoother parallax */
    /* Target for Parallax JS */
}

.mascot-content {
    position: relative;
    /* Target for Floating CSS */
    /* Bubble will position relative to this */
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Blob background removed */


.badge {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid var(--border-glass);
}

.reaction-bubble {
    position: absolute;
    top: 50px;
    right: 50px;
    background: white;
    /* Comic style: White opaque */
    color: black;
    /* Comic style: Dark text */
    padding: 15px 25px;
    /* Increased padding */
    border-radius: 30px;
    /* Adaptive rounded shape instead of forced circle */
    min-width: 80px;
    /* Minimum size */
    width: max-content;
    max-width: 200px;
    /* Prevent it from being too wide */
    min-height: auto;
    /* Allow height to adapt */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3;
    border: 3px solid black;
    /* Comic style border */
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2);
    /* Pop effect */
    white-space: normal;
    /* Allow wrapping */
}

.reaction-bubble.show {
    opacity: 1;
    transform: scale(1) rotate(10deg);
}

/* About Section */
.about {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.about h2,
.gallery h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    transition: transform 0.3s;
}


.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}


.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.c1 {
    background: linear-gradient(45deg, #4f46e5, #ec4899);
}

.c2 {
    background: linear-gradient(135deg, #0d9488, #fbbf24);
}

.c3 {
    background: linear-gradient(225deg, #7c3aed, #f43f5e);
}

.gallery-item:hover .placeholder-img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
    font-family: 'Fredoka', sans-serif;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Game Section */
.game-section {
    padding: 100px 20px;
}

.game-box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-glass);
}


.game-ui {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
}

.game-area {
    width: 100%;
    height: 400px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px dashed var(--primary);
    cursor: crosshair;
}

.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    flex-direction: column;
}

.game-obj {
    position: absolute;
    font-size: 2rem;
    user-select: none;
    animation: popIn 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.1s;
}

.game-obj:active {
    transform: scale(1.2);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Menu Toggle (Hamburger) - Hidden on Desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
}

/* --- Loading Screen --- */
/* --- Loading Screen --- */
#loader {
    position: fixed;
    inset: 0;
    background-color: #000205;
    /* Deepest Void */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Glass Dissolve Setup */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    /* Transition: 
       1. Content fades (via child rule)
       2. Black BG fades to Transparent (revealing blur)
       3. Blur fades to 0 (clarity) 
       4. Visibility hides at end */
    transition:
        background-color 0.8s cubic-bezier(0.65, 0, 0.35, 1),
        backdrop-filter 1.5s cubic-bezier(0.65, 0, 0.35, 1),
        -webkit-backdrop-filter 1.5s cubic-bezier(0.65, 0, 0.35, 1),
        visibility 1.5s step-end;
}

#loader.fade-out {
    background-color: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    visibility: hidden;
}

/* Internal elements fade fast */
#loader.fade-out .loader-content {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.glass-orb {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 10px 10px 40px rgba(255, 255, 255, 0.1),
        inset -10px -10px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(99, 102, 241, 0.4);
    /* Indigo Glow */
    border-radius: 50%;
    animation: liquidGlass 6s ease-in-out infinite;
    position: relative;
}

/* Internal Shine */
.glass-orb::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8), transparent 60%);
    filter: blur(2px);
}

.loading-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    animation: pulseText 3s ease-in-out infinite;

    /* Mobile Fixes */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90vw;
    padding: 0 10px;
}

@keyframes liquidGlass {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(180deg) scale(1.1);
        box-shadow:
            inset 20px 20px 60px rgba(255, 255, 255, 0.1),
            inset -20px -20px 60px rgba(0, 0, 0, 0.4),
            0 0 80px rgba(217, 70, 239, 0.4);
        /* Morph to Fuchsia */
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.3;
        letter-spacing: 4px;
    }

    50% {
        opacity: 1;
        letter-spacing: 6px;
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* Mobile Gallery: 2 Columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
        /* Prevent edge touching */
    }

    .gallery-item {
        height: 150px;
        /* Smaller height for compact view */
    }

    /* Force Overlay Visible on Mobile */
    .gallery-item .overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    }

    /* Hero Typography Fix */
    .hero-content h1 {
        font-size: 2.5rem;
        /* clamp was failing or too big? let's hardcode a safe mobile size */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .glass-nav {
        padding: 1rem;
        /* Keep flex row for logo and burger */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-radius: 30px;
        position: relative;
        /* Context for drawer */
    }

    .menu-toggle {
        display: block;
        /* Show on mobile */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 2rem;
        margin-top: 10px;
        gap: 2rem;
        /* Add gap for spacing */

        /* Glass Style Directly on Container */
        background: var(--glass);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--border-glass);
        border-radius: 30px;

        /* Layout & Animation Logic */
        display: flex;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        pointer-events: none;
        will-change: transform, opacity;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .logo {
        width: auto;
        justify-content: flex-start;
    }

    .hero {
        display: flex;
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
        gap: 1rem;
    }

    /* Flatten containers to allow reordering children */
    .hero-content,
    .hero-image {
        display: contents;
    }

    /* 1. Title (Hi I am...) */
    .hero h1 {
        order: 1;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    /* 2. Mascot */
    .mascot-wrapper {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }

    /* Flatten Button Group to Insert Badge */
    .cta-group {
        display: contents;
    }

    /* 3. Boop Button */
    #boop-me {
        order: 3;
        margin-bottom: 1rem;
    }

    /* 4. Badge (Welcome...) - BETWEEN BUTTONS */
    .hero-content .badge {
        order: 4;
        margin: 0 auto 1rem;
    }

    /* 5. Subtitle (Chill IT guy...) - SWAPPED up */
    .hero p {
        order: 5;
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    /* 6. Shenanigans Button - SWAPPED down */
    .cta-group .btn-secondary {
        order: 6;
        margin-bottom: 2rem;
    }

    /* 7. Quotes (Sticky) */
    #quoteBox {
        order: 7;
        padding: 1rem;
        transition: transform 0.3s ease, opacity 0.3s ease;
        /* Default state in flow */
        position: sticky;
        bottom: 20px;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 2rem;
        /* Keep glass style */
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 1;
        /* Force visible in flow */
        pointer-events: auto;
        /* Allow interaction if needed */
        z-index: 90;
    }

    #quoteBox.fixed-quote {
        position: fixed;
        bottom: 20px;
        left: 5%;
        width: 90%;
        margin: 0;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(20, 20, 30, 0.8);
        /* Darker background for readability when floating */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        animation: slideUpFade 0.5s ease-out;
    }

    @keyframes slideUpFade {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .mascot-img {
        max-width: 250px;
        /* Smaller mascot on mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .reaction-bubble {
        top: 20px;
        right: 20px;
        transform-origin: bottom left;
    }

    /* Adjust grid for mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns */
        gap: 0.8rem;
    }

    .gallery-item {
        height: 180px;
        /* Smaller cards on mobile */
    }


    .game-area {
        height: 300px;
        /* Smaller game area */
    }

    .hero-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .loading-text {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    #quoteBox {
        width: 95%;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* --- Terminal Arcade Styles --- */

/* Launcher Card (Override/Additions) */
.terminal-launcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.terminal-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

/* Modal Overlay */
.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    /* Above content (100) but below cursor (600) */
    background: rgba(0, 0, 0, 0.85);
    /* Dim backdrop */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.terminal-overlay.hidden {
    display: none;
}

/* Terminal Window Frame */
.terminal-window {
    width: 100%;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    background-color: #1e1e1e;
    /* Dark Grey Terminal Frame */
    border-radius: 12px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace;
    /* Fallback until VT323 is added */
    overflow: hidden;
    transform-origin: center;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Terminal Header */
.terminal-header {
    background-color: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #333;
}

.window-controls {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 15px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.control:hover {
    transform: scale(1.1);
}

.control.red {
    background-color: #ff5f56;
}

.control.yellow {
    background-color: #ffbd2e;
}

.control.green {
    background-color: #27c93f;
}

.terminal-title {
    color: #999;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
}

/* Terminal Screen (The Monitor) */
.terminal-screen {
    flex: 1;
    background-color: #0c0c0c;
    /* Black Screen */
    color: #33ff00;
    /* Matrix Green Text */
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    /* Add Google Font later? */
    font-size: 1.1rem;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(51, 255, 0, 0.4);
    /* Glow */
}

/* Scanline Effect */
.scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.3;
}

/* Game integration overrides */
.terminal-screen .game-area {
    width: 100%;
    height: 100%;
    border: 2px solid #33ff00;
    background: rgba(0, 20, 0, 0.3);
    position: relative;
    border-radius: 4px;
}

.terminal-screen h2 {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.terminal-menu-item {
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.terminal-menu-item:hover {
    background: rgba(51, 255, 0, 0.1);
    border-left: 2px solid #33ff00;
    padding-left: 20px;
}

.terminal-menu-item.active {
    background: rgba(51, 255, 0, 0.2);
    font-weight: bold;
}

/* Mobile Quote Fix */
@media (max-width: 768px) {
    #quoteBox {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin: 1rem 0;
        z-index: 5;
    }
}

/* --- Social Styles --- */
.social-section {
    padding: 10rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.2) rotate(10deg);
}

.social-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.social-info span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Brand Colors on Hover */
.social-card.telegram:hover .social-icon {
    filter: drop-shadow(0 0 10px #0088cc);
}

.social-card.twitter:hover .social-icon {
    filter: drop-shadow(0 0 10px #ffffff);
}

.social-card.instagram:hover .social-icon {
    filter: drop-shadow(0 0 10px #e1306c);
}

.social-card.furaffinity:hover .social-icon {
    filter: drop-shadow(0 0 10px #faaf50);
}

.social-card.steam:hover .social-icon {
    filter: drop-shadow(0 0 10px #66c0f4);
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}