@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-purple: #8b00ff;
    --neon-green: #00ff88;
    --black: #000000;
}

/* Font Classes */
.font-press-start {
    font-family: 'Press Start 2P', cursive;
}
.font-vt323 {
    font-family: 'VT323', monospace;
}

/* Color Classes */
.text-neon-pink {
    color: var(--neon-pink);
}
.text-neon-cyan {
    color: var(--neon-cyan);
}
.text-neon-purple {
    color: var(--neon-purple);
}
.text-neon-green {
    color: var(--neon-green);
}
.bg-neon-pink {
    background-color: var(--neon-pink);
}
.bg-neon-cyan {
    background-color: var(--neon-cyan);
}
.bg-neon-purple {
    background-color: var(--neon-purple);
}
.bg-neon-green {
    background-color: var(--neon-green);
}
.border-neon-pink {
    border-color: var(--neon-pink);
}
.border-neon-cyan {
    border-color: var(--neon-cyan);
}
.border-neon-purple {
    border-color: var(--neon-purple);
}
.border-neon-green {
    border-color: var(--neon-green);
}

/* CRT Effect */
.crt-effect {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}
.crt-effect::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    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));
    z-index: 100;
    pointer-events: none;
    background-size: 100% 2px, 3px 100%;
}

/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(69px, 9999px, 84px, 0); }
    10% { clip: rect(37px, 9999px, 69px, 0); }
    20% { clip: rect(89px, 9999px, 100px, 0); }
    30% { clip: rect(56px, 9999px, 72px, 0); }
    40% { clip: rect(30px, 9999px, 44px, 0); }
    50% { clip: rect(91px, 9999px, 58px, 0); }
    60% { clip: rect(5px, 9999px, 98px, 0); }
    70% { clip: rect(79px, 9999px, 34px, 0); }
    80% { clip: rect(42px, 9999px, 23px, 0); }
    90% { clip: rect(80px, 9999px, 9px, 0); }
    100% { clip: rect(63px, 9999px, 97px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(100px, 9999px, 60px, 0); }
    10% { clip: rect(8px, 9999px, 5px, 0); }
    20% { clip: rect(22px, 9999px, 75px, 0); }
    30% { clip: rect(68px, 9999px, 120px, 0); }
    40% { clip: rect(95px, 9999px, 50px, 0); }
    50% { clip: rect(110px, 9999px, 15px, 0); }
    60% { clip: rect(81px, 9999px, 90px, 0); }
    70% { clip: rect(4px, 9999px, 65px, 0); }
    80% { clip: rect(77px, 9999px, 40px, 0); }
    90% { clip: rect(120px, 9999px, 20px, 0); }
    100% { clip: rect(33px, 9999px, 110px, 0); }
}

/* Arcade Button */
.arcade-button {
    @apply px-6 py-3 rounded-lg font-press-start text-sm md:text-base transition-all duration-200 transform hover:scale-105 active:scale-95;
    box-shadow: 0 5px 0 rgba(0,0,0,0.2), inset 0 0 10px rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.arcade-button:active {
    box-shadow: 0 2px 0 rgba(0,0,0,0.2), inset 0 0 10px rgba(255,255,255,0.3);
    transform: translateY(3px) scale(0.95);
}

/* Pixel Input */
.pixel-input {
    @apply w-full px-4 py-3 bg-black border-2 border-neon-cyan rounded-none font-vt323 text-white;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
}
.pixel-input:focus {
    @apply outline-none border-neon-pink;
    box-shadow: inset 0 0 15px rgba(255, 0, 255, 0.5);
}

/* Terminal Box */
.terminal-box {
    @apply bg-black border-2 border-neon-green rounded-lg overflow-hidden;
}
.terminal-header {
    @apply bg-gray-900 px-4 py-2 flex items-center;
    border-bottom: 2px solid var(--neon-green);
}
.terminal-dots {
    @apply flex gap-2;
}
.dot {
    @apply w-3 h-3 rounded-full;
}
.dot.red {
    background-color: #ff5f56;
}
.dot.yellow {
    background-color: #ffbd2e;
}
.dot.green {
    background-color: #27c93f;
}
.terminal-title {
    @apply ml-2 font-vt323 text-neon-green;
}
.terminal-body {
    @apply p-4 min-h-32;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

.terminal-body p {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* Feature Cards */
.feature-card {
    @apply p-6 bg-black bg-opacity-70 border-2 border-neon-purple rounded-lg transform hover:scale-105 transition duration-300;
    backdrop-filter: blur(5px);
}
.feature-icon {
    @apply text-4xl mb-4 w-16 h-16 rounded-full flex items-center justify-center;
    box-shadow: 0 0 15px currentColor;
}
.feature-title {
    @apply text-xl font-press-start mb-2 text-neon-cyan;
}
.feature-desc {
    @apply font-vt323 text-base text-white;
}

/* Team Cards */
.team-card {
    @apply p-6 bg-black bg-opacity-70 border-2 border-neon-pink rounded-lg text-center;
    backdrop-filter: blur(5px);
}
.team-icon {
    @apply text-5xl mb-4;
}
.team-name {
    @apply text-xl font-press-start mb-1 text-neon-cyan;
}
.team-role {
    @apply font-vt323 text-neon-pink mb-4;
}
.team-social {
    @apply flex justify-center gap-4;
}

/* Stats Boxes */
.stat-box {
    @apply bg-black border-2 border-neon-purple px-6 py-3 rounded-lg text-center min-w-24;
}
.big-stat {
    @apply text-center;
}
.big-stat-number {
    @apply text-5xl md:text-6xl font-press-start mb-2 text-neon-pink;
}
.big-stat-label {
    @apply font-vt323 text-xl text-neon-cyan;
}

/* Section Titles */
.section-title {
    @apply text-3xl md:text-4xl font-press-start mb-6;
    text-shadow: 0 0 10px currentColor;
}

/* Blink Animation */
.blink {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Floating Pixels */
.floating-pixel {
    @apply absolute rounded-sm;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Problem/Solution Boxes */
.problem-box .section-title {
    @apply text-neon-pink;
}
.solution-box .section-title {
    @apply text-neon-cyan;
}