:root {
    --bg-color: #050510;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-color: #7b2cbf;
    --accent-glow: #9d4edd;
    --error-color: #ff0055;
    --grid-line: rgba(255, 255, 255, 0.03);
}

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

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050510 100%);
}

#particle-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.content-wrapper {
    position: relative;
    text-align: center;
    z-index: 10;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-20px) rotateX(2deg);
    }
}

.glitch-container {
    position: relative;
    margin-bottom: 1rem;
}

.glitch {
    font-size: 15vw;
    font-weight: 900;
    line-height: 1;
    position: relative;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #555;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #ccc;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(38px, 9999px, 81px, 0); transform: skew(0.8deg); }
    5% { clip: rect(69px, 9999px, 86px, 0); transform: skew(0.3deg); }
    10% { clip: rect(10px, 9999px, 83px, 0); transform: skew(0.01deg); }
    15% { clip: rect(6px, 9999px, 92px, 0); transform: skew(0.9deg); }
    20% { clip: rect(74px, 9999px, 53px, 0); transform: skew(0.3deg); }
    100% { clip: rect(41px, 9999px, 15px, 0); transform: skew(0.7deg); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(54px, 9999px, 55px, 0); transform: skew(0.3deg); }
    5% { clip: rect(2px, 9999px, 60px, 0); transform: skew(0.9deg); }
    10% { clip: rect(82px, 9999px, 98px, 0); transform: skew(0.1deg); }
    15% { clip: rect(2px, 9999px, 20px, 0); transform: skew(0.8deg); }
    20% { clip: rect(13px, 9999px, 17px, 0); transform: skew(0.4deg); }
    100% { clip: rect(98px, 9999px, 68px, 0); transform: skew(0.1deg); }
}

.message-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a0a0b0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.message-container p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.home-btn {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    overflow: hidden;
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
}

.home-btn:hover .btn-glow {
    width: 200px;
    height: 200px;
    opacity: 0.5;
}

.btn-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .glitch {
        font-size: 25vw;
    }
    .content-wrapper {
        width: 90%;
        padding: 1.5rem;
    }
}
