:root {
    --bg: #0b0f14;
    --bg-elevated: #111823;
    --bg-soft: #151e2b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(111, 168, 255, 0.22);
    --text: #e8edf5;
    --text-soft: #aab4c3;
    --text-faint: #7e8898;
    --accent: #7fb3ff;
    --accent-soft: rgba(127, 179, 255, 0.14);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    --radius: 20px;
    --radius-sm: 14px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(127, 179, 255, 0.10), transparent 26%),
        radial-gradient(circle at top right, rgba(127, 179, 255, 0.05), transparent 22%),
        linear-gradient(180deg, #0a0f15 0%, #0b1017 100%);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
}

.hero {
    padding: 72px 24px 36px;
}

.hero__content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(17, 24, 35, 0.92), rgba(11, 15, 20, 0.96));
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.hero__content--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
    align-items: center;
}

.hero__identity {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero__summary {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 1.06rem;
    color: var(--text-soft);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 18px;
    color: var(--text-faint);
    font-size: 0.95rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-link:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    background: #182232;
}

.hero__photo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__photo {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg-soft);
}

.layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 72px;
    display: grid;
    gap: 22px;
}

.panel {
    border: 1px solid var(--border);
    background: rgba(17, 24, 35, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.prose p {
    margin: 0;
    color: var(--text-soft);
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(127, 179, 255, 0.18);
    color: #dbe8ff;
    font-size: 0.92rem;
    font-weight: 500;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.card {
    grid-column: span 6;
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(21, 30, 43, 0.96), rgba(16, 23, 34, 0.96));
    transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.card__meta {
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 0.88rem;
}

.card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.inline-link {
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    padding: 18px;
    border-left: 3px solid rgba(127, 179, 255, 0.4);
    background: rgba(21, 30, 43, 0.72);
    border-radius: 0 14px 14px 0;
}

.timeline-item__top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.timeline-item__role {
    font-weight: 700;
}

.timeline-item__company,
.timeline-item__date {
    color: var(--text-faint);
    font-size: 0.92rem;
}

.timeline-item__desc {
    color: var(--text-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.stat-card {
    grid-column: span 4;
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(21, 30, 43, 0.96), rgba(16, 23, 34, 0.96));
}

.stat-card__label {
    color: var(--text-faint);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.stat-card__value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-card__context {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.stat-card__embed {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.stat-card__embed img {
    width: 100%;
    height: auto;
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: revealUp 0.6s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
.reveal:nth-child(6) { animation-delay: 0.30s; }
.reveal:nth-child(7) { animation-delay: 0.36s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GitHub section */
.section-heading--between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-subtle {
    margin: 0;
    color: #91a0b8;
    font-size: 0.95rem;
}

.github-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(11, 18, 30, 0.92), rgba(8, 13, 22, 0.96));
    padding: 1.1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.github-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #eef3fb;
    margin-bottom: 1rem;
}

.github-graph-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
}

.github-graph {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
}

.github-graph__months {
    display: grid;
    grid-template-columns: 30px repeat(53, 10px);
    column-gap: 3px;
    align-items: end;
    margin-bottom: 0.35rem;
}

.github-graph__corner {
    width: 30px;
}

.github-month {
    font-size: 0.72rem;
    line-height: 1;
    color: #8fa0bb;
    white-space: nowrap;
    transform: translateX(1px);
}

.github-graph__body {
    display: flex;
    gap: 0.45rem;
}

.github-graph__weekdays {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    row-gap: 3px;
    width: 30px;
    font-size: 0.7rem;
    color: #8fa0bb;
    align-items: center;
}

.github-graph__weeks {
    display: flex;
    gap: 3px;
}

.github-week {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    row-gap: 3px;
}

.github-day {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.github-day:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.github-day--empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

.github-day--level-0 {
    background: #161b22;
}

.github-day--level-1 {
    background: #0e4429;
}

.github-day--level-2 {
    background: #006d32;
}

.github-day--level-3 {
    background: #26a641;
}

.github-day--level-4 {
    background: #39d353;
}

.github-legend {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.github-legend__link {
    color: #8bb8ff;
    text-decoration: none;
    font-size: 0.85rem;
}

.github-legend__link:hover {
    text-decoration: underline;
}

.github-legend__scale {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #8fa0bb;
    font-size: 0.78rem;
}

.github-legend__scale .github-day {
    transform: none;
}

.github-tooltip {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: rgba(12, 18, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef3fb;
    font-size: 0.78rem;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.github-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero__content--split {
        grid-template-columns: 1fr 200px;
    }

    .hero__photo {
        width: 200px;
        height: 200px;
    }

    .stat-card {
        grid-column: span 6;
    }
}

@media (max-width: 900px) {
    .card {
        grid-column: span 12;
    }

    .hero__content,
    .panel {
        padding: 22px;
    }

    .section-heading--between {
        align-items: flex-start;
        flex-direction: column;
    }

    .github-card {
        padding: 1rem;
    }

    .github-graph {
        margin: 0;
    }
}

@media (max-width: 760px) {
    .hero__content--split {
        grid-template-columns: 1fr;
    }

    .hero__photo-wrap {
        justify-content: flex-start;
    }

    .hero__photo {
        width: 160px;
        height: 160px;
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 24px 16px 18px;
    }

    .layout {
        padding: 0 16px 48px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .stat-card {
        grid-column: span 12;
    }

    .github-graph__months {
        grid-template-columns: 24px repeat(53, 8px);
        column-gap: 2px;
    }

    .github-graph__corner,
    .github-graph__weekdays {
        width: 24px;
    }

    .github-graph__weekdays {
        grid-template-rows: repeat(7, 8px);
        row-gap: 2px;
        font-size: 0.64rem;
    }

    .github-graph__weeks {
        gap: 2px;
    }

    .github-week {
        grid-template-rows: repeat(7, 8px);
        row-gap: 2px;
    }

    .github-day {
        width: 8px;
        height: 8px;
    }

    .github-month {
        font-size: 0.64rem;
    }
}
/* =========================================
   WAKATIME - DROP IN REPLACEMENT CSS
   ========================================= */

.wakatime-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.wakatime-summary-grid,
.wakatime-columns,
.wakatime-os-grid {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wakatime-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wakatime-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wakatime-os-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wakatime-summary-card,
.wakatime-panel,
.wakatime-os-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(21, 30, 43, 0.96), rgba(16, 23, 34, 0.96));
}

.wakatime-summary-card {
    padding: 18px;
}

.wakatime-panel {
    padding: 20px;
}

.wakatime-os-card {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.025);
}

.wakatime-summary-card__label,
.wakatime-os-card__name {
    color: var(--text-faint);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.wakatime-summary-card__value {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
    word-break: break-word;
}

.wakatime-summary-card__meta,
.wakatime-os-card__meta {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.92rem;
    word-break: break-word;
}

.wakatime-os-card__value {
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.wakatime-panel__heading {
    margin-bottom: 16px;
}

.wakatime-panel__heading h3 {
    margin: 0;
    font-size: 1rem;
}

.wakatime-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.wakatime-bar-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.wakatime-bar-row__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.wakatime-bar-row__name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    min-width: 0;
    flex: 1 1 auto;
    word-break: break-word;
}

.wakatime-bar-row__value {
    color: var(--text-faint);
    font-size: 0.88rem;
    min-width: 0;
    flex: 0 1 auto;
    text-align: right;
    white-space: normal;
    word-break: break-word;
}

.wakatime-bar {
    width: 100%;
    max-width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.wakatime-bar__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(127, 179, 255, 0.55), rgba(127, 179, 255, 0.95));
}

.wakatime-bar__fill--soft {
    background: linear-gradient(90deg, rgba(127, 179, 255, 0.28), rgba(127, 179, 255, 0.7));
}

/* keep heading from stretching section width */
.section-heading--between {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

.section-heading--between h2 {
    min-width: 0;
}

.section-subtle {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    color: var(--text-faint);
    font-size: 0.95rem;
    word-break: break-word;
}

/* TABLET */
@media (max-width: 980px) {
    .wakatime-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wakatime-columns,
    .wakatime-os-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 640px) {
    .wakatime-summary-grid,
    .wakatime-columns,
    .wakatime-os-grid {
        grid-template-columns: 1fr;
    }

    .wakatime-summary-card,
    .wakatime-panel,
    .wakatime-os-card {
        padding: 16px;
    }

    .wakatime-summary-card__value {
        font-size: 1.28rem;
    }

    .wakatime-bar-row__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .wakatime-bar-row__value {
        text-align: left;
    }

    .section-heading--between {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-subtle {
        width: 100%;
    }
}