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

:root {
    --bg: #f8fafc;
    --bg-alt: #f0f3ff;
    --surface: #ffffff;
    --surface-strong: #f9f9ff;
    --text: #111c2d;
    --muted: #434655;
    --line: rgba(195, 198, 215, 0.3);
    --primary: #004ac6;
    --primary-dark: #003aa0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --radius-xl: 40px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    margin: 0 0 0.85rem 0;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: min(1280px, calc(100% - 0.75rem));
    margin: 0 auto;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 15% 15%, rgba(0, 74, 198, 0.08), transparent 22%),
                radial-gradient(circle at 85% 22%, rgba(87, 223, 254, 0.08), transparent 18%),
                radial-gradient(circle at 50% 78%, rgba(0, 74, 198, 0.05), transparent 28%);
}

.site-header,
.section,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
    background: rgba(249, 249, 255, 0.8);
    border-bottom: 1px solid rgba(195, 198, 215, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 20;
}
.section {
    padding: 5rem 0;
    scroll-margin-top: 7.5rem;
}
.hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.header-bar {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    white-space: nowrap;
    color: var(--primary);
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    color: var(--muted);
    font-weight: 400;
}

.site-nav a {
    font-size: 0.92rem;
}

.site-nav a {
    position: relative;
    padding: 0.35rem 0;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-weight: 600;
}
.info-card,
.detail-panel,
.skill-card,
.timeline-item,
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid rgba(195, 198, 215, 0.5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.section-muted {
    background: var(--bg-alt);
    border-top: 1px solid rgba(195, 198, 215, 0.18);
    border-bottom: 1px solid rgba(195, 198, 215, 0.18);
}

.eyebrow {
    line-height: 1.2;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.82);
}

.section-heading {
    max-width: 860px;
    margin-bottom: 1.5rem;
}

.section-heading.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.section-heading h2,
.hero-copy h1,
.cta-banner h3 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.05;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    letter-spacing: -0.02em;
}

.section-link {
    color: var(--primary);
    font-weight: 800;
}

.hero {
    padding-top: 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 3.8vw, 3.2rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-copy h1 span {
    color: var(--primary);
}

.hero-role {
    font-size: clamp(1.4rem, 2.1vw, 1.8rem);
    font-weight: 600;
    color: var(--text);
    max-width: 22ch;
    line-height: 1.22;
}

.hero-track {
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.88rem;
}

.hero-summary {
    margin-top: 1rem;
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-icon {
    display: inline-flex;
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.button:hover .button-icon,
.button:focus-visible .button-icon {
    transform: translateX(3px);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

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

.button-secondary {
    color: var(--text);
    background: #f0f3ff;
    border-color: #c3c6d7;
}

.button-light {
    background: #fff;
    color: var(--primary);
}

.button-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

.button-small {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-stats .stat-card {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 260px;
}

.mini-icon,
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(0, 74, 198, 0.08);
    border: 1px solid rgba(0, 74, 198, 0.12);
}

.mini-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    margin: 0;
    flex-shrink: 0;
}

.mini-icon svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 1.5;
}

.card-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 1.5;
}

.card-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    margin: 0 0 0.85rem 0;
}

.stat-card,
.info-card,
.detail-panel,
.skill-card,
.project-card,
.timeline-item,
.contact-card {
    background: var(--surface);
    border: 1px solid rgba(195, 198, 215, 0.5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.info-card,
.detail-panel,
.skill-card,
.timeline-item,
.contact-card {
    padding: 1.25rem;
}

.stat-card {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.stat-copy {
    min-width: 0;
}

.stat-card .stat-copy {
    display: flex;
    flex-direction: column;
}

.stat-card strong,
.stat-card span {
    display: block;
}

.stat-card strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    margin-bottom: 0.1rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.62rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    min-height: 0;
    align-self: start;
    display: flex;
    align-items: flex-start;
}

.hero-photo-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 13 / 12;
    max-height: 31rem;
    min-height: 0;
    overflow: hidden;
    padding: 1rem;
    border-radius: 32px;
    background: #f9f9ff;
    border: 1px solid rgba(195, 198, 215, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 24px;
}

.floating-badge {
    position: absolute;
    top: 1.5rem;
    left: -1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.badge-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0.45rem rgba(22, 93, 255, 0.12);
}

.floating-badge strong,
.floating-badge span {
    display: block;
}

.floating-badge strong {
    font-size: 0.68rem;
}

.floating-badge span {
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 400;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.info-card,
.detail-panel,
.skill-card,
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card h3,
.detail-panel h3,
.skill-card h3,
.project-body h3,
.timeline-item h3,
.contact-card strong {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

.info-card h3,
.detail-panel h3,
.skill-card h3 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.info-card p,
.detail-panel p,
.timeline-item p,
.project-body p {
    color: var(--muted);
}

.card-kicker {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 0.85rem;
}

.about-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.detail-panel-wide {
    min-height: 100%;
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,255,0.98));
    border: 1px solid rgba(0, 74, 198, 0.12);
    box-shadow: 0 24px 60px rgba(0, 74, 198, 0.08);
}

.detail-panel-wide::before {
    content: '';
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: rgba(0, 74, 198, 0.08);
}

.detail-panel-wide::after {
    content: '';
    position: absolute;
    left: -1rem;
    bottom: -1rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(0, 74, 198, 0.06);
}

.detail-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-panel-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-panel-title .card-icon {
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    color: var(--primary);
    background: rgba(0, 74, 198, 0.08);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.detail-panel-school {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.detail-list {
    list-style: none;
    color: var(--muted);
    display: grid;
    gap: 0.7rem;
}

.detail-list li::before {
    content: '•';
    color: var(--primary);
    margin-right: 0.55rem;
}

.project-stack {
    display: grid;
    gap: 1.8rem;
}

.project-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    overflow: hidden;
    border-radius: 24px;
    min-height: 300px;
    height: 300px;
}

.project-card-reverse .project-media {
    order: 2;
}

.project-card-reverse .project-body {
    order: 1;
}

.project-media {
    min-height: 100%;
    background: #e7eeff;
    overflow: hidden;
}

.project-media-button {
    border: 0;
    padding: 0;
    display: block;
    width: 100%;
    cursor: zoom-in;
    text-align: left;
}

.project-media-button img {
    display: block;
}

.project-media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center center;
}

.project-media-seat img {
    object-position: center 72%;
}

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.image-modal.is-open {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.72);
    cursor: zoom-out;
}

.image-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: min(96vw, 1200px);
    max-height: 92vh;
    background: #fff;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.image-modal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.image-modal-dialog img,
.image-modal-dialog video {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 18px;
}

.image-modal-dialog video {
    width: min(90vw, 960px);
    background: #000;
}

.image-modal-dialog video[hidden] {
    display: none !important;
}

.image-modal-nav {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: rgba(17, 28, 45, 0.9);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.image-modal-nav-prev {
    left: auto;
}

.image-modal-nav-next {
    right: auto;
}

@media (max-width: 640px) {
    .image-modal-dialog {
        padding: 1rem;
        gap: 0.5rem;
    }

    .image-modal-nav {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
}

.image-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 0;
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    background: rgba(17, 28, 45, 0.9);
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 768px) {
    .image-modal-dialog {
        flex-direction: column;
        padding: 2.75rem 1rem 1rem 1rem;
    }

    .image-modal-nav {
        order: -1;
        position: absolute;
        top: 0.5rem;
    }

    .image-modal-nav-prev {
        left: 0.5rem;
    }

    .image-modal-nav-next {
        right: 0.5rem;
    }
}

.project-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: space-between;
}

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

.project-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

.project-meta span {
    color: var(--muted);
    background: #d8e3fb;
}

.project-body h3 {
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.2;
}

.project-body p {
    font-size: 0.82rem;
    line-height: 1.55;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.pill {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.project-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

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

.skill-card {
    min-height: 240px;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.tools-wrap {
    text-align: center;
}

.tools-eyebrow {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tools-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    max-width: 760px;
    margin: 0 auto 32px;
}

.tools-sub {
    color: var(--muted);
    font-size: 0.94rem;
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.card-span-two {
    grid-column: span 2;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(227, 232, 251, 1);
    border-radius: 16px;
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 1px 2px rgba(30, 41, 90, 0.04);
    min-height: 0;
}

.card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.card-head > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(68, 83, 216, 0.08);
    border: 1px solid rgba(214, 221, 251, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    display: block;
    margin: auto;
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.count {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags.two-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 6px 8px;
    justify-items: start;
    align-items: start;
}

.tags.two-row .tag-full-width {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
}

.tag {
    background: rgba(238, 241, 254, 1);
    color: var(--primary);
    border: 1px solid rgba(214, 221, 251, 1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
}

@media (max-width: 520px) {
    .card {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .card {
        padding: 20px;
    }
}

.tools-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    align-items: start;
}

.tool-card {
    display: grid;
    gap: 1rem;
    padding: 1.65rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.95));
    border: 1px solid rgba(195, 198, 215, 0.55);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.tool-card-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tool-badge {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(22, 93, 255, 0.12);
    font-size: 0.9rem;
    font-weight: 700;
}

.tool-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tool-list li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: rgba(221, 234, 254, 0.9);
    color: #1d4ed8;
    border: 1px solid rgba(219, 234, 254, 0.95);
    font-size: 0.86rem;
    font-weight: 600;
}

.section-copy {
    max-width: 46rem;
    margin: 0 auto 1.8rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.timeline {
    position: relative;
    display: grid;
    gap: 1.2rem;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(22, 93, 255, 0.8), rgba(22, 93, 255, 0.08));
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.18rem;
    top: 1.55rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f8fafc;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-date,
.timeline-company {
    display: block;
    margin-bottom: 0.55rem;
}

.timeline-date {
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline-company {
    color: var(--text);
    font-weight: 800;
}

.section-contact .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.contact-card {
    display: grid;
    gap: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover,
.contact-card:focus-visible,
.info-card:hover,
.detail-panel:hover,
.skill-card:hover,
.timeline-item:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(43, 70, 140, 0.16);
}

.contact-label {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.64rem;
}

.contact-card strong {
    font-size: 0.88rem;
}

.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-radius: 40px;
    padding: 2.2rem;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(0, 74, 198, 0.2);
}

.cta-banner h3 {
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
    margin-top: 0.25rem;
}

.site-footer {
    padding: 1rem 0 2rem;
}

.footer-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-weight: 600;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(195, 198, 215, 0.3);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .hero-grid,
    .project-card,
    .skills-grid,
    .about-grid,
    .about-panels,
    .section-contact .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid {
        gap: 2rem;
    }

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

    .project-media img {
        min-height: 280px;
    }

    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
        margin-top: 2rem;
    }

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

    .about-panels {
        grid-template-columns: 1fr;
    }

    .project-card-reverse .project-media,
    .project-card-reverse .project-body {
        order: initial;
    }

    .cta-banner,
    .footer-bar,
    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        display: none;
        flex-direction: column;
        gap: 0.2rem;
        padding: 1rem;
    }

    .card-icon {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(82, 98, 146, 0.14);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-grid,
    .project-card,
    .skills-grid,
    .about-grid,
    .section-contact .contact-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: auto;
        height: auto;
    }

    .project-media img {
        min-height: 240px;
    }

    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
        margin-top: 2rem;
    }

    .floating-badge {
        left: 0.8rem;
        top: 0.8rem;
    }

    .section {
        padding: 3.75rem 0;
    }

    .hero {
        padding-top: 2rem;
    }

    .footer-bar {
        text-align: center;
        align-items: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(1180px, calc(100% - 0.9rem));
    }

    .header-bar {
        min-height: 60px;
    }

    .hero-copy h1 {
        font-size: 2.15rem;
    }

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

    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
        margin-top: 2rem;
    }

    .section-heading h2 {
        font-size: 1.55rem;
    }

    .mini-icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .card-icon {
        width: 2.1rem;
        height: 2.1rem;
    }

    .project-media img {
        min-height: 240px;
    }

    .cta-banner {
        padding: 1.25rem;
    }
}