:root {
    --white: #f5f5f7;
    --black: #1d1d1f;
    --gray: #6e6e73;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --section-bg: #000;
    --card-bg: #1c1c1e;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: var(--white);
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

nav .nav-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 20px;
}

.nav-logo {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--white);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

nav ul a {
    font-size: 12px;
    color: rgba(245, 245, 247, 0.85);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

nav ul a:hover {
    color: #fff;
}

/* ── HERO ── */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%,
            rgba(0, 113, 227, 0.18) 0%,
            rgba(100, 60, 180, 0.10) 40%,
            transparent 70%);
    animation: pulse-bg 8s ease-in-out infinite alternate;
}

@keyframes pulse-bg {
    from {
        opacity: 0.7;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s 0.2s forwards;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
    background: linear-gradient(180deg, #fff 60%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 0.9s 0.35s forwards;
    max-width: 800px;
}

.hero-sub {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: rgba(245, 245, 247, 0.7);
    margin-top: 22px;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.9s 0.55s forwards;
    max-width: 600px;
    line-height: 1.5;
}

.hero-cta {
    margin-top: 44px;
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: fade-up 0.9s 0.75s forwards;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--blue-hover);
    transform: scale(1.02);
}

.btn-ghost {
    color: var(--blue);
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid rgba(0, 113, 227, 0.5);
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

.btn-ghost:hover {
    background: rgba(0, 113, 227, 0.1);
    border-color: var(--blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fade-up 1s 1.2s forwards;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── SECTION SHARED ── */
section {
    padding: 120px 20px;
}

.section-inner {
    max-width: 980px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 50%, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 19px;
    font-weight: 300;
    color: var(--gray);
    max-width: 600px;
    line-height: 1.6;
}

/* ── MARQUEE STRIP ── */
.marquee-section {
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #0a0a0a;
}

.marquee-track {
    display: flex;
    gap: 60px;
    padding: 20px 0;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-dot {
    color: var(--blue);
    margin-right: 60px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── ABOUT ── */
.about-section {
    background: #000;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.about-portrait {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-bg);
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    position: relative;
}

.portrait-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 113, 227, 0.2), transparent);
}

.portrait-frame {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.3s;
}

.stat-card:hover {
    border-color: rgba(0, 113, 227, 0.4);
}

.stat-num {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
    letter-spacing: -0.01em;
}

/* ── SKILLS ── */
.skills-section {
    background: #050505;
    border-top: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    transition: transform 0.4s cubic-bezier(.25, .46, .45, .94),
        border-color 0.3s,
        box-shadow 0.4s;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 113, 227, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 113, 227, 0.06);
}

.skill-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
}

.skill-name {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.skill-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.skill-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(0, 113, 227, 0.12);
    border: 1px solid rgba(0, 113, 227, 0.25);
    border-radius: 980px;
    color: rgba(100, 170, 255, 0.9);
    letter-spacing: 0.02em;
}

/* ── WORK / PROJECTS ── */
.work-section {
    background: #000;
    border-top: 1px solid var(--border);
}

.projects-stack {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    transition: transform 0.4s cubic-bezier(.25, .46, .45, .94),
        border-color 0.3s;
}

.project-card:hover {
    transform: scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-card.reverse {
    direction: rtl;
}

.project-card.reverse>* {
    direction: ltr;
}

.project-info {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-year {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.project-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.project-desc {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 28px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tech-pill {
    font-size: 12px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 980px;
    color: rgba(255, 255, 255, 0.6);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
    transition: gap 0.2s;
}

.project-link:hover {
    gap: 10px;
}

.project-visual {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.project-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 113, 227, 0.25), transparent 60%);
}

.project-visual.green {
    background: linear-gradient(135deg, #0d2818 0%, #1a3a2a 50%, #0a4a1f 100%);
}

.project-visual.green::before {
    background: radial-gradient(circle at 30% 70%, rgba(50, 200, 100, 0.2), transparent 60%);
}

.project-visual.purple {
    background: linear-gradient(135deg, #1a0a2e 0%, #2a1040 50%, #3a1060 100%);
}

.project-visual.purple::before {
    background: radial-gradient(circle at 50% 40%, rgba(150, 50, 255, 0.2), transparent 60%);
}

/* ── EXPERIENCE TIMELINE ── */
.exp-section {
    background: #050505;
    border-top: 1px solid var(--border);
}

.timeline {
    margin-top: 60px;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--blue), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 52px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 12px rgba(0, 113, 227, 0.6);
}

.timeline-period {
    font-size: 12px;
    font-weight: 500;
    color: var(--blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 14px;
}

.timeline-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 640px;
}

/* ── CONTACT ── */
.contact-section {
    background: #000;
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact-section .section-title {
    font-size: clamp(42px, 7vw, 80px);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    background: var(--card-bg);
    letter-spacing: -0.01em;
}

.contact-link:hover {
    border-color: rgba(0, 113, 227, 0.5);
    background: rgba(0, 113, 227, 0.08);
    transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.01em;
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(.25, .46, .45, .94),
        transform 0.85s cubic-bezier(.25, .46, .45, .94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ── STICKY SCROLL SECTION ── */
.sticky-section {
    position: relative;
    height: 400vh;
    background: #000;
    border-top: 1px solid var(--border);
}

.sticky-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sticky-text-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.sticky-headline {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.sticky-headline .word {
    display: inline-block;
    color: rgba(255, 255, 255, 0.15);
    transition: color 0.6s ease;
    margin-right: 0.22em;
}

.sticky-headline .word.lit {
    color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card.reverse {
        direction: ltr;
    }

    .project-visual {
        min-height: 200px;
        font-size: 60px;
    }

    section {
        padding: 80px 20px;
    }
}