/* ===== CSS Variables ===== */
:root {
    --color-space-black: #000000;
    --color-deep-navy: #001529;
    --color-electric-blue: #0072FF;
    --color-bright-blue: #00AEEF;
    --color-gold: #FFD700;
    --color-white: #FFFFFF;
    --color-gray: #B0B0B0;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Noto Sans KR', sans-serif;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: var(--color-space-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Language Switcher ===== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 21, 41, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(0, 114, 255, 0.3);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--color-gray);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-bright-blue));
    color: var(--color-white);
    box-shadow: 0 0 15px rgba(0, 114, 255, 0.5);
}

.lang-btn:hover:not(.active) {
    color: var(--color-electric-blue);
}

.lang-divider {
    color: var(--color-gray);
    font-size: 14px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(0, 21, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 114, 255, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.5s ease;
}

.nav-logo:hover .logo-icon {
    transform: rotate(360deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-electric-blue), var(--color-bright-blue));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-electric-blue);
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 21, 41, 0.8));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.glitch-text {
    font-family: var(--font-primary);
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-bright-blue), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 114, 255, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 114, 255, 0.8)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 174, 239, 1)); }
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-gray);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.5s both;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-bright-blue));
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 114, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-electric-blue);
}

.btn-secondary:hover {
    background: var(--color-electric-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.4);
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== About Section ===== */
.about {
    background: linear-gradient(180deg, var(--color-space-black) 0%, var(--color-deep-navy) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0, 114, 255, 0.03) 50px,
            rgba(0, 114, 255, 0.03) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0, 114, 255, 0.03) 50px,
            rgba(0, 114, 255, 0.03) 51px
        );
    pointer-events: none;
}

/* Pangaea Video Container */
.pangaea-video-container {
    max-width: 800px;
    margin: 60px auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(0, 114, 255, 0.4),
        0 0 80px rgba(0, 174, 239, 0.2);
    animation: videoGlow 3s ease-in-out infinite;
}

@keyframes videoGlow {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(0, 114, 255, 0.4),
            0 0 80px rgba(0, 174, 239, 0.2);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(0, 114, 255, 0.6),
            0 0 120px rgba(0, 174, 239, 0.4);
    }
}

.pangaea-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 2px solid rgba(0, 114, 255, 0.3);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.about-card {
    background: rgba(0, 21, 41, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-electric-blue);
    box-shadow: 0 15px 40px rgba(0, 114, 255, 0.3);
}

.card-icon {
    font-size: 48px;
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--color-gray);
    line-height: 1.8;
}

/* ===== Games Section ===== */
.games {
    background: var(--color-space-black);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.game-card {
    background: rgba(0, 21, 41, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: var(--color-electric-blue);
    box-shadow: 0 20px 50px rgba(0, 114, 255, 0.4);
}

.game-image {
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.2), rgba(0, 174, 239, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-placeholder {
    font-size: 80px;
    color: var(--color-electric-blue);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.game-card:hover .game-placeholder {
    transform: scale(1.2);
    opacity: 0.6;
}

.game-content {
    padding: 30px;
}

.game-content h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 15px;
}

.game-content p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.game-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-tags span {
    background: rgba(0, 114, 255, 0.2);
    color: var(--color-bright-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 114, 255, 0.3);
}

/* ===== Vision Section ===== */
.vision {
    background: linear-gradient(180deg, var(--color-space-black) 0%, var(--color-deep-navy) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(0, 21, 41, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-electric-blue);
    box-shadow: 0 15px 40px rgba(0, 114, 255, 0.3);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-suffix {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--color-gold);
    margin-left: 5px;
}

.stat-card p {
    color: var(--color-gray);
    margin-top: 10px;
    font-size: 14px;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.vision-card {
    background: rgba(0, 21, 41, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-electric-blue);
    box-shadow: 0 15px 40px rgba(0, 114, 255, 0.3);
}

.vision-card i {
    font-size: 48px;
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
}

.vision-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 15px;
}

.vision-card p {
    color: var(--color-gray);
    line-height: 1.8;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--color-space-black);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: rgba(0, 21, 41, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--color-electric-blue);
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.3);
}

.info-card i {
    font-size: 32px;
    color: var(--color-electric-blue);
    margin-bottom: 15px;
}

.info-card h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 10px;
}

.info-card a {
    color: var(--color-bright-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--color-gold);
}

.info-card p {
    color: var(--color-gray);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 114, 255, 0.2);
    border: 1px solid rgba(0, 114, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bright-blue);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-bright-blue));
    color: var(--color-white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.4);
}

.contact-form {
    background: rgba(0, 21, 41, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--color-white);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 114, 255, 0.3);
    border-radius: 10px;
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-deep-navy);
    border-top: 1px solid rgba(0, 114, 255, 0.2);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-electric-blue);
}

.footer-col p {
    color: var(--color-gray);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 114, 255, 0.1);
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(0, 21, 41, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        gap: 20px;
    }

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

    .hamburger {
        display: flex;
    }

    .language-switcher {
        top: 15px;
        right: 70px;
        padding: 6px 12px;
    }

    .lang-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contact-grid,
    .games-grid,
    .about-grid,
    .vision-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .glitch-text {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}
