/* ============================================================
   Selvino (Selvs) Rodrigues Jr. — Personal CV
   ============================================================ */

:root {
    --bg: #06080f;
    --bg-soft: #0b1020;
    --surface: rgba(20, 28, 50, 0.55);
    --surface-strong: rgba(28, 38, 66, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #e7ecf5;
    --text-muted: #97a3b6;
    --text-dim: #5b6478;

    --accent: #00d9ff;
    --accent-2: #7c5cff;
    --accent-3: #4ade80;
    --accent-warm: #f59e0b;

    --grad-primary: linear-gradient(135deg, #00d9ff 0%, #7c5cff 50%, #ff4d8d 100%);
    --grad-soft: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(124, 92, 255, 0.15));

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-glow: 0 0 80px rgba(0, 217, 255, 0.15);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);

    --container: 1200px;
    --header-h: 70px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
svg { width: 1em; height: 1em; }

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

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

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

/* ============================================================
   Background — animated mesh
   ============================================================ */

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at top, rgba(124, 92, 255, 0.08), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 217, 255, 0.06), transparent 50%),
        var(--bg);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: floatBlob 20s ease-in-out infinite;
}

.bg-blob--1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, #00d9ff, transparent 70%);
}

.bg-blob--2 {
    top: 30%; right: -15%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, #7c5cff, transparent 70%);
    animation-delay: -7s;
}

.bg-blob--3 {
    bottom: -20%; left: 30%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, #ff4d8d, transparent 70%);
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, -5%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.95); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(0px);
}

.header.is-scrolled {
    background: rgba(6, 8, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav__logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav__logo-bracket {
    color: var(--accent);
}

.nav__menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav__menu a {
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s var(--ease);
}

.nav__menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav__menu .nav__cta {
    background: var(--grad-primary);
    color: #06080f;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.25);
}

.nav__menu .nav__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(0, 217, 255, 0.4);
    color: #06080f;
    background: var(--grad-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 100px;
    font-size: 0.82rem;
    color: #86efac;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero__badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero__badge-sep {
    color: rgba(134, 239, 172, 0.5);
    margin: 0 4px;
    font-weight: 700;
}

.hero__role {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero__sep {
    color: var(--accent);
    margin: 0 8px;
}

.hero__lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s var(--ease);
    cursor: pointer;
}

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

.btn--primary {
    background: var(--grad-primary);
    background-size: 200% 200%;
    color: #06080f;
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.45);
    background-position: right center;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero__stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat__number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat__label {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Hero visual / photo */

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__photo-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero__photo-glow {
    position: absolute;
    inset: -40px;
    background: var(--grad-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: rotateGlow 12s linear infinite;
    z-index: 1;
}

.hero__photo-ring {
    position: absolute;
    inset: -10px;
    border: 1px dashed rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    z-index: 1;
    animation: rotateGlow 30s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero__chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: floatChip 6s ease-in-out infinite;
    white-space: nowrap;
}

.hero__chip-icon { font-size: 1.1em; }

.hero__chip--top { top: 0; left: -10%; animation-delay: 0s; }
.hero__chip--right { top: 30%; right: -15%; animation-delay: -1.5s; }
.hero__chip--bottom { bottom: 5%; right: 5%; animation-delay: -3s; }
.hero__chip--left { bottom: 25%; left: -15%; animation-delay: -4.5s; }

@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.2s;
}

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

.hero__scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
}

.hero__scroll-mouse span {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0.3; }
}

/* ============================================================
   Sections shared
   ============================================================ */

.section {
    padding: 100px 0;
    position: relative;
}

.section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}

.section__eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding: 4px 12px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 100px;
}

.section__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section__sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   About
   ============================================================ */

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

.about__lead {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about__text p {
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.75;
    font-size: 1.02rem;
}

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

.about__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.highlight {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease);
}

.highlight:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--surface-strong);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.1);
}

.highlight__icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: inline-block;
}

.highlight h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.highlight p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   Stack
   ============================================================ */

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

.stack-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.stack-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity 0.3s;
}

.stack-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}

.stack-card:hover::before { opacity: 1; }

.stack-card > * { position: relative; z-index: 1; }

.stack-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.stack-card__icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stack-card__head h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.stack-card__list li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px dashed transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stack-card__list li::before {
    content: '▸';
    color: var(--accent);
    margin-right: 10px;
    font-size: 0.8em;
}

.stack-card__badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent);
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   Timeline
   ============================================================ */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--accent) 5%,
        var(--accent-2) 50%,
        rgba(124, 92, 255, 0.2) 100%);
}

.timeline__item {
    position: relative;
    margin-bottom: 36px;
}

.timeline__marker {
    position: absolute;
    left: -42px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    z-index: 2;
}

.timeline__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.timeline__marker--start {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
}

.timeline__card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease);
}

.timeline__card:hover {
    transform: translateX(4px);
    border-color: var(--border-strong);
    background: var(--surface-strong);
    box-shadow: var(--shadow-card);
}

.timeline__period {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent);
    background: rgba(0, 217, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: 500;
}

.timeline__role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.timeline__role span {
    color: var(--accent);
    font-weight: 400;
    margin: 0 4px;
}

.timeline__company {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 12px;
}

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

.timeline__card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline__card p strong {
    color: var(--text);
    font-weight: 600;
}

.timeline__projects {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 16px;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project strong {
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 600;
}

.project span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.timeline__tags span {
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   Education
   ============================================================ */

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

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

.edu__col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.edu__col-title svg {
    width: 18px;
    height: 18px;
}

.edu__card {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(12px);
    transition: all 0.25s var(--ease);
}

.edu__card:hover {
    border-color: var(--border-strong);
    transform: translateX(2px);
}

.edu__institution {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.edu__course {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 4px;
}

.edu__period {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.edu__card--lang { padding-bottom: 14px; }

.lang__bar {
    margin-top: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.lang__bar span {
    display: block;
    height: 100%;
    background: var(--grad-primary);
    border-radius: 100px;
    transition: width 1.2s var(--ease-out);
}

/* ============================================================
   Contact
   ============================================================ */

.section--contact { padding-bottom: 60px; }

.contact__card {
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.06), rgba(124, 92, 255, 0.06)),
        var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 60px 50px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.contact__card::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.contact__head {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.contact__head .section__eyebrow,
.contact__head .section__title,
.contact__head .section__sub { margin-bottom: 12px; }

.contact__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-strong);
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    transition: all 0.3s var(--ease);
}

.contact-item__icon svg { width: 22px; height: 22px; }

.contact-item--wpp .contact-item__icon { background: rgba(37, 211, 102, 0.12); color: #25D366; }
.contact-item--wpp:hover { border-color: rgba(37, 211, 102, 0.4); }
.contact-item--wpp:hover .contact-item__icon { background: rgba(37, 211, 102, 0.2); }

.contact-item--mail .contact-item__icon { background: rgba(255, 167, 64, 0.12); color: #ffa740; }
.contact-item--mail:hover { border-color: rgba(255, 167, 64, 0.4); }

.contact-item--linkedin .contact-item__icon { background: rgba(10, 102, 194, 0.18); color: #4dabf7; }
.contact-item--linkedin:hover { border-color: rgba(77, 171, 247, 0.5); }

.contact-item--cv .contact-item__icon { background: rgba(124, 92, 255, 0.15); color: #a78bfa; }
.contact-item--cv:hover { border-color: rgba(167, 139, 250, 0.4); }

.contact-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-item__label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.contact-item__value {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-item__arrow {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease);
}

.contact-item:hover .contact-item__arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.contact__location {
    text-align: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.contact__location svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.contact__sep {
    color: var(--text-dim);
    margin: 0 6px;
}

/* ============================================================
   Pitch / Personal Branding CTA section
   ============================================================ */

.section--pitch {
    padding: 60px 0 40px;
}

.pitch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 48px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(255, 77, 141, 0.06)),
        var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.pitch__glow {
    position: absolute;
    top: -50%;
    left: 30%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 60%);
    pointer-events: none;
    animation: floatBlob 14s ease-in-out infinite;
}

.pitch__content {
    position: relative;
    flex: 1;
    min-width: 0;
}

.pitch__eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #c4b5fd;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.3);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.pitch__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pitch__sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 580px;
}

.pitch__cta {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ============================================================
   Floating pitch badge
   ============================================================ */

.floating-pitch {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 4px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(0, 217, 255, 0.18)),
        rgba(11, 16, 32, 0.92);
    border: 1px solid rgba(124, 92, 255, 0.4);
    border-radius: 100px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    backdrop-filter: blur(16px);
    box-shadow:
        0 12px 40px rgba(124, 92, 255, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s var(--ease);
    transform: translateY(140%);
    opacity: 0;
}

.floating-pitch__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px 8px 14px;
    background: transparent;
    border: 0;
    border-radius: 100px;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s var(--ease);
}

.floating-pitch[data-visible="true"] {
    transform: translateY(0);
    opacity: 1;
    animation: floatingPitchIn 0.5s var(--ease-out);
}

@keyframes floatingPitchIn {
    from { transform: translateY(140%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.floating-pitch:hover {
    border-color: rgba(124, 92, 255, 0.7);
    box-shadow:
        0 18px 50px rgba(124, 92, 255, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.floating-pitch:hover[data-visible="true"] {
    transform: translateY(-3px);
}

.floating-pitch__icon {
    font-size: 1.1rem;
    animation: sparkle 2.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.15) rotate(15deg); }
}

.floating-pitch__text {
    white-space: nowrap;
}

.floating-pitch__arrow {
    color: var(--accent);
    font-weight: 600;
    transition: transform 0.25s var(--ease);
}

.floating-pitch__main:hover .floating-pitch__arrow {
    transform: translateX(4px);
}

.floating-pitch__close {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
}

.floating-pitch__close svg { width: 14px; height: 14px; }

.floating-pitch__close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* ============================================================
   Modal
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden],
.floating-pitch[hidden] {
    display: none !important;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 15, 0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.25s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 40px 36px 32px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(0, 217, 255, 0.06)),
        var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 92, 255, 0.15);
    animation: modalIn 0.35s var(--ease-out);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: all 0.2s var(--ease);
}

.modal__close svg { width: 18px; height: 18px; }

.modal__close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

.modal__eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #c4b5fd;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.3);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.modal__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.modal__lead {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.modal__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.modal__features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.modal__features li > span:first-child {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.modal__features li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.modal__features li strong {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.modal__features li > div span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.modal__cta .btn--primary {
    flex: 1;
    justify-content: center;
    min-width: 220px;
}

.modal__cta .btn svg { width: 18px; height: 18px; }

body.modal-open { overflow: hidden; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

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

.footer__brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.88rem;
}

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

.footer__social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s var(--ease);
}

.footer__social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 217, 255, 0.08);
    transform: translateY(-2px);
}

.footer__social svg { width: 18px; height: 18px; }

/* ============================================================
   Reveal animations
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero__lead { margin-left: auto; margin-right: auto; }
    .hero__cta { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__photo-wrap { max-width: 320px; }
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .stack__grid { grid-template-columns: repeat(2, 1fr); }
    .edu__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav__menu {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 20px;
        background: rgba(6, 8, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s var(--ease);
    }
    .nav__menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav__menu li { width: 100%; }
    .nav__menu a {
        display: block;
        padding: 12px 16px;
        text-align: center;
    }
    .nav__menu .nav__cta { margin: 8px 0 0; }
    .nav__toggle { display: flex; }

    .header.is-scrolled { background: rgba(6, 8, 15, 0.85); }

    .section { padding: 70px 0; }
    .section__head { margin-bottom: 40px; }

    .hero { padding-top: calc(var(--header-h) + 20px); }
    .hero__stats { gap: 24px; flex-wrap: wrap; }
    .stat__number { font-size: 1.6rem; }

    .hero__chip { font-size: 0.75rem; padding: 8px 12px; }
    .hero__chip--top { left: -5%; }
    .hero__chip--right { right: 0; }
    .hero__chip--left { left: -5%; }

    .hero__scroll { display: none; }

    .about__highlights { grid-template-columns: 1fr; }
    .stack__grid { grid-template-columns: 1fr; }

    .timeline { padding-left: 36px; }
    .timeline__marker { left: -32px; }
    .timeline__card { padding: 20px; }

    .contact__card { padding: 36px 22px; }
    .contact__grid { grid-template-columns: 1fr; }
    .contact-item { padding: 16px 18px; gap: 14px; }
    .contact-item__icon { width: 42px; height: 42px; }
    .contact-item__value { font-size: 0.9rem; }

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

    .pitch {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 24px;
    }
    .pitch__cta { width: 100%; justify-content: center; }

    .floating-pitch {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
        padding: 10px 14px 10px 12px;
        font-size: 0.78rem;
    }
    .floating-pitch__text {
        max-width: 180px;
        white-space: normal;
        line-height: 1.25;
    }

    .modal__panel {
        padding: 32px 22px 24px;
    }
    .modal__cta { flex-direction: column; }
    .modal__cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .btn { padding: 12px 20px; font-size: 0.88rem; }
    .hero__title { font-size: 2.25rem; }
}
