@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
    --neon-pink: #ff2cf5;
    --neon-purple: #b537f2;
    --neon-cyan: #00f3ff;
    --dark-bg: #0a0014;
    --grid-color: rgba(181, 55, 242, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', monospace;
    background: var(--dark-bg);
    color: white;
    position: relative;
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center bottom;
    z-index: -1;
    opacity: 0.5;
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    font-family: 'Press Start 2P', cursive;
    animation: glitch 3s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--neon-cyan);
    animation: glitch-before 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: var(--neon-pink);
    animation: glitch-after 0.3s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(2px, 2px);
    }
}

@keyframes glitch-before {

    0%,
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
        transform: translate(0);
    }

    50% {
        clip-path: polygon(0 10%, 100% 10%, 100% 55%, 0 55%);
        transform: translate(-3px, 0);
    }
}

@keyframes glitch-after {

    0%,
    100% {
        clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
        transform: translate(0);
    }

    50% {
        clip-path: polygon(0 45%, 100% 45%, 100% 90%, 0 90%);
        transform: translate(3px, 0);
    }
}

/* Toxic Wallet Button */
.toxic-wallet-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: 2px solid var(--neon-cyan);
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 44, 245, 0.5);
}

.toxic-wallet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 44, 245, 0.8);
}

/* Wallet Popup */
.wallet-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #1a1a2e;
    border: 3px solid var(--neon-pink);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 44, 245, 0.6);
}

.popup-header {
    background: var(--neon-purple);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.popup-body {
    padding: 40px;
    font-size: 24px;
    text-align: center;
    font-family: 'VT323', monospace;
}

/* System Error Popup Animation */
.system-error-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 100;
    animation: popupEntrance 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s forwards,
        floatShake 3s ease-in-out 1.5s infinite;
}

@keyframes popupEntrance {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes floatShake {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -50%) translateY(-5px) rotate(1deg);
    }

    50% {
        transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
    }

    75% {
        transform: translate(-50%, -50%) translateY(5px) rotate(-1deg);
    }
}

.error-window {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: 0 0 60px rgba(181, 55, 242, 0.8),
        inset 0 0 0 1px #dfdfdf,
        inset 0 0 0 2px #808080;
    min-width: 400px;
    font-family: 'VT323', monospace;
}

.error-title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 2px solid #000;
}

.error-close {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

.error-close:active {
    border-color: #000000 #ffffff #ffffff #000000;
}

.error-content {
    padding: 30px;
    text-align: center;
    background: #c0c0c0;
}

.error-heading {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: #000;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px var(--neon-pink),
        4px 4px 0px var(--neon-cyan);
    animation: textGlitch 0.3s infinite;
}

@keyframes textGlitch {

    0%,
    100% {
        text-shadow: 2px 2px 0px var(--neon-pink), 4px 4px 0px var(--neon-cyan);
    }

    50% {
        text-shadow: -2px -2px 0px var(--neon-cyan), 2px 2px 0px var(--neon-pink);
    }
}

.error-subtitle {
    font-size: 18px;
    color: #000;
    margin-bottom: 25px;
    font-weight: bold;
}

.error-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.error-btn {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    transition: all 0.1s;
}

.error-btn:hover {
    background: #dfdfdf;
}

.error-btn:active {
    border-color: #000000 #ffffff #ffffff #000000;
    transform: translateY(2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    position: relative;
}

.hero-image-wrapper {
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

.hero-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 60px rgba(181, 55, 242, 0.8);
    filter: drop-shadow(0 0 20px var(--neon-pink));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-headline {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink);
}

.hero-subheadline {
    font-size: 28px;
    margin-bottom: 50px;
    color: var(--neon-cyan);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Disaster Button */
.disaster-btn {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    padding: 20px 60px;
    font-size: 24px;
    font-family: 'Press Start 2P', cursive;
    text-decoration: none;
    color: white;
    border: 3px solid var(--neon-cyan);
    animation: pulsate 2s infinite;
    cursor: pointer;
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    animation: glow-pulse 2s infinite;
}

@keyframes pulsate {

    0%,
    100% {
        box-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-purple);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px var(--neon-pink), 0 0 80px var(--neon-purple);
        transform: scale(1.05);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }
}

/* Wall of Shame */
.wall-of-shame {
    padding: 100px 0;
    background: rgba(10, 0, 20, 0.8);
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink);
}

.section-subtitle {
    font-size: 24px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--neon-cyan);
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    padding: 20px 40px;
    font-size: 20px;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    border: 2px solid var(--neon-cyan);
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 44, 245, 0.8);
}

/* Loading Bar */
.loading-bar {
    margin-top: 40px;
}

.loading-text {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--neon-cyan);
    font-family: 'VT323', monospace;
}

.loading-progress {
    width: 100%;
    height: 30px;
    background: #1a1a2e;
    border: 2px solid var(--neon-purple);
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Meme Response */
.meme-response {
    margin-top: 40px;
}

.meme-response img {
    max-width: 400px;
    width: 100%;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(181, 55, 242, 0.6);
}

.meme-text {
    margin-top: 20px;
    font-size: 28px;
    color: var(--neon-pink);
    font-family: 'Press Start 2P', cursive;
}

/* Roadmap Section */
.roadmap-section {
    padding: 100px 0;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.roadmap-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--neon-purple);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(181, 55, 242, 0.5);
    border-color: var(--neon-pink);
}

.roadmap-quarter {
    font-size: 16px;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    font-family: 'Press Start 2P', cursive;
}

.roadmap-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.roadmap-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--neon-pink);
    font-family: 'Press Start 2P', cursive;
}

.roadmap-desc {
    font-size: 20px;
    color: #ccc;
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    background: rgba(10, 0, 20, 0.9);
}

.footer p {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 18px;
    color: var(--neon-cyan);
    margin-top: 20px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 28px;
    }

    .hero-subheadline {
        font-size: 18px;
    }

    .disaster-btn {
        font-size: 16px;
        padding: 15px 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .roadmap-title {
        font-size: 18px;
    }
}