:root {
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-lime: #39ff14;
}

body {
    background-color: #050505;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

.arcade-font {
    font-family: 'Press Start 2P', cursive;
}

/* CRT Scanline Effect */
.scanlines::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.1) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 50;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

/* Neon Glows */
.glow-pink {
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.glow-cyan {
    text-shadow: 0 0 10px var(--neon-cyan);
}

.grid-bg {
    background-image:
        radial-gradient(circle at center, rgba(255, 0, 255, 0.15) 0%, transparent 70%),
        linear-gradient(to right, rgba(255, 0, 255, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 0, 255, 0.25) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    perspective: 500px;
}

.card-gradient {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-retro {
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px var(--neon-cyan);
}

.btn-retro:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--neon-pink);
}

.btn-retro:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--neon-cyan);
}

@keyframes flicker {
    0% {
        opacity: 0.9;
    }

    5% {
        opacity: 0.5;
    }

    10% {
        opacity: 0.9;
    }

    100% {
        opacity: 1;
    }
}

.animate-flicker {
    animation: flicker 3s infinite;
}

/* ===========================
   Pixel Art PC Mascot
   =========================== */
.pixel-pc {
    display: inline-block;
    margin: 1.5rem auto 1.5rem;
    position: relative;
    animation: pc-float 3s ease-in-out infinite;
    image-rendering: pixelated;
}

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

/* Monitor body — beige casing like an 80s terminal */
.pc-monitor {
    display: flex;
    width: 220px;
    height: 160px;
    background: #d4c8a0;
    border: 4px solid #b3a47a;
    border-radius: 6px;
    position: relative;
    box-shadow:
        inset 2px 2px 0 #e8dfc0,
        inset -2px -2px 0 #a08e64,
        0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Top decorative strip on the monitor */
.pc-monitor-strip {
    position: absolute;
    top: 6px;
    left: 8px;
    right: 70px;
    height: 3px;
    background: #b3a47a;
    border-radius: 1px;
}

/* CRT Screen area */
.pc-screen {
    width: 140px;
    height: 120px;
    margin: 16px 0 0 12px;
    background: #0a2a1a;
    border: 3px solid #8a7c58;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 30px rgba(0, 255, 100, 0.08),
        inset 0 0 8px rgba(0, 0, 0, 0.6);
}

/* CRT green glow */
.pc-screen-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 255, 100, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Screen scanlines */
.pc-screen-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 2;
}

/* Face container on screen */
.pc-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 20px;
    z-index: 1;
    padding-top: 10px;
}

/* Eye socket — pixel square */
.pc-eye {
    width: 28px;
    height: 28px;
    background: #0f4a2a;
    border: 2px solid #1a7a3a;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.2);
}

/* Pupil */
.pc-pupil {
    width: 12px;
    height: 12px;
    background: #39ff14;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out;
    box-shadow:
        0 0 6px #39ff14,
        0 0 12px rgba(57, 255, 20, 0.4);
}

/* Mouth — row of small pixels forming a smile */
.pc-mouth {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: -8px;
}

.pc-mouth-pixel {
    width: 6px;
    height: 6px;
    background: #39ff14;
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(57, 255, 20, 0.5);
}

.pc-mouth-pixel:first-child,
.pc-mouth-pixel:last-child {
    transform: translateY(-3px);
}

.pc-mouth-pixel:nth-child(2),
.pc-mouth-pixel:nth-child(4) {
    transform: translateY(-1px);
}

/* Side panel (right side of monitor) */
.pc-side-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 6px;
}

/* Speaker grille */
.pc-speaker {
    width: 36px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pc-speaker-line {
    width: 100%;
    height: 2px;
    background: #a08e64;
    border-radius: 1px;
}

/* Floppy drive slot */
.pc-floppy {
    width: 36px;
    height: 16px;
    background: #c4b888;
    border: 2px solid #a08e64;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-floppy-slot {
    width: 22px;
    height: 3px;
    background: #2a2a2a;
    border-radius: 1px;
}

/* Power LED */
.pc-led {
    width: 6px;
    height: 6px;
    background: #39ff14;
    border-radius: 50%;
    box-shadow: 0 0 6px #39ff14, 0 0 12px rgba(57, 255, 20, 0.6);
    animation: led-blink 2s ease-in-out infinite;
}

@keyframes led-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Monitor Stand */
.pc-stand {
    width: 60px;
    height: 10px;
    background: #c4b888;
    border: 2px solid #a08e64;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Keyboard */
.pc-keyboard {
    width: 200px;
    margin: 6px auto 0;
    background: #d4c8a0;
    border: 3px solid #b3a47a;
    border-radius: 4px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow:
        inset 1px 1px 0 #e8dfc0,
        inset -1px -1px 0 #a08e64,
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.pc-keys-row {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.pc-key {
    width: 14px;
    height: 10px;
    background: #e8dfc0;
    border: 1px solid #c4b888;
    border-radius: 1px;
    box-shadow: 0 1px 0 #a08e64;
}

.pc-key-space {
    width: 80px;
}

/* Responsive scaling */
@media (max-width: 480px) {
    .pixel-pc {
        transform: scale(0.75);
    }
    @keyframes pc-float {
        0%, 100% { transform: scale(0.75) translateY(0); }
        50% { transform: scale(0.75) translateY(-6px); }
    }
}

/* ===========================
   Study Card 3D Flip & Forms
   =========================== */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 210px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Search input style */
.cyber-input {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(255, 0, 255, 0.3);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Cyber Toggle */
.cyber-toggle {
    appearance: none;
    width: 44px;
    height: 22px;
    background: #333;
    border-radius: 11px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cyber-toggle:checked {
    background: var(--neon-pink);
}

.cyber-toggle::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 1px;
    left: 1px;
    transition: transform 0.3s;
}

.cyber-toggle:checked::before {
    transform: translateX(22px);
}

/* ===========================
   Cyberpunk Section Backgrounds
   =========================== */
.cyberpunk-section {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.cyberpunk-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Bright neon green glow - top left */
        radial-gradient(ellipse at 15% 20%, rgba(57, 255, 20, 0.25) 0%, transparent 45%),
        /* Cyan-green glow - bottom right */
        radial-gradient(ellipse at 85% 80%, rgba(0, 255, 200, 0.18) 0%, transparent 45%),
        /* Pink accent glow - top right */
        radial-gradient(ellipse at 80% 15%, rgba(255, 0, 255, 0.10) 0%, transparent 40%),
        /* Black base gradient */
        linear-gradient(180deg, #000000 0%, #000000 50%, #000000 100%);
    pointer-events: none;
    z-index: 0;
}

.cyberpunk-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Horizontal grid lines */
        linear-gradient(to right, rgba(57, 255, 20, 0.10) 1px, transparent 1px),
        /* Vertical grid lines */
        linear-gradient(to bottom, rgba(57, 255, 20, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Make the content container inherit the background */
.cyberpunk-section > div {
    background: transparent;
    position: relative;
    z-index: 1;
}

.cyberpunk-section > * {
    position: relative;
    z-index: 1;
}

.cyberpunk-title {
    position: relative;
    display: inline-block;
    animation: glow-pulse-green 3s ease-in-out infinite;
}

@keyframes glow-pulse-green {
    0%, 100% {
        text-shadow: 0 0 8px rgba(57, 255, 20, 0.6), 0 0 20px rgba(0, 255, 100, 0.3);
    }
    50% {
        text-shadow: 0 0 16px rgba(57, 255, 20, 0.9), 0 0 40px rgba(0, 255, 100, 0.5);
    }
}
}

