/* ─── VARIABLES & RESET ─────────────────────────────────────── */
:root {
    /* Premium Deep Night Blue Theme */
    --bg-dark: #050511;
    /* Very deep night blue */
    --bg-card: #0B0B1E;
    /* Slightly lighter blue for cards */
    --primary: #FFFFFF;
    /* Pure white for max contrast */
    --secondary: #8E92A4;
    /* Cool gray for secondary text */
    --accent: #4D70FF;
    /* Neon blue */
    --accent-glow: rgba(77, 112, 255, 0.4);
    --btn-gradient: linear-gradient(135deg, #7B42FF, #4D70FF);
    /* Purple to blue */
    --text-dim: #A1A5B8;
    --border: rgba(77, 112, 255, 0.2);
    /* Luminous thin borders */

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --marquee-speed: 30s;
}

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

body {
    background-color: var(--bg-dark);
    /* Subtle radial gradients + Vignetting + Fine grid */
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(123, 66, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at top left, rgba(77, 112, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at center, transparent 40%, rgba(0, 0, 5, 0.4) 100%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100vw 100vh, 100px 100px, 100px 100px;
    background-attachment: fixed;
    background-position: 0 0, 0 0, center center, 0 0, 0 0;
    color: var(--primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Mouse light effect container */
.mouse-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 112, 255, 0.025) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.footer-copy,
.footer-crafted {
    font-size: 0.75rem;
    color: var(--secondary);
    opacity: 0.5;
    letter-spacing: 0.02em;
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-sm {
    padding: 4rem 0;
}

img {
    max-width: 100%;
}

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

ul {
    list-style: none;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-number {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    opacity: 1;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* ─── NAVIGATION ────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 4rem;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.scrolled {
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-content {
    /* Removed from HTML, kept for safety */
    display: none;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(77, 112, 255, 0.5);
    transition: var(--transition);
}

.nav-logo:hover {
    text-shadow: 0 0 20px rgba(77, 112, 255, 0.8);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
    opacity: 0.7;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-page-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.nav-page-link:hover,
.nav-page-link.nav-page-active {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-page-sep {
    color: var(--border);
    margin: 0 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-pages {
    display: flex;
    align-items: center;
}

.nav-lang {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.2rem 0.6rem;
    gap: 0.3rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    border-radius: 100px;
    transition: var(--transition);
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.lang-btn.active {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.lang-divider {
    color: var(--secondary);
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ─── HERO ─────────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ── Carte hero ── */
.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hero-card {
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(77, 112, 255, 0.15);
}

.hero-card-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.hero-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: grayscale(15%);
    transition: filter 0.3s ease;
}

.hero-card:hover .hero-card-img {
    filter: grayscale(0%);
}

.hero-card-body {
    padding: 1.25rem 1.4rem 1.5rem;
}

.hero-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 1rem;
}

.hero-card-items {
    display: flex;
    flex-direction: column;
}

.hero-card-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--border);
}

.hero-card-org {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

.hero-card-detail {
    font-size: 0.72rem;
    color: var(--secondary);
    opacity: 0.75;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-align: left;
}

.hero-eyebrow {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-name {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.04em;
    color: var(--primary);
    text-align: left;
}

.hero-name .accent {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2.5px var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    letter-spacing: -1.5px;
    line-height: 1;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--secondary);
    max-width: 600px;
    margin: 0 0 3rem;
    text-align: left;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
}

/* Domaines intégrés dans le hero — chips */
.hero-domains {
    border-top: 1px solid var(--border);
    padding: 1.2rem 2rem;
    width: 100%;
}

.hero-domains .domains-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
}

.domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--secondary);
    opacity: 0.75;
    letter-spacing: 0.01em;
}

.domain-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    flex-shrink: 0;
}

/* Code typing terminal */
.hero-code {
    margin: 1.8rem auto 0;
    width: 420px;
    max-width: 92%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 22, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(77, 112, 255, 0.1);
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.code-dot.red {
    background: #ff5f57;
}

.code-dot.yellow {
    background: #febc2e;
}

.code-dot.green {
    background: #28c840;
}

.code-filename {
    margin-left: 0.6rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: monospace;
}

.code-body {
    padding: 0.7rem 0.8rem;
    font-size: 0.72rem;
    line-height: 1.65;
    min-height: 310px;
}

.code-line {
    display: flex;
    align-items: baseline;
    gap: 0;
    white-space: pre-wrap;
}

.code-ln {
    display: inline-block;
    width: 1.6rem;
    text-align: right;
    margin-right: 1.2rem;
    color: rgba(255, 255, 255, 0.18);
    user-select: none;
    font-size: 0.68rem;
    flex-shrink: 0;
}

/* Syntax colors */
.code-kw {
    color: #cf8eff;
}

/* purple  – keywords    */
.code-fn {
    color: #82cfff;
}

/* cyan    – functions   */
.code-mod {
    color: #52e3c2;
}

/* teal    – modules     */
.code-str {
    color: #f7c58a;
}

/* orange  – strings     */
.code-num {
    color: #f08c8c;
}

/* red     – numbers     */
.code-type {
    color: #a8d8a8;
}

/* green   – types       */
.code-param {
    color: #e0e0e0;
}

/* white   – variables   */

/* Blinking cursor */
.code-cursor {
    display: inline-block;
    color: var(--accent);
    animation: cursorBlink 1s step-end infinite;
    font-size: 0.75rem;
    line-height: 1;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}



/* Marquee intégré dans le hero */
.hero-marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
    width: 100%;
    padding: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    height: 60px;
    width: 1px;
}

.scroll-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* ─── SKILLS MARQUEE ────────────────────────────────────────── */
#skills-marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #7b8cff, #6a5cff);
    color: white;
    box-shadow: 0 0 25px rgba(123, 140, 255, 0.35);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(123, 140, 255, 0.55);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(123, 140, 255, 0.08);
    border-color: rgba(123, 140, 255, 0.5);
}

/* ─── DOMAINES ─────────────────────────────────────────────── */
.domains-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.domain-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.82rem;
    opacity: 0.8;
}

.domain-item .domain-icon {
    color: var(--accent);
    font-size: 0.65rem;
    flex-shrink: 0;
}

.domain-item p {
    font-size: 0.82rem;
    color: var(--secondary);
    line-height: 1.3;
}

/* ─── SKILLS MARQUEE ────────────────────────────────────────── */
#skills-marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    overflow: hidden;
    padding: 1rem 0;
}

.marquee-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.marquee-row.reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.track-fast {
    animation: scroll calc(var(--marquee-speed) * 0.7) linear infinite;
}

.track-normal {
    animation: scroll var(--marquee-speed) linear infinite;
}

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

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

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

.marquee-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--secondary);
    transition: var(--transition);
    white-space: nowrap;
    height: 32px;
}

.marquee-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Wrapper d'icône pour s'assurer du format et contourner l'étirement flex */
.marquee-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* Icônes marquee : taille constante 100% du wrapper */
.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.marquee-item:hover img {
    transform: scale(1.15) drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

/* Items sans icône : même style que les autres */
.marquee-text-only {
    font-size: 0.78rem;
    color: var(--secondary);
    font-family: monospace;
    letter-spacing: 0.02em;
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: start;
}

.bio-lead {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--primary);
}

.bio-body {
    color: var(--secondary);
    margin-bottom: 2rem;
}

.bio-vision {
    border-left: 2px solid var(--accent);
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(77, 112, 255, 0.2);
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
}

.soft-skill {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    color: var(--secondary);
    transition: var(--transition);
}

.soft-skill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.languages-row {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.lang-badge {
    font-size: 0.9rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 11px;
    height: 11px;
    background: var(--bg-dark);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.timeline-item.current .timeline-marker {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-date {
    display: block;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* ─── SKILLS ────────────────────────────────────────────────── */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stack-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stack-block:hover {
    border-color: rgba(77, 112, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(77, 112, 255, 0.1);
}

.stack-cat {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 2.5rem;
}

.stack-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.stack-dot {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.5;
}

.stack-block:hover .stack-dot {
    background: var(--accent);
    opacity: 1;
}

/* ─── PROJECTS ──────────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 320px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* Last card alone on its row → keep it half-width, not stretched */
.project-card:last-child:nth-child(odd) {
    grid-column: 1;
}

.project-card.featured {
    min-height: 300px;
}

.project-card-inner {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    background: rgba(77, 112, 255, 0.1);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    border: 1px solid rgba(77, 112, 255, 0.2);
    letter-spacing: 0.06em;
}

.project-year {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--secondary);
    opacity: 0.5;
}

.project-year.wip-badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 1;
    background: rgba(77, 112, 255, 0.12);
    border: 1px solid rgba(77, 112, 255, 0.3);
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
}

.project-card.wip .project-accent {
    background: linear-gradient(90deg, var(--accent), #9b59b6);
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.project-desc {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-stack span {
    font-size: 0.78rem;
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
}

.project-voir {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

.project-voir:hover {
    gap: 0.75rem;
    color: var(--accent);
}

.project-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    box-shadow: 0 -2px 10px var(--accent-glow);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(77, 112, 255, 0.3);
    box-shadow: 0 15px 40px rgba(77, 112, 255, 0.15);
}

.project-card:hover .project-accent {
    width: 100%;
}

/* ─── CONTACT ──────────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-intro {
    padding-top: 0.5rem;
}

.contact-lead {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-sub {
    font-size: 0.95rem;
    color: var(--secondary);
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.contact-link:hover {
    border-color: rgba(77, 112, 255, 0.35);
    background: rgba(77, 112, 255, 0.05);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(77, 112, 255, 0.1);
}

.contact-link-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(77, 112, 255, 0.12);
    border: 1px solid rgba(77, 112, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-link:hover .contact-link-icon {
    background: rgba(77, 112, 255, 0.22);
    box-shadow: 0 0 12px var(--accent-glow);
}

.contact-link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.contact-link-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    opacity: 0.7;
}

.contact-link-value {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}

.contact-link-arrow {
    color: var(--secondary);
    font-size: 1.1rem;
    opacity: 0.4;
    transition: var(--transition);
}

.contact-link:hover .contact-link-arrow {
    opacity: 1;
    color: var(--accent);
    transform: translateX(3px);
}

/* Legacy footer styles kept for safety */
.footer-layout {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.footer-tag {
    color: var(--secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1.5rem;
}

.footer-email {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
}

.footer-email a:hover {
    color: var(--secondary);
}

.footer-socials {
    display: flex;
    gap: 3rem;
}

.social-link {
    font-size: 1.1rem;
    color: var(--secondary);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.copyright {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ─── MODAL ────────────────────────────────────────────────── */
#project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

#project-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.pm-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
}

.pm-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

#project-modal.is-open .pm-box {
    transform: translate(-50%, -50%);
}

.pm-header {
    padding: 2rem 3rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pm-header-meta {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1.5rem;
}

.pm-tag {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--secondary);
}

.pm-year {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--secondary);
    opacity: 0.5;
}

.pm-title {
    font-size: 2rem;
    font-weight: 600;
}

.pm-close {
    background: var(--border);
    border: none;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.pm-close:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.pm-body {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
}

/* Image carousel */
.pm-image-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    line-height: 0;
}

.pm-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

.pm-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 12, 30, 0.7);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    line-height: 1;
}

.pm-img-prev { left: 0.75rem; }
.pm-img-next { right: 0.75rem; }

.pm-img-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.pm-img-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.pm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: var(--transition);
    flex-shrink: 0;
}

.pm-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

/* Gallery (legacy, unused) */
.pm-gallery {
    margin-bottom: 3rem;
}

.pm-gallery-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pm-gallery-track::-webkit-scrollbar {
    display: none;
}

.pm-gallery-img {
    flex: 0 0 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    scroll-snap-align: center;
}

.pm-gallery-img-placeholder {
    flex: 0 0 100%;
    height: 400px;
    background: var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.pm-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pm-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.pm-gallery-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.pm-stack-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.pm-stack-label {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--secondary);
}

.pm-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pm-stack span {
    background: var(--border);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Tabs */
.pm-tabs {
    display: flex;
    gap: 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.pm-tab {
    background: none;
    border: none;
    color: var(--secondary);
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

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

.pm-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.pm-tab-panel {
    display: none;
}

.pm-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pm-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 800px;
}

.pm-code-block {
    background: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.pm-code-header {
    padding: 1rem 1.5rem;
    background: #111111;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-code-lang {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--secondary);
}

.pm-copy-btn {
    background: var(--border);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.pm-copy-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

pre {
    padding: 2rem;
    overflow-x: auto;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e1e1e1;
}

.pm-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.pm-results-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.pm-results ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pm-results li {
    font-size: 0.95rem;
    color: var(--text-dim);
    position: relative;
    padding-left: 1.5rem;
}

.pm-results li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 1, 0.2, 1);
}

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

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-layout {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        align-items: center;
        order: 2;
    }

    .hero-photo {
        order: 1;
    }

    .hero-card {
        width: 220px;
    }

    .hero-name,
    .hero-tagline,
    .hero-sub {
        text-align: center;
    }

    .hero-sub {
        margin: 0 auto 3rem;
    }

    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .nav-links {
        display: none;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

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

    .project-card.featured {
        grid-column: auto;
        height: 400px;
    }

    .pm-results {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* ─── CV PAGE STYLES ────────────────────────────────────────── */
.cv-page {
    background-color: var(--bg-dark);
}

.cv-container {
    max-width: 1050px;
    margin: 7rem auto 4rem;
    padding: 0 2.5rem;
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cv-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: start;
}

.cv-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cv-identity {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cv-texts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.cv-avatar-wrap {
    flex-shrink: 0;
}

/* Avatar motion */
.cv-avatar {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 18px rgba(77, 112, 255, 0.25);
    position: relative;
    border-radius: 50%;
    animation: floaty 6s ease-in-out infinite;
    will-change: transform, filter;
}

.cv-avatar::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 145, 255, .22) 0%, rgba(93, 145, 255, 0) 60%);
    filter: blur(8px);
    opacity: .9;
    animation: glowPulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0px) rotate(-0.3deg);
    }

    50% {
        transform: translateY(-6px) rotate(0.3deg);
    }
}

@keyframes glowPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {

    .cv-avatar,
    .cv-avatar::after {
        animation: none !important;
    }
}

.cv-name {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cv-left h1 {
    margin: 0;
    line-height: 1.05;
}

.cv-title {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.cv-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    margin-top: 14px;
    max-width: 360px;
}

.cv-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    color: var(--secondary);
    transition: all .2s ease;
    font-size: 13px;
}

.cv-link:hover {
    background: rgba(93, 145, 255, .12);
    border-color: rgba(93, 145, 255, .35);
    transform: translateY(-2px);
    color: var(--accent);
}

.cv-hero-profile {
    max-width: 380px;
    margin-top: 10px;
    /* To maintain visual 24px gap below links */
}

.cv-hero-profile .cv-section-title {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.cv-hero-profile .cv-text {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.8;
}

.cv-code {
    justify-self: end;
    width: min(600px, 100%);
}

.cv-header-right .hero-code {
    margin: 0;
    width: 600px;
    max-width: 100%;
}

.cv-download-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 3rem;
}

.cv-grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.cv-sidebar {
    position: sticky;
    top: 7rem;
}

.cv-section {
    margin-bottom: 1.5rem;
    padding: 0;
}

.cv-section-title {
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: #7B9FFF;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(77, 112, 255, 0.25);
    display: block;
    width: 100%;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(77, 112, 255, 0.3);
}

.cv-text {
    font-size: 0.88rem;
    color: rgba(161, 165, 184, 0.75);
    line-height: 1.65;
    margin: 0;
}

.cv-skill-group {
    margin-bottom: 0.9rem;
}

.cv-skill-group h4 {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-sidebar ul {
    font-size: 0.85rem;
    color: var(--text-dim);
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-sidebar li {
    margin-bottom: 0.3rem;
    color: var(--text-dim);
    padding-left: 0.1rem;
}

.cv-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cv-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cv-item-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

.cv-item-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    flex: 1;
    min-width: 0;
}

.cv-date {
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
    width: 7rem;
    text-align: right;
    opacity: 0.85;
}

.cv-location {
    font-size: 0.82rem;
    color: rgba(142, 146, 164, 0.65);
    margin-bottom: 0.4rem;
    font-style: italic;
}

.cv-subtext {
    font-size: 0.85rem;
    color: rgba(142, 146, 164, 0.65);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.cv-project {
    margin-bottom: 0.8rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.cv-project:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.cv-project-tag {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 0.08em;
    font-weight: 600;
    white-space: nowrap;
}

/* Colored tags per category */
.cv-project-tag[data-color="blue"] {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.cv-project-tag[data-color="purple"] {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.cv-project-tag[data-color="green"] {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cv-footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.cv-footer p {
    color: var(--secondary);
    font-size: 0.85rem;
}

/* ─── RESPONSIVE CV ────────────────────────────────────────── */
@media (max-width: 768px) {
    .cv-container {
        margin-top: 6rem;
    }

    .cv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .cv-contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ─── PRINT STYLES ──────────────────────────────────────────── */
@media print {
    @page {
        size: A4;
        margin: 15mm 15mm 15mm 15mm;
    }

    /* Reset background / glow / animations */
    *,
    *::before,
    *::after {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11pt;
        line-height: 1.5;
    }

    /* Hide decorative / interactive elements */
    nav,
    .mouse-light,
    .cv-header-right,
    .cv-footer,
    .cv-download-section {
        display: none !important;
    }

    .cv-container {
        margin: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Header */
    .cv-header {
        border-bottom: 1.5px solid #ccc !important;
        padding-bottom: 0.8rem !important;
        margin-bottom: 1.2rem !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .cv-avatar {
        border: 1.5px solid #999 !important;
        width: 70px !important;
        height: 70px !important;
    }

    .cv-name {
        font-size: 22pt !important;
        color: #000 !important;
        letter-spacing: -0.02em !important;
    }

    .accent {
        color: #1a2eff !important;
        -webkit-text-stroke: 0 !important;
    }

    .cv-title {
        color: #3355cc !important;
        font-size: 9.5pt !important;
    }

    .cv-contact-info a {
        color: #444 !important;
        font-size: 8.5pt !important;
    }

    /* Grid: keep two columns in print */
    .cv-grid {
        display: grid !important;
        grid-template-columns: 170px 1fr !important;
        gap: 1.2rem !important;
        align-items: start !important;
    }

    .cv-sidebar {
        position: static !important;
    }

    /* Section titles */
    .cv-section-title {
        color: #000 !important;
        font-size: 7pt !important;
        letter-spacing: 0.2em !important;
        border-bottom: 1px solid #bbb !important;
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.2rem !important;
    }

    /* Body text */
    .cv-text,
    .cv-subtext,
    .cv-sidebar ul,
    .cv-sidebar li {
        color: #333 !important;
        font-size: 9pt !important;
        opacity: 1 !important;
    }

    .cv-location {
        color: #666 !important;
        font-size: 8.5pt !important;
        opacity: 1 !important;
    }

    .cv-item-header h4 {
        color: #000 !important;
        font-size: 10.5pt !important;
    }

    .cv-date {
        color: #1a2eff !important;
        font-size: 8pt !important;
        opacity: 1 !important;
    }

    /* Projects */
    .cv-project {
        border: 1px solid #ddd !important;
        background: none !important;
        page-break-inside: avoid;
        border-radius: 4px !important;
        margin-bottom: 0.5rem !important;
    }

    .cv-project-tag {
        border: 1px solid #bbb !important;
        color: #444 !important;
        background: #f5f5f5 !important;
        font-size: 7pt !important;
    }

    /* Avoid page breaks inside items */
    .cv-item,
    .cv-section {
        page-break-inside: avoid;
        margin-bottom: 0.8rem !important;
    }
}

/* ─── CV HERO RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
    .cv-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cv-hero-profile {
        max-width: 100%;
    }

    .cv-code {
        justify-self: start;
        width: 100%;
        margin-top: 18px;
    }

    .cv-left {
        grid-template-columns: 90px 1fr;
        gap: 20px;
    }

    .cv-avatar {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 600px) {
    .cv-links {
        grid-template-columns: 1fr;
    }
}