:root {
    --font-title: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --bg: #0a1022;
    --bg-soft: #111b35;
    --surface: rgba(18, 28, 53, 0.75);
    --surface-solid: #131f3a;
    --text: #e8eefc;
    --text-muted: #b8c3dc;
    --border: rgba(145, 172, 255, 0.24);
    --accent: #65a5ff;
    --accent-2: #8b6dff;
    --glow: linear-gradient(135deg, #65a5ff 0%, #8b6dff 55%, #ac4dff 100%);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
    --radius: 18px;
}

html[data-theme='light'] {
    --bg: #f4f8ff;
    --bg-soft: #deeaff;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-solid: #ffffff;
    --text: #13213f;
    --text-muted: #455678;
    --border: rgba(65, 97, 169, 0.25);
    --accent: #2a68ff;
    --accent-2: #7a44ff;
    --shadow: 0 14px 34px rgba(25, 61, 133, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 15% 20%, rgba(101, 165, 255, 0.2), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(139, 109, 255, 0.25), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 0.7rem 1rem;
    border-radius: 0 0 0.6rem 0.6rem;
    background: #111;
    color: #fff;
    z-index: 9999;
}

.skip-link:focus {
    left: 1rem;
}

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

.section {
    padding: 4.75rem 0;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.55rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(16px);
    background: color-mix(in oklab, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--border);
}

.nav {
    width: min(1120px, calc(100% - 2.4rem));
    margin: 0 auto;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav-links {
    margin-left: auto;
    display: flex;
    list-style: none;
    gap: 0.3rem;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.55rem 0.9rem;
    border-radius: 0.8rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: color-mix(in oklab, var(--accent) 18%, transparent);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 2.5rem;
    height: 2.3rem;
    margin-left: auto;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--text);
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 86vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -8% -5%;
    /*background:
        linear-gradient(rgba(10, 16, 34, 0.72), rgba(10, 16, 34, 0.68)),
        url('../img/hero-bg.jpg') center / cover no-repeat,
        radial-gradient(circle at 20% 30%, rgba(114, 198, 255, 0.28), transparent 42%),
        radial-gradient(circle at 70% 20%, rgba(161, 108, 255, 0.32), transparent 35%),
        radial-gradient(circle at 60% 75%, rgba(58, 119, 255, 0.2), transparent 45%);*/
    filter: blur(8px);
    z-index: -1;
    transition: transform 0.25s linear;
}

.hero-content {
    padding: 4rem 0;
}

.hero-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eyebrow {
    display: inline-block;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    color: var(--text);
    margin-bottom: 1.15rem;
    font-size: 0.85rem;
}

.typed-line {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--text);
    min-height: 2rem;
}

.typed-text {
    color: #fff;
    background-image: var(--glow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.typed-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    0%,
    100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-copy {
    max-width: 62ch;
    margin-top: 0.95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn {
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.72rem 1.3rem;
    font-weight: 600;
    font-family: var(--font-title);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background-image: var(--glow);
    box-shadow: 0 10px 30px rgba(101, 165, 255, 0.34);
}

.btn-secondary {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}

.quick-stats {
    margin-top: 2rem;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.quick-stats li {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 0.95rem 1rem;
}

.quick-stats strong {
    display: block;
    color: var(--text);
    font-family: var(--font-title);
    font-size: 1.35rem;
}

.quick-stats span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Profile Photo Styling */
.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
    animation: fadeIn 1.2s ease-in-out;
    transition: transform 0.3s ease-in-out;
}

.profile-photo:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.2rem;
}

.panel {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.panel-accent {
    background: linear-gradient(180deg, color-mix(in oklab, var(--accent-2) 22%, transparent), var(--surface));
}

.text-link {
    color: var(--accent);
    text-underline-offset: 4px;
    font-weight: 600;
}


.journey-intro {
    margin-bottom: 1.5rem;
    max-width: 78ch;
}

.timeline-highway {
    position: relative;
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 1.2rem;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.4rem 1rem 1.7rem;
    background:
        radial-gradient(circle at 8% 0%, rgba(118, 180, 255, 0.22), transparent 30%),
        radial-gradient(circle at 90% 110%, rgba(171, 113, 255, 0.2), transparent 32%),
        color-mix(in oklab, var(--surface-solid) 78%, transparent);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.highway-track {
    position: relative;
    min-height: 560px;
    border-radius: 60px;
    border: 1px solid color-mix(in oklab, var(--text) 18%, transparent);
    background: linear-gradient(180deg, #485775 0%, #2f3a53 100%);
    box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.24);
}

.highway-lane {
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 50%;
    width: 8px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.94) 0,
        rgba(255, 255, 255, 0.94) 26px,
        transparent 26px,
        transparent 56px
    );
    border-radius: 999px;
    animation: laneFlow 3.8s linear infinite;
    opacity: 0.95;
}

.highway-car {
    position: absolute;
    left: 50%;
    top: 1rem;
    width: 46px;
    height: 88px;
    transform: translateX(-50%);
    border-radius: 14px;
    background: linear-gradient(135deg, #f86f4c 0%, #ffb24f 100%);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
    transition: top 0.2s linear;
}

.highway-car::before,
.highway-car::after {
    content: '';
    position: absolute;
    left: -8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1b2233;
    border: 2px solid #96a7d2;
}

.highway-car::before {
    top: 12px;
}

.highway-car::after {
    bottom: 12px;
}

.car-window {
    position: absolute;
    inset: 14px 6px 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(196, 234, 255, 0.96), rgba(118, 162, 235, 0.82));
}

.journey-milestones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journey-milestone {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
}

.milestone-marker {
    grid-column: 1;
    justify-self: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: color-mix(in oklab, var(--accent) 85%, white);
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 26%, transparent);
}

.milestone-symbol {
    grid-column: 1;
    justify-self: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background-image: var(--glow);
    box-shadow: 0 10px 22px rgba(101, 165, 255, 0.34);
}

.milestone-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.journey-milestone:hover .milestone-card {
    transform: translateY(-5px);
    border-color: color-mix(in oklab, var(--accent) 58%, var(--border));
    box-shadow: 0 14px 28px rgba(77, 111, 201, 0.24);
}

.journey-milestone.is-passed .milestone-marker {
    background: #7df5c0;
    box-shadow: 0 0 0 6px rgba(125, 245, 192, 0.28);
}

.journey-milestone.is-passed .milestone-symbol {
    filter: saturate(1.2);
}

.journey-milestone.is-passed .milestone-card {
    border-color: color-mix(in oklab, #7df5c0 52%, var(--border));
}

.timeline-kicker {
    color: var(--accent);
    font-size: 0.83rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-intro {
    margin-bottom: 1.1rem;
}

.projects-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.project-search {
    flex: 1;
    min-width: 200px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    color: var(--text);
    border-radius: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-search::placeholder {
    color: var(--text-muted);
}

.project-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(101, 165, 255, 0.15);
}

.project-sort {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.project-sort__label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

.project-sort__dropdown {
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    color: var(--text);
    border-radius: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-sort__dropdown:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(101, 165, 255, 0.15);
}

.project-sort__dropdown option {
    background: var(--bg-soft);
    color: var(--text);
}

.project-card.hidden {
    display: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    perspective: 1000px;
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    border-radius: var(--radius);
    aspect-ratio: var(--project-ratio, 4 / 3);
    padding: 0;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card:hover {
    border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
    box-shadow: 0 12px 30px rgba(92, 132, 255, 0.2);
    transform: translateY(-4px);
}

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

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    margin-bottom: 0;
    border: 0;
    transform: scale(1.01);
    transition: transform 0.35s ease;
}

.project-card:hover .project-thumb,
.project-card:focus-visible .project-thumb {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 12, 22, 0.14) 28%, rgba(7, 12, 22, 0.82) 100%);
}

.project-overlay h3 {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-year {
    color: color-mix(in oklab, #fff 84%, var(--accent));
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.project-modal[hidden] {
    display: none;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.8);
    backdrop-filter: blur(12px);
}

.project-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(92vh, 920px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.15);
    background: var(--surface-solid);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.project-modal__content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
    gap: 0;
    align-items: stretch;
}

.project-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in oklab, var(--bg) 75%, black);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.project-modal__image {
    display: block;
    width: 100%;
    min-height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: color-mix(in oklab, var(--bg) 72%, black);
    border-left: 1px solid var(--border);
}

.project-modal__body {
    display: grid;
    gap: 0.9rem;
    padding: 1.35rem 1.4rem 1.5rem;
    align-content: start;
}

.project-modal__year {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-modal__body h3 {
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.project-modal__description {
    line-height: 1.7;
}

.project-modal__tech h4 {
    margin-bottom: 0.55rem;
    font-size: 1rem;
    color: var(--text);
}

.project-modal__tech ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-modal__tech li {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    background: color-mix(in oklab, var(--accent-2) 10%, transparent);
    color: var(--text);
}

.project-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.15rem;
}

.project-modal__actions .btn {
    min-width: 10rem;
    justify-content: center;
    text-decoration: none;
}

.project-modal__demo.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.project-modal__actions .btn:focus-visible,
.project-modal__close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.85rem 0;
}

.tag-list li {
    font-size: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    color: var(--text);
}

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

.certificate-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-solid);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificate-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.certificate-card h3 {
    font-size: 1rem;
    padding: 0.9rem 1rem 1.05rem;
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(92, 132, 255, 0.2);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.skill-row {
    margin-top: 0.95rem;
}

.skill-row > span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.progress {
    height: 9px;
    width: 100%;
    border-radius: 99px;
    background: color-mix(in oklab, var(--bg) 60%, #000);
    overflow: hidden;
}

.progress > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background-image: var(--glow);
    transition: width 0.9s ease;
}

.chip-cloud {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-cloud span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: color-mix(in oklab, var(--accent-2) 12%, transparent);
    color: var(--text);
}

.contact-list {
    list-style: none;
    margin: 1rem 0;
    display: grid;
    gap: 0.55rem;
}

.contact-list a {
    color: var(--accent);
}

.social-row {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-pill {
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: var(--surface);
    color: var(--text);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.social-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(108, 155, 255, 0.4);
}

.panel-form form {
    display: grid;
    gap: 0.55rem;
}

label {
    font-weight: 600;
    font-size: 0.93rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    color: var(--text);
    background: color-mix(in oklab, var(--bg) 65%, transparent);
    border-radius: 0.8rem;
    padding: 0.78rem 0.82rem;
    font: inherit;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-status {
    min-height: 1.25rem;
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.6rem 1rem 2rem;
    color: var(--text-muted);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    transform: translateY(34px);
}

@keyframes laneFlow {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 -56px;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .project-search {
        min-width: unset;
    }

    .project-sort {
        justify-content: space-between;
    }

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

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

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

    .timeline-highway {
        grid-template-columns: 82px 1fr;
    }

    .highway-track {
        min-height: 520px;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
    }

    .theme-toggle {
        margin-left: 0.4rem;
    }

    .nav-links {
        position: absolute;
        left: 1.2rem;
        right: 1.2rem;
        top: 4.4rem;
        flex-direction: column;
        background: var(--surface-solid);
        border: 1px solid var(--border);
        border-radius: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.open {
        max-height: 420px;
        padding: 0.5rem;
    }

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

    .project-modal__content {
        grid-template-columns: 1fr;
    }

    .project-modal__image {
        border-left: 0;
        border-top: 1px solid var(--border);
        aspect-ratio: 16 / 10;
        min-height: 220px;
        order: 2;
    }

    .project-modal__body {
        order: 1;
    }

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

    .timeline-highway {
        grid-template-columns: 58px 1fr;
        padding: 1.1rem 0.75rem 1.2rem;
    }

    .highway-track {
        min-height: 500px;
        border-radius: 40px;
    }

    .highway-car {
        width: 40px;
        height: 76px;
    }

    .highway-car::before,
    .highway-car::after {
        width: 14px;
        height: 14px;
        left: -6px;
    }

    .car-window {
        inset: 12px 5px 12px;
    }

    .journey-milestone {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 0.7rem;
    }

    .milestone-symbol {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 0.8rem;
    }

    .milestone-card {
        padding: 0.85rem;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-image {
        flex: 1 1 100%;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .hero {
        min-height: 78vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.dark-mode .project-btn.github {
    background: #222;
}

.dark-mode nav {
    background: rgba(20,20,20,0.95);
}

/* =========================================================
   LINE 1180 — FINAL POLISHING UTILITIES
========================================================= */

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.shadow-soft {
    box-shadow: 0 6px 22px rgba(0,0,0,0.15);
}

.rounded { border-radius: 12px; }

.card-hover:hover {
    transform: translateY(-6px);
    transition: 0.3s ease;
}

/* END OF 1200+ LINES */
