/* ═══════════════════════════════════════
   KALIUM-INSPIRED DESIGN SYSTEM
   섹션 색상 구조:
   Hero       → #0A0A0F  (딥 다크)
   Stats      → #1A1A2E  (네이비 다크)
   Projects   → #F4F1EC  (크림 웜)
   Skills     → #0F2027  (딥 틸 다크)
   Experience → #FAFAFA  (퓨어 화이트)
   About      → #1C1C1E  (소프트 블랙)
   Contact    → #EEF2FF  (라벤더 라이트)
═══════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --font: 'Inter', sans-serif;
    /* 섹션 배경 */
    --hero-bg: #0a0a0f;
    --stats-bg: #1a1a2e;
    --proj-bg: #f4f1ec;
    --skills-bg: #0f2027;
    --exp-bg: #ffffff;
    --about-bg: #1c1c1e;
    --contact-bg: #eef2ff;
    /* 공통 */
    --accent: #6c63ff;
    --accent2: #ff6b6b;
    --gold: #f59e0b;
    --green: #10b981;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.09);
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── PROGRESS ── */
#bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    z-index: 999;
    width: 0;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 2px;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}
.nav-in {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.nav-logo {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-logo span {
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.on {
    color: #fff;
}
.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.38rem 1.1rem;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: opacity 0.2s !important;
}
.nav-cta:hover {
    opacity: 0.85;
}

/* ── 공통 섹션 ── */
section {
    padding: 110px 2.5rem;
}
.w {
    max-width: 1080px;
    margin: 0 auto;
}
.label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.label::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.6;
}
h2.ttl {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* ── FADE ── */
.f {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}
.f.in {
    opacity: 1;
    transform: none;
}
.d1 {
    transition-delay: 0.1s;
}
.d2 {
    transition-delay: 0.2s;
}
.d3 {
    transition-delay: 0.3s;
}
.d4 {
    transition-delay: 0.4s;
}

/* ══════════════════════════════
   § HERO — 딥 다크 #0A0A0F
══════════════════════════════ */
#hero {
    background: var(--hero-bg);
    display: flex;
    align-items: center;
    padding: 120px 2.5rem 100px;
    position: relative;
    overflow: hidden;
}
/* 배경 그라디언트 오브 */
#hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(108, 99, 255, 0.18) 0%,
        transparent 70%
    );
    top: -100px;
    right: -100px;
    pointer-events: none;
}
#hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 107, 107, 0.1) 0%,
        transparent 70%
    );
    bottom: -80px;
    left: 10%;
    pointer-events: none;
}
.hero-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eye {
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.hero-name {
    font-size: clamp(3rem, 5.5vw, 4.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -2.5px;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.hero-name em {
    color: var(--accent);
    font-style: normal;
}
.typo-row {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.6rem;
    min-height: 1.6rem;
}
#typing {
    color: var(--accent);
    font-weight: 600;
}
#cur {
    display: inline-block;
    width: 2px;
    height: 0.95rem;
    background: var(--accent);
    margin-left: 1px;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
.hero-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.95;
    margin-bottom: 2.2rem;
    max-width: 440px;
}
.hero-desc strong {
    color: rgba(255, 255, 255, 0.8);
}
.btns {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2.4rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-v {
    background: var(--accent);
    color: #fff;
}
.btn-v:hover {
    background: #5a52d5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}
.btn-g {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}
.btn-g:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.htags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.htag {
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: rgba(108, 99, 255, 0.9);
    border-radius: 4px;
    padding: 0.22rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
}

/* hero 오른쪽 통계 그리드 */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
}
.hs {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem 1.6rem;
    text-align: center;
    transition: background 0.2s;
    cursor: default;
}
.hs:hover {
    background: rgba(108, 99, 255, 0.12);
}
.hs-n {
    font-size: 2.6rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1.5px;
}
.hs-u {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}
.hs-d {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 0.35rem;
    line-height: 1.4;
}

/* ══════════════════════════════
   § STATS — 네이비 다크 #1A1A2E
══════════════════════════════ */
#stats {
    background: var(--stats-bg);
    padding: 80px 2.5rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}
.sg {
    padding: 2.4rem 2rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s;
}
.sg:last-child {
    border-right: none;
}
.sg:hover {
    background: rgba(108, 99, 255, 0.1);
}
.sg-n {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -1.5px;
}
.sg-u {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(108, 99, 255, 0.7);
}
.sg-d {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.4rem;
}

/* ══════════════════════════════
   § PROJECTS — 크림 #F4F1EC
══════════════════════════════ */
#projects {
    background: var(--proj-bg);
}
#projects .label {
    color: #8b5cf6;
}
#projects h2.ttl {
    color: #0a0a0f;
}
.filter-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.flt {
    padding: 0.42rem 1.2rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    color: #666;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.04em;
}
.flt.on {
    background: #0a0a0f;
    color: #fff;
    border-color: #0a0a0f;
}
.flt:not(.on):hover {
    border-color: #0a0a0f;
    color: #0a0a0f;
}
.pgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.pc {
    background: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background 0.2s;
    cursor: default;
}
.pc:hover {
    background: #f9f7ff;
}
.pc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.pc-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0a0a0f;
    line-height: 1.35;
}
.badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.bw {
    background: #eef2ff;
    color: #6c63ff;
}
.bt {
    background: #f0fdf4;
    color: #10b981;
}
.pc-co {
    font-size: 0.72rem;
    color: #8b5cf6;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.pc-story {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.85;
}
.pc-story b {
    color: #0a0a0f;
    font-weight: 600;
}
.pc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.ptag {
    background: #f4f1ec;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    padding: 0.18rem 0.6rem;
    font-size: 0.7rem;
    color: #666;
}
.presult {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.28rem 0.75rem;
    border-radius: 4px;
    width: fit-content;
}
.pc-links {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}
.plink {
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.28rem 0.7rem;
    transition: all 0.2s;
}
.plink:hover {
    background: #0a0a0f;
    color: #fff;
    border-color: #0a0a0f;
}

/* ══════════════════════════════
   § SKILLS — 딥 틸 다크 #0F2027
══════════════════════════════ */
#skills {
    background: var(--skills-bg);
}
#skills .label {
    color: var(--gold);
}
#skills h2.ttl {
    color: #fff;
}
.sk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.sbars {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.sb-row {
}
.sb-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}
.sb-lb {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}
.sb-pc {
    color: rgba(255, 255, 255, 0.35);
}
.sb-bg {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    height: 4px;
    overflow: hidden;
}
.sb-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold), #f97316);
    width: 0;
    transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.scats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.scat {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.3rem;
}
.scat-t {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.stags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.stag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}
.stag.h {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gold);
    font-weight: 600;
}

/* ══════════════════════════════
   § EXPERIENCE — 퓨어 화이트
══════════════════════════════ */
#experience {
    background: var(--exp-bg);
}
#experience .label {
    color: var(--accent2);
}
#experience h2.ttl {
    color: #0a0a0f;
}
.tl {
    position: relative;
    padding-left: 2.2rem;
    margin-top: 0.5rem;
}
.tl::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}
.ti {
    position: relative;
    padding-bottom: 2.8rem;
}
.ti:last-child {
    padding-bottom: 0;
}
.tdot {
    position: absolute;
    left: -1.6rem;
    top: 0.35rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}
.ti:hover .tdot {
    border-color: var(--accent2);
    background: var(--accent2);
}
.tp {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.tco {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0a0a0f;
    margin-bottom: 0.2rem;
    letter-spacing: -0.3px;
}
.tr {
    font-size: 0.78rem;
    color: var(--accent2);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.ts {
    font-size: 0.7rem;
    color: #bbb;
    margin-bottom: 0.7rem;
}
.tbul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.tbul li {
    font-size: 0.82rem;
    color: #555;
    padding-left: 0.9rem;
    position: relative;
    line-height: 1.7;
}
.tbul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #ddd;
}
.tbul li .tsub {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.35rem;
    padding-left: 0.8rem;
}
.tbul li .tsub li {
    font-size: 0.82rem;
    color: #888;
    padding-left: 0.75rem;
    line-height: 1.6;
}
.tbul li .tsub li::before {
    content: '·';
    font-size: 1rem;
    color: #ccc;
    top: -0.05rem;
}

/* ══════════════════════════════
   § ABOUT — 소프트 블랙 #1C1C1E
══════════════════════════════ */
#about {
    position: relative;
    background: linear-gradient(135deg, #0f0a1e 0%, #1a0a2e 50%, #0d1b2a 100%);
    overflow: hidden;
}
#about .label {
    color: #a78bfa;
}
#about h2.ttl {
    color: #fff;
}
.ab-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3.5rem;
    align-items: start;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ab-text > * {
    position: relative;
    z-index: 1;
}

.ab-text p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    line-height: 1.95;
    margin-bottom: 0.9rem;
}
.ab-text p strong {
    color: rgba(255, 255, 255, 0.85);
}
.abcards {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.abc {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.2rem;
    transition: background 0.2s;
}
.abc:hover {
    background: rgba(167, 139, 250, 0.08);
}
.abc-t {
    font-size: 0.65rem;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.abc-v {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}
.abc-s {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ══════════════════════════════
   § CONTACT — 라벤더 #EEF2FF
══════════════════════════════ */
#contact {
    background: var(--contact-bg);
    text-align: center;
}
#contact .label {
    color: var(--accent);
    justify-content: center;
}
#contact h2.ttl {
    color: #0a0a0f;
}
#contact .sub {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 3rem;
}
.cc-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 680px;
    margin: 0 auto;
}
.cc {
    background: #fff;
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: #0a0a0f;
    transition: all 0.25s;
    display: block;
}
.cc:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.15);
}
.cc-ico {
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
}
.cc-t {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.cc-v {
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── FOOTER ── */
footer {
    background: #0a0a0f;
    text-align: center;
    padding: 2.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}
footer a {
    color: var(--accent);
    text-decoration: none;
}

/* ── FLOAT CTA ── */
#fcta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 98;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s;
    pointer-events: none;
}
#fcta.show {
    opacity: 1;
    transform: none;
    pointer-events: all;
}
#fcta a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.45);
    transition: all 0.2s;
}
#fcta a:hover {
    background: #5a52d5;
    transform: translateY(-2px);
}
#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-in {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pgrid {
        grid-template-columns: 1fr 1fr;
    }
    .sk-grid {
        grid-template-columns: 1fr;
    }
    .ab-grid {
        grid-template-columns: 1fr;
    }
    .cc-row {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}
@media (max-width: 600px) {
    .pgrid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}
