/* ===== Tokens ===== */
:root {
    /* Professional side - Steel / Anthracite */
    --steel: #2b2d31;
    --steel-light: #3a3d44;
    --steel-surface: #35373d;

    /* Personal side - Deep Sea / Navy */
    --sea: #0f2b3c;
    --sea-mid: #153d54;
    --sea-light: #1a4d68;
    --teal: #3ea8a0;
    --teal-soft: rgba(62, 168, 160, 0.15);

    /* Neutrals */
    --silver: #c8ccd0;
    --offwhite: #e8eaed;
    --white: #f5f5f3;
    --muted: #8b9099;
    --faint: rgba(255,255,255,0.06);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    font-family: var(--font);
    color: var(--offwhite);
    background: var(--steel);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--teal); color: var(--steel); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Split Hero ===== */
.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.split-left {
    background: var(--steel);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.split-right {
    background: var(--sea);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.split-content {
    padding: 60px 48px;
    max-width: 480px;
}

/* Hero Photos */
.hero-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 28px;
    border: 3px solid rgba(255,255,255,0.1);
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-photo-casual {
    border-color: rgba(62, 168, 160, 0.3);
}

.label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 24px;
    position: relative;
    padding-left: 20px;
}

.label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--muted);
}

.split-left h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 16px;
}

.tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--teal);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.intro {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--silver);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 28px;
    transition: all 0.3s var(--ease);
}

.cta:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--teal);
    color: var(--teal);
}

.cta span {
    transition: transform 0.3s var(--ease);
}

.cta:hover span {
    transform: translateY(2px);
}

.cta-light:hover span {
    transform: translateX(4px) translateY(0);
}

/* Personal side */
.personal-quote {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--silver);
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0.9;
}

.interests {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--silver);
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s var(--ease);
}

.interest-item:hover {
    background: rgba(62, 168, 160, 0.08);
    border-color: rgba(62, 168, 160, 0.2);
}

.interest-icon {
    font-size: 1rem;
    color: var(--teal);
    width: 20px;
    text-align: center;
}

/* ===== Nav ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    background: rgba(43, 45, 49, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav.visible {
    transform: translateY(0);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

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

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
}

.menu-btn span {
    width: 18px;
    height: 1.5px;
    background: var(--silver);
    transition: 0.2s;
}

/* ===== Sections ===== */
.section {
    padding: 96px 0;
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
    margin-bottom: 12px;
}

.label-light {
    color: var(--teal);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1.2;
}

/* Dark section - Professional */
.section-dark {
    background: var(--steel);
}

/* Sea section */
.section-sea {
    background: var(--sea);
}

/* ===== Timeline / Roles ===== */
.timeline {
    display: flex;
    flex-direction: column;
}

.role {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid var(--faint);
}

.role:last-child {
    padding-bottom: 0;
}

.role-period time {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.role-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.role-company {
    font-size: 0.85rem;
    color: var(--teal);
    margin-bottom: 14px;
    font-weight: 500;
}

.role-body ul {
    padding: 0;
}

.role-body li {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.7;
    padding-left: 14px;
    margin-bottom: 5px;
    position: relative;
}

.role-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 1px;
    background: var(--teal);
}

/* ===== Education ===== */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.edu-card {
    padding: 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s var(--ease);
}

.edu-card:hover {
    background: rgba(62, 168, 160, 0.05);
    border-color: rgba(62, 168, 160, 0.15);
}

.edu-card time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.edu-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin: 10px 0 6px;
}

.edu-place {
    font-size: 0.88rem;
    color: var(--silver);
    margin-bottom: 10px;
}

.edu-note {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    transform: scale(0.95);
    transition: transform 0.3s var(--ease);
}

.lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    max-width: 500px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--silver);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    font-family: var(--font);
    z-index: 10;
}

.lightbox-close {
    top: 24px;
    right: 28px;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.8rem;
    line-height: 1;
    padding: 8px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--white);
}

/* ===== Split About ===== */
.split-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

.about-left {
    background: var(--steel-surface);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.about-right {
    background: var(--sea-mid);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.about-content {
    padding: 64px 48px;
    max-width: 440px;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-content p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 32px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--faint);
}

.detail-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.detail-value {
    font-size: 0.85rem;
    color: var(--silver);
    font-weight: 500;
}

/* ===== Slider ===== */
.slider {
    position: relative;
}

.slider-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.slider-tabs::-webkit-scrollbar { display: none; }

.slider-tab {
    background: var(--faint);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
    letter-spacing: 0.01em;
}

.slider-tab:hover {
    color: var(--silver);
    border-color: rgba(255,255,255,0.12);
}

.slider-tab.active {
    background: rgba(62, 168, 160, 0.12);
    border-color: rgba(62, 168, 160, 0.3);
    color: var(--teal);
}

.slider-track {
    position: relative;
}

.slide {
    display: none;
    animation: slideFadeIn 0.4s var(--ease);
}

.slide.active {
    display: block;
}

@keyframes slideFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-info {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--faint);
}

.slide-date {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    display: block;
    margin-bottom: 8px;
}

.slide-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.slide-info p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
}

.slide-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.slide-img {
    position: relative;
    overflow: hidden;
    background: var(--steel-light);
    cursor: pointer;
}

.slide-img-wide {
    grid-column: span 2;
}

.slide-img img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.slide-img-wide img {
    max-height: 380px;
}

.slide-img:not(.slide-img-wide) img {
    aspect-ratio: 4 / 3;
}

.slide-img:hover img {
    transform: scale(1.03);
}

.slide-img figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    font-size: 0.78rem;
    color: var(--silver);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s var(--ease);
}

.slide-img:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Contact ===== */
.section-contact {
    background: var(--steel);
    padding: 96px 0 48px;
    border-top: 1px solid var(--faint);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.contact-card {
    padding: 28px;
    background: var(--faint);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s var(--ease);
}

.contact-card:hover {
    background: rgba(62, 168, 160, 0.06);
    border-color: rgba(62, 168, 160, 0.2);
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
}

.contact-value {
    font-size: 0.9rem;
    color: var(--silver);
    font-weight: 500;
    word-break: break-word;
}

.copyright {
    font-size: 0.75rem;
    color: var(--muted);
    opacity: 0.5;
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* stagger */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .split-hero {
        grid-template-columns: 1fr;
    }

    .split-left, .split-right {
        justify-content: center;
    }

    .split-left {
        min-height: 100vh;
    }

    .split-right {
        min-height: auto;
        padding: 40px 0;
    }

    .split-content {
        padding: 48px 28px;
        max-width: 100%;
    }

    .split-left h1 {
        font-size: 2.4rem;
    }

    .hero-photo {
        width: 130px;
        height: 130px;
        margin-bottom: 24px;
    }

    .personal-quote {
        font-size: 1.2rem;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 220px;
        height: 100vh;
        background: var(--steel);
        flex-direction: column;
        padding: 72px 28px;
        gap: 20px;
        border-left: 1px solid var(--faint);
        transition: right 0.3s var(--ease);
    }

    .nav-links.active { right: 0; }

    .menu-btn {
        display: flex;
        z-index: 101;
    }

    .menu-btn.active span:first-child {
        transform: rotate(45deg) translate(2px, 3px);
    }

    .menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(2px, -3px);
    }

    .role {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .split-about {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .about-left, .about-right {
        justify-content: center;
    }

    .about-content {
        padding: 48px 28px;
        max-width: 100%;
    }

    .slide-gallery {
        grid-template-columns: 1fr;
    }

    .slide-img-wide {
        grid-column: span 1;
    }

    .slide-img figcaption {
        opacity: 1;
        transform: translateY(0);
    }

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

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 400px) {
    .split-left h1 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}
