/* ============================================
   Lee Kisong — Realtime VFX Artist Portfolio
   Design: Premium Dark + Champagne Gold
   ============================================ */

:root {
    --bg-color: #0a0a0a;
    --text-color: #d0d0d0;
    --accent-color: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.15);
    --secondary-bg: #111;
    --card-bg: #141414;
    --border-color: #222;
    --font-heading: 'Lato', 'Noto Sans KR', sans-serif;
    --font-body: 'Lato', 'Noto Sans KR', sans-serif;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: #e8c84a;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Fixed Header / Navbar ── */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: padding 0.3s;
}

.header.scrolled {
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 3px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../../images/header_bg.jpg') no-repeat center top / cover;
    filter: brightness(0.4);
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero.loaded .hero-bg {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-contact {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 2rem;
}

.hero-contact a {
    color: #bbb;
}

.hero-contact a:hover {
    color: var(--accent-color);
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* ── Sections (Common) ── */
.section {
    padding: 7rem 5%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 0.8rem auto 0;
}

/* ── Resume / Profile Section ── */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.profile-photo {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.profile-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 1rem;
}

.info-row {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.info-row strong {
    color: #fff;
    margin-right: 8px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.skill-tags span {
    display: inline-block;
    padding: 6px 16px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border-radius: 2px;
}

.skill-tags span:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ── Career Timeline ── */
.career-timeline {
    margin-top: 3rem;
}

.career-timeline h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-left: 16px;
    border-left: 3px solid var(--accent-color);
}

.career-item {
    background: var(--card-bg);
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
    transition: all 0.3s;
}

.career-item:hover {
    border-left-color: var(--accent-color);
    transform: translateX(4px);
}

.career-item.current {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, var(--card-bg), rgba(212, 175, 55, 0.03));
}

.career-item .company {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.career-item .period {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0 8px;
    display: block;
}

.career-item .role {
    font-size: 0.95rem;
    color: var(--text-color);
}

.career-item .role strong {
    color: #fff;
}

.career-item .tool {
    font-size: 0.8rem;
    color: #555;
    margin-top: 6px;
}

.career-item ul {
    padding-left: 18px;
    margin: 6px 0 0;
    color: #aaa;
    font-size: 0.9rem;
}

.career-item ul li {
    margin-bottom: 3px;
}

/* ── Pipeline Section ── */
.pipeline-category {
    margin-bottom: 50px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s;
}

.pipeline-category:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.pipeline-header {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.pipeline-desc {
    color: #999;
    margin-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Grid system for pipeline images */
.grid-container {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

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

.col-2 {
    grid-template-columns: 1fr 1fr;
}

.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pipeline-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: block;
    transition: border-color 0.3s;
}

.pipeline-img:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.img-caption {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.img-caption-top {
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.img-caption-sub {
    text-align: center;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 8px;
}

/* Pipeline header prefix ("Houdini Pipeline") */
.pipeline-prefix {
    font-weight: 700;
    color: #fff;
}

/* Pipeline sub-header (e.g. "Vector Field Setting") */
.pipeline-sub-header {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #ccc;
    text-align: center;
    margin: 0 0 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ── Equation-style layout (channels + "=" + result) ── */
.equation-layout {
    display: flex;
    align-items: center;
    gap: 16px;
}

.equation-left {
    display: flex;
    gap: 12px;
    flex: 3;
}

.equation-left-2 {
    flex: 2;
}

.equation-item {
    flex: 1;
    text-align: center;
}

.equation-item .pipeline-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.equation-sign {
    font-size: 2rem;
    color: #fff;
    font-weight: 300;
    flex-shrink: 0;
    padding: 0 4px;
    align-self: center;
}

.equation-right {
    flex: 1.2;
    text-align: center;
}

.equation-right-big {
    flex: 1.5;
}

.equation-right .pipeline-img {
    width: 100%;
}

/* Complex layout: left mini-grid + right big */
.complex-layout-b {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    align-items: center;
}

.mini-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Split stack layout (E section) */
.layout-split-stack {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
    align-items: stretch;
}

.left-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

.left-stack img,
.right-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* ── Portfolio / Video Section ── */
.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.project-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 6px;
}

.project-card .project-desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

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

.video-note {
    font-size: 0.88rem;
    color: #777;
    margin-top: 12px;
    line-height: 1.6;
    text-align: center;
}

.project-desc {
    text-align: center;
}

/* ── Footer ── */
.footer {
    background: #050505;
    padding: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.8rem;
    }

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

    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-photo {
        max-width: 260px;
        margin: 0 auto;
    }

    .skill-tags {
        justify-content: center;
    }

    .career-timeline h3 {
        text-align: left;
    }

    .col-2,
    .col-3,
    .col-4 {
        grid-template-columns: 1fr;
    }

    .complex-layout-b {
        grid-template-columns: 1fr;
    }

    .layout-split-stack {
        grid-template-columns: 1fr;
    }

    .left-stack {
        flex-direction: row;
    }

    .pipeline-category {
        padding: 20px;
    }

    .project-card {
        padding: 20px;
    }

    /* Equation layout stacks on tablet */
    .equation-layout {
        flex-wrap: wrap;
    }

    .equation-left {
        flex-basis: 100%;
        justify-content: center;
    }

    .equation-sign {
        display: none;
    }

    .equation-right {
        flex-basis: 100%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        line-height: 1.6;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .hero-contact {
        font-size: 0.8rem;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 0.8rem;
    }

    /* Section spacing */
    .section {
        padding: 3.5rem 5%;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0;
    }

    /* Navbar */
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-toggle {
        display: block;
    }

    .navbar {
        padding: 1rem 5%;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    /* Profile */
    .profile-photo {
        max-width: 200px;
    }

    .profile-info h3 {
        font-size: 1.3rem;
    }

    .info-row {
        font-size: 0.88rem;
    }

    .skill-tags span {
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    /* Career */
    .career-timeline h3 {
        font-size: 1.3rem;
    }

    .career-item {
        padding: 18px 20px;
    }

    .career-item .company {
        font-size: 1.05rem;
    }

    .career-item .role {
        font-size: 0.88rem;
    }

    .career-item ul {
        font-size: 0.85rem;
    }

    .career-item .tool {
        font-size: 0.75rem;
    }

    /* Pipeline */
    .pipeline-category {
        padding: 16px;
        margin-bottom: 30px;
    }

    .pipeline-header {
        font-size: 1rem;
        line-height: 1.5;
    }

    .pipeline-desc {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .pipeline-sub-header {
        font-size: 0.95rem;
    }

    /* Equation layout adjustments */
    .equation-left {
        gap: 8px;
    }

    .equation-item .pipeline-img {
        aspect-ratio: 1 / 1;
    }

    .img-caption-top {
        font-size: 0.75rem;
    }

    .img-caption-sub {
        font-size: 0.7rem;
    }

    .img-caption {
        font-size: 0.7rem;
    }

    /* Mini grid */
    .mini-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    /* Split stack */
    .left-stack {
        flex-direction: column;
    }

    .layout-split-stack {
        gap: 8px;
    }

    /* Grid */
    .grid-container {
        gap: 8px;
        margin-bottom: 12px;
    }

    /* Portfolio cards */
    .project-card {
        padding: 16px;
        margin-bottom: 24px;
        border-radius: 8px;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .project-card .project-desc {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .video-note {
        font-size: 0.8rem;
        margin-top: 10px;
    }

    .video-container {
        border-radius: 4px;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-contact {
        font-size: 0.75rem;
    }

    .section {
        padding: 3rem 4%;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .pipeline-header {
        font-size: 0.9rem;
    }

    .pipeline-category {
        padding: 12px;
    }

    .equation-left {
        gap: 6px;
    }

    .profile-photo {
        max-width: 160px;
    }

    .career-item {
        padding: 14px 16px;
    }

    .career-item .company {
        font-size: 0.95rem;
    }

    .project-card {
        padding: 14px;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .mini-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}