/* Root Variables */
:root {
    --maroon: #f4f4f4;
    --maroon-dark: #191919;
    --maroon-light: #ffffff;
    --accent: #ffffff;
    --accent-warm: #b8b8b8;
    --text-dark: #f7f7f7;
    --text-gray: #c8c8c8;
    --bg-body: #050505;
    --bg-light: #0d0d0d;
    --bg-white: #171717;
    --surface-strong: #222222;
    --glass: rgba(255, 255, 255, 0.075);
    --glass-strong: rgba(255, 255, 255, 0.11);
    --border: rgba(255, 255, 255, 0.1);
    --nav-bg: linear-gradient(180deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.52) 68%, rgba(5, 5, 5, 0));
    --nav-bg-strong: rgba(5, 5, 5, 0.9);
    --shadow: rgba(0, 0, 0, 0.34);
    --shadow-hover: rgba(0, 0, 0, 0.52);
    --radius-lg: 26px;
    --radius-xl: 38px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.075), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.055), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.045), transparent 30%),
        linear-gradient(180deg, #070707 0%, #050505 48%, #020202 100%);
    color-scheme: dark;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 70%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 70%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    transform: translateY(-150%);
    background: var(--accent);
    color: #050505;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.skip-link:focus {
    transform: translateY(0);
}

#main-content:focus {
    outline: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem clamp(1rem, 4vw, 3rem);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow: none;
    border: none;
    border-radius: 0;
    z-index: 5000;
    pointer-events: auto;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav-container.is-scrolled {
    background: rgba(8, 7, 11, 0.9);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

.nav-logo {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.nav-container.is-scrolled .nav-logo {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-gray);
    position: relative;
}

.nav-container.is-scrolled .nav-links a {
    color: rgba(255, 247, 240, 0.74);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.08);
}

.nav-container.is-scrolled .nav-links a:hover,
.nav-container.is-scrolled .nav-links a.active {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.11);
}

.nav-links a::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-container.is-scrolled .mobile-menu-toggle span {
    background: var(--text-dark);
}

/* Hero Section */
.hero {
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.12), transparent 31%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.075), transparent 30%),
        radial-gradient(circle at 56% 84%, rgba(255, 255, 255, 0.045), transparent 26%),
        linear-gradient(145deg, #0a0a0a 0%, #101010 44%, #030303 100%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 96px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero::before {
    inset: 9% auto auto 5%;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    filter: blur(90px);
    opacity: 0.9;
    z-index: -2;
}

.hero::after {
    inset: auto -8rem -10rem auto;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    filter: blur(100px);
    z-index: -2;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 620px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) 2rem 5rem;
    text-align: left;
    width: 100%;
}

.hero-photo-shell {
    position: relative;
    width: min(38vw, 460px);
    min-width: 320px;
    padding: 0;
    border-radius: 42px;
    background: transparent;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 255, 255, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hero-photo-shell::before,
.hero-photo-shell::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero-photo-shell::before {
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.11), transparent 18%);
    mix-blend-mode: screen;
    opacity: 0.18;
    z-index: 2;
}

.hero-photo-shell::after {
    display: none;
}

.hero-profile-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.hero-photo-shell picture {
    display: block;
}

.image-download-button {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    background: rgba(8, 7, 11, 0.64);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    color: var(--text-dark);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    transition: opacity 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.hero-photo-shell:hover .image-download-button,
.hero-photo-shell:focus-within .image-download-button,
.about-portrait-card:hover .image-download-button,
.about-portrait-card:focus-within .image-download-button {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.image-download-button:hover,
.image-download-button:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-dark);
}

.hero-copy {
    position: relative;
    padding: clamp(1.4rem, 3.2vw, 2.25rem);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
        rgba(12, 10, 17, 0.54);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
    box-shadow:
        0 30px 95px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.hero-copy::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-xl) - 1px);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 34%);
    pointer-events: none;
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.105);
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.075em;
    line-height: 0.92;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.94);
    max-width: 520px;
    line-height: 1.28;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 570px;
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1.65rem;
    padding: 0;
    list-style: none;
    min-height: 4.2rem;
}

.hero-proof-item {
    display: grid;
    gap: 0.1rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-proof-item strong {
    color: var(--accent);
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1;
}

.hero-proof-item span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0 0 1.65rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.875rem 1.3rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #d8d8d8);
    color: #050505;
    box-shadow: 0 16px 38px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-start;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.13);
}

/* Sections */
.section {
    padding: clamp(4.75rem, 7vw, 7rem) 0;
    position: relative;
}

.section-alt {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008));
}

.section-title {
    font-size: clamp(2.15rem, 4vw, 3.3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    letter-spacing: -0.055em;
}

.section-title::after {
    content: '';
    display: block;
    width: 84px;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon) 0%, var(--accent) 100%);
    border-radius: 999px;
    margin: 1rem auto 0;
}

.section-intro {
    max-width: 860px;
    margin: -1.6rem auto 2.4rem;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.72;
    text-align: center;
}

/* About Section */
.about-content {
    display: grid;
    gap: 2.5rem;
}

.about-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    grid-template-areas: "about-text about-portrait";
    gap: clamp(1.5rem, 3vw, 2.25rem);
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto;
}

.about-text {
    grid-area: about-text;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: none;
    margin: 0;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.025);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.19);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-portrait-card {
    grid-area: about-portrait;
    position: relative;
    align-self: stretch;
    justify-self: center;
    width: min(100%, 390px);
    margin: 0;
    padding: 0.65rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    isolation: isolate;
    animation: portraitDrift 7s ease-in-out infinite;
}

.about-portrait-card::before,
.about-portrait-card::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.about-portrait-card::before {
    inset: -38%;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.075), transparent 30%);
    filter: blur(18px);
    opacity: 0.72;
}

.about-portrait-card::after {
    inset: 0.65rem;
    border-radius: calc(var(--radius-lg) - 8px);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(255, 255, 255, 0.04));
    mix-blend-mode: screen;
    opacity: 0.34;
}

.about-portrait-picture {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
}

.about-portrait-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.grid-row-fill {
    grid-column-end: span var(--grid-row-fill-span, 1);
}

.skill-category h3 {
    font-size: 1.25rem;
    color: var(--maroon-light);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    appearance: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.075);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.skill-pill:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.skill-overlay-open {
    overflow: hidden;
}

.skill-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.skill-overlay[hidden] {
    display: none;
}

.skill-overlay-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.09), transparent 34%),
        rgba(4, 3, 7, 0.72);
    backdrop-filter: blur(16px);
}

.skill-overlay-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(720px, 88vh);
    overflow: auto;
    border-radius: 28px;
    padding: clamp(1.35rem, 4vw, 2rem);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055)),
        rgba(14, 14, 20, 0.92);
    color: var(--text-dark);
    box-shadow:
        0 36px 120px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.skill-overlay-panel:focus {
    outline: none;
}

.skill-overlay-close {
    appearance: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    font: inherit;
    font-weight: 800;
    transition: all 0.25s ease;
}

.skill-overlay-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-dark);
}

.skill-overlay-eyebrow,
.skill-overlay-label {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.skill-overlay-title {
    margin: 0.55rem 3rem 0.75rem 0;
    color: var(--text-dark);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.skill-overlay-description {
    color: var(--text-gray);
    line-height: 1.72;
}

.skill-overlay-related {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-overlay-label {
    margin-bottom: 0.7rem;
}

.skill-overlay-work-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.skill-overlay-work-list li {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.skill-overlay-work-list a {
    color: var(--text-dark);
    font-weight: 800;
    text-decoration: none;
}

.skill-overlay-work-list a:hover {
    color: var(--accent);
}

.skill-overlay-work-list span,
.skill-overlay-empty {
    color: var(--text-gray);
    font-size: 0.92rem;
}

.skill-overlay-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #050505;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.skill-overlay-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    display: none;
}

.timeline-content {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.024)),
        rgba(255, 255, 255, 0.018);
    padding: clamp(1.35rem, 2.5vw, 1.8rem);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.timeline-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-company {
    color: var(--maroon-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
}

.timeline-list li {
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 0.5rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--maroon-light) 0%, var(--accent) 100%);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.024)),
        rgba(255, 255, 255, 0.018);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-6px);
}

.project-card-case-study {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 46%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.028)),
        rgba(255, 255, 255, 0.024);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.project-header-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.project-type {
    color: var(--maroon-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-case-study-outcome {
    margin-bottom: 1.35rem;
    color: var(--text-dark);
    line-height: 1.65;
    font-weight: 600;
}

.project-highlights {
    display: grid;
    gap: 0.45rem;
    margin: -0.35rem 0 1.35rem;
    padding: 0;
    list-style: none;
}

.project-highlights li {
    position: relative;
    padding-left: 1.05rem;
    color: var(--text-gray);
    font-size: 0.94rem;
    line-height: 1.5;
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68rem;
    width: 0.45rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.075);
    color: var(--text-gray);
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.project-tag:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.education-card {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.024)),
        rgba(255, 255, 255, 0.018);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-align: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-6px);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.education-honors {
    color: var(--maroon-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--maroon-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-location {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-gpa {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.education-honors-list {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Contact */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.065);
    border: none;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.075));
    color: var(--text-dark);
    transform: translateX(5px);
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item span {
    font-weight: 500;
}

/* Footer */
.footer {
    background: #06050a;
    color: var(--text-gray);
    border-top: none;
    padding: 2rem 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portraitDrift {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (hover: none) {
    .image-download-button {
        opacity: 1;
        transform: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.25rem);
        left: 1rem;
        right: 1rem;
        background: var(--nav-bg-strong);
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
        border: none;
        border-radius: 24px;
        flex-direction: column;
        padding: 0.75rem;
        box-shadow: 0 24px 70px var(--shadow);
        gap: 0.25rem;
    }

    .nav-container.is-scrolled .nav-links {
        background: rgba(8, 7, 11, 0.94);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .hero-photo-shell {
        grid-row: auto;
        width: clamp(300px, 62vw, 360px);
        min-width: 0;
        margin: 0 auto;
        border-radius: 38px;
    }

    .hero-profile-image {
        border-radius: inherit;
    }

    .hero-copy {
        text-align: center;
        padding: 1.35rem;
        border-radius: 30px;
    }

    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.72rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 360px;
        margin: 0 auto 2rem;
    }

    .hero-proof {
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 360px;
        margin: 0 auto 2rem;
    }

    .hero-social {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .about-feature {
        grid-template-columns: 1fr;
        grid-template-areas:
            "about-portrait"
            "about-text";
    }

    .about-text {
        order: 2;
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-portrait-card {
        order: 1;
        align-self: center;
        width: min(100%, 380px);
        min-height: auto;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
    }

    .about-portrait-picture {
        height: 100%;
    }

    .about-portrait-image {
        height: 100%;
        object-fit: cover;
        min-height: 0;
    }

    .image-download-button {
        opacity: 1;
        transform: none;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content,
    .project-card,
    .education-card {
        padding: 1.5rem;
    }

    .project-header {
        align-items: flex-start;
    }

    .project-header h3 {
        font-size: 1.3rem;
    }
    
    .skills-grid,
    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0.95rem 1rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.45rem;
    }

    .hero-photo-shell {
        width: clamp(270px, 72vw, 300px);
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-content {
        padding: 2.5rem 1rem;
    }

    .skill-overlay {
        align-items: end;
        padding: 0.75rem;
    }

    .skill-overlay-panel {
        max-height: 86vh;
        border-radius: 24px;
        padding: 1.35rem;
    }

    .skill-overlay-title {
        margin-right: 2.5rem;
    }

    .hero-description,
    .hero-buttons,
    .hero-proof {
        max-width: 330px;
    }

    .hero-proof {
        grid-template-columns: 1fr;
        min-height: 10rem;
    }

    .hero-copy {
        padding: 1.1rem;
        border-radius: 26px;
    }
    
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.25rem;
    }

    .timeline-content,
    .project-card,
    .education-card,
    .about-text {
        padding: 1.25rem;
    }

    .about-portrait-card {
        border-radius: 24px;
    }

    .about-portrait-picture,
    .about-portrait-image {
        border-radius: 18px;
    }

    .project-header {
        gap: 0.75rem;
    }

    .project-header h3,
    .education-card h3,
    .timeline-header h3 {
        font-size: 1.1rem;
    }

    .skill-tags {
        gap: 0.4rem;
    }

    .skill-pill,
    .project-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .contact-item {
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .contact-item span {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
