
:root {
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --accent-color: #ff6b6b;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-color: #f8fafc;
    --text-muted: #cbd5e1;
    --white: #ffffff;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --border-radius: 24px;
}

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

body {
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #60a5fa, #34d399);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    padding: 8rem 2rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.game-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    background: rgba(30, 41, 59, 0.9);
}

.game-thumb {
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    position: relative;
    transition: transform 0.5s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.1);
}

/* Individual Game Accents */
.game-card:nth-child(1) { --game-color: #60a5fa; }
.game-card:nth-child(2) { --game-color: #fbbf24; }
.game-card:nth-child(3) { --game-color: #10b981; }
.game-card:nth-child(4) { --game-color: #f472b6; }

.game-card:nth-child(1) .game-thumb { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.game-card:nth-child(2) .game-thumb { background: linear-gradient(135deg, #78350f, #fbbf24); }
.game-card:nth-child(3) .game-thumb { background: linear-gradient(135deg, #064e3b, #10b981); }
.game-card:nth-child(4) .game-thumb { background: linear-gradient(135deg, #701a75, #f472b6); }

.game-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 1px;
}

.game-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    flex-grow: 1;
}

.play-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover .play-badge {
    background: var(--game-color);
    box-shadow: 0 0 20px var(--game-color);
    border-color: transparent;
}

.play-badge::after {
    content: '▶';
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.game-card:hover .play-badge::after {
    transform: translateX(4px);
}

footer {
    margin-top: 10rem;
    padding: 6rem 2rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 1rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .nav-links { display: none; }
    .game-grid { gap: 2rem; }
}
