/* ==========================================================================
   CYBERKID STUDIOS - PORTFOLIO DESIGN SYSTEM & CSS
   ========================================================================== */

:root {
    --bg-color: #030206;
    --panel-bg: rgba(14, 10, 26, 0.75);
    --panel-border: rgba(255, 0, 127, 0.2);
    --cyan-border: rgba(0, 240, 255, 0.2);
    
    --neon-pink: #ff007f;
    --neon-cyan: #00f0ff;
    --neon-purple: #bd00ff;
    --neon-green: #39ff14;
    --neon-yellow: #f7df1e;
    
    --text-primary: #ffffff;
    --text-secondary: #8b82be;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    background-image: 
        linear-gradient(rgba(255, 0, 127, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 127, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* scanlines for retro CRT feel */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.15) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.studio-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LOGO GRAPHIC STYLES & ANIMATIONS */
.logo-graphic {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.outer-hex {
    transform-origin: 50px 50px;
    animation: rotate-reverse 20s infinite linear;
}

.inner-circle {
    transform-origin: 50px 50px;
    animation: rotate-forward 10s infinite linear;
}

@keyframes rotate-forward {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* CENTRAL 'CK' — Chakra Petch + glitch sync */
.logo-ck {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
}

.ck-ghost-cyan { animation: ck-flick 4s steps(1) infinite; }
.ck-ghost-pink { animation: ck-flick2 5s steps(1) infinite; }

@keyframes ck-flick {
    0%, 92%, 100% { opacity: 0; }
    93%, 97% { opacity: 0.9; }
}

@keyframes ck-flick2 {
    0%, 88%, 100% { opacity: 0; }
    89%, 95% { opacity: 0.85; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .outer-hex,
    .inner-circle,
    .glitch-title::before,
    .glitch-title::after,
    .ck-ghost-cyan,
    .ck-ghost-pink {
        animation: none;
    }
}

.glitch-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 0 15px var(--neon-pink);
    position: relative;
    color: #fff;
    margin-bottom: 6px;
}

/* Cyberpunk Glitch Effect */
.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch-title::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip-path: inset(40% 0 61% 0);
    animation: glitch-anim 6s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-pink), 0 2px var(--neon-purple);
    clip-path: inset(25% 0 58% 0);
    animation: glitch-anim2 4s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(40% 0 61% 0); }
    15% { clip-path: inset(92% 0 1% 0); }
    30% { clip-path: inset(25% 0 58% 0); }
    45% { clip-path: inset(76% 0 5% 0); }
    60% { clip-path: inset(15% 0 80% 0); }
    75% { clip-path: inset(80% 0 5% 0); }
    90% { clip-path: inset(5% 0 92% 0); }
    100% { clip-path: inset(40% 0 61% 0); }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(25% 0 58% 0); }
    15% { clip-path: inset(80% 0 5% 0); }
    30% { clip-path: inset(40% 0 61% 0); }
    45% { clip-path: inset(15% 0 80% 0); }
    60% { clip-path: inset(92% 0 1% 0); }
    75% { clip-path: inset(76% 0 5% 0); }
    90% { clip-path: inset(61% 0 25% 0); }
    100% { clip-path: inset(25% 0 58% 0); }
}

.studio-tagline {
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.hero-description {
    max-width: 600px;
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.6;
}

/* PORTFOLIO SECTION */
.portfolio {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.portfolio-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-cyan);
    border-bottom: 2px solid var(--cyan-border);
    padding-bottom: 12px;
    margin-bottom: 40px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-title::before {
    content: '▶';
    font-size: 18px;
    color: var(--neon-cyan);
}

.game-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 12px 40px rgba(255, 0, 127, 0.15);
    transform: translateY(-2px);
}

.game-image-container {
    flex: 1;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 16 / 10;
    background: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-image-svg {
    width: 100%;
    height: 100%;
}

.game-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.game-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-pink);
}

.game-platform {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.game-platform.status-testing {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.game-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.feature-tag.tag-green {
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.2);
    background: rgba(57, 255, 20, 0.02);
}

.feature-tag.tag-yellow {
    color: var(--neon-yellow);
    border-color: rgba(247, 223, 30, 0.2);
    background: rgba(247, 223, 30, 0.02);
}

.game-actions {
    margin-top: 10px;
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
    transition: all 0.25s ease;
}

.btn-playstore:hover {
    box-shadow: 0 6px 25px rgba(255, 0, 127, 0.6);
    transform: translateY(-1px);
}

.btn-playstore.btn-testing {
    background: linear-gradient(135deg, #0e8f00, var(--neon-green));
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}

.btn-playstore.btn-testing:hover {
    box-shadow: 0 6px 25px rgba(57, 255, 20, 0.6);
}

.btn-playstore.btn-js {
    background: linear-gradient(135deg, #b8a614, var(--neon-yellow));
    box-shadow: 0 4px 15px rgba(247, 223, 30, 0.3);
    color: var(--bg-color);
}

.btn-playstore.btn-js:hover {
    box-shadow: 0 6px 25px rgba(247, 223, 30, 0.6);
}

/* ABOUT SECTION */
.about {
    background: var(--panel-bg);
    border: 1px solid var(--cyan-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--neon-cyan);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
}

.copyright {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 820px) {
    .game-card {
        flex-direction: column;
        padding: 24px;
    }
    
    .game-image-container {
        max-width: 100%;
    }
    
    .site-wrapper {
        gap: 50px;
        padding: 40px 16px;
    }
    
    .glitch-title {
        font-size: 32px;
    }
}
