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

:root {
    --bg-dark: #0A0E1A;
    --bg-card: #1A2332;
    --accent-cyan: #00D4FF;
    --accent-blue: #0066FF;
    --text-white: #FFFFFF;
    --text-gray: #8899AA;
    --gradient-1: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    --gradient-2: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header/Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.03);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-cyan);
}

/* CTA — matches styles.css .btn-primary (page has no styles.css link) */
.nav-menu a.btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.nav-menu a.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--gradient-1);
    color: white;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

/* 데스크톱: 로고 왼쪽 · 메뉴 정가운데 · 언어 선택 오른쪽 */
@media (min-width: 769px) {
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        column-gap: 2rem;
    }

    .nav-container > :first-child {
        justify-self: start;
    }

    .nav-right {
        display: contents;
    }

    .lang-toggle {
        grid-column: 3;
        justify-self: end;
    }
}

/* Hero Section */
.page-hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Project category stats (above timeline) */
.project-stats-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2.5rem;
    position: relative;
}

.project-stats-inner {
    background: linear-gradient(165deg, rgba(26, 35, 50, 0.88) 0%, rgba(10, 14, 26, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.project-stats-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.project-stats-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}

.project-stats-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #B8E8FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-stats-note {
    font-size: 0.92rem;
    color: var(--text-gray);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

.project-stats-total {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.project-stats-total-card {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    border-radius: 16px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.22);
}

.project-stats-total-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-stats-total-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: 1rem;
}

.project-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.1rem 0.9rem 1rem;
    text-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-stat-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.12);
}

.project-stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
}

.project-stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.35;
}

.project-stat-bar-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 0.85rem;
    overflow: hidden;
}

.project-stat-bar-fill {
    height: 100%;
    width: calc(var(--w, 50) * 1%);
    background: var(--gradient-1);
    border-radius: 2px;
    opacity: 0.92;
}

/* Timeline Section */
.timeline-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.timeline-year {
    margin-bottom: 4rem;
    position: relative;
}

.year-marker {
    position: absolute;
    left: -60px;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    z-index: 2;
}

.year-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-size: 1.3rem;
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-white);
    line-height: 1.4;
}

.project-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Stats Summary */
.stats-summary {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
}

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

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

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

.footer-section ul li a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-cyan);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-right.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .project-stats-inner {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .project-stats-title {
        font-size: 1.35rem;
    }

    .project-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        gap: 0.75rem;
    }

    .project-stat-num {
        font-size: 1.5rem;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 10px;
    }

    .year-marker {
        left: -50px;
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .year-title {
        font-size: 2rem;
    }

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

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

.project-card {
    animation: fadeInUp 0.6s ease;
}
