:root {
    --primary-color: #ffffff;
    --secondary-color: #cccccc;
    --accent-color: #00ff88;
    --glow-color: #00ff8844;
    --dark-bg: #000000;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background: var(--dark-bg);
    color: var(--primary-color);
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
}

.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 20s linear infinite;
}

.nebula {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: nebula-drift 30s ease-in-out infinite alternate;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.logo-section {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.infinity-symbol {
    font-size: 4rem;
    color: var(--accent-color);
    text-shadow: 0 0 30px var(--glow-color);
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
}

.studio-name {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    position: relative;
}

.studio-name .korean {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.studio-name .chinese {
    display: block;
    font-size: 0.6em;
    color: var(--secondary-color);
    margin: 0.5rem 0;
    opacity: 0.8;
}

.studio-name .english {
    display: block;
    font-size: 0.8em;
    letter-spacing: 0.4em;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--glow-color);
}

.subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--secondary-color);
    opacity: 0.7;
    letter-spacing: 0.1em;
}

.subtitle .dot {
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color);
    animation: pulse 2s ease-in-out infinite;
}

.mysterious-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    opacity: 0.6;
}

.grid-item {
    width: 80px;
    height: 80px;
    position: relative;
    cursor: none;
}

.glow-box {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glow-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--accent-color), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-box::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--dark-bg);
    border-radius: 6px;
    z-index: 1;
}

.grid-item:hover .glow-box::before {
    opacity: 0.8;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.element {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color);
}

.element-1 {
    top: 20%;
    left: 10%;
    animation: float-1 12s ease-in-out infinite;
}

.element-2 {
    top: 60%;
    right: 15%;
    animation: float-2 15s ease-in-out infinite;
}

.element-3 {
    bottom: 30%;
    left: 20%;
    animation: float-3 18s ease-in-out infinite;
}

.element-4 {
    top: 40%;
    right: 30%;
    animation: float-4 20s ease-in-out infinite;
}

.bottom-section {
    margin-top: 4rem;
    text-align: center;
}

.coming-soon {
    margin-bottom: 2rem;
}

.text-glitch {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: #ff0040;
    z-index: -1;
}

.text-glitch::after {
    animation: glitch-2 1s infinite linear alternate-reverse;
    color: #00ff88;
    z-index: -2;
}

.contact-hint {
    font-size: 0.9rem;
    color: var(--secondary-color);
    opacity: 0.6;
    font-family: 'Courier New', monospace;
}

.encrypted-text {
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    animation: decrypt 4s ease-in-out infinite;
}

.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Animations */
@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

@keyframes nebula-drift {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(20px) translateY(-10px) rotate(360deg); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 30px); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-25px, 15px); }
    50% { transform: translate(20px, -30px); }
    75% { transform: translate(35px, 20px); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -25px); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, 25px); }
    66% { transform: translate(25px, -15px); }
}

@keyframes glitch-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); transform: skew(0.5deg); }
    5% { clip: rect(12px, 9999px, 59px, 0); transform: skew(0.1deg); }
    10% { clip: rect(48px, 9999px, 29px, 0); transform: skew(0.8deg); }
    15% { clip: rect(42px, 9999px, 73px, 0); transform: skew(0.3deg); }
    20% { clip: rect(63px, 9999px, 27px, 0); transform: skew(0.6deg); }
    25% { clip: rect(34px, 9999px, 55px, 0); transform: skew(0.2deg); }
    30% { clip: rect(86px, 9999px, 73px, 0); transform: skew(0.9deg); }
    35% { clip: rect(20px, 9999px, 20px, 0); transform: skew(0.4deg); }
    40% { clip: rect(26px, 9999px, 60px, 0); transform: skew(0.7deg); }
    45% { clip: rect(59px, 9999px, 83px, 0); transform: skew(0.1deg); }
    50% { clip: rect(67px, 9999px, 27px, 0); transform: skew(0.5deg); }
    55% { clip: rect(10px, 9999px, 20px, 0); transform: skew(0.8deg); }
    60% { clip: rect(78px, 9999px, 75px, 0); transform: skew(0.3deg); }
    65% { clip: rect(65px, 9999px, 75px, 0); transform: skew(0.6deg); }
    70% { clip: rect(15px, 9999px, 90px, 0); transform: skew(0.2deg); }
    75% { clip: rect(40px, 9999px, 44px, 0); transform: skew(0.9deg); }
    80% { clip: rect(20px, 9999px, 59px, 0); transform: skew(0.4deg); }
    85% { clip: rect(54px, 9999px, 29px, 0); transform: skew(0.7deg); }
    90% { clip: rect(70px, 9999px, 73px, 0); transform: skew(0.1deg); }
    95% { clip: rect(25px, 9999px, 15px, 0); transform: skew(0.5deg); }
    100% { clip: rect(67px, 9999px, 27px, 0); transform: skew(0.8deg); }
}

@keyframes glitch-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); transform: skew(0.8deg); }
    5% { clip: rect(25px, 9999px, 15px, 0); transform: skew(0.2deg); }
    10% { clip: rect(70px, 9999px, 73px, 0); transform: skew(0.6deg); }
    15% { clip: rect(54px, 9999px, 29px, 0); transform: skew(0.1deg); }
    20% { clip: rect(20px, 9999px, 59px, 0); transform: skew(0.9deg); }
    25% { clip: rect(40px, 9999px, 44px, 0); transform: skew(0.3deg); }
    30% { clip: rect(15px, 9999px, 90px, 0); transform: skew(0.7deg); }
    35% { clip: rect(65px, 9999px, 75px, 0); transform: skew(0.4deg); }
    40% { clip: rect(78px, 9999px, 75px, 0); transform: skew(0.8deg); }
    45% { clip: rect(10px, 9999px, 20px, 0); transform: skew(0.2deg); }
    50% { clip: rect(67px, 9999px, 27px, 0); transform: skew(0.5deg); }
    55% { clip: rect(59px, 9999px, 83px, 0); transform: skew(0.9deg); }
    60% { clip: rect(26px, 9999px, 60px, 0); transform: skew(0.1deg); }
    65% { clip: rect(20px, 9999px, 20px, 0); transform: skew(0.6deg); }
    70% { clip: rect(86px, 9999px, 73px, 0); transform: skew(0.3deg); }
    75% { clip: rect(34px, 9999px, 55px, 0); transform: skew(0.7deg); }
    80% { clip: rect(63px, 9999px, 27px, 0); transform: skew(0.4deg); }
    85% { clip: rect(42px, 9999px, 73px, 0); transform: skew(0.8deg); }
    90% { clip: rect(48px, 9999px, 29px, 0); transform: skew(0.2deg); }
    95% { clip: rect(12px, 9999px, 59px, 0); transform: skew(0.5deg); }
    100% { clip: rect(42px, 9999px, 44px, 0); transform: skew(0.9deg); }
}

@keyframes decrypt {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; letter-spacing: 0.2em; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .studio-name {
        font-size: clamp(1.5rem, 10vw, 4rem);
    }
    
    .mysterious-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .grid-item {
        width: 60px;
        height: 60px;
    }
    
    .text-glitch {
        font-size: 1.2rem;
    }
    
    .infinity-symbol {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .studio-name {
        font-size: clamp(1.2rem, 12vw, 3rem);
        letter-spacing: 0.1em;
    }
    
    .subtitle {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .text-glitch {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }
    
    .contact-hint {
        font-size: 0.8rem;
    }
}
