/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (NEO-BRUTALIST / GEN-Z STYLE)
   ========================================================================== */
:root {
    --bg-color: #08080c;
    --card-bg: #111116;
    --text-primary: #ffffff;
    --text-secondary: #8a8d9b;
    --accent-red: #ff3e3e;
    --accent-yellow: #ffe600;
    --accent-cyan: #00f0ff;
    --accent-purple: #a855f7;
    --accent-green: #39ff14;
    
    --border-color: #1c1d24;
    --border-thick: 4px solid #1c1d24;
    --border-neon-red: 4px solid var(--accent-red);
    --border-neon-cyan: 4px solid var(--accent-cyan);
    --border-neon-yellow: 4px solid var(--accent-yellow);
    
    --shadow-raw: 8px 8px 0px 0px;
    --shadow-red: var(--shadow-raw) var(--accent-red);
    --shadow-cyan: var(--shadow-raw) var(--accent-cyan);
    --shadow-yellow: var(--shadow-raw) var(--accent-yellow);
    --shadow-dark: var(--shadow-raw) #1c1d24;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-retro: 'Press Start 2P', monospace;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --cursor-color: var(--accent-cyan);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; /* Hide default cursor to use custom cursor */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #1c1d24;
    border: 2px solid var(--bg-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ==========================================================================
   RETRO OVERLAYS & BACKGROUND
   ========================================================================== */
/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(28, 29, 36, 0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(28, 29, 36, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -10;
    pointer-events: none;
}

/* Radial Glow */
.grid-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -9;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    z-index: -8;
    pointer-events: none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
    width: 32px;
    height: 32px;
    border: 2px solid var(--cursor-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cursor-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.1s ease;
}

/* Hover States for Cursor */
body.hover-link .custom-cursor {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-cyan);
}

body.hover-link .custom-cursor-dot {
    background-color: var(--accent-yellow);
    transform: translate(-50%, -50%) scale(1.5);
}

body.hover-poke .custom-cursor {
    width: 52px;
    height: 52px;
    border-color: var(--accent-red);
    background-color: rgba(255, 62, 62, 0.15);
    border-style: dashed;
    animation: rotateCursor 4s linear infinite;
}

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

/* ==========================================================================
   FLOATING MASCOTS / STICKERS
   ========================================================================== */
.floating-sticker {
    position: fixed;
    pointer-events: none;
    z-index: -2;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.6));
    user-select: none;
}

.floating-sticker img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Sticker 1: Electric Mouse (Top Left) */
.sticker-1 {
    top: 15%;
    left: 8%;
    width: 140px;
    transform: rotate(-12deg);
}

/* Sticker 2: Purple Ghost (Bottom Right) */
.sticker-2 {
    bottom: 12%;
    right: 8%;
    width: 150px;
    transform: rotate(15deg);
}

/* Sticker 3: Cyber Pokéball (Top Right) */
.sticker-3 {
    top: 18%;
    right: 12%;
    width: 110px;
    transform: rotate(8deg);
}

/* Responsive Sticker Scaling */
@media (max-width: 1200px) {
    .sticker-1 { width: 100px; left: 5%; }
    .sticker-2 { width: 110px; right: 5%; }
    .sticker-3 { width: 80px; top: 12%; right: 8%; }
}
@media (max-width: 768px) {
    .floating-sticker {
        opacity: 0.35; /* Fade out slightly on mobile to avoid layout clutter */
    }
    .sticker-1 { width: 80px; top: 8%; left: 4%; }
    .sticker-2 { width: 90px; bottom: 15%; right: 4%; }
    .sticker-3 { display: none; } /* Hide 3rd on mobile */
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.main-container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-ball {
    color: var(--accent-red);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.4);
    animation: pulseGlow 2s infinite ease-in-out;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

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

.status-container {
    background-color: var(--card-bg);
    border: var(--border-thick);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 4px 4px 0px #000;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-green);
    animation: flashDot 1.5s infinite;
}

.status-text {
    font-family: var(--font-retro);
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

@keyframes flashDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 2px var(--accent-red)); }
    50% { filter: drop-shadow(0 0 8px var(--accent-red)); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    text-align: center;
    max-width: 900px;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Countdown Badge */
.countdown-badge {
    background-color: var(--accent-yellow);
    color: #000;
    border: var(--border-thick);
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 4px 4px 0px #000;
    margin-bottom: 0.5rem;
    transform: rotate(-1deg);
}

.badge-label {
    font-family: var(--font-retro);
    font-size: 0.55rem;
    font-weight: bold;
}

.badge-value {
    font-family: var(--font-retro);
    font-size: 0.65rem;
    font-weight: bold;
}

/* Title */
.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
}

.badge-inline {
    background-color: rgba(255, 62, 62, 0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   TALENT-CONSOLE (GAMING CONSOLE NEWSLETTER CARD)
   ========================================================================== */
.console-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.talent-console {
    background-color: var(--card-bg);
    border: var(--border-thick);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-cyan);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talent-console:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px 0px var(--accent-cyan);
}

/* Top Console bezel dots */
.console-top-bezel {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.05);
}

.lens-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #000;
}

.red-dot { background-color: var(--accent-red); box-shadow: 0 0 6px var(--accent-red); }
.yellow-dot { background-color: var(--accent-yellow); box-shadow: 0 0 6px var(--accent-yellow); }
.green-dot { background-color: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }

/* Screen Wrapper */
.console-screen-wrapper {
    background-color: #0f172a;
    border: 4px solid #1e293b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Screen CRT scanline and curve simulation */
.console-screen-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 2;
    pointer-events: none;
}

.console-screen {
    background-color: #040914;
    border-radius: 4px;
    padding: 1rem;
    border: 2px solid #000;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-retro);
    font-size: 0.5rem;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    padding-bottom: 0.4rem;
}

.screen-stat {
    color: var(--accent-yellow);
}

.screen-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-title {
    font-family: var(--font-retro);
    font-size: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
}

.form-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Input Wrapper & Styling */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 3px solid #1e293b;
    background-color: #080d1a;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--accent-cyan);
}

.input-icon {
    padding: 0 0.75rem;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

#emailInput {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-retro);
    font-size: 0.6rem;
    padding: 0.75rem 0.5rem 0.75rem 0;
    width: 100%;
    letter-spacing: 0.5px;
}

#emailInput::placeholder {
    color: #475569;
}

/* Poke Button */
.poke-btn {
    width: 100%;
    position: relative;
    border: none;
    background: transparent;
    font-family: var(--font-retro);
    font-size: 0.65rem;
    font-weight: bold;
    color: #000000;
    text-transform: uppercase;
    display: block;
    height: 42px;
}

.btn-text {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red);
    border: 3px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.1s ease, background-color 0.2s ease;
    z-index: 5;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.3);
}

.btn-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 4;
}

/* Button Hover and Click States */
.poke-btn:hover .btn-text {
    transform: translate(1px, 1px);
    background-color: #ff5b5b;
}

.poke-btn:active .btn-text {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* Feedback Messages */
.feedback-msg {
    font-family: var(--font-retro);
    font-size: 0.5rem;
    line-height: 1.5;
    display: none;
    margin-top: 0.5rem;
    padding: 0.4rem;
    border-radius: 2px;
}

.feedback-msg.success {
    display: block;
    color: var(--accent-green);
    background-color: rgba(57, 255, 20, 0.05);
    border: 1px dashed rgba(57, 255, 20, 0.3);
}

.feedback-msg.error {
    display: block;
    color: var(--accent-red);
    background-color: rgba(255, 62, 62, 0.05);
    border: 1px dashed rgba(255, 62, 62, 0.3);
}

/* Console Control Elements */
.console-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
    margin-bottom: 1.25rem;
}

/* D-Pad */
.dpad {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: #1e1e24;
    border-radius: 50%;
    border: 3px solid #0a0a0c;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.dpad-btn {
    position: absolute;
    background-color: #2b2b35;
    border: 2px solid #0a0a0c;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: background-color 0.1s, color 0.1s;
}

.dpad-btn:hover {
    background-color: #3b3b4a;
    color: var(--accent-cyan);
}

.dpad-up {
    top: 0;
    left: 26px;
    width: 28px;
    height: 28px;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
}

.dpad-down {
    bottom: 0;
    left: 26px;
    width: 28px;
    height: 28px;
    border-radius: 0 0 4px 4px;
    border-top: none;
}

.dpad-left {
    top: 26px;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.dpad-right {
    top: 26px;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.dpad-center {
    position: absolute;
    top: 26px;
    left: 26px;
    width: 28px;
    height: 28px;
    background-color: #2b2b35;
    z-index: 2;
}

/* Speakers */
.speaker-grill {
    display: flex;
    gap: 6px;
    transform: rotate(-25deg);
}

.grill-bar {
    width: 6px;
    height: 36px;
    background-color: #1e1e24;
    border-radius: 3px;
    box-shadow: inset 1px 1px 1px #000;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.action-label {
    font-family: var(--font-retro);
    font-size: 0.4rem;
    color: #475569;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #000000;
    box-shadow: 2px 2px 0px #000;
    transition: transform 0.1s, box-shadow 0.1s;
}

.red-action-btn {
    background-color: var(--accent-red);
}

.yellow-action-btn {
    background-color: var(--accent-yellow);
}

.action-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000;
}

.action-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Console Bottom area */
.console-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px dashed rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.dot-matrix-text {
    font-family: var(--font-retro);
    font-size: 0.45rem;
    color: #334155;
    letter-spacing: 0.5px;
}

.select-start-buttons {
    display: flex;
    gap: 0.5rem;
}

.ss-btn {
    width: 28px;
    height: 8px;
    background-color: #2b2b35;
    border-radius: 4px;
    border: 1px solid #000;
    transform: skewX(-15deg);
    box-shadow: 1px 1px 0px #000;
    transition: background-color 0.1s;
}

.ss-btn:hover {
    background-color: var(--accent-cyan);
}

/* ==========================================================================
   FOOTER (STATS & SOCIALS)
   ========================================================================= */
.footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: var(--border-thick);
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-stats {
    display: flex;
}

.stat-item {
    font-family: var(--font-retro);
    font-size: 0.55rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    box-shadow: 3px 3px 0px #000;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.stat-item:hover {
    border-color: var(--accent-yellow);
    box-shadow: 3px 3px 0px var(--accent-yellow);
    transform: translateY(-2px);
}

.stat-count {
    color: var(--accent-yellow);
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background-color: var(--card-bg);
    border: var(--border-thick);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 3px 3px 0px #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Dynamic social hover border-colors */
#socialX:hover {
    border-color: var(--text-primary);
    box-shadow: 3px 3px 0px var(--text-primary);
    color: var(--text-primary);
    transform: translate(-2px, -2px);
}

#socialDiscord:hover {
    border-color: var(--accent-purple);
    box-shadow: 3px 3px 0px var(--accent-purple);
    color: var(--accent-purple);
    transform: translate(-2px, -2px);
}

#socialGithub:hover {
    border-color: var(--accent-cyan);
    box-shadow: 3px 3px 0px var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translate(-2px, -2px);
}

/* ==========================================================================
   MOBILE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem 1rem;
    }

    .header {
        margin-bottom: 1.5rem;
    }

    .status-container {
        padding: 0.4rem 0.75rem;
    }

    .hero-section {
        margin-bottom: 2rem;
        gap: 1rem;
    }

    .talent-console {
        padding: 1rem;
    }

    .console-screen-wrapper {
        padding: 0.6rem;
    }

    .console-screen {
        min-height: 160px;
        padding: 0.75rem;
    }

    .dpad {
        width: 68px;
        height: 68px;
    }

    .dpad-up, .dpad-down, .dpad-left, .dpad-right, .dpad-center {
        width: 22px;
        height: 22px;
    }

    .dpad-up { left: 21px; }
    .dpad-down { left: 21px; }
    .dpad-left { top: 21px; }
    .dpad-right { top: 21px; }
    .dpad-center { top: 21px; left: 21px; }

    .speaker-grill {
        gap: 4px;
    }

    .grill-bar {
        width: 4px;
        height: 26px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}
