@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #003876;
    --primary-light: #1A5AA0;
    --primary-glow: rgba(0, 56, 118, 0.6);
    --bg-dark: #0A0A0F;
    --bg-darker: #050508;
    --text-main: #F0F4F8;
    --text-muted: #A0AAB5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-en: 'Inter', sans-serif;
    --font-ko: 'Noto Sans KR', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    font-family: var(--font-ko);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-ko);
    font-weight: 700;
    line-height: 1.2;
}

[data-lang="en"] body,
[data-lang="en"] h1, 
[data-lang="en"] h2, 
[data-lang="en"] h3, 
[data-lang="en"] h4 {
    font-family: var(--font-en);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Layout & Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #a0aab5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 8, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #fff;
    flex-shrink: 0;
}

.logo-img-large {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: transform 0.3s ease;
}

.logo-img-large:hover {
    transform: scale(1.1);
}

nav.scrolled .logo-img-large {
    width: 36px;
    height: 36px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 15px var(--primary-glow);
    overflow: hidden;
    flex-shrink: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

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

.lang-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.4;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 1;
    max-width: 900px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px var(--primary-glow));
    flex-shrink: 0;
    animation: heroLogoFloat 4s ease-in-out infinite;
}

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

.hero-text {
    text-align: center;
}

.hero-title {
    font-family: var(--font-en);
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff, #8ba1ba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 56, 118, 0.5));
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #5865F2;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.6;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Game Info Section */
.game-info {
    background: linear-gradient(to bottom, var(--bg-dark), #030a14);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0, 56, 118, 0.2);
    border: 1px solid var(--glass-border);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(45deg, #050a10, #0a1420);
}

.game-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.keyword-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.keyword-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.keyword-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 56, 118, 0.3);
    border-color: rgba(0, 56, 118, 0.5);
}

.keyword-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.keyword-title {
    font-size: 1.4rem;
    font-weight: 700;
}

/* CEO Section */
.ceo-section {
    background: linear-gradient(to bottom, #030a14, var(--bg-darker));
    overflow: hidden;
}

.ceo-card {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    padding: 3.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 56, 118, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 56, 118, 0.2);
    position: relative;
    overflow: hidden;
}

.ceo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 56, 118, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.ceo-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.ceo-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 56, 118, 0.4);
    box-shadow: 0 0 40px rgba(0, 56, 118, 0.3), 0 0 80px rgba(0, 56, 118, 0.1);
    position: relative;
    z-index: 1;
}

.ceo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 56, 118, 0.25) 0%, transparent 70%);
    z-index: 0;
    animation: ceoGlowPulse 4s ease-in-out infinite;
}

@keyframes ceoGlowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.ceo-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ceo-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #fff, #c0d0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ceo-role {
    display: inline-block;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 0.4rem 1.4rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ceo-slogan {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
    line-height: 1.6;
}

.ceo-story {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(240, 244, 248, 0.85);
    text-align: justify;
    word-break: keep-all;
}

.ceo-story-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 600px;
}

.ceo-story-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .ceo-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem 2rem;
    }

    .ceo-photo {
        width: 160px;
        height: 160px;
    }

    .ceo-glow {
        width: 220px;
        height: 220px;
    }

    .ceo-name {
        font-size: 2rem;
    }

    .ceo-slogan {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--primary);
        padding-top: 1rem;
        text-align: center;
    }

    .ceo-story {
        text-align: left;
    }
}

/* Team Section */
.team {
    background: var(--bg-darker);
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.member-card:hover {
    border-color: rgba(0, 56, 118, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #050a10);
    margin-bottom: 1.5rem;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(0, 56, 118, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 0.9rem;
    color: #fff;
    background: var(--primary);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.member-slogan {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 2.85rem;
}

.member-story-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-top: auto;
}

.member-story-btn:hover {
    background: rgba(255,255,255,0.05);
}

.member-story {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.member-story.expanded {
    max-height: 800px;
    opacity: 1;
}

/* Vision Section */
.vision {
    background: linear-gradient(to top, var(--bg-darker), #030a14);
    position: relative;
}

.vision-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 56, 118, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.vision-container {
    position: relative;
    z-index: 1;
}

.vision-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.vision-card {
    padding: 3rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

.goals {
    max-width: 800px;
    margin: 0 auto;
}

.goals-title {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

.goal-icon {
    font-size: 1.5rem;
}

/* Works Section */
.works {
    background: var(--bg-dark);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a2a40, #050a10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

.work-info {
    padding: 1.5rem;
}

.work-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.work-status {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.8;
}

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

.contact-email:hover {
    color: var(--text-main);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-link:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide on mobile for simplicity, or implement hamburger */
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .vision-card {
        font-size: 1.3rem;
        padding: 2rem;
    }
    
    .keyword-cards {
        flex-direction: column;
    }
    
    .keyword-card {
        max-width: 100%;
    }

    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero-text {
        text-align: center;
    }
}
