/* ============================================================
   Portfolio — Célia Gonçalves
   ============================================================ */


/* ---- Tokens ---- */

:root {
    --bg: #0c0c14;
    --bg-surface: #13131f;
    --bg-light: #ffffff;
    --bg-soft: #f7f7fb;
    --accent: #8b5cf6;
    --accent-dark: #6d28d9;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --text-dark: #f1f5f9;
    --text-muted-dark: #94a3b8;
    --text-light: #1e1b2e;
    --text-muted: #64748b;
    --border-dark: rgba(255, 255, 255, 0.07);
    --border-light: #e2e8f0;
    --nav-h: 68px;
    --max-w: 1080px;
    --radius: 10px;
    --ease: 0.25s ease;
}


/* ---- Reset ---- */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

strong {
    color: var(--text-light);
    font-weight: 600;
}


/* ---- Container ---- */

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


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

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background var(--ease), backdrop-filter var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
    background: rgba(12, 12, 20, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border-dark);
}

.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    letter-spacing: 3px;
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--ease);
}

.nav__links a:hover {
    color: #fff;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang__dropdown {
    position: relative;
}

.lang__current {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--ease);
}

.lang__current:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang__current .fa {
    font-size: 9px;
    transition: transform var(--ease);
}

.lang__dropdown.open .lang__current .fa {
    transform: rotate(180deg);
}

.lang__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #16161f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    min-width: 72px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang__dropdown.open .lang__menu {
    display: block;
}

.lang__option {
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--ease);
    list-style: none;
}

.lang__option:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.lang__option--active {
    color: var(--accent);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--ease);
}


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

.hero {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 32px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}


/* subtle grid texture */

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero__eyebrow {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero__name {
    font-size: clamp(48px, 9vw, 92px);
    font-weight: 700;
    color: #fff;
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.hero__title {
    font-size: clamp(15px, 2.2vw, 20px);
    color: var(--text-muted-dark);
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-bottom: 30px;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 44px;
}

.hero__tags span {
    padding: 5px 16px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 100px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--ease);
    cursor: pointer;
}

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

.btn--primary:hover {
    background: var(--accent-dark);
}

.btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}


/* ---- Scroll indicator ---- */

.hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted-dark);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: bob 2.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes bob {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(7px);
    }
}


/* ============================================================
   SECTIONS — COMMON
   ============================================================ */

.section {
    padding: 104px 0;
}

.section--dark {
    background: var(--bg);
    color: var(--text-dark);
}

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

.section__header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 60px;
}

.section__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    flex-shrink: 0;
}

.section__header h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.section__header--light h2 {
    color: #fff;
}


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

.about__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
    align-items: start;
}

.about__text h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 20px;
}

.about__text p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 14px;
}

.about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.2px;
}

.about__photo {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.about__photo img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.1);
}


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

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

.skills__group-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dark);
}

.skills__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.skills__name {
    display: block;
    font-size: 13px;
    color: var(--text-muted-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.skills__bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.skills__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), rgba(139, 92, 246, 0.5));
    border-radius: 100px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}


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

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline__item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 40px;
    padding-bottom: 52px;
}

.timeline__meta {
    text-align: right;
    padding-top: 4px;
    padding-right: 24px;
}


/* The border-left IS the timeline line — always continuous, no gaps */

.timeline__body {
    border-left: 1px solid var(--border-light);
    padding-left: 28px;
    position: relative;
}

.timeline__item:last-child .timeline__body {
    border-left-color: transparent;
}


/* Dot sits centred on the border line */

.timeline__body::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    /* white ring to cut through the line, then accent glow */
    box-shadow: 0 0 0 3px var(--bg-light), 0 0 0 5px rgba(139, 92, 246, 0.25);
}

.timeline__date {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.timeline__tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 100px;
}

.timeline__body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 3px;
    line-height: 1.3;
}

.timeline__body h4 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline__body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

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

.timeline__tags span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
}


/* ============================================================
   EDUCATION
   ============================================================ */

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

.edu__card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow var(--ease), transform var(--ease);
}

.edu__card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.edu__card--featured {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.03);
}

.edu__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.edu__year {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
}

.edu__content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    margin: 6px 0 4px;
}

.edu__content h4 {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.edu__content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}


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

.contact__intro {
    font-size: 17px;
    color: var(--text-muted-dark);
    max-width: 440px;
    margin-bottom: 44px;
    font-weight: 300;
    line-height: 1.6;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: var(--text-muted-dark);
    transition: color var(--ease);
}

.contact__link i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: background var(--ease);
}

.contact__link:hover {
    color: #fff;
}

.contact__link:hover i {
    background: var(--accent);
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.2fr);
    gap: 48px;
    align-items: start;
}

.contact__form {
    display: grid;
    gap: 18px;
}

.contact__form label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

.contact__form input,
.contact__form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    transition: border-color var(--ease), background var(--ease);
}

.contact__form input:focus,
.contact__form textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.contact__form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact__status {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    min-height: 1.2em;
}

@media (max-width: 900px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   LANGUAGES
   ============================================================ */

.langs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.lang__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lang__name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-light);
}

.lang__dots {
    display: flex;
    gap: 7px;
}

.lang__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    border: 1px solid var(--border-light);
}

.lang__dot--full {
    background: var(--accent);
    border-color: var(--accent);
}

.lang__level {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}


/* ============================================================
   BLOG
   ============================================================ */

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

.blog__card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.blog__card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
}

.blog__card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.blog__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.blog__date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

.blog__locale-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--bg-soft);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.blog__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
}

.blog__summary {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.blog__read {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 6px;
}

.blog__empty,
.blog__loading {
    color: var(--text-muted);
    font-size: 15px;
    grid-column: 1 / -1;
}


/* ============================================================
   PAGE HEADER (blog & post pages)
   ============================================================ */

.page-header {
    background: var(--bg);
    color: var(--text-dark);
    padding: calc(var(--nav-h) + 90px) 0 90px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.page-header .container,
.page-header .container--narrow {
    position: relative;
    z-index: 1;
}

.page-header__eyebrow {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 18px;
}

.page-header__title {
    font-size: clamp(38px, 7vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.page-header__sub {
    font-size: 16px;
    color: var(--text-muted-dark);
    max-width: 560px;
    font-weight: 300;
    line-height: 1.6;
}


/* ============================================================
   POST PAGE
   ============================================================ */

.container--narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}

.page-header--post .post__back {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted-dark);
    margin-bottom: 36px;
    display: inline-block;
    transition: color var(--ease);
}

.page-header--post .post__back:hover {
    color: var(--accent);
}

.page-header--post .post__date {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.page-header--post .post__title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.post {
    padding: 72px 0 96px;
    background: #fff;
}

.post__body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-muted);
}

.post__body p {
    margin-bottom: 18px;
}

.post__body h2 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--text-light);
    margin: 36px 0 14px;
}

.post__body h3 {
    font-size: clamp(17px, 2.5vw, 19px);
    font-weight: 600;
    color: var(--text-light);
    margin: 28px 0 12px;
}

.post__body ul,
.post__body ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.post__body li {
    margin-bottom: 8px;
}

.post__body strong {
    color: var(--text-light);
}

.post__body a {
    color: var(--accent);
    text-decoration: underline;
}

.post__body code {
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    color: var(--text-light);
}

.post__body pre {
    background: var(--bg-soft);
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 18px;
}

.post__body pre code {
    background: none;
    padding: 0;
}

.post__body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 18px;
    margin: 0 0 18px;
    color: var(--text-muted);
    font-style: italic;
}

.post__body img {
    border-radius: 10px;
    margin: 18px 0;
    max-width: 100%;
}

.post__share-bar {
    background: #0c0c14;
    padding: 28px 0;
}

.post__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.post__share-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post__share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post__share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: background var(--ease), transform var(--ease);
    border: 1px solid transparent;
}

.post__share-link:hover,
.post__share-link:focus {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.post__share-link.copied {
    border-color: var(--accent);
}

.post__share-link i {
    font-size: 16px;
}

/* ============================================================
   TOAST — bottom-center notification (link copied, etc.)
   ============================================================ */

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 20px);
    background: var(--bg-surface);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 4px var(--accent-glow);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    max-width: calc(100vw - 32px);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* Active nav link (blog / post pages) */

.nav__links a.active {
    color: var(--accent);
}


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

.footer {
    background: var(--bg-surface);
    padding: 26px 32px;
}

.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    font-size: 12px;
    color: var(--text-muted-dark);
}

.footer__social {
    display: flex;
    gap: 18px;
}

.footer__social a {
    font-size: 15px;
    color: var(--text-muted-dark);
    transition: color var(--ease);
}

.footer__social a:hover {
    color: var(--accent);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .about__photo {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
    .skills__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .edu__grid {
        grid-template-columns: 1fr 1fr;
    }
    .langs__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .timeline__item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 40px;
    }
    .timeline__meta {
        text-align: left;
    }
    .timeline__body {
        border-left: none;
        padding-left: 0;
    }
    .timeline__body::before {
        display: none;
    }
    .blog__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    .section {
        padding: 72px 0;
    }
    .hero__name {
        letter-spacing: -1px;
    }
    .nav__links {
        display: none;
        position: fixed;
        inset: var(--nav-h) 0 0 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 99;
    }
    .nav__links.open {
        display: flex;
    }
    .nav__links a {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.8);
    }
    .nav__toggle {
        display: flex;
    }
    .edu__grid {
        grid-template-columns: 1fr;
    }
    .langs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog__grid {
        grid-template-columns: 1fr;
    }
    .page-header {
        padding: calc(var(--nav-h) + 56px) 0 56px;
    }
    .post {
        padding: 56px 0 72px;
    }
    .container--narrow {
        padding: 0 20px;
    }
    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}


/* ---- Share-con ---- */

.post__share-icon {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}