/* ========================================
   CSS Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Light Theme (from readme/ui.md) */
    --primary-color: #209ff4;
    /* Main Color */
    --secondary-color: #209ff4;
    /* Secondary Color */
    --accent-color: #000000;
    /* Accent Color */
    --dark-color: #000000;
    /* Dark Color */
    --text-white: #ffffff;
    /* White Text */
    --text-dark: #563e00;
    /* Body Text */
    --text-gray: #64748b;
    /* Secondary Text */
    --bg-white: rgba(255, 255, 255, 1);
    /* White Background */
    --bg-accent: rgba(255, 255, 255, 0.9);
    /* Accent Background */
    --card-border: rgba(148, 163, 184, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.05);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --navbar-height: 72px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    /* overflow-x: hidden; */
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    /* background-color: red; */
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background: rgba(37, 99, 235, 0.05);
    font-weight: 600;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: var(--spacing-md);
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 0.875rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-divider {
    color: var(--card-border);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

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

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========================================
   Common Components
   ======================================== */

/* Card Component - 여러 섹션에서 사용되는 공통 카드 스타일 */
.card {
    background: var(--bg-accent);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
    padding: var(--spacing-md);
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

/* Section Components - 모든 섹션에서 공통으로 사용 */
section {
    padding: var(--spacing-md) 0;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--accent-color);
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        2px 2px 4px rgba(128, 128, 128, 1);
}

.section-desc-card {
    padding: var(--spacing-xs) var(--spacing-md) var(--spacing-xs) var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.03);
    max-width: 800px;
    margin: 0 auto;
}

.section-desc {
    font-size: 1.2rem;
    line-height: 1.5;
}

.section-desc p {
    margin: 7px 0 7px 0;
}

/* Price Display - Video/Web 섹션에서 사용 */
.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

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

.bg-accent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background: white;
}

.bg-light {
    filter: blur(10px) brightness(1.2) opacity(0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
    /* max-width: 800px; */
    padding: 0 var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-white);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--white-blue);
    animation: bounce 2s infinite;
    cursor: pointer;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

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

    50% {
        transform: translateY(10px);
    }
}

/* ========================================
   Games Section
   ======================================== */
.games {
    background: var(--bg-white);
}

.game-content {
    text-align: center;
}

.games-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.game-card {
    padding: 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 500px;
}

.game-card p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

.game-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-icon {
    margin-top: -40px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.game-icon img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--bg-white);
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 700;
}

.game-info p {
    color: var(--text-gray);
    line-height: 1.6;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: var(--spacing-sm);
}

.download-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.download-links img {
    height: 35px;
    width: auto;
}

.download-links a:hover {
    transform: translateY(-2px);
}

/* ========================================
   Metaverse Section
   ======================================== */
.metaverse {
    background: var(--bg-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metaverse-content {
    padding: var(--spacing-md);
}

.metaverse-content h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    font-weight: 700;
}

.metaverse-content p {
    max-width: 700px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: var(--spacing-md);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   Consulting Section
   ======================================== */
.consulting {
    background: var(--bg-white);
    text-align: center;
}

.consulting-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.consulting-content .section-desc {
    text-align: left;
}

.consulting-image {
    margin-bottom: var(--spacing-md);
}

.consulting-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Video Production Section
   ======================================== */
.video {
    background: var(--bg-accent);
    text-align: center;
}

.video-content {
    max-width: 1000px;
    margin: 0 auto;
}

.video-gallery {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.video-item {
    flex: 1;
    min-width: 300px;
    max-width: 300px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-item iframe {
    width: 100%;
    height: 100%;
}

/* ========================================
   Web Production Section
   ======================================== */
.web {
    background: var(--bg-white);
    text-align: center;
}

.web-content {
    max-width: 1000px;
    margin: 0 auto;
}

.web-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.web-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.web-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.web-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   Company Section
   ======================================== */
.company {
    background: var(--bg-accent);
}

.greeting-content {
    margin-bottom: var(--spacing-lg);
}

.greeting-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--bg-white);
}

.ceo-name {
    font-weight: 700;
    color: var(--primary-color) !important;
    margin-top: var(--spacing-md);
    font-size: 1.125rem;
    text-align: right;
}

.company-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.company-card {
    width: 500px;
}

.company-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
    border-bottom: 2px solid var(--bg-white);
    padding-bottom: var(--spacing-xs);
    font-weight: 700;
}

.company-list {
    list-style: none;
}

.company-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-white);
    position: relative;
    padding-left: 1.5rem;
}

.company-list li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.company-list li:last-child {
    border-bottom: none;
}

.award-item img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    transition: transform 0.3s ease;
}

.award-item img:hover {
    transform: scale(1.05);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--bg-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.contact-info {
    background: var(--bg-accent);
    padding: var(--spacing-md);
}

.info-group {
    margin-bottom: var(--spacing-md);
}

.info-group h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 700;
}

.info-group p {
    color: var(--text-dark);
    font-size: 1rem;
}

.info-group a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-group a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: var(--spacing-md);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

.contact-form {
    padding: var(--spacing-md);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-dark);
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-accent);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--dark-color);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-submit:hover {
    background: var(--primary-color);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-color);
    padding: var(--spacing-md) 0;
    text-align: center;
    color: var(--text-white);
    font-size: 0.875rem;
}

.footer-links {
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.divider {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    color: var(--text-white);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    pointer-events: none;
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 0.8rem;
        padding: var(--spacing-xs) 0.75rem;
    }

    .logo img {
        height: 36px;
    }
}

@media (max-width: 992px) {
    .nav-link {
        font-size: 0.75rem;
        padding: var(--spacing-xs) 0.5rem;
    }

    .nav-menu {
        gap: 4px;
    }

    .logo img {
        height: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: var(--spacing-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid var(--card-border);
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .language-switcher {
        margin-left: auto;
        margin-right: var(--spacing-sm);
    }
}