@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');


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

:root {
    --glass: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-hover: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(0, 0, 0, 0.25);
    --glass-dark-border: rgba(255, 255, 255, 0.12);
    --accent: #007aff;
    --accent2: #5856d6;
    --accent3: #ff2d55;
    --green: #34c759;
    --text: #1c1c1e;
    --text-secondary: #3c3c43;
    --text-tertiary: rgba(60, 60, 67, 0.6);
    --text-white: #ffffff;
    --text-white-dim: rgba(255, 255, 255, 0.7);
    --text-white-dimmer: rgba(255, 255, 255, 0.45);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --blur: blur(40px);
    --blur-heavy: blur(80px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, "Inter", "SF Pro Display", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: #000;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: -apple-system, "Inter", "SF Pro Display", sans-serif; font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 0px; }


.video-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.video-bg video,
.video-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.video-bg-blur {
    position: fixed;
    inset: 0;
    z-index: -1;
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    background: rgba(245, 245, 247, 0.72);
}


header {
    position: fixed;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: calc(100% - 32px);
    max-width: 1100px;
    padding: 8px 8px 8px 16px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    transition: all 0.5s var(--ease);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    width: 38px; height: 38px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s var(--spring);
}

.header-logo img:hover { transform: scale(1.08); }

.header-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.header-menu li a {
    padding: 7px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
    display: block;
    white-space: nowrap;
}

.header-menu li a:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.05);
}

.header-menu li a.active {
    color: var(--text-white);
    background: var(--text);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.header-menu li:last-child a:not(.active) {
    color: var(--accent);
    font-weight: 600;
}

.header-menu-mobile {
    display: none;
    border: 0;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
    transition: all 0.3s var(--ease);
}

.header-menu-mobile:hover { background: rgba(0, 0, 0, 0.1); }


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

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

.hero-video video,
.hero-video img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    will-change: transform, opacity;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    will-change: transform, opacity;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 28px;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.7s 0.2s var(--ease) forwards;
}

.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.8rem, 9vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.hero h1 .line { display: block; overflow: hidden; }

.hero h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 0.9s var(--ease) forwards;
}

.hero h1 .line:nth-child(2) .word { animation-delay: 0.15s; }

@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero h1 .ios-gradient {
    background: linear-gradient(135deg, #007aff, #5856d6, #ff2d55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pfp {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0; transform: scale(0.85);
    animation: popIn 0.8s 0.5s var(--ease) forwards;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.85); }
    60% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-sub {
    color: var(--text-white-dim);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.7s 0.7s var(--ease) forwards;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; z-index: 2;
    opacity: 0; animation: fadeUp 0.7s 1.2s var(--ease) forwards;
}

.scroll-hint span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-white-dimmer);
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}


.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.page-hero .hero-video { position: absolute; inset: 0; }
.page-hero .hero-overlay { position: absolute; inset: 0; z-index: 1; }

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 60px;
    will-change: transform, opacity;
}

.page-title {
    color: #fff;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.page-title .word {
    display: inline-block;
    opacity: 0; transform: translateY(100%);
    animation: slideUp 0.9s var(--ease) forwards;
}

.page-title .word:nth-child(1) { animation-delay: 0.3s; }
.page-title .word:nth-child(2) { animation-delay: 0.45s; }

.page-title .ios-gradient {
    background: linear-gradient(135deg, #007aff, #5856d6, #ff2d55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-sub {
    color: var(--text-white-dim);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
    max-width: 550px;
    margin: 0 auto;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.7s 0.6s var(--ease) forwards;
}


.content-area {
    position: relative;
    z-index: 1;
}


.boxed {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-label .material-icons { font-size: 0.95rem !important; }

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    color: var(--text);
}

.section-desc {
    color: var(--text-tertiary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 550px;
    margin-bottom: 32px;
}

.section-desc.centered { text-align: center; margin-inline: auto; }

p { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }
p strong { color: var(--text); font-weight: 600; }


.glass {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.4s var(--ease);
}

.glass:hover {
    background: var(--glass-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* iOS grouped list style */
.ios-group {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ios-group-header {
    padding: 12px 20px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}


.bento { display: grid; gap: 14px; }

.bento-about { grid-template-columns: 1fr 1.5fr; }
.bento-skills { grid-template-columns: repeat(4, 1fr); }
.bento-3col { grid-template-columns: repeat(3, 1fr); }
.bento-2col { grid-template-columns: repeat(2, 1fr); }


.stat-row { display: flex; gap: 28px; margin-top: 20px; }
.stat h4 {
    font-size: 1.6rem; font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { font-size: 0.78rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }


.skill-card { text-align: center; padding: 22px 14px; }
.skill-card img {
    width: 48px; height: 48px;
    object-fit: contain;
    margin: 0 auto 10px;
    transition: transform 0.4s var(--spring);
}
.skill-card:hover img { transform: scale(1.12) rotate(-3deg); }
.skill-card h3 { font-size: 0.85rem; font-weight: 600; color: var(--text); }


.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.card-icon .material-icons { font-size: 1.4rem !important; color: #fff; }

.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.card-desc { font-size: 0.9rem; color: var(--text-tertiary); line-height: 1.55; margin: 0; }


.brand-card { text-align: center; padding: 0; display: flex; flex-direction: column; }

.brand-logo {
    height: 120px;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid var(--glass-border);
    border-radius: var(--radius) var(--radius) 0 0;
}

.brand-logo img { max-height: 80px; max-width: 80%; object-fit: contain; transition: transform 0.5s var(--spring); }
.brand-card:hover .brand-logo img { transform: scale(1.08); }

.placeholder-logo { background: rgba(0, 122, 255, 0.05); }
.placeholder-logo .material-icons { font-size: 2rem !important; color: var(--accent); opacity: 0.4; }

.brand-card .card-title { padding: 18px 20px 4px; }
.brand-card .card-desc { padding: 0 20px 20px; }


.gear-img {
    height: 140px;
    display: flex; align-items: center; justify-content: center;
    margin: -24px -24px 20px;
    padding: 24px;
    background: rgba(0, 122, 255, 0.04);
    border-bottom: 1px solid var(--glass-border);
}

.gear-img .material-icons { font-size: 2.5rem !important; color: var(--accent); opacity: 0.35; }

.gear-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.gear-section-title {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
}

.gear-section-title .material-icons { font-size: 1.3rem !important; color: var(--accent); }
.gear-section-title h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }


.real-card { padding: 0; overflow: hidden; }
.real-card a { display: block; position: relative; min-height: 240px; }
.real-card img { width: 100%; height: 100%; object-fit: cover; transition: all 0.6s var(--ease); filter: brightness(0.8); }
.real-card:hover img { filter: brightness(0.35); transform: scale(1.05); }

.real-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 20px;
}

.real-overlay h3 {
    font-size: 1.2rem; font-weight: 600; color: #fff;
    opacity: 0; transform: translateY(8px);
    transition: all 0.4s var(--ease);
}

.real-card:hover .real-overlay h3 { opacity: 1; transform: translateY(0); }


.contact-card { text-align: center; }
.contact-card .material-icons { font-size: 1.6rem !important; color: var(--accent); margin-bottom: 10px; display: block; }
.contact-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 2px; display: block; }
.contact-value { font-size: 1rem; font-weight: 500; color: var(--text); display: block; }


.cv-profile-card { text-align: center; display: flex; flex-direction: column; align-items: center; }

.cv-pfp {
    width: 100px; height: 100px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(0, 122, 255, 0.2);
    margin-bottom: 14px;
}

.cv-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 2px; letter-spacing: -0.02em; }
.cv-role { color: var(--accent); font-weight: 500; font-size: 0.9rem; margin-bottom: 14px; }

.cv-tags { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cv-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--text-tertiary); }
.cv-tag .material-icons { font-size: 0.95rem !important; color: var(--accent); }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, 0.08); }

.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute; left: -28px; top: 24px;
    width: 13px; height: 13px; border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.timeline-item.current .timeline-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
}

.timeline-card { padding: 20px 24px; }

.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.timeline-company { color: var(--accent); font-size: 0.88rem; font-weight: 500; margin: 2px 0 0; }

.timeline-date {
    white-space: nowrap; font-size: 0.78rem; font-weight: 600;
    color: var(--text-tertiary);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 3px 10px; border-radius: 8px;
    flex-shrink: 0;
}

.timeline-item.current .timeline-date {
    background: rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.15);
    color: var(--accent);
}

.timeline-location { display: flex; align-items: center; gap: 3px; font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 10px; }
.timeline-location .material-icons { font-size: 0.85rem !important; }

.timeline-list { list-style: none; padding: 0; }
.timeline-list li { position: relative; padding-left: 14px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 3px; }
.timeline-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.4; }

.cv-skills-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

.cv-skill {
    padding: 5px 12px;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.12);
    border-radius: 8px;
    font-size: 0.82rem; font-weight: 500;
    color: var(--accent);
}

.cv-interest {
    padding: 5px 12px;
    background: rgba(88, 86, 214, 0.07);
    border: 1px solid rgba(88, 86, 214, 0.1);
    border-radius: 8px;
    font-size: 0.82rem; font-weight: 500;
    color: var(--accent2);
}


.cta-wrap { text-align: center; padding: 60px 0; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 0.92rem; font-weight: 600;
    font-family: inherit; cursor: pointer; border: none;
    transition: all 0.35s var(--ease);
}

.btn .material-icons { font-size: 1.1rem !important; }

.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35); }

.btn-ghost {
    background: var(--glass); backdrop-filter: var(--blur);
    color: var(--text); border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: var(--glass-hover); transform: translateY(-2px); }


.divider { width: 100%; height: 1px; background: rgba(0, 0, 0, 0.06); }

footer {
    padding: 28px 0; text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
footer p { color: var(--text-tertiary); font-size: 0.8rem; margin: 0; }


[data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }


@media (max-width: 900px) {
    header { top: 8px; width: calc(100% - 16px); padding: 6px; border-radius: 18px; }

    .header-menu-mobile { display: block; }

    .header-menu {
        position: fixed; inset: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: var(--blur);
        border: none; border-radius: 0;
        flex-direction: column; align-items: center; justify-content: center;
        gap: 6px; padding: 24px;
        display: none; z-index: 990;
    }
    .header-menu.active { display: flex; }
    .header-menu li a { font-size: 1.1rem; padding: 12px 24px; }

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

    .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .page-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
    .page-hero { min-height: 50vh; }
    .section { padding: 48px 0; }
    .pfp { width: 90px; height: 90px; }
    .stat-row { gap: 18px; }
    .stat h4 { font-size: 1.3rem; }
    .gear-img { height: 100px; }
}

@media (max-width: 540px) {
    .bento-skills, .bento-3col, .bento-2col { grid-template-columns: 1fr; }
    .boxed { padding: 0 14px; }
    .glass { padding: 20px; border-radius: 16px; }
    .gear-img { margin: -20px -20px 16px; padding: 20px; }
    h2 { font-size: 1.5rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 260px; justify-content: center; }
    .timeline-header { flex-direction: column; gap: 6px; }
    .timeline-date { align-self: flex-start; }
    .timeline-card { padding: 16px; }
}
