@font-face {
    font-family: "Amiko";
    src: url("assets/fonts/Amiko-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Amiko";
    src: url("assets/fonts/Amiko-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Amiko";
    src: url("assets/fonts/Amiko-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand palette — Warm Ivory to Wine */
    --ivory: #F9F3ED;
    --linen: #E7D8CA;
    --taupe: #AC9185;
    --burgundy: #531C22;
    --darkwine: #220707;

    /* Semantic surfaces */
    --bg-primary: var(--ivory);
    --bg-secondary: var(--linen);
    --bg-card: color-mix(in srgb, var(--linen) 60%, var(--ivory));
    --border: color-mix(in srgb, var(--taupe) 28%, transparent);
    --text-heading: var(--darkwine);
    --text-body: color-mix(in srgb, var(--burgundy) 80%, var(--darkwine));
    --text-muted: var(--taupe);
    --text-on-accent: var(--ivory);

    /* Legacy aliases — remapped to new palette */
    --grape: var(--burgundy);
    --mauve: var(--taupe);
    --lilac: color-mix(in srgb, var(--taupe) 30%, transparent);
    --pale-sky: var(--linen);
    --tea-green: var(--taupe);
    --snow: var(--ivory);
    --dust-grey: var(--linen);

    /* Celadon/aquamarine/willow/sage — kept for any direct references */
    --celadon: var(--linen);
    --aquamarine: var(--linen);
    --willow-green: var(--burgundy);
    --sage-green: var(--burgundy);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--burgundy) 0%, var(--darkwine) 100%);
    --gradient-soft: linear-gradient(135deg, var(--ivory), var(--linen));
    --gradient-site: linear-gradient(180deg, var(--ivory), var(--linen), color-mix(in srgb, var(--taupe) 40%, var(--linen)), var(--linen));
    --gradient-footer: linear-gradient(160deg, var(--linen) 0%, color-mix(in srgb, var(--taupe) 35%, var(--linen)) 50%, var(--linen) 100%);

    /* Shadows — warm wine tones */
    --shadow-soft: 0 4px 24px rgba(83, 28, 34, 0.10);
    --shadow-card: 0 8px 32px rgba(83, 28, 34, 0.14);
    --shadow-lift: 0 16px 48px rgba(83, 28, 34, 0.18);
    --shadow-btn: 0 8px 24px rgba(83, 28, 34, 0.22);
    --glass: rgba(231, 216, 202, 0.80);

    /* Journey timeline accent */
    --journey-accent: var(--burgundy);
    --journey-accent-glow: color-mix(in srgb, var(--burgundy) 35%, transparent);

    /* Radii & motion */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: "Amiko", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Cursor glow (desktop) ── */
.cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--aquamarine) 40%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

/* ── Background decor ── */
.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.blob-1 {
    width: 520px;
    height: 520px;
    top: -8%;
    right: -5%;
    background: radial-gradient(circle, color-mix(in srgb, var(--willow-green) 45%, transparent), color-mix(in srgb, var(--celadon) 25%, transparent));
}

.blob-2 {
    width: 420px;
    height: 420px;
    bottom: 20%;
    left: -8%;
    background: radial-gradient(circle, color-mix(in srgb, var(--aquamarine) 42%, transparent), color-mix(in srgb, var(--celadon) 18%, transparent));
}

.blob-3 {
    width: 360px;
    height: 360px;
    top: 45%;
    right: 15%;
    background: radial-gradient(circle, color-mix(in srgb, var(--sage-green) 28%, transparent), transparent);
}

.curve-hero {
    position: absolute;
    bottom: 12%;
    left: 0;
    width: 100%;
    height: 200px;
    color: var(--pale-sky);
    opacity: 0.5;
}

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

/* ── Typography helpers ── */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 620px;
    line-height: 1.7;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn i {
    font-size: 0.72rem;
}

.btn-primary {
    background: var(--sage-green);
    color: var(--text-on-accent);
    border-color: var(--sage-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn);
    background: var(--willow-green);
    border-color: var(--willow-green);
    color: var(--text-on-accent);
}

.btn-secondary {
    background: transparent;
    color: var(--text-heading);
    border-color: var(--sage-green);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--willow-green);
    box-shadow: var(--shadow-soft);
    background: color-mix(in srgb, var(--aquamarine) 40%, transparent);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tea-green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--willow-green) 40%, transparent);
    flex-shrink: 0;
}

/* ── Navigation ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 48px;
    pointer-events: none;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1100;
}

.profile-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.nav-brand:hover .profile-pic {
    transform: scale(1.06);
    box-shadow: var(--shadow-card);
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 24px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    transition: color var(--transition), background var(--transition);
}

nav ul li a:hover {
    color: var(--text-heading);
    background: color-mix(in srgb, var(--aquamarine) 45%, transparent);
}

nav ul li a.active {
    color: var(--text-on-accent);
    background: var(--sage-green);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    background: var(--sage-green);
    color: var(--text-on-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
    background: var(--willow-green);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(20px);
    color: var(--text-heading);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

/* ── Home ── */
.home {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 120px 60px 60px;
    min-height: 85vh;
    //overflow: hidden;
}

/* Exact copy of footer background treatment */
.home-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-footer);
    pointer-events: none;
    z-index: 0;
}

.home-cloud {
    position: absolute;
    border-radius: 50%;
    background: color-mix(in srgb, var(--celadon) 70%, white);
    filter: blur(40px);
}

.home-cloud-1 {
    width: 420px;
    height: 180px;
    top: 12%;
    left: 8%;
}

.home-cloud-2 {
    width: 520px;
    height: 200px;
    top: 28%;
    right: 5%;
}

.home-cloud-3 {
    width: 680px;
    height: 220px;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
}

/* Make content sit above blobs */
.home .leftsection,
.home .rightsection {
    position: relative;
    z-index: 1;
}

/* Hero portrait — same style as about photo */
.home-photo {
    width: 90%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    display: block;
    margin-left: auto;
}

.leftsection {
    color: var(--text-heading);
    line-height: 1.4;
}

.leftsection h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.4em;
}

.leftsection>div:not(.home-actions) {
    font-family: var(--font-sans);
    font-size: clamp(0.92rem, 1.4vw, 1.05rem);
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.5;
    white-space: nowrap;
}

.span-clr {
    color: var(--burgundy);
}

#element {
    color: var(--taupe);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}


.home-photo {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    display: inline-block;
}

/* ── About ── */
.about {
    position: relative;
    z-index: 1;
    padding: 100px 0 48px;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
}

.about-image-placeholder {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--celadon) 55%, transparent);
    color: var(--text-muted);
    box-shadow: var(--shadow-soft);
}

.about-image-placeholder i {
    font-size: 2.5rem;
    opacity: 0.6;
}

.about-image-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-content {
    text-align: left;
}

.about-content .section-label {
    margin-bottom: 28px;
}

.about-headline {
    display: flex;
    flex-direction: column;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.about-headline span {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--taupe) 60%, var(--burgundy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 18px;
    max-width: 520px;
}

.about-fun-fact {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 520px;
}

.about-fun-fact strong {
    color: var(--text-heading);
    font-weight: 700;
}

.about-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1px solid var(--sage-green);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-heading);
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.about-status:hover {
    transform: translateY(-2px);
    border-color: var(--willow-green);
    background: color-mix(in srgb, var(--aquamarine) 40%, transparent);
}

.status-dot-green {
    background: var(--burgundy);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--burgundy) 25%, transparent);
}

.about-footer-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 48px 64px;
    background: var(--bg-primary);
}

.about-footer-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            color-mix(in srgb, var(--sage-green) 35%, transparent) 20%,
            var(--sage-green) 50%,
            color-mix(in srgb, var(--sage-green) 35%, transparent) 80%,
            transparent);
}

.about-footer-star {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    color: var(--text-heading);
    background: linear-gradient(135deg, var(--celadon), var(--aquamarine));
    border: 1px solid color-mix(in srgb, var(--sage-green) 30%, transparent);
    border-radius: 50%;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--sage-green) 18%, transparent);
}

/* ── Tech reel carousel ── */
.tech-reel {
    position: relative;
    z-index: 1;
    padding: 100px 0 80px;
    overflow: hidden;
}

.tech-reel .section-header {
    margin-bottom: 48px;
}

.reel-wrapper {
    position: relative;
    width: 100%;
}

.reel-viewport {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right,
            transparent,
            black 12%,
            black 88%,
            transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 12%,
            black 88%,
            transparent);
}

.reel-track {
    display: flex;
    width: max-content;
    animation: reel-scroll 80s linear infinite;
}

.reel-track:hover {
    animation-play-state: paused;
}

.reel-group {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    padding: 0 28px;
}

.reel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    width: 88px;
}

.reel-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    transition: transform var(--transition);
}

.reel-item img[src*="nextjs"],
.reel-item img[src*="github"] {
    filter: drop-shadow(0 4px 12px rgba(114, 162, 118, 0.35));
}

.reel-item:hover img {
    transform: scale(1.12) translateY(-4px);
}

.reel-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.reel-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(120px, 10vw);
    pointer-events: none;
    z-index: 2;
}

.reel-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.reel-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

@keyframes reel-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── Journey timeline ── */
.journey {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    overflow: hidden;
}

.journey-title {
    text-align: center;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 72px;
}

.journey-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 0;
}

.journey-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.journey-line-track {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: color-mix(in srgb, var(--sage-green) 22%, transparent);
}

.journey-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 3px;
    background: linear-gradient(to bottom,
            var(--willow-green),
            var(--journey-accent));
    box-shadow: 0 0 14px var(--journey-accent-glow);
    will-change: height;
}

.journey-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    gap: clamp(20px, 4vw, 40px);
    align-items: start;
    margin-bottom: 56px;
    position: relative;
}

.journey-item:last-child {
    margin-bottom: 0;
}

.journey-marker {
    grid-column: 2;
    grid-row: 1;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--journey-accent);
    background: var(--bg-secondary);
    justify-self: center;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.journey-item.passed .journey-marker {
    background: var(--journey-accent);
    border-color: var(--journey-accent);
    box-shadow: 0 0 0 4px var(--journey-accent-glow);
}

.journey-item.active .journey-marker {
    background: var(--journey-accent);
    border-color: var(--willow-green);
    box-shadow: 0 0 0 7px var(--journey-accent-glow), 0 0 22px var(--journey-accent-glow);
    transform: scale(1.2);
}

.journey-card {
    padding: 4px 0;
    opacity: 0.5;
    transform: translateY(6px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.journey-item.passed .journey-card {
    opacity: 0.78;
    transform: translateY(0);
}

.journey-item.active .journey-card {
    opacity: 1;
    transform: translateY(0);
}

.journey-item-left .journey-card {
    grid-column: 1;
    text-align: left;
}

.journey-item-right .journey-card {
    grid-column: 3;
    text-align: left;
}

.journey-org {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.25;
}

.journey-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--journey-accent);
    margin-bottom: 8px;
}

.journey-period {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.journey-highlights {
    list-style: none;
    display: grid;
    gap: 8px;
}

.journey-item-left .journey-highlights {
    justify-items: start;
}

.journey-highlights li {
    position: relative;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.65;
    max-width: 380px;
}

.journey-item-left .journey-highlights li {
    padding-left: 14px;
}

.journey-item-left .journey-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--journey-accent);
    font-weight: 700;
}

.journey-item-right .journey-highlights li {
    padding-left: 14px;
}

.journey-item-right .journey-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--journey-accent);
    font-weight: 700;
}

.journey-item.active .journey-org,
.journey-item.active .journey-period {
    color: var(--text-heading);
}

/* ── Projects ── */
.projects {
    position: relative;
    z-index: 1;
    padding: 100px 0 120px;
}

.projects-hero {
    margin-bottom: 64px;
}

/* Sub-section layout */
.projects-subsection {
    margin-bottom: 0;
}

.projects-subsection-header {
    margin-bottom: 36px;
}

.projects-subsection-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mauve);
    background: color-mix(in srgb, var(--mauve) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--mauve) 25%, transparent);
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    margin-bottom: 14px;
}

/* Override label colour for client section */
.projects-subsection:first-of-type .projects-subsection-label {
    color: var(--burgundy);
    background: color-mix(in srgb, var(--burgundy) 10%, transparent);
    border-color: color-mix(in srgb, var(--burgundy) 25%, transparent);
}

.projects-subsection-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.projects-subsection-desc {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.65;
    max-width: 560px;
}

/* Divider between sections */
.projects-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.projects-divider-line {
    flex: 1;
    height: 1px;
    background: color-mix(in srgb, var(--border) 80%, transparent);
}

.projects-divider-star {
    font-size: 0.9rem;
    color: var(--text-body);
    opacity: 0.45;
    flex-shrink: 0;
}


.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-body);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--willow-green);
    color: var(--text-heading);
}

.filter-btn.active {
    background: var(--sage-green);
    color: var(--text-on-accent);
    border-color: var(--sage-green);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

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

.project-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-image-wrap img {
    transform: scale(1.05);
}

.project-card-link {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--grape);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.project-card-link:hover {
    transform: scale(1.1);
    background: var(--sage-green);
    color: var(--text-on-accent);
}

.project-card-body {
    padding: 22px 24px 26px;
}

.project-card-category {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mauve);
    margin-bottom: 8px;
}

.project-card-title {
    display: inline;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
}

.project-card-gh {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity var(--transition), color var(--transition);
}

.project-card-gh:hover {
    opacity: 1;
    color: var(--text-heading);
}

/* Push the desc below the inline title+github row */
.project-card-desc {
    display: block;
    margin-top: 10px;
}

.project-card-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.project-card-tags span {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--aquamarine) 35%, transparent);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-body);
}

/* Live badge for freelance cards */
.project-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(249, 243, 237, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid color-mix(in srgb, var(--burgundy) 30%, transparent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--burgundy);
    text-transform: uppercase;
    z-index: 2;
}

.project-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--burgundy);
    box-shadow: 0 0 6px color-mix(in srgb, var(--burgundy) 60%, transparent);
    animation: live-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes live-pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}



/* ── Footer ── */
.site-footer {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: var(--text-heading);
}

.footer-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-footer);
}

.footer-cloud {
    position: absolute;
    border-radius: 50%;
    background: color-mix(in srgb, var(--celadon) 70%, white);
    filter: blur(40px);
}

.footer-cloud-1 {
    width: 420px;
    height: 180px;
    top: 12%;
    left: 8%;
}

.footer-cloud-2 {
    width: 520px;
    height: 200px;
    top: 28%;
    right: 5%;
}

.footer-cloud-3 {
    width: 680px;
    height: 220px;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 88px 48px 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    margin-bottom: 72px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 12px;
}

.footer-nav-col a {
    color: var(--text-heading);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: opacity var(--transition), transform var(--transition);
}

.footer-nav-col a:hover {
    opacity: 0.65;
    transform: translateX(4px);
}

.footer-hero-col {
    text-align: center;
    padding: 0 clamp(8px, 2vw, 24px);
}

.footer-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    max-width: 620px;
    margin: 0 auto 28px;
}

.footer-hero-title em {
    font-style: italic;
    color: var(--sage-green);
}

.footer-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
}

.footer-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: color-mix(in srgb, var(--sage-green) 22%, transparent);
}

.footer-star {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    color: var(--text-heading);
    background: linear-gradient(180deg, var(--celadon) 0%, var(--aquamarine) 100%);
}

.footer-connect-col {
    position: relative;
}

.footer-connect-card {
    padding: 28px 26px 24px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--celadon) 75%, white);
    background: color-mix(in srgb, var(--celadon) 48%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--sage-green) 16%, transparent);
}

.footer-connect-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.footer-connect-sub {
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--text-body) 88%, transparent);
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-connect-links {
    list-style: none;
}

.footer-connect-links li+li {
    border-top: 1px solid color-mix(in srgb, var(--sage-green) 20%, transparent);
}

.footer-connect-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    color: var(--text-heading);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: opacity var(--transition), transform var(--transition);
}

.footer-connect-links a:hover {
    opacity: 0.7;
    transform: translateX(3px);
}

.footer-connect-links i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-plane {
    position: absolute;
    right: -8px;
    bottom: -36px;
    width: 120px;
    color: color-mix(in srgb, var(--celadon) 90%, white);
    filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--sage-green) 18%, transparent));
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    header {
        padding: 16px 32px;
    }

    .section-container {
        padding: 0 32px;
    }

    .home {
        padding: 110px 32px 60px;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-placeholder {
        max-width: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-nav-col {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-hero-col {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .footer-connect-col {
        grid-column: 2;
        grid-row: 1;
    }

    .about-footer-divider {
        padding: 0 32px 48px;
    }

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

    .nav-pill {
        padding-left: 16px;
    }

    nav ul li a {
        padding: 10px 12px;
        font-size: 0.72rem;
    }
}

@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }

    .leftsection,
    .rightsection {
        width: 100%;
    }

    .leftsection>div:not(.home-actions) {
        white-space: normal;
    }

    .rightsection {
        text-align: center;
        order: -1;
    }

    .rightsection img {
        width: 70%;
        max-width: 280px;
    }

    .home-actions {
        justify-content: center;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-pill {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        transform: none;
        width: min(320px, 85vw);
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 24px;
        padding: 80px 32px 40px;
        border-radius: 0;
        transition: right 0.35s ease;
        z-index: 1050;
    }

    .nav-pill.open {
        right: 0;
    }

    .nav-pill ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li a {
        display: block;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .nav-cta {
        justify-content: center;
        padding: 14px 24px;
    }

    .footer-inner {
        padding: 72px 32px 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 48px;
    }

    .footer-nav-col {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px 24px;
        padding-top: 0;
    }

    .footer-hero-col,
    .footer-connect-col {
        grid-column: auto;
        grid-row: auto;
    }

    .footer-connect-col {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .tech-reel {
        padding: 72px 0 56px;
    }

    .reel-group {
        gap: 40px;
    }

    .reel-item {
        width: 72px;
    }

    .reel-item img {
        width: 44px;
        height: 44px;
    }

    .reel-item span {
        font-size: 0.72rem;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-label,
    .about-text,
    .about-fun-fact {
        margin-left: auto;
        margin-right: auto;
    }

    .about-headline {
        align-items: center;
    }

    .journey {
        padding: 72px 0;
    }

    .journey-title {
        margin-bottom: 48px;
    }

    .journey-timeline::before {
        display: none;
    }

    .journey-line {
        left: 20px;
        transform: none;
    }

    .journey-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 40px;
    }

    .journey-marker {
        grid-column: 1;
        margin-top: 6px;
    }

    .journey-item-left .journey-card,
    .journey-item-right .journey-card {
        grid-column: 2;
        text-align: left;
    }

    .journey-item-left .journey-highlights {
        justify-items: start;
    }

    .journey-item-left .journey-highlights li {
        padding-right: 0;
        padding-left: 14px;
    }

    .journey-item-left .journey-highlights li::after {
        display: none;
    }

    .journey-item-left .journey-highlights li::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0;
        color: var(--journey-accent);
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    header {
        padding: 14px 20px;
    }

    .section-container {
        padding: 0 20px;
    }

    .home {
        padding: 100px 20px 48px;
    }

    .leftsection {
        font-size: 1.4rem;
    }

    .rightsection img {
        width: 80%;
    }

    .about,
    .projects,
    .journey {
        padding: 72px 0;
    }

    .about {
        padding-bottom: 36px;
    }

    .about-footer-divider {
        padding: 0 20px 40px;
    }

    .about-footer-divider-line {
        max-width: none;
    }

    .site-footer {
        padding: 0;
    }

    .footer-inner {
        padding: 64px 20px 24px;
    }

    .footer-hero-title {
        font-size: 1.85rem;
    }

    .footer-plane {
        display: none;
    }

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

/* ── LeetCode Stats Section ── */
.leetcode {
    padding: 100px 0;
    position: relative;
}

.leetcode-container {
    width: 100%;
}

.leetcode-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.leetcode-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--burgundy);
    border-radius: 50%;
    animation: leetcode-spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes leetcode-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.leetcode-error {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    max-width: 500px;
    margin: 0 auto;
}

.leetcode-error i {
    font-size: 2.5rem;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.leetcode-error p {
    margin-bottom: 24px;
    color: var(--text-body);
}

/* Grid Layout */
.leetcode-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
}

/* Card Styling */
.leetcode-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    min-width: 0;
    overflow: hidden;
}

.leetcode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

/* Stats Card Specifics */
.leetcode-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.leetcode-avatar {
    width: 48px;
    height: 48px;
    background: var(--burgundy);
    color: var(--ivory);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.leetcode-username {
    font-family: "Amiko", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
}

.leetcode-rank {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Progress circle */
.leetcode-progress-summary {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 32px;
}

.leetcode-total-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--burgundy) var(--percent), var(--border) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-inner {
    width: 96px;
    height: 96px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.total-solved-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1;
}

.total-solved-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.leetcode-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.meta-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* Difficulty Bars */
.leetcode-difficulty-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.difficulty-bar-item .bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.difficulty-bar-item.easy .diff-label {
    color: #4e8e53;
}

.difficulty-bar-item.medium .diff-label {
    color: #d87a15;
}

.difficulty-bar-item.hard .diff-label {
    color: var(--burgundy);
}

.diff-count {
    color: var(--text-heading);
}

.diff-total {
    color: var(--text-muted);
    font-weight: 400;
}

.bar-track {
    height: 6px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
}

.easy .bar-fill {
    background: #4e8e53;
}

.medium .bar-fill {
    background: #d87a15;
}

.hard .bar-fill {
    background: var(--burgundy);
}

/* Heatmap Card Specifics */
.heatmap-header {
    margin-bottom: 24px;
}

.heatmap-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.leetcode-profile-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--burgundy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.leetcode-profile-link:hover {
    color: var(--darkwine);
    text-decoration: underline;
}

.heatmap-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
}

.heatmap-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.heatmap-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
}

.heatmap-labels-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 2px 0 16px;
    height: 98px;
    text-align: right;
    width: 28px;
    user-select: none;
}

.heatmap-grid-scroll {
    overflow-x: auto;
    padding-bottom: 12px;
    width: 100%;
    /* Custom thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--taupe) transparent;
}

.heatmap-grid-scroll::-webkit-scrollbar {
    height: 6px;
}

.heatmap-grid-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.heatmap-grid-scroll::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: var(--radius-pill);
}

.heatmap-flex-container {
    display: flex;
    gap: 3px;
    width: max-content;
}

.heatmap-column {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.heatmap-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, outline 0.15s ease;
}

.heatmap-cell:hover {
    transform: scale(1.3);
    z-index: 10;
    outline: 1px solid var(--text-heading);
}

/* Coloring Levels (GitHub/LeetCode Greens) */
.heatmap-cell.level-0 {
    background-color: color-mix(in srgb, var(--linen) 40%, var(--ivory));
}

.heatmap-cell.level-1 {
    background-color: #88d89e;
}

.heatmap-cell.level-2 {
    background-color: #58c777;
}

.heatmap-cell.level-3 {
    background-color: #2db55d;
}

.heatmap-cell.level-4 {
    background-color: #1a9446;
}

.heatmap-cell.empty-future {
    background-color: transparent;
    cursor: default;
}

.heatmap-cell.empty-future:hover {
    transform: none;
    outline: none;
}

/* Interactive Tooltips */
.heatmap-cell .heatmap-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--darkwine);
    color: var(--ivory);
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.heatmap-cell:hover .heatmap-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Heatmap Legend */
.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-box.level-0 {
    background-color: color-mix(in srgb, var(--linen) 40%, var(--ivory));
}

.legend-box.level-1 {
    background-color: #88d89e;
}

.legend-box.level-2 {
    background-color: #58c777;
}

.legend-box.level-3 {
    background-color: #2db55d;
}

.legend-box.level-4 {
    background-color: #1a9446;
}

/* Responsive adjustments for LeetCode */
@media (max-width: 1200px) {
    .leetcode-grid {
        grid-template-columns: 1fr;
    }

    .leetcode-stats-card {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .leetcode {
        padding: 64px 20px 24px;
    }

    .leetcode-card {
        padding: 24px 16px;
    }

    .leetcode-progress-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .leetcode-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
}


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

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

    .reel-track {
        animation: none;
    }

    .journey-line-fill,
    .journey-card,
    .journey-marker {
        transition: none;
    }
}