/* === KLIMBIM STUDIO - 80s Synthwave Space Arcade === */

:root {
    --neon-pink: #ff2a6d;
    --electric-cyan: #05d9e8;
    --deep-purple: #7b2cbf;
    --sunset-orange: #ff6b35;
    --space-black: #0d0221;
    --star-white: #d1f7ff;
}

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

@font-face {
    font-family: 'PixelFont';
    src: url('assets/PressStart2P-Regular.ttf') format('truetype');
}

body {
    font-family: 'PixelFont', 'Courier New', monospace;
    background: var(--space-black);
    color: var(--star-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* === SPACE BACKGROUND CANVAS === */
#space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* === SCANLINES OVERLAY === */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
}

/* === MAIN CONTENT === */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

/* === LOGO === */
.logo-container {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.logo {
    max-width: 120px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px var(--neon-pink));
}

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

/* === TITLE === */
.title {
    margin-bottom: 1rem;
}

.pixel-text {
    display: block;
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--neon-pink);
    text-shadow: 
        0 0 5px rgba(255, 42, 109, 0.6),
        3px 3px 0 var(--deep-purple);
    letter-spacing: 0.2em;
}

.subtitle {
    display: block;
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    color: var(--electric-cyan);
    letter-spacing: 0.5em;
    margin-top: 0.5rem;
    text-shadow: 0 0 4px rgba(5, 217, 232, 0.5);
}

/* === TAGLINE === */
.tagline {
    font-size: clamp(0.7rem, 2vw, 1rem);
    color: var(--star-white);
    margin: 2rem 0;
    opacity: 0.9;
}

/* === CTA BLINK === */
.cta {
    margin: 2rem 0;
}

.blink {
    font-size: clamp(0.5rem, 1.5vw, 0.8rem);
    color: var(--sunset-orange);
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* === CONTACT BUTTON === */
.pixel-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
    color: var(--space-black);
    background: var(--electric-cyan);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 
        4px 4px 0 var(--deep-purple),
        0 0 20px rgba(5, 217, 232, 0.5);
}

.pixel-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 
        2px 2px 0 var(--deep-purple),
        0 0 30px rgba(5, 217, 232, 0.8);
}

/* === PROJECTS === */
.projects {
    margin-top: 3rem;
}

.projects-label {
    font-size: 0.6rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
}

.project-link {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    color: var(--neon-pink);
    text-decoration: none;
    transition: all 0.2s;
}

.project-link:hover {
    color: var(--electric-cyan);
    text-shadow: 0 0 10px var(--electric-cyan);
}

/* === FLOATING INVADERS === */
.invader {
    position: fixed;
    font-size: 2rem;
    opacity: 0.6;
    animation: drift 20s linear infinite;
    z-index: 5;
    pointer-events: none;
}

.invader-1 {
    top: 20%;
    left: -50px;
    animation-duration: 25s;
}

.invader-2 {
    top: 60%;
    left: -50px;
    animation-delay: -10s;
    animation-duration: 30s;
}

.invader-3 {
    top: 40%;
    left: -50px;
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes drift {
    from {
        transform: translateX(0) rotate(0deg);
    }
    to {
        transform: translateX(calc(100vw + 100px)) rotate(360deg);
    }
}

/* === FOOTER === */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    font-size: 0.5rem;
    color: var(--deep-purple);
}

.legal a {
    color: var(--deep-purple);
    text-decoration: none;
}

.legal a:hover {
    color: var(--electric-cyan);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .content {
        padding: 1rem;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .invader {
        font-size: 1.5rem;
    }
}
