:root {
    /* Clean white product palette */
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-hover: #f1f3f4;
    --ink: #202124;
    --ink-muted: #5f6368;
    --ink-faint: #80868b;
    --rule: #e8eaed;
    --rule-strong: #dadce0;

    /* Product accents — inspired by modern productivity tools */
    --blue: #1a73e8;
    --blue-soft: #e8f0fe;
    --green: #188038;
    --green-soft: #e6f4ea;
    --red: #d93025;
    --yellow: #f9ab00;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --max: 1200px;
    --nav-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, .06), 0 1px 3px 1px rgba(60, 64, 67, .08);
    --shadow-2: 0 1px 3px 0 rgba(60, 64, 67, .1), 0 4px 8px 3px rgba(60, 64, 67, .06);
    --shadow-3: 0 4px 8px 3px rgba(60, 64, 67, .1), 0 1px 3px 0 rgba(60, 64, 67, .06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: -0.005em;
}

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

.mono {
    font-family: 'Google Sans Code', ui-monospace, 'SF Mono', Menlo, monospace;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

/* Skip link — hidden until a keyboard user tabs to it */
.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: top .2s var(--ease);
}

.skip-link:focus {
    top: 12px;
}

/* ---------- NAV ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(1.8) blur(14px);
    -webkit-backdrop-filter: saturate(1.8) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}

.nav.scrolled {
    border-bottom-color: var(--rule);
    background: rgba(255, 255, 255, 0.94);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.015em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 55%, rgba(255, 255, 255, .18));
}

.brand-name small {
    display: block;
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: -1px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--bg-hover);
}

.nav-cta {
    font-size: 14px;
    font-weight: 500;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    background: var(--ink);
    color: #fff !important;
    margin-left: 6px;
    transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.nav-cta:hover {
    background: var(--blue) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.hamburger:hover {
    background: var(--bg-hover);
}

.hamburger span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}

.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 19px;
}

.hamburger span:nth-child(3) {
    top: 24px;
}

.hamburger.open span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    z-index: 39;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    display: block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    margin-bottom: 28px;
    background: var(--bg);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.eyebrow:hover {
    border-color: var(--rule-strong);
    transform: translateY(-1px);
}

.eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
}

.eyebrow .dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.25;
    animation: ping 2.2s var(--ease) infinite;
}

@keyframes ping {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(44px, 6.2vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
    color: var(--ink);
}

.hero h1 .title-line {
    display: block;
    color: var(--ink-muted);
    font-size: 0.4em;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-top: 14px;
}

.hero h1 .gradient-word {
    background: linear-gradient(95deg, var(--blue) 0%, #4285f4 40%, #9b72cb 70%, #d96570 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-tagline {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink);
    max-width: 580px;
    margin: 0 0 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-about {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-muted);
    max-width: 580px;
    margin: 0 0 32px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero-meta .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--rule);
    font-weight: 500;
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.btn-ghost {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--rule-strong);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: var(--ink);
    transform: translateY(-1px);
    box-shadow: var(--shadow-1);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* ---------- GOOGLE-BOX HERO CARD ---------- */
.hero-card {
    position: relative;
    aspect-ratio: 1/1.05;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    border-radius: var(--radius-xl);
    background: var(--bg-alt);
    border: 1px solid var(--rule);
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr auto;
    box-shadow: var(--shadow-1);
    transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}

.hero-card:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-2px);
}

.portrait-slot {
    position: relative;
    overflow: hidden;
    /* Soft gradient sits behind the photo as a fallback while it loads */
    background:
        radial-gradient(circle at 30% 20%, rgba(26, 115, 232, 0.08), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(217, 101, 112, 0.07), transparent 50%),
        linear-gradient(180deg, #f8f9fa, #eef1f5);
}

.portrait-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portrait-slot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(32, 33, 36, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 33, 36, .035) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

.portrait-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 96px;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
}

.portrait-initials .dot-i {
    color: var(--blue);
}

.portrait-placeholder-label {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 11px;
    font-family: 'Google Sans Code', monospace;
    color: var(--ink-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-1);
    animation: float 6s var(--ease) infinite;
}

.float-chip .swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.float-chip.one {
    top: 18%;
    right: -8px;
    animation-delay: 0s;
}

.float-chip.two {
    bottom: 22%;
    left: -10px;
    animation-delay: 2s;
}

.float-chip.three {
    top: 55%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.hero-card-foot {
    padding: 18px 20px;
    border-top: 1px solid var(--rule);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-card-foot .name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.hero-card-foot .name small {
    display: block;
    font-weight: 400;
    color: var(--ink-muted);
    font-size: 12px;
    margin-top: 2px;
}

.hero-card-foot .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--green);
    font-weight: 500;
    padding: 4px 10px;
    background: var(--green-soft);
    border-radius: 999px;
}

.hero-card-foot .status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* ---------- SECTIONS ---------- */
section {
    padding: 88px 0;
    position: relative;
}

.section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
}

.section-label {
    font-family: 'Google Sans Code', monospace;
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--blue);
}

.section-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--ink);
}

.section-title em {
    font-style: normal;
    color: var(--ink-muted);
    font-weight: 500;
}

.section-aside {
    font-size: 14px;
    color: var(--ink-muted);
    max-width: 320px;
    line-height: 1.55;
    text-align: right;
}

/* ---------- GOOGLE-BOX GRID ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.skill-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Span pattern — varied box sizes (European/Nordic/modular feel) */
.skill-card:nth-child(1) {
    grid-column: span 3;
}

.skill-card:nth-child(2) {
    grid-column: span 3;
}

.skill-card:nth-child(3) {
    grid-column: span 2;
}

.skill-card:nth-child(4) {
    grid-column: span 2;
}

.skill-card:nth-child(5) {
    grid-column: span 2;
}

.skill-card:nth-child(6) {
    grid-column: span 6;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    border-color: transparent;
}

.skill-card .skill-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: var(--blue-soft);
    color: var(--blue);
}

.skill-card .skill-icon svg {
    width: 18px;
    height: 18px;
}

.skill-card:nth-child(2) .skill-icon {
    background: #fce8e6;
    color: var(--red);
}

.skill-card:nth-child(3) .skill-icon {
    background: #fef7e0;
    color: #b06000;
}

.skill-card:nth-child(4) .skill-icon {
    background: var(--green-soft);
    color: var(--green);
}

.skill-card:nth-child(5) .skill-icon {
    background: #f3e8fd;
    color: #8430ce;
}

.skill-card:nth-child(6) .skill-icon {
    background: #e0f2f1;
    color: #00695c;
}

.skill-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 4px;
    letter-spacing: -0.015em;
}

.skill-card .skill-sub {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    font-family: 'Google Sans Code', monospace;
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink);
    border: 1px solid var(--rule);
    transition: background .2s var(--ease), border-color .2s var(--ease);
}

.chip.accent {
    background: var(--blue-soft);
    color: var(--blue);
    border-color: transparent;
}

/* ---------- EXPERIENCE ---------- */
.timeline {
    position: relative;
}

.job {
    position: relative;
    padding: 24px 28px 24px 64px;
    margin-bottom: 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.job:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-2);
    border-color: transparent;
}

.job::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--rule-strong);
    transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.job.current::before {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.job:hover::before {
    transform: scale(1.2);
}

.job-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 4px;
}

.job-role {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--ink);
}

.job-company {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 12px;
}

.job-company strong {
    color: var(--ink);
    font-weight: 600;
}

.job-period {
    font-family: 'Google Sans Code', monospace;
    font-size: 12px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.job-period .current-tag {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    margin-left: 6px;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.job-bullets {
    list-style: none;
    padding: 0;
    margin: 10px 0 14px;
}

.job-bullets li {
    position: relative;
    padding-left: 20px;
    font-size: 14.5px;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 8px;
}

.job-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--rule-strong);
}

.job-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.stack-tag {
    font-family: 'Google Sans Code', monospace;
    font-size: 11.5px;
    color: var(--ink-muted);
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--rule);
}

/* ---------- PROJECTS ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
    border-color: transparent;
}

.project-thumb {
    height: 120px;
    margin: -24px -24px 6px;
    background: linear-gradient(135deg, #e8f0fe, #f8f9fa);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--rule);
}

.project-card:nth-child(2) .project-thumb {
    background: linear-gradient(135deg, #fce8e6, #fef7e0);
}

.project-card:nth-child(3) .project-thumb {
    background: linear-gradient(135deg, #e6f4ea, #e8f0fe);
}

.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(32, 33, 36, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 33, 36, .05) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 80%);
}

.project-thumb-label {
    position: absolute;
    left: 14px;
    bottom: 12px;
    font-family: 'Google Sans Code', monospace;
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.85);
    padding: 3px 8px;
    border-radius: 4px;
}

.project-num {
    font-family: 'Google Sans Code', monospace;
    font-size: 11.5px;
    color: var(--ink-faint);
    letter-spacing: 0.08em;
}

.project-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.15;
}

.project-desc {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--blue);
    font-weight: 500;
    margin-top: 4px;
}

.project-link.disabled {
    color: var(--ink-faint);
    cursor: default;
}

.project-link svg {
    width: 13px;
    height: 13px;
    transition: transform .25s var(--ease);
}

.project-card:hover .project-link:not(.disabled) svg {
    transform: translate(2px, -2px);
}

/* ---------- EDUCATION ---------- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.edu-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.edu-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
    border-color: transparent;
}

.edu-year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    color: var(--blue);
    flex-shrink: 0;
    letter-spacing: -0.03em;
}

.edu-body h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 4px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.edu-body .edu-school {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 12px;
}

.edu-body .edu-cgpa {
    font-family: 'Google Sans Code', monospace;
    font-size: 12px;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--rule);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
}

/* ---------- CONTACT ---------- */
.contact-block {
    text-align: center;
    padding: 64px 24px;
    background: var(--bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
}

.contact-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(26, 115, 232, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(217, 101, 112, 0.06), transparent 45%);
    pointer-events: none;
}

.contact-eyebrow {
    font-family: 'Google Sans Code', monospace;
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
}

.contact-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5.5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.contact-title em {
    font-style: normal;
    color: var(--ink-muted);
    font-weight: 500;
}

.contact-sub {
    font-size: 16px;
    color: var(--ink-muted);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.6;
    position: relative;
}

.contact-cta {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid var(--rule);
    padding: 36px 0 48px;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left {
    font-size: 13px;
    color: var(--ink-muted);
}

.footer-left strong {
    color: var(--ink);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 6px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--rule);
    color: var(--ink-muted);
    transition: all .2s var(--ease);
}

.footer-links a:hover {
    color: var(--ink);
    border-color: var(--ink);
    transform: translateY(-1px);
}

.footer-links svg {
    width: 14px;
    height: 14px;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-card {
        max-width: 320px;
        margin: 0 auto;
        order: -1;
    }

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

    .skills-grid .skill-card {
        grid-column: span 1 !important;
    }

    .skills-grid .skill-card:nth-child(6) {
        grid-column: span 2 !important;
    }

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

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

    .section-head {
        grid-template-columns: 1fr;
    }

    .section-aside {
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 64px 0;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

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

    .skills-grid .skill-card,
    .skills-grid .skill-card:nth-child(6) {
        grid-column: span 1 !important;
    }

    .job {
        padding-left: 56px;
    }

    .job::before {
        left: 22px;
    }

    .job-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .job-period {
        white-space: normal;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .edu-card {
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

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