:root {
    --studio-primary: #667eea;
    --studio-secondary: #764ba2;
    --playground-primary: #f59e0b;
    --playground-secondary: #ef4444;
    --bg: #0a0a0a;
    --text: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100vw;
}

.split-screen {
    display: flex;
    height: 100%;
    width: 100%;
}

.side {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.side:hover {
    flex: 1.3;
}

.side:hover .side-overlay {
    opacity: 0.3;
}

.studio-side {
    background: linear-gradient(135deg, var(--studio-primary) 0%, var(--studio-secondary) 100%);
}

.playground-side {
    background: linear-gradient(135deg, var(--playground-primary) 0%, var(--playground-secondary) 100%);
    position: relative;
}

.playground-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 2px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.side-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.6s;
    pointer-events: none;
}

.side-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.side-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.pixel-title {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.pixel-text {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.5),
        0 0 20px var(--playground-primary);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.side-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.side-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.5rem;
}

.enter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1s ease-out 0.8s both;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.enter-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.enter-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.enter-button:hover svg {
    transform: translateX(5px);
}

.enter-button:active {
    transform: translateY(-2px);
}

.divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 20%,
        rgba(255, 255, 255, 0.5) 80%,
        transparent 100%
    );
    transform: translateX(-50%);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.divider-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    animation: float 3s ease-in-out infinite;
}

.divider-text {
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(90deg, var(--studio-primary), var(--playground-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 100;
    animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }
    
    .side {
        flex: 1;
    }
    
    .side:hover {
        flex: 1.5;
    }
    
    .side-title {
        font-size: 2.5rem;
    }
    
    .pixel-text {
        font-size: 2rem;
    }
    
    .logo {
        width: 150px;
    }
    
    .divider {
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        width: 100%;
        height: 4px;
        transform: translateY(-50%);
    }
    
    .divider-line {
        left: 0;
        right: 0;
        top: 50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 20%,
            rgba(255, 255, 255, 0.5) 80%,
            transparent 100%
        );
    }
    
    .footer-nav {
        bottom: 1rem;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}