/* ==========================================================================
   FONTS
   ========================================================================== */

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains/JetBrainsMono-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains/JetBrainsMono-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains/JetBrainsMono-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains/JetBrainsMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains/JetBrainsMono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains/JetBrainsMono-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains/JetBrainsMono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains/JetBrainsMono-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* (Italic faces available too; omitted if not used globally) */

/* ==========================================================================
   THEME & GLOBALS
   ========================================================================== */

:root {
    /* Colors */
    --background: #0b0f0c;
    --background-alt: #101612;
    --primary: #39ff14;
    /* neon green */
    --primary-contrast: #06140a;
    /* dark ink for neon buttons */
    --accent: #00ff2a;
    /* mint/cyan */
    --color: #e8ffe8;
    /* body text */
    --danger: #ff6b6b;
    --shadow: rgba(0, 0, 0, .55);
    --border: #16361f;

    /* Typography */
    --font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
        Consolas, "Liberation Mono", "Courier New", monospace;
    --font: 400 16px/1.6 var(--font-family);

    /* Layout */
    --content-max: 955px;
    --header-h: 4rem;

    /* Animation knobs */
    --glitch-dur-1: 1.8s;
    --glitch-dur-2: 2s;
    --glitch-steps-1: 16;
    --glitch-steps-2: 14;

    --card-pop-dur: 700ms;
    --card-pop-ease: ease-out;

    --scan-gap: 8px;
    --scan-thickness: 1px;
    --sweep-height: 7%;
    --sweep-speed: 6s;

    /* Enhanced CRT variables */
    --crt-flicker-speed: 0.25s;
    --crt-curvature: 8px;
    --crt-noise-opacity: 0.02;
    --crt-vignette-strength: 0.45;

    /* Avatar animation variables */
    --avatar-scan-speed: 2.5s;
    --avatar-glow-intensity: 0.8;
    --avatar-matrix-speed: 15s;
    
    /* Timeline colors */
    --neon-cyan: #00ffff;
    --neon-green: #39ff14;
    --neon-bright: #4dff1a;
    --bg-dark: #0b0f0c;
    --text-dim: #666;
    --text-bright: #e8ffe8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #070a08;
        --background-alt: #0d130f;
        --primary: #36ff12;
        --primary-contrast: #031007;
        --accent: #15ff00;
        --color: #f0fff0;
        --border: #132a18;
    }
}

/* Base reset */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
}

html {
    color: var(--color);
    background: var(--background);
    font: var(--font);
}

::selection {
    background: rgba(57, 255, 20, .22);
    color: var(--primary-contrast);
}

:where(h1, h2) {
    /* subtle neon bloom */
    text-shadow:
        0 0 .35rem rgba(57, 255, 20, .35),
        0 0 .75rem rgba(0, 255, 13, 0.25);
}

:where(h1, h2, h3, h4, h5, h6) {
    color: var(--primary);
    text-align: center;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--background);
    backdrop-filter: blur(2px);
    box-shadow: 0 5px 5px var(--shadow);
}

h1 {
    margin: 0;
    padding: 1rem;
    box-shadow: 0 5px 5px var(--shadow);
}

main {
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 2rem);
    /* scroll-snap-type: y proximity; */
    scroll-timeline-name: --my-scroller;
    scroll-timeline-axis: block;
    scrollbar-gutter: stable;
}

main>section,
main>footer {
    padding: 3rem;
}

/* First section needs extra top padding to account for sticky header */
main>section:first-child {
    padding-top: calc(var(--header-h) + 3rem);
}

main>section>*,
main>footer>* {
    max-width: var(--content-max);
    margin-inline: auto;
}

main>section:nth-child(even) {
    background: var(--background-alt);
}

/* main>section {
    scroll-snap-align: start;
} */

/* Progress line under header */
#progress {
    width: calc(100% + 2rem);
    height: 2px;
    margin: 1rem -1rem -1rem -1rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow:
        0 0 .6rem rgba(57, 255, 20, .4),
        0 0 1.2rem rgba(0, 255, 198, .28);
    transform-origin: 0 50%;
    animation: grow-progress auto linear;
    animation-timeline: --my-scroller;
}

@keyframes grow-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ==========================================================================
   NAV
   ========================================================================== */

.topnav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: .5rem 1rem 1rem;
    font-family: var(--font-family);
}

.topnav a {
    position: relative;
    color: var(--color);
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: .5rem;
    transition: transform .12s ease;
}

.topnav a:hover,
.topnav a:focus {
    transform: translateY(-1px);
}

.topnav a::after {
    content: "";
    position: absolute;
    left: .4rem;
    right: .4rem;
    bottom: .1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
    box-shadow: 0 0 .6rem rgba(57, 255, 20, .4), 0 0 1.2rem rgba(0, 255, 198, .28);
}

.topnav a:hover::after,
.topnav a:focus::after,
.topnav a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Mobile navigation styles */
@media (max-width: 700px) {
    .topnav {
        gap: 0.2rem;
        font-size: 0.7rem;
        padding: .3rem 0.1rem .8rem;
        flex-wrap: wrap;
        max-width: 100vw;
        justify-content: center;
        line-height: 1.2;
    }

    .topnav a {
        padding: .08rem .12rem;
        font-size: 0.85em;
        min-width: 48px;
        text-align: center;
        border-radius: 0.3rem;
        white-space: nowrap;
        /* Maintain cyberpunk aesthetic with subtle glow */
        background: rgba(11, 15, 12, 0.8);
        border: 1px solid rgba(57, 255, 20, 0.2);
        transition: all 0.2s ease;
    }

    .topnav a:hover,
    .topnav a:focus {
        background: rgba(57, 255, 20, 0.1);
        border-color: var(--primary);
        transform: translateY(-1px) scale(1.05);
    }

    /* Adjust the neon underline for mobile */
    .topnav a::after {
        left: .2rem;
        right: .2rem;
        bottom: .05rem;
        height: 1px;
    }

    /* Mobile adjustments for cycling title to prevent layout shifts */
    .title-cycler {
        height: 1.2em;
        min-width: 180px;
        font-size: 0.9em;
    }

    /* Ensure header has consistent height on mobile */
    .site-header h1 {
        min-height: 120px;
    }
}

/* ==========================================================================
   LINKS / BUTTONS
   ========================================================================== */

main a {
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

main a:hover,
main a:focus {
    text-decoration-thickness: from-font;
    text-shadow: 0 0 .5rem rgba(0, 255, 198, .35);
}

.Experience a:where(:link, :visited),
button[type="submit"],
dialog button {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--primary-contrast);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: .75rem 2.5rem;
    border-radius: 24px;
    display: inline-block;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    box-shadow:
        0 0 .7rem rgba(57, 255, 20, .35),
        0 0 1.2rem rgba(0, 255, 198, .25);
}

.cta-link:where(:link, :visited) {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--primary-contrast);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: .75rem 2.5rem;
    border-radius: 24px;
    display: inline-block;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    box-shadow:
        0 0 .7rem rgba(57, 255, 20, .35),
        0 0 1.2rem rgba(0, 255, 198, .25);
}

.Experience a:hover,
.Experience a:focus,
button[type="submit"]:hover,
button[type="submit"]:focus,
dialog button:hover,
dialog button:focus {
    transform: translateY(-1px);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow:
        0 0 1rem rgba(57, 255, 20, .45),
        0 0 1.8rem rgba(0, 255, 198, .35);
}

.cta-link:hover,
.cta-link:focus {
    transform: translateY(-1px);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow:
        0 0 1rem rgba(57, 255, 20, .45),
        0 0 1.8rem rgba(0, 255, 198, .35);
}

/* ==========================================================================
   FORM
   ========================================================================== */

label {
    display: block;
}

:where(input[type="text"], input[type="email"], textarea) {
    display: block;
    width: 100%;
    padding: .5rem 0;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    border-image: linear-gradient(to right, var(--primary), var(--accent)) 30;
}

:where(input[type="text"], input[type="email"], textarea):hover,
:where(input[type="text"], input[type="email"], textarea):focus {
    outline: none;
    border-image: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
}

input[type="radio"] {
    accent-color: var(--accent);
}

label:has(+ [required])::before,
legend:has(~ label [required])::before {
    content: "* ";
    color: var(--danger);
}

.control-error {
    color: var(--danger);
    letter-spacing: 1px;
    font-weight: 300;
    font-size: .9rem;
    margin-bottom: 2rem;
}

.control-error span {
    display: none;
}

:user-invalid+.control-error span {
    display: block;
}

@supports not selector(:user-invalid) {
    :invalid+.control-error span {
        display: block;
    }
}

/* Form actions spacing */
form .actions {
    margin-top: 2rem;
}

/* Dialog */
dialog {
    padding: 0;
    border: none;
    box-shadow: 0 0 5px var(--shadow);
}

dialog header {
    background: var(--primary);
    color: var(--primary-contrast);
    padding: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

dialog .content {
    padding: 1rem;
}

dialog footer {
    display: flex;
    justify-content: flex-end;
    padding: .5rem 1rem;
    border-top: 1px solid var(--border);
}

::backdrop {
    backdrop-filter: blur(5px);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

/* About section layout */
.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

/* Cyberpunk Avatar */
.avatar-container {
    position: relative;
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

img.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    filter:
        contrast(1.1) brightness(1.05) saturate(0.9) hue-rotate(5deg);
    transition: filter 0.3s ease;
}

/* Animated border rings */
.avatar-container::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--accent) 60deg,
            var(--primary) 120deg,
            transparent 180deg,
            var(--accent) 240deg,
            var(--primary) 300deg,
            transparent 360deg);
    animation: avatar-spin var(--avatar-matrix-speed) linear infinite;
    z-index: 1;
}

/* Inner glow ring */
.avatar-container::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    opacity: var(--avatar-glow-intensity);
    filter: blur(3px);
    animation: avatar-pulse 3s ease-in-out infinite alternate;
    z-index: 1;
}

/* Scanning line effect */
.avatar-container .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            rgba(57, 255, 20, 0.9),
            rgba(0, 255, 198, 0.9),
            transparent);
    box-shadow:
        0 0 10px rgba(57, 255, 20, 0.6),
        0 0 20px rgba(0, 255, 198, 0.4);
    animation: avatar-scan var(--avatar-scan-speed) ease-in-out infinite;
    z-index: 3;
    border-radius: 2px;
}

/* Matrix-style data overlay */
.avatar-container .data-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg,
            transparent 0px,
            rgba(57, 255, 20, 0.03) 1px,
            transparent 2px,
            transparent 8px),
        repeating-linear-gradient(90deg,
            transparent 0px,
            rgba(0, 255, 198, 0.02) 1px,
            transparent 2px,
            transparent 8px);
    border-radius: 50%;
    opacity: 0;
    animation: data-flicker 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

/* Hover effects */
.avatar-container:hover img.avatar {
    filter:
        contrast(1.2) brightness(1.1) saturate(1.1) hue-rotate(10deg);
}

.avatar-container:hover::after {
    opacity: 1;
    filter: blur(5px);
}

.avatar-container:hover .scan-line {
    animation-duration: 1.5s;
}

/* Avatar animations */
@keyframes avatar-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes avatar-pulse {

    0%,
    100% {
        opacity: var(--avatar-glow-intensity);
        transform: scale(1);
    }

    50% {
        opacity: calc(var(--avatar-glow-intensity) * 1.3);
        transform: scale(1.02);
    }
}

@keyframes avatar-scan {
    0% {
        top: -3px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes data-flicker {

    0%,
    90%,
    100% {
        opacity: 0;
    }

    5%,
    85% {
        opacity: 0.3;
    }

    10%,
    80% {
        opacity: 0;
    }

    15%,
    75% {
        opacity: 0.2;
    }
}

/* About section mobile responsiveness */
@media (max-width: 700px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .avatar-container {
        margin: 0 auto;
    }
    
    .about-text {
        text-align: left;
    }
}

/* ==========================================================================
   SKILLS
   ========================================================================== */

.skills .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    justify-content: center;
    text-align: left;
}

.skills .skills-grid>section {
    flex: 1 1 260px;
    max-width: 320px;
    position: relative;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.skills .skills-grid>section:hover,
.skills .skills-grid>section:focus-within {
    background: linear-gradient(180deg, rgba(57, 255, 20, .06), rgba(57, 255, 20, .03));
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    box-shadow: 0 0 .6rem rgba(57, 255, 20, .25), 0 0 1.2rem rgba(0, 255, 198, .15);
    transform: translateY(-2px);
}

/* neon line on hover */
.skills .skills-grid>section::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
    box-shadow: 0 0 .6rem rgba(57, 255, 20, .35), 0 0 1.2rem rgba(0, 255, 198, .25);
}

.skills .skills-grid>section:hover::before,
.skills .skills-grid>section:focus-within::before {
    transform: scaleX(1);
}

/* glitch headline inside each card (triggered by .reveal) */
.skills .skills-grid h3 {
    position: relative;
    margin: 0 0 .5rem;
    color: var(--primary);
}

.skills .skills-grid h3::before,
.skills .skills-grid h3::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
}

.skills .skills-grid>section.reveal h3::before {
    color: var(--accent);
    animation: text-glitch var(--glitch-dur-1) steps(var(--glitch-steps-1)) infinite;
    opacity: .85;
}

.skills .skills-grid>section.reveal h3::after {
    color: var(--primary);
    animation: text-glitch var(--glitch-dur-2) steps(var(--glitch-steps-2)) infinite reverse;
    opacity: .85;
}

/* card pop */
.skills .skills-grid>section.reveal {
    animation: card-pop 1000ms var(--card-pop-ease) both;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */

/* Project Cards Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.project-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.reveal {
    animation: card-pop var(--card-pop-dur) var(--card-pop-ease) both;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 
        0 0 20px rgba(57, 255, 20, 0.2),
        inset 0 0 20px rgba(57, 255, 20, 0.05);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.project-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.project-title:hover {
    text-shadow: 0 0 10px var(--primary);
    transform: translateX(2px);
}

.project-date {
    color: var(--accent);
    font-family: var(--font-family);
    font-size: 0.8rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.project-banner {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--primary-contrast);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    color: var(--color);
    line-height: 1.6;
    margin: 0.75rem 0 1rem 0;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-badge {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: rgba(57, 255, 20, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-btn {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--primary-contrast);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
}

.project-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

.project-btn.secondary {
    background: rgba(57, 255, 20, 0.1);
    color: var(--primary);
    border: 1px solid rgba(57, 255, 20, 0.3);
    box-shadow: none;
}

.project-btn.secondary:hover {
    background: rgba(57, 255, 20, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.project-btn.disabled {
    background: rgba(128, 128, 128, 0.2);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(128, 128, 128, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.project-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.coming-soon-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.Experience img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
}

.Experience .container {
    display: grid;
    row-gap: 3rem;
    margin-block: 2rem;
}

@media (min-width: 750px) {
    .Experience section * {
        margin: 0;
    }

    .Experience .container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: 150px min-content auto min-content;
        gap: 0 3rem;
    }

    .Experience section {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: 1 / 5;
        row-gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .Experience .image {
        grid-row: 1;
    }

    .Experience .name {
        grid-row: 2;
    }

    .Experience .description {
        grid-row: 3;
    }

    .Experience .actions {
        grid-row: 4;
    }

    @supports not (grid-template-rows: subgrid) {
        .Experience .container {
            grid-template-rows: auto;
        }

        .Experience section {
            display: flex;
            flex-direction: column;
        }

        .Experience .actions {
            margin-top: auto;
        }
    }
}

/* pop-in on reveal (+ small CSS stagger) */
.Experience .project {
    opacity: 0;
    transform: translateY(10px) scale(.985);
}

.Experience .project.reveal {
    animation: card-pop var(--card-pop-dur) var(--card-pop-ease) both;
}

@media (prefers-reduced-motion: no-preference) {
    .Experience .project:nth-child(2).reveal {
        animation-delay: 90ms;
    }

    .Experience .project:nth-child(3).reveal {
        animation-delay: 180ms;
    }
}

/* glitch effect for project names */
.Experience .name {
    position: relative;
    color: var(--primary);
}

.Experience .name::before,
.Experience .name::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
}

.Experience .project.reveal .name::before {
    color: var(--accent);
    animation: text-glitch var(--glitch-dur-1) steps(var(--glitch-steps-1)) infinite;
    opacity: .85;
}

.Experience .project.reveal .name::after {
    color: var(--primary);
    animation: text-glitch var(--glitch-dur-2) steps(var(--glitch-steps-2)) infinite reverse;
    opacity: .85;
}

/* ==========================================================================
   SECTION TITLES (About, Skills, Projects, Contact)
   ========================================================================== */

.section-heading {
    position: relative;
    display: block;
    width: max-content;
    margin-inline: auto;
    letter-spacing: .02em;
    text-align: center;
    opacity: 0;
    transform: translateY(8px) scale(.985);
}

.section-heading.reveal {
    animation: card-pop 650ms var(--card-pop-ease) both;
}

.section-heading::before,
.section-heading::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
}

.section-heading.reveal::before {
    color: var(--accent);
    animation: text-glitch var(--glitch-dur-1) steps(var(--glitch-steps-1)) infinite;
    opacity: .9;
}

.section-heading.reveal::after {
    color: var(--primary);
    animation: text-glitch var(--glitch-dur-2) steps(var(--glitch-steps-2)) infinite reverse;
    opacity: .9;
}

/* optional neon divider under title */
.section-title-rule {
    display: none;
}

/* ==========================================================================
   TYPEWRITER (multi-line, layout-safe) - DISABLED
   ========================================================================== */

/* reset any old snippet */
/* p,
li {
    white-space: normal;
    overflow: visible;
    border-right: 0;
}

.type-reveal {
    position: relative;
    will-change: clip-path;
}


/* Per-character typewriter effect */
/* .type-reveal.is-typing {
    animation: none;
}

.type-reveal.is-typing .type-char {
    opacity: 0;
    animation: type-char-reveal 0.04s linear forwards;
    animation-delay: var(--char-delay, 0s);
}

@keyframes type-char-reveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes type-reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

/* cursor (no layout shift) */

/* .type-reveal.is-typing .type-cursor {
    display: inline-block;
    width: 0;
    height: var(--caret-h);
    vertical-align: bottom;
    color: var(--primary);
    opacity: .75;
    animation: blink .8s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
} */

/* ==========================================================================
   VISUAL FX: headline glitch, CRT, mouse halo
   ========================================================================== */

/* Headline (site title) glitch */
.headline {
    text-align: center;
    margin-top: .25rem;
    letter-spacing: .02em;
    font-family: var(--font-family);
}

.glitch,
.glitch::before,
.glitch::after {
    will-change: transform;
}

.glitch {
    position: relative;
    display: inline-block;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 .35rem rgba(57, 255, 20, .35), 0 0 .75rem rgba(0, 255, 198, .25);
    --gi: var(--glitch-intensity, 1);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.glitch::before {
    color: var(--accent);
    transform: translate(calc(1px*var(--gi)), calc(-1px*var(--gi)));
    animation: glitch-move 1800ms steps(12) infinite alternate-reverse;
}

.glitch::after {
    color: var(--primary);
    transform: translate(calc(-1px*var(--gi)), calc(1px*var(--gi)));
    animation: glitch-move 2000ms steps(14) infinite alternate;
}

@supports (-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000)) {
    .glitch {
        -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgba(0, 0, 0, .6) 2px 3px);
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgba(0, 0, 0, .6) 2px 3px);
    }
}

@keyframes glitch-move {
    0% {
        transform: translate(0, 0)
    }

    10% {
        transform: translate(-1px, 1px)
    }

    20% {
        transform: translate(2px, -1px)
    }

    30% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(1px, -2px)
    }

    50% {
        transform: translate(-1px, 1px)
    }

    60% {
        transform: translate(2px, 0)
    }

    70% {
        transform: translate(-2px, 1px)
    }

    80% {
        transform: translate(1px, -1px)
    }

    90% {
        transform: translate(-1px, 2px)
    }

    100% {
        transform: translate(0, 0)
    }
}

/* Cycling title typewriter effect */
.title-cycler {
    display: inline-block;
    position: relative;
    margin-top: 0;
    font-family: var(--font-family);
    letter-spacing: .02em;
    /* Fixed height to prevent layout shifts */
    height: 1.5em;
    overflow: hidden;
    /* Set minimum width for longest title */
    min-width: 200px;
    vertical-align: top;
    text-align: center;
}

.cycling-title {
    display: inline-block;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 .35rem rgba(57, 255, 20, .35), 0 0 .75rem rgba(0, 255, 198, .25);
    opacity: 0;
    transform: translateY(10px);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Prevent text from wrapping */
    white-space: nowrap;
}

.cycling-title.typing {
    opacity: 1;
    transform: translateY(0);
}

/* Apply glitch effect to cycling title when typing */
.cycling-title.typing::before,
.cycling-title.typing::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.cycling-title.typing::before {
    color: var(--accent);
    transform: translate(calc(1px*var(--glitch-intensity, 1)), calc(-1px*var(--glitch-intensity, 1)));
    animation: glitch-move 1800ms steps(12) infinite alternate-reverse;
}

.cycling-title.typing::after {
    color: var(--primary);
    transform: translate(calc(-1px*var(--glitch-intensity, 1)), calc(1px*var(--glitch-intensity, 1)));
    animation: glitch-move 2000ms steps(14) infinite alternate;
}

.cycling-cursor {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: inherit;
    line-height: inherit;
    margin-left: 1px;
    animation: cursor-blink 1s infinite;
    text-shadow: 0 0 .35rem rgba(57, 255, 20, .5), 0 0 .75rem rgba(0, 255, 198, .25);
    opacity: 1;
    vertical-align: baseline;
}

.cycling-cursor.hidden {
    opacity: 0;
}

@keyframes cursor-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ==========================================================================
   Mouse halo / phosphor glow
   ========================================================================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    background:
        /* Main glow */
        radial-gradient(600px circle at var(--mx, 30%) var(--my, 10%),
            rgba(57, 255, 20, .16),
            rgba(0, 255, 76, .1) 25%,
            rgba(0, 255, 198, .06) 45%,
            rgba(0, 0, 0, 0) 70%),
        /* Secondary phosphor trail */
        radial-gradient(900px circle at var(--mx, 50%) var(--my, 30%),
            rgba(0, 255, 198, .03),
            rgba(57, 255, 20, .02) 40%,
            rgba(0, 0, 0, 0) 60%);
    mix-blend-mode: screen;
    animation: phosphor-pulse 4s ease-in-out infinite alternate;
}

/* ==========================================================================
   CRT Overlay
   ========================================================================== */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .4;
    border-radius: var(--crt-curvature);
    background:
        /* CRT screen curvature vignette */
        radial-gradient(ellipse 120% 100% at 50% 50%,
            rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, var(--crt-vignette-strength)) 100%),
        /* Phosphor glow */
        linear-gradient(180deg,
            rgba(0, 255, 198, .04),
            rgba(57, 255, 20, .03) 50%,
            rgba(0, 255, 198, .04)),
        /* Horizontal scan lines */
        repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, .06) 0 var(--scan-thickness),
            rgba(0, 0, 0, 0) var(--scan-thickness) var(--scan-gap)),
        /* Moving phosphor sweep */
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 255, 198, .12) 2%,
            rgba(57, 255, 20, .15) 5%,
            rgba(0, 255, 198, .12) 8%,
            rgba(0, 0, 0, 0) 10%),
        /* Subtle noise pattern */
        repeating-conic-gradient(from 0deg at 50% 50%,
            rgba(255, 255, 255, var(--crt-noise-opacity)) 0deg 1deg,
            rgba(0, 0, 0, 0) 1deg 3deg);
    background-size:
        100% 100%,
        100% 100%,
        100% var(--scan-gap),
        100% var(--sweep-height),
        4px 4px;
    background-repeat: no-repeat, no-repeat, repeat, no-repeat, repeat;
    background-position: 0 0, 0 0, 0 0, 0 -20%, 0 0;
    animation:
        crt-sweep var(--sweep-speed) linear infinite,
        crt-flicker var(--crt-flicker-speed) ease-in-out infinite alternate;
    filter: contrast(1.05) brightness(0.99);
}

@keyframes crt-sweep {
    to {
        background-position: 0 0, 0 0, 0 0, 0 120%, 0 0;
    }
}

@keyframes phosphor-pulse {

    0%,
    100% {
        opacity: 1;
        filter: blur(0px);
    }

    50% {
        opacity: 0.85;
        filter: blur(0.5px);
    }
}

@keyframes crt-flicker {

    0%,
    100% {
        opacity: .4;
        filter: contrast(1.05) brightness(0.99);
    }

    50% {
        opacity: .42;
        filter: contrast(1.08) brightness(1.01);
    }

    75% {
        opacity: .38;
        filter: contrast(1.03) brightness(0.98);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

main>footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

main>footer ul.contacts li:not(:last-of-type) {
    border-right: 1px solid var(--accent);
    padding-right: 1rem;
}

main>footer ul.socials a {
    display: block;
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

main>footer ul.socials a:hover,
main>footer ul.socials a:focus {
    outline: 1px dotted var(--primary);
    outline-offset: 5px;
}

footer :where(a:link, a:visited) {
    color: var(--primary);
    text-decoration-style: dotted;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

footer :where(a:hover, a:focus) {
    text-decoration-style: solid;
    text-decoration-color: var(--primary);
}

/* ==========================================================================
   KEYFRAMES (shared)
   ========================================================================== */

@keyframes text-glitch {
    0% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    20% {
        transform: translate(-2px, 1px);
        clip-path: inset(0 0 60% 0);
    }

    40% {
        transform: translate(2px, -1px);
        clip-path: inset(40% 0 0 0);
    }

    60% {
        transform: translate(-1px, 2px);
        clip-path: inset(0 0 30% 0);
    }

    80% {
        transform: translate(1px, -2px);
        clip-path: inset(15% 0 0 0);
    }

    100% {
        transform: none;
        clip-path: inset(0 0 0 0);
        opacity: 0;
    }
}

@keyframes card-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes glitch-1 {
    0% {
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    }
    5% {
        transform: translate(-1px, 1px);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    10% {
        transform: translate(1px, -1px);
        clip-path: polygon(0 15%, 100% 15%, 100% 85%, 0 85%);
    }
    15% {
        transform: translate(-1px, 0);
        clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%);
    }
    20% {
        transform: translate(0);
        clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    }
    100% {
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes glitch-2 {
    0% {
        transform: translate(0);
        clip-path: polygon(0 25%, 100% 25%, 100% 75%, 0 75%);
    }
    5% {
        transform: translate(1px, -1px);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    10% {
        transform: translate(-1px, 1px);
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    }
    15% {
        transform: translate(1px, 0);
        clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    }
    20% {
        transform: translate(0);
        clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
    }
    100% {
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

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

    #progress,
    body::after,
    .glitch::before,
    .glitch::after,
    .skills .skills-grid>section.reveal,
    .skills .skills-grid h3::before,
    .skills .skills-grid h3::after,
    .Experience .project.reveal,
    .section-heading.reveal::before,
    .section-heading.reveal::after,
    .avatar-container::before,
    .avatar-container::after,
    .avatar-container .scan-line,
    .avatar-container .data-overlay {
        animation: none !important;
    }

    body::before {
        background: none;
    }

    .avatar-container::after {
        opacity: var(--avatar-glow-intensity) !important;
        transform: none !important;
    }
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        var(--neon-cyan), 
        var(--neon-green), 
        var(--neon-cyan)
    );
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: timeline-slide-in-left 0.8s ease-out forwards;
}

.timeline-item:nth-child(even) {
    transform: translateX(50px);
    animation: timeline-slide-in-right 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }

.timeline-item.current {
    animation-delay: 0s;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.timeline-date {
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-cyan);
    border-radius: 6px;
    white-space: nowrap;
    text-shadow: 0 0 5px var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 15;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--text-dim);
    border-radius: 12px;
    padding: 2rem;
    margin: 0 3rem;
    position: relative;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 300px;
}

.timeline-content:hover {
    border-color: var(--neon-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 100, 0.3),
        inset 0 0 20px rgba(0, 255, 100, 0.1);
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    margin-left: 3rem;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 3rem;
    text-align: left;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    opacity: 0;
    display: none;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -24px;
    border-left-color: var(--text-dim);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -24px;
    border-right-color: var(--text-dim);
}

.timeline-content:hover::before {
    border-left-color: var(--neon-green);
    border-right-color: var(--neon-green);
}

.timeline-content h3 {
    color: var(--neon-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 0 8px var(--neon-green);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.timeline-content h3[data-text] {
    position: relative;
}

.timeline-content h3[data-text]::before,
.timeline-content h3[data-text]::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.timeline-content h3[data-text]::before {
    color: #ff00ff;
    animation: glitch-1 0.3s ease-in-out infinite alternate-reverse;
    z-index: -1;
}

.timeline-content h3[data-text]::after {
    color: #00ffff;
    animation: glitch-2 0.3s ease-in-out infinite alternate-reverse;
    z-index: -2;
}

.timeline-content:hover h3[data-text]::before,
.timeline-content:hover h3[data-text]::after {
    opacity: 0.8;
}

.timeline-content:hover h3 {
    text-shadow: 0 0 15px var(--neon-green);
    color: var(--neon-bright);
}

.timeline-company {
    color: var(--neon-cyan);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px var(--neon-cyan);
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-bright);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* Timeline animations */
@keyframes timeline-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes timeline-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile timeline adjustments */
@media (max-width: 700px) {
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-marker {
        left: 2rem;
        transform: none;
    }
    
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0 1rem 0 4.5rem;
        text-align: left;
        min-width: auto;
        padding: 1.5rem;
    }
    
    .timeline-date {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Desktop timeline - ensure expandable items are visible */
@media (min-width: 701px) {
    .timeline-item.expandable {
        display: block;
    }
}

/* Timeline reveal animations (similar to skills) */
.timeline-content.reveal h3[data-text]::before {
    color: var(--accent);
    animation: text-glitch var(--glitch-dur-1) steps(var(--glitch-steps-1)) infinite;
    opacity: .85;
}

.timeline-content.reveal h3[data-text]::after {
    color: var(--primary);
    animation: text-glitch var(--glitch-dur-2) steps(var(--glitch-steps-2)) infinite reverse;
    opacity: .85;
}

.timeline-content.reveal {
    animation: card-pop 1000ms var(--card-pop-ease) both;
    border-color: var(--neon-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 100, 0.4),
        inset 0 0 20px rgba(0, 255, 100, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

.timeline-content.reveal::before {
    opacity: 0 !important;
    display: none !important;
}

/* ==========================================================================
   CONTACT BUTTON
   ========================================================================== */

.contact-me-section {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
}

.contact-me-button {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--primary-contrast);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 3rem;
    border-radius: 24px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    box-shadow:
        0 0 .7rem rgba(57, 255, 20, .35),
        0 0 1.2rem rgba(0, 255, 198, .25);
    font-family: var(--font-family);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.contact-me-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.contact-me-button:hover::before {
    left: 100%;
}

.contact-me-button:hover,
.contact-me-button:focus {
    transform: translateY(-2px) scale(1.02);
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow:
        0 0 1.2rem rgba(57, 255, 20, .5),
        0 0 2rem rgba(0, 255, 198, .4);
}

.contact-me-button:active {
    transform: translateY(-1px) scale(1.01);
}

/* ========================================================================== 
   RESUME
   ========================================================================== */

.resume {
    text-align: center;
}

.resume p {
    max-width: 720px;
}

.resume .actions {
    margin-top: 1.5rem;
}