/* ==========================================================================
   DESIGN TOKENS
   Subject: data science / ML portfolio, for recruiters & hiring managers.
   Direction: pure white canvas, no neutral grey fills anywhere — depth and
   section rhythm come from soft blue ambient glows, tinted shadows, and
   generous whitespace instead. Big, confident, tightly-tracked type. One
   accent color, used with intent. Mono only where it's load-bearing.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --ink:        #0a0a0c;
    --ink-soft:   #5c5c62;
    --ink-faint:  #8a8a90;
    --paper:      #ffffff;
    --line:       #e4e4ea;
    --line-soft:  #edeef2;
    --signal:     #0071e3;   /* single accent — used sparingly, on purpose */
    --signal-2:   #4f9dff;
    --signal-dim: #eaf3ff;
    --signal-ink: #0059b3;

    --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-h: 50px;
    --radius-lg: 1.75rem;
    --radius-md: 1.15rem;
    --shadow-card: 0 1px 2px rgba(10, 10, 12, 0.04), 0 18px 36px -20px rgba(0, 113, 227, 0.14);
    --shadow-card-hover: 0 2px 6px rgba(10, 10, 12, 0.05), 0 36px 64px -26px rgba(0, 113, 227, 0.24);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background-color: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
}

p { color: var(--ink-soft); line-height: 1.65; }

::selection { background: var(--signal); color: white; }

a, .btn { transition: color 300ms var(--ease), background 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease); }

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover { color: var(--signal); }

/* focus visibility kept for keyboard users */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
    border-radius: 4px;
}

/* eyebrow / small system label used above every section title */
.eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--signal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

/* ==========================================================================
   SCROLL PROGRESS BAR — thin line under the nav, fills with scroll
   ========================================================================== */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--signal-2), var(--signal));
    z-index: 200;
    transition: width 120ms linear;
}

/* ==========================================================================
   NAVIGATION — slim glass bar, Apple-style small tracked links
   ========================================================================== */

nav, .nav-links { display: flex; }

/* Floating glass capsule instead of a full-width bar — sits clear of the
   edges so the white page never needs a hairline to separate it. */
body { padding-top: 1.1rem; }

nav {
    position: sticky;
    top: 1.1rem;
    z-index: 100;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-h);
    width: min(920px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 0 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(228, 228, 234, 0.8);
    box-shadow: 0 1px 1px rgba(10, 10, 12, 0.03), 0 20px 40px -24px rgba(0, 113, 227, 0.18);
    transition: background 400ms var(--ease), box-shadow 400ms var(--ease), width 400ms var(--ease);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 1px rgba(10, 10, 12, 0.04), 0 24px 48px -22px rgba(0, 113, 227, 0.26);
    width: min(760px, calc(100% - 3rem));
}

.nav-links {
    gap: 2.25rem;
    list-style: none;
    font-size: 0.86rem;
    font-weight: 500;
}

.nav-links li a {
    position: relative;
    padding-bottom: 3px;
    color: var(--ink-soft);
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0%;
    height: 1px;
    background: var(--signal);
    transition: width 300ms var(--ease);
}

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

.nav-links li a:hover::after { width: 100%; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: default;
}

.logo-badge {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: white;
    background: var(--ink);
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* HAMBURGER */
#hamburger-nav { display: none; }

.hamburger-menu { position: relative; display: inline-block; }

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 16px;
    width: 22px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 1.5px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: all 300ms var(--ease-soft);
}

.menu-links {
    position: absolute;
    top: 130%;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    width: max-content;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: var(--shadow-card);
    transition: all 350ms var(--ease);
}

.menu-links a {
    display: block;
    padding: 12px 22px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}

.menu-links li { list-style: none; }

.menu-links.open { max-height: 300px; opacity: 1; }

.hamburger-icon.open span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:last-child { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   SECTIONS — generous rhythm, alternating panel tone instead of hairlines
   ========================================================================== */

section {
    position: relative;
    padding: 9rem 3rem;
    max-width: 1120px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

section > * { position: relative; z-index: 1; }

/* Soft ambient color glows in place of flat grey panels — the page stays
   pure white, but each section gets a quiet blue radial blur tucked into
   a corner so the eye still senses a new "room" without a hard block. */
#about::before, #work::before, #skills::before, #projects::before, #contact::before {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.07), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
    transform: translateY(var(--glow-shift, 0px));
}
#about::before    { top: -220px; right: -260px; }
#work::before      { top: -180px; left: -280px; background: radial-gradient(circle, rgba(0, 113, 227, 0.05), transparent 70%); }
#skills::before   { bottom: -260px; right: -220px; }
#projects::before  { top: -200px; left: -260px; background: radial-gradient(circle, rgba(0, 113, 227, 0.05), transparent 70%); }
#contact::before  { bottom: -280px; left: 50%; transform: translateX(-50%); }

@media (max-width: 900px) {
    #about::before, #work::before, #skills::before, #projects::before, #contact::before { display: none; }
}

/* scroll-reveal primitive — JS adds .in-view. Blur-focus + slight scale
   reads far more "alive" while scrolling than a plain fade. */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(10px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
    will-change: opacity, transform, filter;
}

[data-reveal].in-view { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

[data-reveal-group] > * {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
    filter: blur(8px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease), filter 800ms var(--ease);
    will-change: opacity, transform, filter;
}

[data-reveal-group].in-view > * { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

[data-reveal-group].in-view > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: 70ms; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: 140ms; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: 210ms; }
[data-reveal-group].in-view > *:nth-child(5) { transition-delay: 280ms; }
[data-reveal-group].in-view > *:nth-child(6) { transition-delay: 350ms; }
[data-reveal-group].in-view > *:nth-child(n+7) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal], [data-reveal-group] > * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   PROFILE / HERO
   ========================================================================== */

#profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5.5rem;
    padding-top: 5rem;
    min-height: 92vh;
}

/* Quiet dot-grid + cursor-tracked glow, masked to an ellipse behind the
   hero — a nod to scatter plots / sensor grids, kept subtle enough that
   it reads as atmosphere, not decoration. */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(var(--line-soft) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 45%, black 35%, transparent 78%);
    mask-image: radial-gradient(ellipse 58% 52% at 50% 45%, black 35%, transparent 78%);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        460px circle at var(--mx, 50%) var(--my, 40%),
        rgba(0, 113, 227, 0.10),
        transparent 70%
    );
    transition: background 80ms linear;
}

.section__pic-container {
    position: relative;
    display: flex;
    height: 300px;
    width: 300px;
    flex-shrink: 0;
}

.section__pic-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.pic-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--paper);
}

.pic-frame img {
    --pic-zoom: 1.4;
    transform: scale(var(--pic-zoom));
    transform-origin: 50% 32%;
    object-position: 50% 30%;
}

.section__pic-container::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--signal), transparent 30%, transparent 70%, var(--signal));
    opacity: 0.35;
    animation: spin 16s linear infinite;
}

.section__pic-container::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--paper);
    z-index: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .section__pic-container::before { animation: none; }
}

.section__text {
    align-self: center;
    text-align: left;
    max-width: 560px;
}

.section__text_p1 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink-soft);
    margin-bottom: 0.6rem;
}

.title {
    font-size: clamp(3.25rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    text-align: left;
    color: var(--ink);
}

.section__text_p2 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--signal);
    margin: 1.15rem 0 2.1rem;
    min-height: 1.4em;
}

/* typed-role cursor, driven by JS swapping text content */
.role-cursor {
    display: inline-block;
    width: 2px;
    height: 0.95em;
    background: var(--signal);
    vertical-align: -0.12em;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

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

.btn-container {
    display: flex;
    justify-content: flex-start;
    gap: 0.85rem;
}

#socials-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 2.25rem;
    gap: 1.4rem;
}

.icon { cursor: pointer; height: 1.45rem; opacity: 0.55; transition: opacity 250ms var(--ease), transform 250ms var(--ease); }
.icon:hover { opacity: 1; transform: translateY(-2px); }

/* BUTTONS — Apple-style pill: solid blue primary, quiet outline secondary */
.btn {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    width: auto;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: -0.005em;
}

.btn-color-1 {
    background: linear-gradient(135deg, var(--signal-2), var(--signal));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 24px -10px rgba(0, 113, 227, 0.55);
}
.btn-color-1:hover {
    box-shadow: 0 14px 30px -10px rgba(0, 113, 227, 0.65);
    transform: translateY(-1px);
}

.btn-color-2 {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-color-2:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

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

#about h1, .title-lg {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--ink);
}

.about-details-container { display: flex; flex-direction: column; }

.about-containers {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.details-container {
    padding: 1.85rem;
    flex: 1;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

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

.details-container .icon {
    height: 1.7rem;
    opacity: 1;
    margin-bottom: 0.75rem;
}

.details-container h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card .icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    height: 1.3rem;
    opacity: 0.3;
    margin: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stat-card h3 {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.92rem;
}

.text-container p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: none;
    color: var(--ink-soft);
}

.arrow {
    height: 1.3rem;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 250ms var(--ease), transform 250ms var(--ease);
    display: block;
    margin: 4rem auto 0;
}
.arrow:hover { opacity: 0.7; transform: translateY(4px); }

/* ==========================================================================
   WORK EXPERIENCE — vertical timeline
   ========================================================================== */

.work-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2.1rem;
}

.work-timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--line);
}

.work-item {
    position: relative;
}

.work-marker {
    position: absolute;
    left: -2.1rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--signal);
}

/* The very first job on the timeline (chronologically, at the bottom)
   gets a bigger, filled marker + a small "Where it started" tag so it
   reads as the origin point of the career timeline at a glance. */
.work-marker--start {
    left: -2.35rem;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    background: var(--signal);
    border: 3px solid var(--signal-dim);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.work-start-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--signal-ink);
    background: var(--signal-dim);
    border: 1px solid rgba(0, 113, 227, 0.18);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.work-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.9rem;
    box-shadow: var(--shadow-card);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

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

.work-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.work-card__title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.work-logo {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.6rem;
    object-fit: contain;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    padding: 0.35rem;
    flex-shrink: 0;
}

.work-role {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.work-company {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-top: 0.15rem;
}

.work-date {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--signal-ink);
    background: var(--signal-dim);
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    white-space: nowrap;
}

.work-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.work-points li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.6;
}

.work-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--signal);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    color: var(--signal-ink);
    background: var(--signal-dim);
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
}

/* ---- Grouped company card (one company, multiple nested roles) ---- */

.work-card--group { padding: 1.7rem 1.9rem 1.9rem; }

.work-group-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.work-group-head .work-logo {
    width: 3rem;
    height: 3rem;
}

.work-group-head .work-role {
    font-size: 1.15rem;
}

.work-group-head .work-company {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-top: 0.2rem;
}

.work-location {
    color: var(--ink-faint);
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

.work-subroles {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding-left: 1.5rem;
}

.work-subroles::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--line);
}

.work-subrole {
    position: relative;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line-soft);
}

.work-subrole:first-child {
    padding-top: 0;
    border-top: none;
}

.work-subrole-marker {
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--ink-faint);
}

.work-subrole:first-child .work-subrole-marker { top: 0.4rem; }

.work-subrole-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.15rem;
}

.work-subrole-type {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 0.15rem;
}

.work-subrole-meta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    color: var(--ink-faint);
}

.work-subrole-mode {
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-bottom: 0.85rem;
}

.work-subrole .work-points { margin-top: 0.6rem; margin-bottom: 0.9rem; }

/* ==========================================================================
   TECH-STACK EXPERIENCE — proficiency shown as dot-readouts
   ========================================================================== */

.experience-sub-title {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.experience-details-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.article-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

article {
    display: flex;
    align-items: center;
    width: auto;
    gap: 0.7rem;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.05rem;
    transition: box-shadow 250ms var(--ease), transform 250ms var(--ease);
}

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

article .icon { display: none; }

article h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.level-dots {
    display: inline-flex;
    gap: 3px;
    margin-top: 3px;
}
.level-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line);
}
.level-dots span.filled {
    background: var(--signal);
}

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

#projects .about-containers,
.experience-details-container.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.details-container.color-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
}

.details-container.color-container .article-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0;
    gap: 0;
    padding: 0;
    background: linear-gradient(155deg, var(--signal-dim), #ffffff);
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 600ms var(--ease);
}

.details-container.color-container:hover .project-img {
    transform: scale(1.04);
}

.project-view {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.details-container.color-container:hover .project-view {
    opacity: 1;
    transform: translateY(0);
}

.project-title {
    margin: 0;
    padding: 1.4rem 1.4rem 0.4rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.details-container.color-container .btn-container {
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 1.4rem 1.4rem;
}

.project-btn {
    color: var(--ink);
    border-color: var(--line);
    padding: 0.55rem 1.05rem;
    font-size: 0.82rem;
}
.project-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.color-container {
    border: 1px solid var(--line-soft);
    background: var(--paper);
    border-radius: var(--radius-lg);
    transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
}

#projects .details-container.color-container {
    border-radius: var(--radius-lg);
}
#projects .details-container.color-container .article-container {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.color-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

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

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 11rem;
}

#contact .eyebrow, #contact .title-lg {
    text-align: center;
}

.contact-lede {
    max-width: 44ch;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: none;
    border: none;
    margin: 2.75rem 0;
    padding: 0;
    flex-wrap: wrap;
}

.contact-info-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.6rem;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
    margin: 0;
    transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

.contact-info-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.contact-info-container p { font-size: 1rem; color: var(--ink); }

.contact-icon { height: 1.3rem; cursor: default; opacity: 0.7; }
.email-icon { height: 1.3rem; }

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

footer {
    padding: 2.5rem 3rem;
    border-top: 1px solid var(--line-soft);
}

footer p {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-faint);
}