:root {
    --bg-color: #050510;
    --bg-alt: #0a0a1f;
    --text-main: #ffffff;
    --text-muted: #b0b0c0;
    --accent: #6c5ce7;
    --accent-glow: #6c5ce780;
    --secondary: #00cec9;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 16, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s;
}

header.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 16, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

nav a:hover,
nav a.active {
    color: var(--text-main);
}

.btn-contact {
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
}

.btn-contact:hover {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: float 10s infinite ease-in-out;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 30px);
    }
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent), #4834d4);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px var(--accent-glow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.btn.large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 70px;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Games Showcase */
.dark-alt {
    background-color: var(--bg-alt);
}

.game-card {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.game-card:last-child {
    margin-bottom: 0;
}

.game-image-placeholder {
    flex: 1;
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.gradient-1 {
    background: linear-gradient(45deg, #2b0000, #4a004a);
    /* Placeholder art */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gradient-2 {
    background: linear-gradient(45deg, #001f3f, #004d40);
    /* Placeholder art */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.game-info {
    flex: 0.8;
}

.game-info h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.game-info .genre {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.game-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
}

.btn-link:hover {
    color: var(--accent);
}

/* Cursor Glow */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.social-links a {
    color: var(--text-muted);
    margin-left: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 20px;
    transition: color 0.3s;
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }

    header .container {
        position: relative;
    }

    nav.nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 30px 30px;
        overflow-y: auto;
    }

    nav.nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu a {
        display: block;
        padding: 20px 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-menu .btn-contact {
        margin-top: 20px;
        text-align: center;
        padding: 15px 25px;
        width: 100%;
        border-radius: 10px;
    }

    .game-card {
        flex-direction: column;
        gap: 30px;
    }

    .game-card.right-image {
        flex-direction: column-reverse;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .social-links a {
        margin-left: 0;
    }
}

/* Update for Single Game Display */
.game-card.center-focus {
    flex-direction: column;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.game-card.center-focus .game-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.game-card.center-focus .game-image-container:hover {
    transform: translateY(-5px);
}

.game-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.btn-group {
    margin-top: 30px;
}

/* Contact Info Text */
.contact-info {
    margin-top: 40px;
}

.contact-label {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 500;
}