:root {
    --ink: #111827;
    --ink-2: #243041;
    --muted: #657083;
    --page: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #edf3f8;
    --line: #d8e2ec;
    --teal: #0f766e;
    --teal-2: #14b8a6;
    --coral: #ef6a52;
    --amber: #d99028;
    --violet: #4f46e5;
    --dark: #101820;
    --shadow: 0 18px 48px rgba(20, 31, 45, 0.12);
    --body-background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.96)),
        repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.08) 0 1px, transparent 1px 120px);
    --header-background: rgba(244, 247, 251, 0.9);
    --header-border: rgba(216, 226, 236, 0.9);
    --hero-background:
        linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(20, 56, 60, 0.96) 54%, rgba(63, 47, 36, 0.94)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 110px);
    --hero-text: #ffffff;
    --hero-muted: rgba(255, 255, 255, 0.78);
    --hero-chip: rgba(255, 255, 255, 0.09);
    --hero-chip-border: rgba(255, 255, 255, 0.16);
    --secondary-button: rgba(255, 255, 255, 0.1);
    --secondary-button-border: rgba(255, 255, 255, 0.28);
    --floating-surface: #ffffff;
    --timeline-surface: rgba(255, 255, 255, 0.74);
    --education-background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 243, 248, 0.86)),
        repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.06) 0 1px, transparent 1px 110px);
    --featured-project-background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 118, 110, 0.92)),
        var(--dark);
    --toolkit-background: #ffffff;
    --contact-background:
        linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(37, 46, 58, 0.97)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 96px);
    --contact-text: #ffffff;
    --contact-muted: rgba(255, 255, 255, 0.72);
    --contact-link-background: rgba(255, 255, 255, 0.08);
    --contact-link-hover: rgba(255, 255, 255, 0.14);
    --contact-link-border: rgba(255, 255, 255, 0.18);
    --footer-background: #0b1117;
    --footer-muted: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f7fafc;
    --ink-2: #e5edf5;
    --muted: #a9b7c6;
    --page: #0b1218;
    --surface: #111b24;
    --surface-2: #172331;
    --line: #2a3a49;
    --teal: #14b8a6;
    --teal-2: #2dd4bf;
    --coral: #ff7a63;
    --amber: #f0a63a;
    --violet: #8b86ff;
    --dark: #0a1016;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    --body-background:
        linear-gradient(180deg, rgba(8, 13, 18, 0.98), rgba(13, 21, 29, 0.98)),
        repeating-linear-gradient(90deg, rgba(20, 184, 166, 0.08) 0 1px, transparent 1px 120px);
    --header-background: rgba(11, 18, 24, 0.88);
    --header-border: rgba(42, 58, 73, 0.92);
    --hero-background:
        linear-gradient(135deg, rgba(7, 13, 19, 0.98), rgba(14, 46, 49, 0.96) 54%, rgba(42, 34, 31, 0.94)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 110px);
    --floating-surface: #111b24;
    --timeline-surface: rgba(17, 27, 36, 0.82);
    --education-background:
        linear-gradient(180deg, rgba(13, 21, 29, 0.94), rgba(17, 27, 36, 0.9)),
        repeating-linear-gradient(90deg, rgba(20, 184, 166, 0.07) 0 1px, transparent 1px 110px);
    --featured-project-background:
        linear-gradient(135deg, rgba(8, 13, 18, 0.98), rgba(16, 96, 87, 0.9)),
        var(--dark);
    --toolkit-background: #0e1720;
    --contact-background:
        linear-gradient(135deg, rgba(7, 12, 18, 0.98), rgba(17, 27, 36, 0.97)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 96px);
    --footer-background: #070b10;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

section[id] {
    scroll-margin-top: 96px;
}

body {
    margin: 0;
    background: var(--body-background);
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    transition: background 180ms ease, color 180ms ease;
}

body::before {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 60;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--coral), var(--amber));
    content: "";
    pointer-events: none;
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left;
    transition: transform 90ms linear;
}

img {
    display: block;
    max-width: 100%;
}

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

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

@keyframes heroPhotoEntrance {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes accentSweep {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

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

@keyframes quickPress {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.97);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 72px);
    background: var(--header-background);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(18px);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
    box-shadow: 0 14px 34px rgba(20, 31, 45, 0.12);
}

html[data-theme="dark"] .site-header.is-scrolled {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.brand {
    display: inline-flex;
    align-items: center;
    position: relative;
    min-height: 42px;
    padding-bottom: 4px;
    color: var(--ink);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 800;
}

.brand::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--coral));
    content: "";
    transform: scaleX(0.58);
    transform-origin: left;
    transition: transform 180ms ease;
}

.brand:hover::after {
    transform: scaleX(1);
}

.brand-name {
    color: currentColor;
    font-size: 1.12rem;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 30px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 30px);
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.theme-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.theme-toggle i {
    grid-area: 1 / 1;
    font-size: 1.08rem;
    transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-sun {
    opacity: 0;
    transform: rotate(-45deg) scale(0.75);
}

.theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

html[data-theme="dark"] .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

html[data-theme="dark"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(45deg) scale(0.75);
}

.main-nav a {
    display: inline-flex;
    position: relative;
    padding: 8px 0;
    transition: color 180ms ease, transform 180ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--coral);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--ink);
    transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    min-height: calc(100vh - 80px);
    padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px) 48px;
    color: var(--hero-text);
    background: var(--hero-background);
}

.hero-content {
    max-width: 840px;
}

.hero .eyebrow,
.hero h1,
.hero-role,
.hero-copy,
.hero-actions,
.hero-stack,
.hero-visual {
    animation: heroEntrance 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 {
    animation-delay: 90ms;
}

.hero-role {
    animation-delay: 170ms;
}

.hero-copy {
    animation-delay: 240ms;
}

.hero-actions {
    animation-delay: 310ms;
}

.hero-stack {
    animation-delay: 380ms;
}

.hero-visual {
    animation-name: heroPhotoEntrance;
    animation-delay: 220ms;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
    margin: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 900px;
    font-size: 5.05rem;
    line-height: 0.98;
}

.hero-role {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--hero-text);
    font-size: 1.28rem;
    font-weight: 800;
}

.hero-copy {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--hero-muted);
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    overflow: hidden;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.24) 48%, transparent 78%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-110%);
    transition: opacity 180ms ease, transform 520ms ease;
}

.button:hover::before {
    opacity: 1;
    transform: translateX(110%);
}

.button i {
    transition: transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.button:hover i {
    transform: translateX(2px);
}

.button.is-pressed,
.contact-links a.is-pressed,
.theme-toggle.is-pressed {
    animation: quickPress 240ms ease;
}

.button.primary {
    color: #ffffff;
    background: var(--teal);
}

.button.secondary {
    color: var(--hero-text);
    background: var(--secondary-button);
    border-color: var(--secondary-button-border);
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 36px 0 0;
    list-style: none;
}

.hero-stack li {
    padding: 8px 12px;
    color: var(--hero-text);
    background: var(--hero-chip);
    border: 1px solid var(--hero-chip-border);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    justify-self: center;
    display: grid;
    justify-items: center;
    width: min(100%, 410px);
    padding: 24px 10px 0;
    isolation: isolate;
}

.hero-visual::before {
    position: absolute;
    inset: 54px 0 52px;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(239, 106, 82, 0.12)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    content: "";
    transform: rotate(-3deg);
}

.portrait-frame {
    position: relative;
    overflow: hidden;
    width: min(100%, 360px);
    aspect-ratio: 1;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, var(--teal-2), var(--coral), var(--violet)) border-box;
    border: 5px solid transparent;
    border-radius: 50%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    animation: ambientFloat 7s ease-in-out 1200ms infinite;
}

.portrait-frame::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(100deg, transparent 12%, rgba(255, 255, 255, 0.22) 48%, transparent 82%);
    content: "";
    transform: translateX(-120%);
    animation: accentSweep 1100ms ease 720ms both;
    pointer-events: none;
}

.portrait-frame::before {
    position: absolute;
    inset: 12px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    content: "";
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48% 25%;
}

.availability-card {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(360px, calc(100% - 28px));
    margin-top: -18px;
    padding: 12px 16px;
    color: var(--ink);
    background: var(--floating-surface);
    border: 1px solid var(--line);
    border-bottom: 3px solid var(--amber);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 800;
}

.status-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background: var(--teal-2);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.18);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: -1px clamp(18px, 5vw, 72px) 0;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stats div {
    min-height: 132px;
    padding: 28px;
    background: var(--surface);
    transition: transform 180ms ease, background 180ms ease;
}

.stats div:hover {
    transform: translateY(-4px);
}

.stats strong {
    display: block;
    color: var(--teal);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.85rem;
    line-height: 1;
}

.stats span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 700;
}

.section,
.contact-section {
    padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading.align-left {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.section-heading h2,
.contact-copy h2 {
    color: var(--ink);
    font-size: 3.6rem;
    line-height: 1.02;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.expertise-grid,
.projects-grid,
.tool-columns {
    display: grid;
    gap: 18px;
}

.expertise-grid {
    grid-template-columns: repeat(5, 1fr);
}

.expertise-card,
.project-card,
.tool-columns div,
.education-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(26, 41, 58, 0.08);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.expertise-card:hover {
    border-color: rgba(15, 118, 110, 0.38);
    transform: translateY(-6px);
}

.expertise-card i {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #ffffff;
    background: var(--teal);
    font-size: 1.35rem;
    transition: transform 180ms ease;
}

.expertise-card:hover i {
    transform: rotate(-4deg) scale(1.06);
}

.expertise-card:nth-child(2) i {
    background: var(--coral);
}

.expertise-card:nth-child(3) i {
    background: var(--violet);
}

.expertise-card:nth-child(4) i {
    background: var(--amber);
}

.expertise-card:nth-child(5) i {
    background: var(--dark);
}

.expertise-card h3,
.project-card h3,
.tool-columns h3,
.timeline-item h3 {
    margin: 20px 0 10px;
    color: var(--ink);
    font-size: 1.16rem;
    line-height: 1.22;
}

.expertise-card p,
.project-card p,
.tool-columns p,
.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
    background: var(--surface-2);
}

.timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.timeline::before {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 12px;
    width: 2px;
    background: linear-gradient(var(--teal), var(--coral));
    content: "";
}

.timeline-item {
    position: relative;
    padding: 22px 24px 22px 48px;
    background: var(--timeline-surface);
    border: 1px solid var(--line);
    transition: transform 180ms ease, border-color 180ms ease;
}

.timeline-item:hover {
    border-color: rgba(15, 118, 110, 0.38);
    transform: translateX(4px);
}

.timeline-item::before {
    position: absolute;
    top: 27px;
    left: 5px;
    width: 16px;
    height: 16px;
    background: var(--surface);
    border: 4px solid var(--teal);
    border-radius: 50%;
    content: "";
}

.timeline-date {
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.education-section {
    background: var(--education-background);
}

.education-card {
    display: grid;
    grid-template-columns: auto minmax(220px, 0.85fr) minmax(260px, 1fr);
    align-items: center;
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 30px;
    border-left: 6px solid var(--violet);
}

.education-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    color: #ffffff;
    background: var(--violet);
    font-size: 1.65rem;
}

.education-period {
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.education-card h3 {
    margin: 10px 0 6px;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.2;
}

.education-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.education-card ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    color: var(--muted);
    list-style: none;
}

.education-card li {
    position: relative;
    padding-left: 18px;
}

.education-card li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--teal);
    content: "";
    transform: translateY(-50%);
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 26px;
    overflow: hidden;
    border-top: 5px solid var(--teal);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card::after {
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: left 640ms ease, opacity 180ms ease;
}

.project-card:hover {
    box-shadow: 0 18px 42px rgba(26, 41, 58, 0.13);
    transform: translateY(-6px);
}

.project-card:hover::after {
    left: 100%;
    opacity: 1;
}

.project-card.featured {
    color: var(--hero-text);
    background: var(--featured-project-background);
    border-color: var(--coral);
    position: relative;
    overflow: hidden;
}

.project-card.featured::before {
    position: absolute;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(var(--coral), var(--teal-2));
    content: "";
}

.project-card.featured h3,
.project-card.featured p,
.project-card.featured .project-topline,
.project-card.featured a {
    color: #ffffff;
}

.project-card:nth-child(3n + 2) {
    border-top-color: var(--coral);
}

.project-card:nth-child(3n) {
    border-top-color: var(--amber);
}

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.project-card h3 {
    margin-top: 42px;
    font-size: 1.45rem;
}

.project-card a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    color: var(--teal);
    font-weight: 900;
    transition: color 180ms ease, transform 180ms ease;
}

.project-card a:hover {
    color: var(--coral);
    transform: translateX(3px);
}

.project-card a::after {
    margin-left: 8px;
    content: "->";
}

.project-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding: 8px 10px;
    color: var(--muted);
    background: var(--surface-2);
    font-size: 0.85rem;
    font-weight: 900;
}

.toolkit {
    background: var(--toolkit-background);
}

.tool-columns {
    grid-template-columns: repeat(4, 1fr);
}

.tool-columns div {
    padding: 26px;
    border-left: 5px solid var(--teal);
}

.tool-columns div:nth-child(2) {
    border-left-color: var(--coral);
}

.tool-columns div:nth-child(3) {
    border-left-color: var(--amber);
}

.tool-columns div:nth-child(4) {
    border-left-color: var(--violet);
}

.contact-section {
    display: block;
    color: var(--contact-text);
    text-align: center;
    background: var(--contact-background);
}

.contact-copy {
    max-width: 880px;
    margin: 0 auto;
}

.contact-copy h2 {
    color: var(--contact-text);
}

.contact-copy p {
    max-width: 660px;
    margin-right: auto;
    margin-left: auto;
    color: var(--contact-muted);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    max-width: 780px;
    margin-top: 28px;
    margin-right: auto;
    margin-left: auto;
}

.contact-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-height: 54px;
    padding: 0 16px;
    color: var(--contact-text);
    background: var(--contact-link-background);
    border: 1px solid var(--contact-link-border);
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-links a:hover {
    background: var(--contact-link-hover);
    border-color: rgba(20, 184, 166, 0.72);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px clamp(18px, 5vw, 72px);
    color: #ffffff;
    background: var(--footer-background);
}

.site-footer p {
    margin: 0;
    color: var(--footer-muted);
}

.site-footer a {
    font-weight: 800;
}

@media (max-width: 1120px) {
    .hero h1 {
        font-size: 4.25rem;
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: 3rem;
    }

    .expertise-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
    }

    .main-nav {
        flex: 1;
        width: auto;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero,
    .split {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 3.45rem;
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: 2.55rem;
    }

    .hero-visual {
        width: min(100%, 360px);
    }

    .availability-card {
        max-width: 100%;
        margin-top: -14px;
    }

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

    .education-card {
        grid-template-columns: 1fr;
    }

    .contact-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header-actions {
        gap: 10px;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

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

    .hero-copy {
        font-size: 1rem;
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: 2.1rem;
    }

    .stats strong {
        font-size: 2.25rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button,
    .contact-links a {
        width: 100%;
    }

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

    .stats,
    .expertise-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats div {
        min-height: auto;
    }

    .project-card {
        min-height: 280px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
