:root {
    --bg: #08111c;
    --bg-soft: rgba(10, 19, 32, 0.88);
    --panel: rgba(13, 24, 40, 0.94);
    --panel-border: rgba(113, 246, 208, 0.14);
    --panel-strong: rgba(113, 246, 208, 0.28);
    --text: #ebf7f4;
    --muted: #94b3ad;
    --accent: #59efc0;
    --accent-deep: #0fa87d;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 14px;
    --sidebar-width: 320px;
    --container-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(89, 239, 192, 0.18), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(25, 123, 102, 0.22), transparent 22%),
        linear-gradient(180deg, #09101b 0%, #08111c 100%);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

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

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.1;
}

.page-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, var(--sidebar-width)) minmax(0, 1fr);
    gap: 28px;
    width: min(calc(100% - 40px), var(--container-width));
    margin: 24px auto;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
}

.content {
    display: grid;
    gap: 22px;
    padding-bottom: 40px;
}

.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(12, 23, 38, 0.96), rgba(9, 18, 31, 0.96));
    box-shadow: var(--shadow);
}

.panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -70% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 239, 192, 0.1), transparent 70%);
}

.profile-card {
    padding: 28px;
}

.avatar {
    display: block;
    width: 112px;
    aspect-ratio: 1;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.86);
    background: #0b1625;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.profile-copy {
    display: grid;
    gap: 8px;
}

.eyebrow,
.section-label,
.section-index,
.hero-kicker,
.date-range,
.project-icon {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
}

.eyebrow,
.section-label,
.section-index,
.hero-kicker,
.date-range {
    color: var(--accent);
}

.profile-copy h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
}

.role {
    font-size: 1rem;
    color: #cfe5df;
}

.social-links,
.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.social-links a,
.section-nav a {
    padding: 10px 14px;
    border: 1px solid rgba(113, 246, 208, 0.16);
    border-radius: 999px;
    color: #dff7f0;
    font-size: 0.9rem;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lang-toggle {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(113, 246, 208, 0.16);
    border-radius: 999px;
    color: #dff7f0;
    font-size: 0.9rem;
    background: transparent;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lang-toggle-floating {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 30;
    backdrop-filter: blur(6px);
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.social-links a:hover,
.lang-toggle:hover,
.section-nav a:hover,
.section-nav a.is-active {
    transform: translateY(-2px);
    border-color: var(--panel-strong);
    background: rgba(89, 239, 192, 0.08);
}

.sidebar-section {
    padding: 20px 22px;
}

.pill-grid,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-grid span,
.pill-row span {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(113, 246, 208, 0.16);
    background: rgba(89, 239, 192, 0.06);
    color: #e0f8f1;
    font-size: 0.88rem;
}

.compact span {
    font-size: 0.82rem;
}

.split-list {
    display: grid;
    gap: 18px;
}

.split-list p:last-child {
    color: #e1f3ee;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
    padding: 30px;
    align-items: end;
}

.hero h2 {
    max-width: 10ch;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.hero-copy {
    color: #d2e7e2;
    font-size: 1.02rem;
}

.content-section {
    display: grid;
    gap: 18px;
}

.section-heading {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 0 4px;
}

.section-heading h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.stacked-cards {
    display: grid;
    gap: 16px;
}

.detail-card {
    padding: 24px;
}

.timeline-card {
    position: relative;
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, rgba(89, 239, 192, 0.5), rgba(89, 239, 192, 0));
}

.card-header,
.project-topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 14px;
}

.card-header h4,
.project-card h4 {
    font-size: 1.18rem;
    margin-bottom: 6px;
}

.card-header p:first-of-type {
    color: #d8ece6;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    padding: 22px;
    transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--panel-strong);
}

.project-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(89, 239, 192, 0.08);
    border: 1px solid rgba(113, 246, 208, 0.16);
}

.is-visible {
    animation: rise-in 600ms ease forwards;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(calc(100% - 24px), var(--container-width));
        margin: 12px auto;
        gap: 16px;
    }

    .profile-card,
    .sidebar-section,
    .hero,
    .detail-card,
    .project-card {
        padding: 20px;
    }

    .hero,
    .project-grid,
    .card-header,
    .project-topline {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .timeline-card::before {
        display: none;
    }

    .social-links a,
    .section-nav a,
    .pill-grid span,
    .pill-row span {
        width: auto;
    }
}

@media (max-width: 760px) {
    .lang-toggle-floating {
        top: 10px;
        right: 10px;
    }
}