/* ========================================
   DONG JIN CHOI — Portfolio 2026
   Kinetic · Experimental · Modern
   ======================================== */

/* ===== Design Tokens ===== */
:root {
    --bg: #050505;
    --bg-elevated: #0C0C0C;
    --surface: #141414;
    --border: rgba(255, 255, 255, 0.06);
    --text-primary: #F5F5F5;
    --text-secondary: #888;
    --text-muted: #555;
    --accent: #FEE500;
    --accent-dim: rgba(254, 229, 0, 0.08);
    --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Space Grotesk', 'Noto Sans KR', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: none;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

ul {
    list-style: none;
}

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

button {
    cursor: none;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* ===== Particle Canvas ===== */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Custom Cursor ===== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: -3px;
    transition: transform 0.1s;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -20px;
    transition: transform 0.15s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), top 0.3s var(--ease), left 0.3s var(--ease), opacity 0.3s;
    opacity: 0.5;
}

.cursor.hover .cursor-ring {
    width: 64px;
    height: 64px;
    top: -32px;
    left: -32px;
    opacity: 0.8;
    border-color: var(--accent);
}

/* ===== Grain Overlay ===== */
.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-5%, -5%);
    }

    50% {
        transform: translate(5%, 5%);
    }

    75% {
        transform: translate(-2%, 3%);
    }
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.accent {
    color: var(--accent);
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-status {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s;
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.lang-label {
    opacity: 0.4;
    transition: opacity 0.3s, color 0.3s;
}

.lang-label.lang-active {
    opacity: 1;
    color: var(--accent);
}

.lang-divider {
    opacity: 0.3;
}

.nav-menu-btn {
    width: 36px;
    height: 24px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

.menu-line {
    width: 100%;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.4s var(--ease);
    transform-origin: center;
}

.nav-menu-btn.active .menu-line:first-child {
    transform: translateY(4.75px) rotate(45deg);
}

.nav-menu-btn.active .menu-line:last-child {
    transform: translateY(-4.75px) rotate(-45deg);
}

/* ===== Fullscreen Menu ===== */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.fullscreen-menu.active {
    pointer-events: all;
    opacity: 1;
}

.menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(40px);
}

.menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-link {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.4s var(--ease);
}

.menu-link:hover {
    padding-left: 20px;
}

.menu-link::before {
    content: attr(data-index);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.menu-link-text {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    transition: color 0.3s;
}

.menu-link:hover .menu-link-text {
    color: var(--accent);
}

.menu-link-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: auto;
}

.menu-footer {
    position: absolute;
    bottom: 40px;
    left: 10vw;
    right: 10vw;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(80px, 80px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 40px 40px;
}

.hero-top {
    display: flex;
    gap: 24px;
    align-items: center;
}

.hero-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(80px, 14vw, 220px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    align-self: center;
    user-select: none;
    text-align: center;
    padding-top: 10px;
}

.name-line {
    display: block;
    overflow: visible;
}

.name-line--indent {
    padding-left: 0;
}

.char-wrap {
    display: inline-block;
    color: var(--accent);
    transition: transform 0.4s var(--ease), color 0.3s;
    will-change: transform;
}

.char-wrap:hover {
    color: var(--accent);
    transform: translateY(-8px) rotate(-3deg) scale(1.1);
}

/* Hero Mouse Trail Ghost Images */
.hero-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-trail-img {
    position: absolute;
    width: 180px;
    height: 240px;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.7) rotate(0deg);
    animation: trailFade 1.2s ease forwards;
    border-radius: 4px;
}

@keyframes trailFade {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }

    15% {
        opacity: 0.85;
        transform: scale(1) rotate(0deg);
    }

    60% {
        opacity: 0.6;
        transform: scale(1.02) rotate(1deg);
    }

    100% {
        opacity: 0;
        transform: scale(1.05) rotate(3deg);
    }
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-location {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-scroll-indicator {
    width: 1px;
    height: 60px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-progress {
    width: 100%;
    height: 0%;
    background: var(--accent);
    transition: height 0.1s;
}

.hero-year {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ===== MARQUEE ===== */
.marquee-band {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg);
}

.marquee-band--reverse {
    background: var(--surface);
}

.marquee-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.marquee-track--reverse {
    animation: marqueeReverse 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee-item {
    font-family: var(--font-display);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.marquee-sep {
    color: var(--accent);
    font-size: 12px;
}

/* ===== ABOUT ===== */
.section {
    position: relative;
    padding: clamp(80px, 12vh, 160px) 0;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 40px;
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg);
}

.about-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-layout--centered {
    align-items: center;
}

.about-right--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.stat {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ===== EXPERIENCE (Resume Style) ===== */
.experience {
    background: var(--bg-elevated);
}

.exp-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.resume-block {
    padding: 32px 0;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 16px;
}

.resume-role {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.resume-block:hover .resume-role {
    color: var(--accent);
}

.resume-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.resume-loc {
    color: var(--text-muted);
}

.resume-date {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent);
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid rgba(254, 229, 0, 0.2);
    border-radius: 100px;
    flex-shrink: 0;
}

.resume-sub {
    font-size: 13px;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.resume-details {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.resume-details li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.resume-details li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.resume-line {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-top: 32px;
    transition: background 0.3s;
}

.resume-block:hover .resume-line {
    background: rgba(254, 229, 0, 0.15);
}

/* Project line hover styles */
.project-line {
    transition: color 0.3s, padding-left 0.3s;
}

.project-line:hover {
    color: var(--accent);
    padding-left: 28px;
}

.project-line:hover::before {
    color: var(--accent);
}

/* ===== FUTURE OF GRAPHIC DESIGNER ===== */
.futureofgd {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.futureofgd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.futureofgd-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.futureofgd-trail-img {
    position: absolute;
    width: 200px;
    height: 260px;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.7);
    animation: futureTrailFade 2s ease forwards;
    border-radius: 4px;
}

@keyframes futureTrailFade {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-4deg);
    }

    12% {
        opacity: 0.9;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.01) rotate(0.5deg);
    }

    100% {
        opacity: 0;
        transform: scale(1.04) rotate(2deg);
    }
}

/* Giant clock as background behind title */
.futureofgd-clock-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clock-face-big {
    width: clamp(400px, 50vw, 700px);
    height: clamp(400px, 50vw, 700px);
}

.clock-label-big {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Title overlaid on clock */
.futureofgd-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    z-index: 2;
    position: relative;
}

.futureofgd-line {
    display: block;
}

.futureofgd-line--accent .char-wrap {
    color: var(--accent);
}

.futureofgd-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.futureofgd-subtitle {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    color: var(--text-primary);
    white-space: nowrap;
}

.futureofgd-body p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.futureofgd-body p:last-child {
    margin-bottom: 0;
}

/* Experience Hover Image Preview */
.exp-preview {
    position: fixed;
    max-width: 437px;
    max-height: 546px;
    border-radius: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transform: scale(0.92) translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    border: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.exp-preview.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.exp-preview img {
    display: block;
    max-width: 437px;
    max-height: 546px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--bg-elevated);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.contact-headline {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 160px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 24px 0 60px;
}

.contact-line {
    overflow: hidden;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s var(--ease);
}

.contact-cta:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    padding-left: 48px;
    padding-right: 48px;
}

.cta-arrow {
    transition: transform 0.4s var(--ease);
}

.contact-cta:hover .cta-arrow {
    transform: translateX(8px);
}

.contact-links {
    margin-bottom: 80px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ===== Reveal Animations ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html {
        cursor: auto;
    }

    a,
    button {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .nav {
        padding: 16px 24px;
    }

    .hero-content {
        padding: 80px 24px 24px;
    }

    .hero-name {
        font-size: clamp(56px, 16vw, 120px);
    }

    .name-line--indent {
        padding-left: 10vw;
    }

    .hero-top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-tag {
        font-size: 10px;
        padding: 6px 12px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }

    .about-headline {
        position: static;
        font-size: clamp(28px, 6vw, 40px);
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .exp-container {
        padding: 0 24px;
    }

    .resume-header {
        flex-direction: column;
        gap: 12px;
    }

    .resume-role {
        font-size: clamp(20px, 5vw, 28px);
    }

    .contact-container {
        padding: 0 24px;
    }

    .contact-cta {
        font-size: 14px;
        padding: 16px 28px;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }

    .menu-link-text {
        font-size: clamp(32px, 8vw, 56px);
    }

    .nav-status {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: clamp(48px, 14vw, 90px);
    }

    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .stat {
        padding: 16px 8px;
    }

    .stat-number {
        font-size: 24px;
    }

    .about-tags {
        gap: 6px;
    }

    .tag {
        font-size: 11px;
        padding: 6px 12px;
    }

    .resume-details li {
        font-size: 13px;
    }
}