/* ===============================
   RESET & ROOT VARIABLES
=============================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Backgrounds */
    --bg: #050508;
    --surface-1: #09090F;
    --surface-2: #0E0E1A;
    --surface-3: #141428;

    /* Brand Colors */
    --indigo: #818CF8;
    --indigo-dark: #4F46E5;
    --cyan: #22D3EE;
    --purple: #A855F7;
    --green: #10B981;

    /* Text */
    --text-primary: #F1F5F9;
    --text-secondary: #8892A4;
    --text-muted: #4B5568;

    /* Borders */
    --border: rgba(255, 255, 255, 0.07);
    --border-bright: rgba(129, 140, 248, 0.5);

    /* Gradients */
    --gradient: linear-gradient(135deg, #818CF8, #22D3EE);
    --gradient-vibrant: linear-gradient(135deg, #818CF8 0%, #A855F7 50%, #22D3EE 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(129,140,248,0.1), rgba(34,211,238,0.07));

    /* Shadows & Glows */
    --glow-indigo: 0 0 20px rgba(129, 140, 248, 0.3);
    --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(129, 140, 248, 0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Compat aliases */
    --primary: var(--indigo);
    --secondary: var(--cyan);
    --accent: var(--purple);
    --dark: var(--text-primary);
    --gray: var(--text-secondary);
    --bg-light: var(--bg);
    --bg-white: var(--surface-1);
}

body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    cursor: none;
    overflow-x: hidden;
}

/* ===============================
   MAIN NAVIGATION
=============================== */
body { padding-top: 64px; }

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.main-nav.scrolled {
    background: rgba(9, 9, 15, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-color: var(--border);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 40px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-badge {
    width: 34px;
    height: 34px;
    background: var(--gradient-vibrant);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82em;
    font-weight: 900;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.4);
    flex-shrink: 0;
}

.nav-logo-name {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.87em;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    transition: color 0.25s, background 0.25s;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(129, 140, 248, 0.07);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 55%;
}

/* CTA */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    background: var(--gradient);
    color: white;
    font-weight: 600;
    font-size: 0.85em;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.55);
}

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

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

/* Mobile menu */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: rgba(9, 9, 15, 0.96);
    backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    padding: 12px 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.nav-mobile.open {
    display: flex;
    max-height: 400px;
}

.nav-mobile a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    padding: 13px 24px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: var(--text-primary);
    background: rgba(129, 140, 248, 0.06);
    border-left-color: var(--indigo);
}

.nav-cta-mobile {
    margin: 12px 24px 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px !important;
    background: var(--gradient) !important;
    color: white !important;
    border-radius: 100px;
    font-weight: 600;
    border-left: none !important;
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.35);
}

/* ===============================
   SCROLL PROGRESS BAR
=============================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-vibrant);
    z-index: 999999;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.7), 0 0 4px rgba(34, 211, 238, 0.5);
}

/* ===============================
   LOADER
=============================== */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.loader-initials {
    position: relative;
    font-size: 100px;
    font-weight: 900;
    display: flex;
    gap: 8px;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
}

.letter-k, .letter-c {
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letterFloat 2s ease-in-out infinite;
}

.letter-c { animation-delay: 0.3s; }

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.5));
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.7));
    }
}

.loader-ring, .loader-ring-2, .loader-ring-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
}

.loader-ring {
    width: 180px;
    height: 180px;
    border-top-color: var(--indigo);
    border-right-color: var(--indigo);
    animation: spinLoader 1.2s linear infinite;
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.2);
}

.loader-ring-2 {
    width: 220px;
    height: 220px;
    border-bottom-color: var(--cyan);
    border-left-color: var(--cyan);
    animation: spinLoader 1.8s linear infinite reverse;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.loader-ring-3 {
    width: 260px;
    height: 260px;
    border-top-color: var(--purple);
    border-right-color: var(--purple);
    animation: spinLoader 2.4s linear infinite;
    opacity: 0.6;
}

@keyframes spinLoader {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-text {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 5px;
    font-weight: 500;
    text-transform: uppercase;
}

.dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40%      { content: '.'; }
    60%      { content: '..'; }
    80%, 100%{ content: '...'; }
}

/* ===============================
   CUSTOM CURSOR
=============================== */
.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    mix-blend-mode: screen;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--indigo);
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.9), 0 0 30px rgba(129, 140, 248, 0.4);
    transition: transform 0.1s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(129, 140, 248, 0.45);
    transition: transform 0.5s ease, width 0.3s ease, height 0.3s ease;
}

/* ===============================
   PARTICLES BACKGROUND
=============================== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.7;
}

/* ===============================
   MAIN CONTAINER
=============================== */
.cv-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--surface-1);
    box-shadow: 0 0 0 1px var(--border), 0 40px 120px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.cv-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-vibrant);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.5);
    z-index: 10;
}

/* ===============================
   HEADER
=============================== */
.cv-header {
    background: rgba(9, 9, 15, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 50px 70px 45px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.cv-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(129, 140, 248, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cv-header::after {
    content: '';
    position: absolute;
    top: -120%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.04), transparent 70%);
    animation: rotateGlow 25s linear infinite;
    pointer-events: none;
}

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

/* ===============================
   STATUS BAR
=============================== */
.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
    padding: 9px 20px;
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(16,185,129,0.6); }
    50%       { opacity: 0.8; transform: scale(1.3); box-shadow: 0 0 20px rgba(16,185,129,0.9); }
}

.status-text {
    font-weight: 600;
    color: var(--green);
    font-size: 0.84em;
    letter-spacing: 0.5px;
}

/* ===============================
   HEADER CONTENT
=============================== */
.header-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

/* Profile Image */
.profile-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo-dark), var(--purple), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 40px rgba(129, 140, 248, 0.4), 0 0 80px rgba(168, 85, 247, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image:hover {
    transform: scale(1.06);
    box-shadow: 0 0 60px rgba(129, 140, 248, 0.6), 0 0 100px rgba(168, 85, 247, 0.25);
}

.profile-initial {
    font-size: 3.2em;
    font-weight: 900;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.profile-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid transparent;
    border-radius: 50%;
    animation: spin 4s linear infinite;
}

.profile-ring:nth-child(2) {
    width: 192px;
    height: 192px;
    border-top-color: rgba(129, 140, 248, 0.45);
    border-right-color: rgba(129, 140, 248, 0.2);
}

.profile-ring:nth-child(3) {
    width: 214px;
    height: 214px;
    border-bottom-color: rgba(34, 211, 238, 0.35);
    border-left-color: rgba(168, 85, 247, 0.3);
    animation-duration: 6s;
    animation-direction: reverse;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Header Text */
.header-text { flex: 1; }

.glitch {
    font-size: 4.5em;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 14px;
    position: relative;
    background: linear-gradient(135deg, #E2E8F0 0%, var(--indigo) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.05;
}

@keyframes glitchAnim {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.typing-effect {
    font-size: 1.55em;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 500;
    position: relative;
}

.typing-effect::after {
    content: '|';
    color: var(--indigo);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50%  { opacity: 1; }
    51%, 100%{ opacity: 0; }
}

.tagline {
    font-size: 1.05em;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 400;
    max-width: 480px;
    line-height: 1.75;
}

.tech-stack-header {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 8px 18px;
    background: rgba(129, 140, 248, 0.07);
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.88em;
    color: var(--indigo);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
    isolation: isolate;
}

.tech-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: -1;
}

.tech-tag:hover::before { opacity: 1; }

.tech-tag:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.35), 0 0 15px rgba(129, 140, 248, 0.2);
    border-color: transparent;
}

/* ===============================
   STATS BAR
=============================== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 40px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 28px 20px;
    border-right: 1px solid var(--border);
    transition: background 0.3s;
    position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-item:hover::before { opacity: 1; }

.stat-number {
    display: block;
    font-size: 2.8em;
    font-weight: 900;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-number::after {
    content: '+';
    font-size: 0.55em;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8em;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* ===============================
   CONTACT BAR
=============================== */
.contact-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 18px 28px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92em;
    font-weight: 500;
}

.contact-item:hover {
    color: var(--text-primary);
    background: rgba(129, 140, 248, 0.08);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.2em;
    color: var(--indigo);
    transition: all 0.3s;
}

.contact-item:hover i {
    transform: scale(1.2);
    color: var(--cyan);
}

.cta-contact {
    background: var(--gradient) !important;
    color: white !important;
    border-radius: 100px !important;
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.3);
}

.cta-contact span,
.cta-contact i { color: white !important; }

.cta-contact:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(129, 140, 248, 0.55) !important;
    background: var(--gradient) !important;
}

/* ===============================
   CONTENT LAYOUT
=============================== */
.cv-content {
    display: grid;
    grid-template-columns: 370px 1fr;
}

/* ===============================
   SIDEBAR
=============================== */
.cv-sidebar {
    background: var(--surface-2);
    border-right: 1px solid var(--border);
    padding: 50px 34px;
}

.cv-main {
    padding: 50px 54px;
    background: var(--surface-1);
}

/* ===============================
   SECTIONS
=============================== */
.cv-section {
    margin-bottom: 55px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 0.75em;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Space Grotesk', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

.section-title:hover::after { width: 90px; }

.section-title i {
    color: var(--indigo);
    font-size: 1em;
    width: 34px;
    height: 34px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.section-title:hover i {
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(129, 140, 248, 0.4);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.3);
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===============================
   PROFILE SECTION
=============================== */
.profile-intro {
    font-size: 0.97em;
    margin-bottom: 22px;
    line-height: 1.85;
    color: var(--text-secondary);
}

.profile-intro strong {
    color: var(--indigo);
    font-weight: 700;
}

.value-props {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    background: rgba(129, 140, 248, 0.04);
    border: 1px solid rgba(129, 140, 248, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.value-item:hover {
    background: rgba(129, 140, 248, 0.09);
    border-color: rgba(129, 140, 248, 0.25);
    transform: translateX(5px);
    box-shadow: -3px 0 0 var(--indigo), var(--glow-indigo);
}

.value-item i {
    color: var(--indigo);
    font-size: 0.95em;
    width: 20px;
    flex-shrink: 0;
}

.value-item span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9em;
}

/* ===============================
   SKILLS
=============================== */
.skill-category { margin-bottom: 28px; }

.skill-category h3 {
    color: var(--text-muted);
    font-size: 0.72em;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skill-item {
    margin-bottom: 16px;
    position: relative;
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88em;
}

.skill-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    width: 0;
    animation: fillBar 1.8s ease forwards;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.5), 0 0 3px rgba(34, 211, 238, 0.3);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

@keyframes fillBar { to { width: var(--width); } }

.skill-progress[data-progress="90"] { --width: 90%; }
.skill-progress[data-progress="85"] { --width: 85%; }
.skill-progress[data-progress="95"] { --width: 95%; }
.skill-progress[data-progress="88"] { --width: 88%; }
.skill-progress[data-progress="92"] { --width: 92%; }
.skill-progress[data-progress="87"] { --width: 87%; }

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 5px 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: default;
}

.badge:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.3);
    color: var(--indigo);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.2);
}

/* ===============================
   LANGUAGES
=============================== */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-primary);
}

.language-item:hover {
    border-color: rgba(129, 140, 248, 0.2);
    background: rgba(129, 140, 248, 0.04);
}

.language-level { display: flex; gap: 5px; }

.language-level i {
    color: var(--indigo);
    font-size: 0.68em;
    filter: drop-shadow(0 0 4px rgba(129, 140, 248, 0.6));
}

.language-level .far.fa-circle {
    color: var(--text-muted);
    filter: none;
}

/* ===============================
   TIMELINE
=============================== */
.timeline {
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--indigo), var(--purple), var(--cyan));
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 38px;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--indigo);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15), 0 0 20px rgba(129, 140, 248, 0.6);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(129,140,248,0.15), 0 0 15px rgba(129,140,248,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(129,140,248,0.08), 0 0 25px rgba(129,140,248,0.9); }
}

.timeline-content {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 26px;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Gradient border on hover via mask trick */
.timeline-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: var(--gradient-vibrant);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.timeline-content:hover::before { opacity: 1; }

.timeline-content:hover {
    transform: translateX(8px);
    background: var(--surface-3);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.timeline-date {
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.3em;
    margin-bottom: 5px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.timeline-content h4 {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 14px;
    font-weight: 500;
}

.timeline-content ul {
    list-style: none;
    margin: 14px 0;
}

.timeline-content li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.85em;
}

.tech-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tech-tags span {
    padding: 3px 11px;
    background: rgba(129, 140, 248, 0.07);
    border: 1px solid rgba(129, 140, 248, 0.14);
    border-radius: 100px;
    font-size: 0.77em;
    font-weight: 600;
    color: var(--indigo);
    letter-spacing: 0.2px;
}

/* ===============================
   EDUCATION
=============================== */
.education-grid { display: grid; gap: 18px; }

.education-item {
    display: flex;
    gap: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.education-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: var(--gradient-vibrant);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.education-item:hover::before { opacity: 1; }

.education-item:hover {
    background: var(--surface-3);
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.education-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35em;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(129, 140, 248, 0.3);
    transition: all 0.4s;
    color: white;
}

.education-item:hover .education-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 28px rgba(129, 140, 248, 0.5);
}

.education-content h3 {
    color: var(--text-primary);
    font-size: 1.05em;
    margin-bottom: 5px;
    font-weight: 700;
}

.education-school {
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.88em;
}

.education-year {
    color: var(--text-muted);
    font-size: 0.8em;
    margin-bottom: 7px;
}

.education-content p:last-child {
    font-size: 0.88em;
    color: var(--text-secondary);
}

/* ===============================
   PROJECT CARDS
=============================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ===============================
   PROJECT PREVIEW (browser mockup)
=============================== */
.project-preview {
    margin: -22px -22px 16px;
    height: 110px;
    background: var(--pg);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.preview-chrome {
    height: 26px;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
}

.pd {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pd:nth-child(1) { background: #FF5F57; }
.pd:nth-child(2) { background: #FFBD2E; }
.pd:nth-child(3) { background: #28CA41; }

.preview-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    height: 15px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-family: 'Space Grotesk', monospace;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.preview-body {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.preview-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.2));
}

.project-card:hover .preview-body {
    color: rgba(255, 255, 255, 0.75);
}

.project-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: var(--radius-md);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* Gradient border on hover */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: var(--gradient-vibrant);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

/* Ambient glow top-right */
.project-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

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

.project-card:hover::after {
    opacity: 1;
    transform: scale(1.8);
}

.project-card:hover {
    background: var(--surface-3);
    border-color: transparent;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(129, 140, 248, 0.1);
    transform: translateY(-4px);
}

.project-number {
    font-size: 2.8em;
    font-weight: 900;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.13;
    line-height: 1;
    margin-bottom: 10px;
    transition: all 0.4s;
    font-family: 'Space Grotesk', sans-serif;
}

.project-card:hover .project-number {
    opacity: 0.45;
    transform: scale(1.05);
}

.project-card h3 {
    color: var(--text-primary);
    font-size: 1.1em;
    margin-bottom: 9px;
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    font-size: 0.86em;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 3px 9px;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.14);
    border-radius: 100px;
    font-size: 0.74em;
    font-weight: 600;
    color: var(--indigo);
    transition: all 0.3s;
}

.project-card:hover .project-tech span {
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.28);
}

.project-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    font-size: 0.85em;
}

.project-link:hover {
    color: var(--cyan);
    gap: 12px;
}

.project-link i { transition: transform 0.3s; }
.project-link:hover i { transform: translateX(4px); }

/* ===============================
   CTA SECTION
=============================== */
.cta-section {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(129,140,248,0.07), transparent 55%),
        radial-gradient(ellipse at 75% 50%, rgba(34,211,238,0.05), transparent 55%);
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 14px;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.05em;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===============================
   BUTTONS
=============================== */
.btn-primary, .btn-outline {
    padding: 13px 34px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.94em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(129, 140, 248, 0.55), 0 0 20px rgba(129, 140, 248, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: var(--indigo);
}

.btn-outline:hover {
    background: rgba(129, 140, 248, 0.08);
    border-color: var(--indigo);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(129, 140, 248, 0.2);
}

/* Ensure CTA buttons are visible on dark CTA bg */
.cta-buttons .btn-primary { background: var(--gradient); color: white; }

/* ===============================
   FOOTER
=============================== */
.cv-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 34px 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

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

.footer-logo {
    width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 0.9em;
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.35);
    font-family: 'Space Grotesk', sans-serif;
}

.footer-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05em;
}

.footer-links { display: flex; gap: 10px; }

.footer-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.05em;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-links a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(129, 140, 248, 0.35);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8em;
}

/* ===============================
   BACK TO TOP BUTTON
=============================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(18px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.45);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(129, 140, 248, 0.65);
}

/* ===============================
   RESPONSIVE — PERFECT
=============================== */

/* ── 1400px : légère compression ── */
@media (max-width: 1400px) {
    .cv-header { padding: 40px 50px 36px; }
    .cv-sidebar { padding: 46px 30px; }
    .cv-main   { padding: 46px 44px; }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 1200px : sidebar passe en pleine largeur ── */
@media (max-width: 1200px) {
    .cv-content { grid-template-columns: 1fr; }

    /* Sidebar en grille horizontale 3 colonnes */
    .cv-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 36px 44px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }

    /* Section profil prend 2 colonnes */
    .cv-sidebar .cv-section:first-child {
        grid-column: 1 / 2;
    }

    .cv-sidebar .cv-section:nth-child(2) {
        grid-column: 2 / 3;
    }

    .cv-sidebar .cv-section:nth-child(3) {
        grid-column: 3 / 4;
    }

    .cv-main { padding: 44px 44px; }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }

    /* Header non sticky sous 1200px pour ne pas écraser le contenu */
    .cv-header { position: relative; }
}

/* ── 1024px : tablet paysage ── */
@media (max-width: 1024px) {
    .cv-header { padding: 32px 36px 28px; }
    .header-content { gap: 32px; }

    .glitch { font-size: 3.4em; }
    .typing-effect { font-size: 1.4em; }

    .profile-image { width: 140px; height: 140px; }
    .profile-ring:nth-child(2) { width: 162px; height: 162px; }
    .profile-ring:nth-child(3) { width: 182px; height: 182px; }
    .profile-initial { font-size: 2.8em; }

    .cv-sidebar {
        padding: 32px 36px;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .cv-main { padding: 38px 36px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav responsive */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-cta   { display: none; }
    .nav-burger { display: flex; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 16px; }
    .nav-logo-name { display: none; }
}

/* ── 768px : mobile landscape / petite tablette ── */
@media (max-width: 768px) {
    /* Header redevient simple colonne centré */
    .cv-header {
        padding: 24px 20px 20px;
        position: relative;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-image { width: 110px; height: 110px; }
    .profile-ring:nth-child(2) { width: 128px; height: 128px; }
    .profile-ring:nth-child(3) { width: 146px; height: 146px; }
    .profile-initial { font-size: 2.2em; }

    .status-bar { margin: 0 auto 24px; }

    .glitch { font-size: 2.2em; letter-spacing: -1px; }
    .typing-effect { font-size: 1.1em; margin-bottom: 14px; }
    .tagline { font-size: 0.9em; max-width: 100%; margin-bottom: 18px; }
    .tech-stack-header { justify-content: center; }

    /* Stats bar reste horizontale mais plus compacte */
    .stats-bar { margin: 24px 0; }
    .stat-item { padding: 18px 10px; }
    .stat-number { font-size: 2.2em; }
    .stat-label { font-size: 0.75em; }

    /* Contact bar en colonne */
    .contact-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 16px;
        margin-top: 20px;
    }
    .contact-item { justify-content: center; }
    .cta-contact { text-align: center; }

    /* Sidebar repasse en 1 colonne simple */
    .cv-sidebar {
        display: block;
        padding: 28px 20px;
        border-bottom: 1px solid var(--border);
    }

    .cv-main { padding: 28px 20px; }

    /* Timeline */
    .timeline { padding-left: 22px; }
    .timeline-dot { left: -28px; width: 8px; height: 8px; }
    .timeline-content { padding: 20px; }
    .timeline-content h3 { font-size: 1.15em; }

    /* Education */
    .education-item { flex-direction: column; gap: 14px; }

    /* Projets en 2 colonnes sur mobile paysage */
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* CTA */
    .cta-section { padding: 50px 20px; }
    .cta-content h2 { font-size: 1.7em; }
    .cta-content p { font-size: 0.95em; }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-primary, .btn-outline { width: 100%; max-width: 280px; justify-content: center; }

    /* Footer */
    .cv-footer { padding: 28px 20px; }

    /* Cursor */
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }

    /* Back to top */
    .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 0.9em; }
}

/* ── 480px : mobile portrait ── */
@media (max-width: 480px) {
    .cv-header { padding: 20px 16px 16px; }

    .glitch { font-size: 1.75em; letter-spacing: -0.5px; }
    .typing-effect { font-size: 1em; }
    .tagline { font-size: 0.86em; }

    .profile-image { width: 90px; height: 90px; }
    .profile-ring:nth-child(2) { width: 106px; height: 106px; }
    .profile-ring:nth-child(3) { width: 122px; height: 122px; }
    .profile-initial { font-size: 1.8em; }

    /* Stats empilées */
    .stats-bar { flex-direction: column; }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 14px 20px;
    }
    .stat-item:last-child { border-bottom: none; }
    .stat-number { font-size: 2em; }

    /* Projets en 1 colonne */
    .projects-grid { grid-template-columns: 1fr; }

    .cv-sidebar, .cv-main { padding: 22px 16px; }

    .section-title { font-size: 0.68em; }

    .timeline-content { padding: 16px; }
    .timeline-content h3 { font-size: 1.05em; }
    .timeline-content li { font-size: 0.85em; }

    .cta-section { padding: 40px 16px; }
    .cta-content h2 { font-size: 1.35em; }

    .cv-footer { padding: 22px 16px; }

    .tech-tag { padding: 6px 14px; font-size: 0.82em; }
}

/* ===============================
   ARTICLES GRID
=============================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.article-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s, border-color 0.35s;
}

.article-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ac);
    opacity: 0.8;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0,0,0,.5), 0 0 24px rgba(129,140,248,.1);
    border-color: var(--border-bright);
}

.article-card-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 11px;
    border-radius: 100px;
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--tc);
    background: var(--tbg);
    border: 1px solid var(--tborder);
}

.article-card h3 {
    font-size: 0.97em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
}

.article-card p {
    font-size: 0.82em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.article-card-cta {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, gap 0.2s;
    margin-top: 4px;
}

.article-card:hover .article-card-cta {
    color: var(--cyan);
    gap: 10px;
}

@media (max-width: 1400px) {
    .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ===============================
   VIDEO BLOG SECTION
=============================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 56px rgba(0,0,0,0.55), 0 0 32px rgba(129,140,248,0.12);
    border-color: var(--border-bright);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: var(--bg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 11px;
    border-radius: 100px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: rgba(129,140,248,0.1);
    border: 1px solid rgba(129,140,248,0.25);
    color: var(--indigo);
}

.video-tag--kata {
    background: rgba(168,85,247,0.1);
    border-color: rgba(168,85,247,0.25);
    color: var(--purple);
}

.video-info h3 {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    font-family: 'Space Grotesk', sans-serif;
}

.video-info p {
    font-size: 0.84em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive videos grid */
@media (max-width: 768px) {
    .videos-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
    .videos-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ===============================
   PRINT STYLES
=============================== */
@media print {
    body {
        background: white;
        color: #111;
        cursor: auto;
    }
    .cv-container {
        box-shadow: none;
        background: white;
    }
    .cursor-dot, .cursor-outline, #particles-js,
    .cv-footer, .scroll-progress-bar, .back-to-top {
        display: none !important;
    }
    .cv-header, .cv-sidebar, .cv-main,
    .timeline-content, .education-item, .project-card {
        background: white !important;
        border-color: #ddd !important;
    }
    .section-title, .timeline-content h3,
    .education-content h3, .project-card h3 {
        color: #111 !important;
    }
    .glitch, .stat-number, .cta-content h2 {
        -webkit-text-fill-color: #222 !important;
        background: none !important;
        color: #222 !important;
    }
    .cv-header { position: static; }
}
