﻿/* Cheikh Mbacke Diop — Portfolio Styles */


/* Reset & Variables */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

:root {
    --bg: #07090f;
    --card: rgba(255, 255, 255, 0.04);
    --card-hv: rgba(255, 255, 255, 0.07);
    --text: #f1f5f9;
    --text2: #8b9ab0;
    --accent: #8b5cf6;
    --accent2: #a855f7;
    --green: #10b981;
    --border: rgba(255, 255, 255, 0.07);
    --border-a: rgba(139, 92, 246, 0.3);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --r: 18px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Background orbs */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.orb-1 {
    width: 600px;
    height: 600px;
    left: -100px;
    top: 5%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 65%);
    animation: orb-drift-1 22s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    right: -80px;
    top: 25%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 65%);
    animation: orb-drift-2 28s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    left: 35%;
    top: 55%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 65%);
    animation: orb-drift-3 18s ease-in-out infinite;
}

@keyframes orb-drift-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -40px) scale(1.06);
    }

    66% {
        transform: translate(-25px, 30px) scale(0.96);
    }
}

@keyframes orb-drift-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(-40px, 30px) scale(1.04);
    }

    70% {
        transform: translate(30px, -20px) scale(0.97);
    }
}

@keyframes orb-drift-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(25px, 35px) scale(1.05);
    }
}

#bg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.35);
    border-radius: 99px;
}

section {
    padding: 110px 8%;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.label::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
}

.label-c {
    justify-content: center;
}

h2.stitle {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 14px;
}

h2.stitle span,
h2.stitle-g {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2.stitle-c {
    text-align: center;
}

.sub {
    color: var(--text2);
    font-size: 0.97rem;
    line-height: 1.85;
    max-width: 560px;
    margin-bottom: 52px;
}

.sub-c {
    margin: 0 auto 52px;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    height: 72px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    background: rgba(7, 9, 15, 0.82);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

nav.up {
    border-color: var(--border);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

nav.up::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    opacity: 0.5;
}

/* Logo */
.logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text2);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    position: relative;
    padding: 6px 13px;
    border-radius: 8px;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(139, 92, 246, 0.09);
}

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

/* Resume button */
.nav-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-left: 10px;
}

.nav-cv::after {
    display: none !important;
}

.nav-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.7);
}

@keyframes dl-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }
}

.nav-cv:hover .nav-dl-ico,
.btn-solid:hover .nav-dl-ico {
    animation: dl-bounce 0.65s ease-in-out infinite;
}

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

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.burger.on span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.on span:nth-child(2) {
    opacity: 0;
}

.burger.on span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mob {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(7, 9, 15, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px 8%;
    z-index: 998;
    flex-direction: column;
    gap: 16px;
}

.mob.on {
    display: flex;
}

.mob a {
    text-decoration: none;
    color: var(--text2);
    font-size: 0.97rem;
    font-weight: 500;
    transition: color 0.2s;
}

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


/* Hero */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 68px 8% 60px;
}

.hero-inner {
    max-width: 580px;
    flex-shrink: 0;
}


/* Avatar */

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-right: 4%;
}

.av-wrap {
    position: relative;
    width: 590px;
    height: 545px;
    margin-left: 0;
}

/* Glow effect */
.av-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 50%;
    left: 56%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 65%);
    filter: blur(60px);
    pointer-events: none;
    animation: glow-breathe 4s ease-in-out infinite;
}


/* Keyframes */
@keyframes glow-breathe {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Terminal card */
.av-term-card {
    position: absolute;
    width: 308px;
    height: 418px;
    background: rgba(6, 8, 14, 0.97);
    border: 1px solid rgba(139, 92, 246, 0.32);
    border-radius: 22px;
    top: 38px;
    left: 232px;
    transform: rotate(-2deg);
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.1);
    transition: transform 0.5s ease, box-shadow 0.4s ease;
}

.av-term-card:hover {
    transform: rotate(0deg) translateX(28px);
    z-index: 4;
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(139, 92, 246, 0.18),
        0 0 55px rgba(139, 92, 246, 0.25);
}

/* Terminal active state */
.av-term-card.tc-active {
    transform: rotate(-7deg) translateX(-214px) !important;
    z-index: 4 !important;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(139, 92, 246, 0.18),
        0 0 55px rgba(139, 92, 246, 0.26) !important;
}

.av-tbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.av-tdot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.av-td-r {
    background: #ff5f57;
}

.av-td-y {
    background: #febc2e;
}

.av-td-g {
    background: #28c840;
}

.av-ttitle {
    font-family: 'Fira Code', monospace;
    font-size: 0.63rem;
    color: rgba(255, 255, 255, 0.27);
    margin: 0 auto;
    letter-spacing: 0.3px;
}

.av-tbody {
    padding: 11px 13px;
    font-family: 'Fira Code', monospace;
    font-size: 0.67rem;
    line-height: 1.88;
}

/* Lines revealed by JS typing */
.av-tl {
    display: block;
    opacity: 0;
}

.av-tp {
    color: #a78bfa;
}

.av-tc {
    color: #e2e8f0;
}

.av-to {
    color: #8b9ab0;
}

.av-tk {
    color: #c4b5fd;
}

.av-ts {
    color: #6ee7b7;
}

.av-tcur {
    display: inline-block;
    width: 6px;
    height: 0.84em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink-cur 0.8s step-end infinite;
}

/* Ghost card */
.av-bg-card {
    position: absolute;
    width: 322px;
    height: 424px;
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.09), rgba(168, 85, 247, 0.03));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    top: 46px;
    left: 4px;
    transform: rotate(-11deg);
    z-index: 1;
}

/* Photo frame */
.av-frame {
    position: absolute;
    width: 322px;
    height: 424px;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(139, 92, 246, 0.12);
    top: 58px;
    left: 18px;
    z-index: 2;
    animation: av-float 5s ease-in-out infinite;
}

.av-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.6) 50%, transparent 90%);
    z-index: 4;
    pointer-events: none;
}

.av-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 5%;
}

/* Dot grids */
.av-dots {
    position: absolute;
    background-image: radial-gradient(circle, rgba(139, 92, 246, 0.56) 1.5px, transparent 1.5px);
    background-size: 13px 13px;
    pointer-events: none;
    z-index: 4;
}

.av-dots-tr {
    width: 92px;
    height: 92px;
    top: 2px;
    right: 2px;
}

.av-dots-bl {
    width: 72px;
    height: 72px;
    bottom: 38px;
    left: 4px;
}

/* Geometric decorations */
.av-geo {
    position: absolute;
    pointer-events: none;
    z-index: 4;
}

.av-geo-1 {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.68);
    border-radius: 5px;
    bottom: 120px;
    left: 8px;
    animation: geo-orbit 9s linear infinite;
}

@keyframes geo-orbit {
    from {
        transform: rotate(15deg);
    }

    to {
        transform: rotate(375deg);
    }
}

.av-geo-2 {
    width: 10px;
    height: 10px;
    background: rgba(139, 92, 246, 0.62);
    border-radius: 3px;
    bottom: 90px;
    left: 38px;
    animation: geo-pulse 3s ease-in-out infinite;
}

.av-geo-3 {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(168, 85, 247, 0.65);
    border-radius: 50%;
    top: 54px;
    right: 8px;
    animation: geo-pulse 4s ease-in-out infinite 1s;
}

.av-geo-4 {
    width: 8px;
    height: 8px;
    background: rgba(168, 85, 247, 0.68);
    border-radius: 50%;
    top: 80px;
    right: 30px;
    animation: geo-pulse 3.5s ease-in-out infinite 0.5s;
}

.av-geo-5 {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.75), transparent);
    border-radius: 2px;
    top: 166px;
    left: 6px;
    animation: geo-pulse 5s ease-in-out infinite 2s;
}

.av-geo-6 {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.75), transparent);
    border-radius: 2px;
    top: 140px;
    left: 18px;
    animation: geo-pulse 5s ease-in-out infinite 1s;
}

@keyframes geo-pulse {

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

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

@keyframes av-float {

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

    50% {
        transform: rotate(-7deg) translateY(-10px);
    }
}

@keyframes av-float-mob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes av-ring-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 6px rgba(139, 92, 246, 0.08),
            0 0 24px rgba(139, 92, 246, 0.45),
            0 0 52px rgba(139, 92, 246, 0.18);
    }
    50% {
        box-shadow:
            0 0 0 11px rgba(139, 92, 246, 0.14),
            0 0 38px rgba(139, 92, 246, 0.62),
            0 0 75px rgba(139, 92, 246, 0.28);
    }
}

@media(max-width: 960px) {
    .hero-visual {
        display: none;
    }

    .hero-inner {
        max-width: 720px;
    }

    #hero {
        justify-content: flex-start;
        min-height: unset;
    }
}

/* Terminal dot styles */
.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.t-dot-r {
    background: #ff5f57;
}

.t-dot-y {
    background: #febc2e;
}

.t-dot-g {
    background: #28c840;
}

.t-title {
    font-size: 0.72rem;
    color: var(--text2);
    font-weight: 500;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

.t-body {
    padding: 22px 24px;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    line-height: 2;
    min-height: 260px;
}

.t-line {
    display: block;
    white-space: pre;
}

.t-cur {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink-cur 0.8s step-end infinite;
    margin-left: 2px;
}

/* Git log */
.git-log {
    padding: 18px 20px;
    line-height: 1.85;
}

@keyframes gl-in {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gl-row {
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.76rem;
    white-space: nowrap;
}

.gl-row.show {
    animation: gl-in 0.25s ease forwards;
}

.gl-sym {
    color: var(--accent);
    min-width: 16px;
    font-weight: 700;
}

.gl-sym-pipe {
    color: #60a5fa;
}

.gl-sym-merge {
    color: #34d399;
}

.gl-hash {
    color: #546e7a;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
}

.gl-msg {
    color: var(--text2);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-msg-hi {
    color: var(--text);
}

.gl-tag {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.gl-tag-main {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.gl-tag-backend {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.gl-tag-frontend {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.gl-tag-devops {
    color: #fdba74;
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.08;
    margin-bottom: 16px;
}

.hero-title .accent-line {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    padding-bottom: 6px;
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text2);
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 1.4em;
}

.typed-word {
    color: var(--text);
    display: inline-block;
}

.cursor {
    display: none;
}

.hero-desc {
    font-size: 0.97rem;
    color: var(--text2);
    line-height: 1.85;
    max-width: 540px;
    margin-bottom: 28px;
}

.hero-desc strong {
    color: var(--text);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.chip {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text2);
    transition: 0.2s;
}

.chip:hover {
    border-color: var(--border-a);
    color: var(--text);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(139, 92, 246, 0.65);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    border: 1px solid var(--border-a);
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-socials {
    display: flex;
    gap: 10px;
}

.soc-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text2);
    font-size: 0.95rem;
    transition: 0.25s;
}

.soc-btn:hover {
    border-color: var(--border-a);
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(139, 92, 246, 0.08);
}

.gh-mark {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: invert(1) opacity(0.55);
    transition: filter 0.25s;
}

.soc-btn:hover .gh-mark {
    filter: invert(58%) sepia(60%) saturate(700%) hue-rotate(222deg) brightness(105%);
}

.sfx a:hover .gh-mark {
    filter: invert(58%) sepia(60%) saturate(700%) hue-rotate(222deg) brightness(105%);
}

.mail-mark {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: invert(1) opacity(0.55);
    transition: filter 0.25s;
}

.soc-btn:hover .mail-mark {
    filter: invert(58%) sepia(60%) saturate(700%) hue-rotate(222deg) brightness(105%);
}

.sfx a:hover .mail-mark {
    filter: invert(58%) sepia(60%) saturate(700%) hue-rotate(222deg) brightness(105%);
}

.li-mark {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: invert(1) opacity(0.55);
    transition: filter 0.25s;
}

.soc-btn:hover .li-mark,
.sfx a:hover .li-mark {
    filter: invert(58%) sepia(60%) saturate(700%) hue-rotate(222deg) brightness(105%);
}

.contact-link-btn:hover .li-mark {
    filter: invert(58%) sepia(60%) saturate(700%) hue-rotate(222deg) brightness(105%);
}

.li-mark-contact {
    width: 18px;
    height: 18px;
    filter: invert(1) opacity(0.8);
}


/* About */

#about {
    text-align: center;
}

.about-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.about-body {
    color: var(--text2);
    font-weight: 900;
    font-size: 0.97rem;
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto 32px;
}

.about-body strong {
    color: var(--text);
}

.about-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Stats cards */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}

.asc {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    text-align: left;
    position: relative;
    transition: 0.3s;
    cursor: default;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.asc:hover {
    border-color: var(--border-a);
    background: var(--card-hv);
    transform: translateY(-3px);
}

.asc-top {
    margin-bottom: 12px;
}

.asc-num {
    font-size: 3.6rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.asc-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 5px;
}

.asc-desc {
    font-size: 0.78rem;
    color: var(--text2);
}

.asc-arrow {
    position: absolute;
    bottom: 18px;
    right: 18px;
    font-size: 0.72rem;
    color: var(--text2);
    opacity: 0.4;
    transition: 0.2s;
}

.asc:hover .asc-arrow {
    opacity: 1;
    color: var(--accent);
}

@media(max-width: 700px) {
    .about-stats {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    border: 1px solid var(--border-a);
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}


.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    margin: 0 8%;
    overflow: hidden;
    position: relative;
}

.stats-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}

.ss {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background 0.3s;
}

.ss:last-child {
    border-right: none;
}

.ss:hover {
    background: var(--card-hv);
}

.ss-num {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ss-lbl {
    color: var(--text2);
    font-size: 0.76rem;
    font-weight: 500;
    margin-top: 6px;
}


/* Skills */


#skills {
    text-align: center;
    position: relative;
    overflow: hidden;
}

#skills-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.wid-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.wid-orb-1 {
    width: 580px;
    height: 580px;
    top: -150px;
    left: -140px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.13) 0%, transparent 70%);
    animation: wid-drift-1 22s ease-in-out infinite;
}

.wid-orb-2 {
    width: 460px;
    height: 460px;
    bottom: -110px;
    right: -110px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: wid-drift-2 28s ease-in-out infinite;
}

.wid-orb-3 {
    width: 320px;
    height: 320px;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    animation: wid-drift-1 16s ease-in-out infinite reverse;
}

@keyframes wid-drift-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(44px, -28px) scale(1.06);
    }

    70% {
        transform: translate(-22px, 18px) scale(0.96);
    }
}

@keyframes wid-drift-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    35% {
        transform: translate(-38px, 26px) scale(1.05);
    }

    68% {
        transform: translate(26px, -16px) scale(0.97);
    }
}

.wid-header {
    position: relative;
    z-index: 1;
    margin-bottom: 68px;
}

/* Grid */
.wid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    align-items: start;
}

/* Card wrapper */
.wid-card {
    position: relative;
    padding: 1px;
    border-radius: 26px;
    background: linear-gradient(140deg,
            rgba(139, 92, 246, 0.24),
            rgba(168, 85, 247, 0.12),
            rgba(139, 92, 246, 0.06));
    cursor: default;
    opacity: 0;
    transform: translateY(38px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.45s ease,
        box-shadow 0.45s ease;
}

.wid-card.wid-in {
    opacity: 1;
    transform: none;
}

.wid-card:hover {
    background: linear-gradient(140deg,
            rgba(139, 92, 246, 0.78),
            rgba(168, 85, 247, 0.62),
            rgba(99, 102, 241, 0.50));
    transform: scale(1.03) translateY(-6px);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 70px rgba(139, 92, 246, 0.24),
        0 0 0 1px rgba(139, 92, 246, 0.14);
}

/* Inner panel */
.wid-inner {
    background: rgba(9, 7, 22, 0.94);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border-radius: 25px;
    padding: 52px 40px 44px;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.45s ease;
}

.wid-card:hover .wid-inner {
    background: rgba(12, 8, 30, 0.97);
}

/* Cursor spotlight */
.wid-spot {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.11) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.wid-card:hover .wid-spot {
    opacity: 1;
}

/* Watermark number */
.wid-num {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 6.2rem;
    font-weight: 900;
    letter-spacing: -7px;
    line-height: 1;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.15) 0%,
            rgba(139, 92, 246, 0.02) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    z-index: 0;
    transition: background 0.4s ease;
}

.wid-card:hover .wid-num {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.34) 0%,
            rgba(168, 85, 247, 0.08) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon wrapper */
.wid-icon-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 30px;
    z-index: 1;
    animation: wid-icon-float 3.4s ease-in-out infinite;
}

.wid-icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.17), rgba(168, 85, 247, 0.09));
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition:
        transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.wid-card:hover .wid-icon-bg {
    transform: scale(1.14) rotate(-6deg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(168, 85, 247, 0.2));
    border-color: rgba(139, 92, 246, 0.65);
    box-shadow:
        0 0 44px rgba(139, 92, 246, 0.42),
        0 0 0 1px rgba(139, 92, 246, 0.44);
}

.wid-icon-svg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.wid-icon-svg svg {
    width: 40px;
    height: 40px;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.wid-card:hover .wid-icon-svg svg {
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.95));
    transform: scale(1.12);
}

/* Card title */
.wid-title {
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 9px;
    line-height: 1.22;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.wid-card:hover .wid-title {
    background: linear-gradient(135deg, #fff 0%, #e2d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Accent divider line */
.wid-line {
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    margin: 0 auto 18px;
    position: relative;
    z-index: 1;
    transition: width 0.5s ease, box-shadow 0.5s ease;
}

.wid-card:hover .wid-line {
    width: 78px;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.7);
}

/* Description */
.wid-desc {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.84;
    min-height: 104px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.wid-card:hover .wid-desc {
    color: rgba(190, 180, 220, 1);
}

/* Card bottom section */
.wid-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mini highlight badge */
.wid-highlight {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.14);
    font-size: 0.67rem;
    font-weight: 600;
    color: rgba(139, 92, 246, 0.65);
    letter-spacing: 0.4px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.wid-highlight::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 7px rgba(139, 92, 246, 0.9);
    animation: wid-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes wid-dot-pulse {

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

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

.wid-card:hover .wid-highlight {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.34);
    color: #c4b5fd;
}

/* Skills area */
.wid-skills {
    max-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.wid-card:hover .wid-skills {
    max-height: 420px;
}

.wid-skills-sep {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    margin-bottom: 16px;
    margin-top: 6px;
}

.wid-skills-label {
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--text2);
    opacity: 0.36;
    margin-bottom: 12px;
}

/* Pill tags */
.wid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.wid-tag {
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.07);
    border: 1px solid rgba(139, 92, 246, 0.17);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(139, 92, 246, 0.84);
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.wid-card:hover .wid-tag {
    opacity: 1;
    transform: none;
    background: rgba(139, 92, 246, 0.13);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}

/* List-style tags */
.wid-tags--list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    justify-items: start;
}

.wid-tags--list .wid-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 0.69rem;
    font-weight: 500;
    color: rgba(170, 160, 210, 0.82);
    letter-spacing: 0.15px;
}

.wid-tags--list .wid-tag::before {
    content: '';
    width: 4px;
    height: 4px;
    min-width: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.7);
    flex-shrink: 0;
}

.wid-card:hover .wid-tags--list .wid-tag {
    color: rgba(195, 185, 228, 0.95);
    background: none;
    border: none;
}

.wid-tags--list .wid-tag:hover {
    color: #c4b5fd !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateX(3px) !important;
}

/* Staggered tag reveal */
.wid-card:hover .wid-tag:nth-child(1)  { transition-delay:  65ms; }
.wid-card:hover .wid-tag:nth-child(2)  { transition-delay: 105ms; }
.wid-card:hover .wid-tag:nth-child(3)  { transition-delay: 145ms; }
.wid-card:hover .wid-tag:nth-child(4)  { transition-delay: 185ms; }
.wid-card:hover .wid-tag:nth-child(5)  { transition-delay: 225ms; }
.wid-card:hover .wid-tag:nth-child(6)  { transition-delay: 265ms; }
.wid-card:hover .wid-tag:nth-child(7)  { transition-delay: 305ms; }
.wid-card:hover .wid-tag:nth-child(8)  { transition-delay: 345ms; }
.wid-card:hover .wid-tag:nth-child(9)  { transition-delay: 385ms; }
.wid-card:hover .wid-tag:nth-child(10) { transition-delay: 425ms; }

.wid-tag:hover {
    transform: scale(1.06) !important;
    background: rgba(139, 92, 246, 0.22) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.28) !important;
}

/* Idle animations */

/* Shimmer sweep */
@keyframes wid-shimmer {
    0% {
        transform: translateX(-130%) skewX(-12deg);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    55% {
        opacity: 1;
    }

    75%,
    100% {
        transform: translateX(260%) skewX(-12deg);
        opacity: 0;
    }
}

.wid-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 42%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(139, 92, 246, 0.045) 50%,
            transparent 100%);
    animation: wid-shimmer 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Stagger shimmer per card so they don't sync */
.wid-card:nth-child(2) .wid-inner::before {
    animation-delay: 2s;
}

.wid-card:nth-child(3) .wid-inner::before {
    animation-delay: 4s;
}

/* Hide shimmer on hover */
.wid-card:hover .wid-inner::before {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Icon float */
@keyframes wid-icon-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.wid-card:nth-child(2) .wid-icon-wrap {
    animation-delay: 0.9s;
}

.wid-card:nth-child(3) .wid-icon-wrap {
    animation-delay: 1.8s;
}

/* Stop float on hover */
.wid-card:hover .wid-icon-wrap {
    animation: none;
}

/* Tablet grid */
@media(max-width: 1024px) {
    .wid-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    /* Toutes les cartes : supprimer le min-height et le margin-top auto
       pour que chaque carte soit à sa hauteur naturelle */
    .wid-desc   { min-height: 0; }
    .wid-bottom { margin-top: 0; }

    .wid-card:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 24px) / 2);
        margin: 0 auto;
    }
}

/* Mobile grid */
@media(max-width: 680px) {
    .wid-grid {
        grid-template-columns: 1fr;
    }

    .wid-card:last-child {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
    }

    .wid-inner {
        padding: 36px 26px 32px;
    }
}

/* Reduced motion */
@media(prefers-reduced-motion: reduce) {
    .wid-card {
        opacity: 1 !important;
        transform: none !important;
        transition: background 0.3s, box-shadow 0.3s !important;
    }

    .wid-card:hover {
        transform: none !important;
    }

    .wid-icon-bg,
    .wid-line,
    .wid-icon-svg svg {
        transition: none !important;
    }

    .wid-orb-1,
    .wid-orb-2,
    .wid-orb-3 {
        animation: none !important;
    }

    .wid-highlight::before {
        animation: none !important;
        opacity: 1;
    }

    .wid-skills {
        max-height: 420px !important;
    }

    .wid-tag {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* Portfolio */

#showcase {
    text-align: center;
}

.showcase-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.showcase-sub {
    color: var(--text2);
    font-size: 0.97rem;
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto 44px;
}

.tab-bar {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto 44px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 5px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text2);
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: rgba(139, 92, 246, 0.18);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* Tech Stack */
/* Tech Stack grid */
.ts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.ts-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    transition: 0.3s;
    cursor: default;
    width: 130px;
    flex-shrink: 0;
}

.ts-card:hover {
    border-color: var(--border-a);
    background: rgba(139, 92, 246, 0.07);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ts-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: transform 0.3s;
}

.ts-card:hover img {
    transform: scale(1.1);
}

.ts-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text2);
    transition: color 0.3s;
}

.ts-card:hover span {
    color: var(--text);
}


/* Certifications */
/* Certificates grid — same format as ts-grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card {
    background: transparent;
    border: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: default;
    animation: cert-float 3s ease-in-out infinite;
}

.cert-card:hover {
    animation-play-state: paused;
}

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

.cert-card img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    transition: transform 0.3s;
}

.cert-card:hover img {
    transform: scale(2.1);
}

.cert-card-name {
    display: none;
}

.cert-card:hover .cert-card-name {
    color: var(--text);
}

/* Coming soon tabs */
.coming-soon {
    padding: 60px 20px;
    text-align: center;
}

.coming-soon i {
    font-size: 2.5rem;
    color: var(--border-a);
    margin-bottom: 16px;
    display: block;
}

.coming-soon p {
    color: var(--text2);
    font-size: 0.9rem;
}

.coming-soon strong {
    color: var(--accent);
}


/* Experience */

.zz {
    position: relative;
    max-width: 1020px;
    margin: 0 auto;
}

.zz-line {
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.zz-row {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s, transform 0.5s;
}

.zz-row.in {
    opacity: 1;
    transform: none;
}

.zz-row.left .exp-card {
    grid-column: 1;
    grid-row: 1;
    margin-right: 14px;
}

.zz-row.left .dot-col {
    grid-column: 2;
    grid-row: 1;
}

.zz-row.left .spacer {
    grid-column: 3;
    grid-row: 1;
}

.zz-row.right .spacer {
    grid-column: 1;
    grid-row: 1;
}

.zz-row.right .dot-col {
    grid-column: 2;
    grid-row: 1;
}

.zz-row.right .exp-card {
    grid-column: 3;
    grid-row: 1;
    margin-left: 14px;
}

.dot-col {
    display: flex;
    justify-content: center;
    padding-top: 22px;
}

.zz-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.7);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.zz-row.right .zz-dot {
    background: var(--accent2);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

.exp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 26px 28px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: 0.3s;
}

.exp-card:hover {
    border-color: var(--border-a);
    background: var(--card-hv);
    transform: translateY(-3px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.exp-role {
    font-size: 1rem;
    font-weight: 700;
}

.exp-badge {
    font-size: 0.71rem;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-a);
    color: var(--accent);
    white-space: nowrap;
}

.exp-co {
    color: var(--accent);
    font-size: 0.87rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.exp-period {
    color: var(--text2);
    font-size: 0.76rem;
    margin-bottom: 13px;
}

.exp-desc {
    color: var(--text2);
    font-size: 0.85rem;
    line-height: 1.78;
    margin-bottom: 15px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--text);
    transition: 0.2s;
}

.tag:hover {
    background: #2d1260;
    border-color: rgba(168, 85, 247, 0.55);
    color: var(--text);
}

@media(max-width:700px) {
    .zz-line {
        left: 18px;
        transform: none;
    }

    .zz-row {
        grid-template-columns: 38px 1fr !important;
        margin-bottom: 28px;
    }

    .zz-row .exp-card {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 0 0 8px !important;
    }

    .zz-row .dot-col {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .zz-row .spacer {
        display: none !important;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .exp-badge {
        background: transparent;
        border: none;
        padding: 0;
        font-size: 0.75rem;
    }
}


/* Education */

#education {
    text-align: center;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
}

.edu-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px 26px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.edu-card:hover {
    border-color: var(--border-a);
    background: var(--card-hv);
    transform: translateY(-4px);
}

.edu-ico {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 18px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border-a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
}

.edu-period {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.edu-deg {
    font-size: 0.97rem;
    font-weight: 800;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edu-uni {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.edu-loc {
    color: var(--text2);
    font-size: 0.78rem;
    font-weight: 400;
}

.edu-ico img {
    width: 34px;
    height: 34px;
    filter: invert(1);
}


/* Contact */

#contact {
    text-align: center;
}

.contact-card {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.mob-br {
    display: none;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-card>p {
    color: var(--text2);
    font-size: 0.88rem;
    margin-bottom: 28px;
    text-align: center;
}

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

.cf-row {
    display: flex;
    gap: 12px;
}

.cf-input-wrap {
    position: relative;
    flex: 1;
}

.cf-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text2);
    font-size: 0.8rem;
    pointer-events: none;
}

.cf-input-wrap.msg i {
    top: 16px;
    transform: none;
}

.cf input,
.cf textarea {
    width: 100%;
    padding: 13px 14px 13px 38px;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    resize: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.cf input::placeholder,
.cf textarea::placeholder {
    color: var(--text2);
}

.cf input:focus,
.cf textarea:focus {
    border-color: var(--border-a);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.cf textarea {
    height: 120px;
    padding-top: 13px;
}

.cf-send {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
    margin-top: 4px;
}

.cf-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(139, 92, 246, 0.6);
}

.cf-send:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.cf-error {
    display: block;
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 5px;
    min-height: 18px;
}

.cf input.invalid,
.cf textarea.invalid {
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.cf-feedback {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
}

.cf-feedback.success {
    color: #34d399;
}

.cf-feedback.error {
    color: #f87171;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.contact-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text2);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: 0.25s;
}

.contact-link-btn i {
    font-size: 1.05rem;
    color: var(--accent);
}

.ci-mail-ico {
    font-size: 1.1rem !important;
    color: var(--accent) !important;
}

.contact-link-btn:hover {
    border-color: var(--border-a);
    color: var(--text);
    transform: translateY(-2px);
}


/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 24px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text2);
    text-align: center;
}

footer strong {
    color: var(--text);
}

.ft-btn {
    background: none;
    border: none;
    color: var(--text2);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

/* Fixed elements */
.sfx {
    position: fixed;
    right: 20px;
    bottom: 26px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sfx a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text2);
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.sfx a:hover {
    color: var(--accent);
    border-color: var(--border-a);
    transform: translateY(-4px);
}

.to-top {
    position: fixed;
    left: 20px;
    bottom: 26px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    overflow: visible;
}

.to-top.show {
    opacity: 1;
    pointer-events: all;
}

.to-top:hover {
    transform: translateY(-8px);
    background: transparent;
}

@keyframes rocket-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.rocket-mark {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: invert(1) opacity(0.85);
    animation: rocket-float 2.2s ease-in-out infinite;
    transition: filter 0.25s;
}

.to-top:hover .rocket-mark {
    filter: invert(58%) sepia(60%) saturate(700%) hue-rotate(222deg) brightness(105%);
}

/* Launch animation */
@keyframes rocket-launch {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-240px);
        opacity: 0;
    }
}

.to-top.launching .rocket-mark {
    animation: rocket-launch 0.28s cubic-bezier(0.3, 0, 1, 1) forwards !important;
    filter: invert(58%) sepia(60%) saturate(700%) hue-rotate(222deg) brightness(120%) !important;
}

.rkt-flame {
    position: absolute;
    left: 50%;
    bottom: 2px;
    border-radius: 50% 50% 30% 30%;
    pointer-events: none;
    filter: blur(1.5px);
    transform-origin: top center;
    animation: flame-out 0.72s ease-out forwards;
}

@keyframes flame-out {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scaleY(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(32px) scaleY(0.2);
    }
}

/* Skill logo strip (below skill cards) */
.skill-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 14px;
    margin-top: 44px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.sl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    animation: float 4s ease-in-out infinite;
    cursor: default;
}

.sl img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.45);
    transition: filter 0.3s;
}

.sl:hover img {
    filter: grayscale(0) brightness(1);
}

.sl span {
    font-size: 0.62rem;
    color: var(--text2);
    font-weight: 500;
}

.sl:nth-child(2) {
    animation-delay: .3s
}

.sl:nth-child(3) {
    animation-delay: .6s
}

.sl:nth-child(4) {
    animation-delay: .9s
}

.sl:nth-child(5) {
    animation-delay: 1.2s
}

.sl:nth-child(6) {
    animation-delay: 1.5s
}

.sl:nth-child(7) {
    animation-delay: 1.8s
}

.sl:nth-child(8) {
    animation-delay: 2.1s
}

.sl:nth-child(9) {
    animation-delay: 2.4s
}

.sl:nth-child(10) {
    animation-delay: 2.7s
}

.sl:nth-child(11) {
    animation-delay: 3s
}

.sl:nth-child(12) {
    animation-delay: 3.3s
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-9px)
    }
}

@keyframes blink-cur {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

@keyframes bounce-d {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(3px)
    }
}


@media(max-width:960px) {
    .sc-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .stats-strip {
        grid-template-columns: 1fr 1fr;
        margin: 0 5%;
    }

    .stats-strip .ss:nth-child(2) {
        border-right: none;
    }

    .stats-strip .ss:nth-child(3) {
        border-top: 1px solid var(--border);
    }

    .stats-strip .ss:nth-child(4) {
        border-top: 1px solid var(--border);
        border-right: none;
    }

    .ts-grid {
        max-width: 680px;
    }

    .cf-row {
        flex-direction: column;
    }
}

@media(max-width:700px) {
    nav {
        padding: 0 5%;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    section {
        padding: 80px 5%;
    }

    #hero {
        padding: 68px 5% 60px;
        min-height: unset;
    }

    .stats-strip {
        margin: 0 5%;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .sfx {
        right: 12px;
    }

    .to-top {
        left: 12px;
    }

    .ts-grid {
        max-width: 440px;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .edu-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .edu-deg {
        white-space: normal;
    }

    .contact-card h3,
    .contact-card>p {
        text-align: center;
    }

    .mob-br {
        display: block;
    }
}

@media(max-width:480px) {
    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn-solid,
    .hero-ctas .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .about-btns {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .about-btns .btn-solid,
    .about-btns .btn-ghost {
        flex: 1;
        justify-content: center;
        padding: 11px 14px;
        font-size: 0.82rem;
    }

    .stats-strip {
        grid-template-columns: 1fr 1fr;
    }

    .ts-grid {
        max-width: 440px;
    }
}


/* Responsive — Tablet (768–1023px) */

/* Global overflow guard */
html, body { overflow-x: hidden; }


@media (min-width: 768px) and (max-width: 1023px) {
    section { padding: 90px 6%; }

    /* Hero — layout deux colonnes : texte gauche / avatar circulaire droite */
    #hero {
        padding: 88px 6% 64px;
        min-height: unset;
        gap: 48px;
        align-items: center;
    }
    .hero-inner { max-width: none; flex: 1; }

    /* Avatar circulaire — tablet */
    .hero-visual {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex: 0 0 280px;
        padding-right: 0;
    }
    .av-wrap { width: 264px; height: 264px; margin: 0; }
    .av-glow {
        width: 300px;
        height: 300px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, transparent 65%);
        filter: blur(42px);
    }
    .av-frame {
        width: 244px !important;
        height: 244px !important;
        border-radius: 50% !important;
        top: calc(50% - 122px) !important;
        left: calc(50% - 122px) !important;
        border: 3px solid rgba(139, 92, 246, 0.78) !important;
        box-shadow:
            0 0 0 8px rgba(139, 92, 246, 0.1),
            0 0 32px rgba(139, 92, 246, 0.52),
            0 0 68px rgba(139, 92, 246, 0.22) !important;
        animation: av-float-mob 5s ease-in-out infinite,
                   av-ring-pulse 3s ease-in-out infinite !important;
    }
    .av-frame::before { display: none; }
    .av-img           { object-position: 50% 10%; }
    .av-term-card { display: none !important; }
    .av-bg-card   { display: none !important; }
    .av-dots      { display: none !important; }
    .av-geo       { display: none !important; }
    .cert-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
    .about-stats { grid-template-columns: repeat(3, 1fr) !important; max-width: 100% !important; }
    .stats-strip { grid-template-columns: repeat(4, 1fr); }

    /* Nav — empêcher le logo de sortir du header */
    .logo { font-size: 1.15rem; white-space: nowrap; }
    .nav-links a { font-size: 0.78rem; padding: 6px 8px; }
    .nav-cv { padding: 7px 12px; font-size: 0.76rem; margin-left: 6px; }

    /* Education — grille 2 colonnes, 3e carte centrée en dessous */
    .edu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
    }
    .edu-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 18px) / 2);
        margin-left: auto;
        margin-right: auto;
    }

}


/* Responsive — Mobile (max 767px) */

@media (max-width: 767px) {
    section { padding: 72px 5% 64px; }

    /* Background: reduce GPU load on mobile */
    .orb { opacity: 0.5 !important; filter: blur(55px) !important; }
    .orb-1 { width: 320px !important; height: 320px !important; }
    .orb-2 { width: 260px !important; height: 260px !important; }
    .orb-3 { width: 200px !important; height: 200px !important; }
    #bg-particles { opacity: 0.45; }

    /* Hero */
    #hero {
        padding: 80px 5% 48px;
        flex-direction: column;
        align-items: center;
        gap: 0;
        min-height: unset;
    }
    /* Mobile avatar */
    .hero-visual {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-right: 0;
        order: -1;
        flex: none;
        margin-bottom: 32px;
    }
    .av-wrap { width: 230px; height: 230px; margin: 0; }
    .av-glow {
        width: 270px;
        height: 270px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, transparent 65%);
        filter: blur(35px);
    }
    /* Cercle photo */
    .av-frame {
        width: 200px !important;
        height: 200px !important;
        border-radius: 50% !important;
        top: calc(50% - 100px) !important;
        left: calc(50% - 100px) !important;
        border: 3px solid rgba(139, 92, 246, 0.78) !important;
        box-shadow:
            0 0 0 7px rgba(139, 92, 246, 0.1),
            0 0 28px rgba(139, 92, 246, 0.5),
            0 0 58px rgba(139, 92, 246, 0.22) !important;
        animation: av-float-mob 5s ease-in-out infinite,
                   av-ring-pulse 3s ease-in-out infinite !important;
    }
    .av-frame::before { display: none; }
    .av-img { object-position: 50% 10%; }

    /* Masquer tout sauf le cercle + glow */
    .av-term-card { display: none !important; }
    .av-bg-card   { display: none !important; }
    .av-dots      { display: none !important; }
    .av-geo       { display: none !important; }

    /* Centrer tout le contenu texte */
    .hero-inner {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-badge {
        font-size: 0.71rem;
        padding: 6px 16px;
        margin-bottom: 18px;
    }
    .hero-title {
        font-size: clamp(2.5rem, 10.5vw, 3.7rem);
        letter-spacing: -2.5px;
        line-height: 1.08;
        margin-bottom: 10px;
    }
    .hero-sub {
        font-size: clamp(0.95rem, 3.6vw, 1.1rem);
        margin-bottom: 18px;
    }
    .hero-desc {
        font-size: 0.91rem;
        line-height: 1.82;
        margin-bottom: 0;
        max-width: 88%;
        text-align: center;
        color: var(--text2);
    }
    /* Socials — barre verticale fixe en bas à droite */
    .hero-socials {
        position: fixed;
        right: 14px;
        bottom: 28px;
        top: auto;
        transform: none;
        flex-direction: column;
        gap: 10px;
        width: auto;
        padding: 10px 0;
        margin-top: 0;
        border-top: none;
        z-index: 900;
    }
    .soc-btn {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
        background: rgba(12, 9, 28, 0.72);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(139, 92, 246, 0.28);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }

    
    .about-title { font-size: clamp(2rem, 9vw, 2.9rem); letter-spacing: -1.5px; }
    .about-body {
        font-size: 0.93rem;
        line-height: 1.82;
        max-width: 100%;
        padding: 0 2px;
    }
    .about-body strong { color: var(--accent); }
    .about-btns { margin-bottom: 36px; }
    .about-stats { grid-template-columns: 1fr !important; max-width: 100% !important; gap: 12px; }
    .asc { padding: 20px 18px; }
    .asc-num { font-size: 2.9rem; letter-spacing: -2px; }

    /* Stats strip */
    .ss { padding: 20px 14px; }
    .ss-num { font-size: 2.2rem; letter-spacing: -1.5px; }

    /* Skills — always show tags on touch (hover ≠ tap) */
    .wid-inner { padding: 32px 22px 28px; }
    .wid-skills { max-height: none !important; overflow: visible !important; }
    .wid-tag {
        opacity: 1 !important;
        transform: none !important;
        background: rgba(139,92,246,0.13) !important;
        border-color: rgba(139,92,246,0.4) !important;
        color: #ddd6fe !important;
        transition-delay: 0ms !important;
    }
    .wid-card:hover { transform: none !important; }
    .wid-desc { min-height: 0; }
    .wid-bottom { margin-top: 0; }

    /* Portfolio tabs */
    .tab-bar { max-width: 100%; padding: 4px; gap: 0; border-radius: 10px; }
    .tab-btn { font-size: 0.74rem; padding: 9px 7px; gap: 4px; border-radius: 7px; }
    .tab-btn i { font-size: 0.73rem; }

    /* Tech stack — flexible wrapping cards */
    .ts-grid { max-width: 100% !important; gap: 10px; }
    .ts-card {
        width: calc(33.333% - 10px);
        min-width: 80px;
        max-width: 118px;
        padding: 18px 8px 14px;
        gap: 8px;
        border-radius: 12px;
        flex-shrink: 1;
    }
    .ts-card img { width: 40px; height: 40px; }
    .ts-card span { font-size: 0.65rem; }

    /* Certificates — fix 6-column overflow (CRITICAL) */
    .cert-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; max-width: 100% !important; }
    .cert-card { padding: 18px 8px 14px; border-radius: 12px; gap: 8px; }
    .cert-card img { width: 42px; height: 42px; }
    .cert-card-name { font-size: 0.65rem; }

    /* Experience */
    .exp-card { padding: 20px 18px; }
    .exp-header { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
    .exp-badge { background: transparent !important; border: none !important; padding: 0 !important; font-size: 0.75rem; }
    .exp-role { font-size: 1rem; }
    .exp-co { font-size: 0.84rem; }
    .exp-desc { font-size: 0.83rem; line-height: 1.72; }
    .exp-tags { gap: 5px; flex-wrap: wrap; }

    /* Education */
    .edu-grid { grid-template-columns: 1fr !important; max-width: 100% !important; }
    .edu-card { padding: 22px 18px; }

    /* Contact */
    .contact-card { padding: 24px 18px; }
    .cf-row { flex-direction: column; }
    .cf-input, .cf-textarea { font-size: 1rem; padding: 12px 14px; } /* Prevent iOS auto-zoom */
    .cf-label { font-size: 0.74rem; }
    .cf-btn { width: 100%; justify-content: center; }

    /* Fixed elements — icônes flottantes cachées sur mobile */
    .sfx { display: none; }
    .to-top { left: 10px; width: 38px; height: 38px; }

    /* Footer */
    footer { font-size: 0.78rem; }
}


/* Responsive — Extra small (max 380px) */

@media (max-width: 380px) {
    .hero-title { font-size: clamp(2.2rem, 12vw, 2.8rem); }
    .cert-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .ts-card { width: calc(33.333% - 8px); min-width: 76px; padding: 14px 6px 10px; gap: 6px; }
    .ts-card img { width: 34px; height: 34px; }
    .tab-btn { font-size: 0.68rem; padding: 8px 5px; }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .orb { animation: none !important; }
    #bg-particles { opacity: 0 !important; }
    .wid-skills { max-height: none !important; overflow: visible !important; }
    .wid-tag { opacity: 1 !important; transform: none !important; }
}


/* ── PROJECTS GRID ── */

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.proj-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    text-align: left;
    position: relative;
}

.proj-card:hover {
    border-color: var(--border-a);
    transform: translateY(-5px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.proj-card-img {
    width: 100%;
    height: 190px;
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.2) 0%, rgba(7, 9, 15, 0.65) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.proj-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 60%, rgba(139, 92, 246, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 75% 40%, rgba(168, 85, 247, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.proj-card:hover .proj-card-img {
    border-color: rgba(139, 92, 246, 0.22);
}

.proj-card-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.proj-card-banner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.proj-banner-logos {
    display: flex;
    gap: 16px;
    align-items: center;
}

.proj-banner-logos img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.proj-card:hover .proj-banner-logos img:nth-child(1) { transform: translateY(-5px); }
.proj-card:hover .proj-banner-logos img:nth-child(2) { transform: translateY(-5px); transition-delay: 0.05s; }
.proj-card:hover .proj-banner-logos img:nth-child(3) { transform: translateY(-5px); transition-delay: 0.10s; }
.proj-card:hover .proj-banner-logos img:nth-child(4) { transform: translateY(-5px); transition-delay: 0.15s; }

.proj-banner-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(139, 92, 246, 0.45);
    transition: color 0.3s;
}

.proj-card:hover .proj-banner-label {
    color: rgba(139, 92, 246, 0.75);
}

.proj-card-body {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.proj-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proj-card-type {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.proj-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin: 0;
}

.proj-card-desc {
    font-size: 0.84rem;
    color: var(--text2);
    line-height: 1.78;
    flex: 1;
}

.proj-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    transition: border-color 0.3s;
}

.proj-card:hover .proj-card-footer {
    border-color: rgba(139, 92, 246, 0.15);
}

.proj-card-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.proj-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.75rem;
    text-decoration: none;
    padding: 2px;
    transition: color 0.22s, transform 0.22s;
}

.proj-card-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.proj-link-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
    transition: filter 0.22s, transform 0.22s;
}

.proj-card-link:hover .proj-link-img {
    filter: brightness(0) invert(0.72) sepia(1) saturate(4) hue-rotate(220deg);
    transform: translateY(-3px);
}

.proj-card-link--off {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.proj-card-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.25s, color 0.22s;
    padding: 0;
}

.proj-card:hover .proj-card-more {
    gap: 11px;
    color: var(--accent2);
}

.proj-card-footer--no-links {
    justify-content: flex-start;
}

.proj-card-body--inline {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
}

.proj-card-more--stretch::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--r);
    cursor: pointer;
}

.proj-card-body--empty {
    padding: 0;
}

.proj-card-more--invisible {
    all: unset;
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
    border-radius: var(--r);
}

/* ── VIBE CARD LED ── */

/* ── VIBE CARD ── */

.vibe-card {
    border-color: rgba(100, 60, 140, 0.30);
    animation: vibe-led 3s ease-in-out infinite;
}

.vibe-card:hover {
    border-color: rgba(100, 60, 140, 0.55);
    animation-play-state: paused;
    filter:
        drop-shadow(0 0 7px  rgba(83, 55, 153, 0.45))
        drop-shadow(0 0 18px rgba(83, 55, 153, 0.22));
}

@keyframes vibe-led {
    0%, 100% {
        filter:
            drop-shadow(0 0 4px  rgba(83, 55, 153, 0.35))
            drop-shadow(0 0 10px rgba(83, 55, 153, 0.15));
    }
    50% {
        filter:
            drop-shadow(0 0 7px  rgba(130, 70, 120, 0.42))
            drop-shadow(0 0 18px rgba(83, 55, 153, 0.25));
    }
}

.vibe-card-img {
    background: linear-gradient(135deg, #120b26 0%, #1f0e1d 100%);
}

.vibe-card-img::before {
    display: none;
}

.proj-vibe-logo {
    width: 62%;
    max-width: 195px;
    height: auto;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.3));
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.proj-card:hover .proj-vibe-logo {
    transform: scale(1.06);
}

/* ── MODAL VIBE ICON ── */

.proj-modal-vibe-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: block;
}

/* ── SENDPACKET CARD ── */

.sendpacket-card {
    border-color: rgba(21, 101, 192, 0.30);
    animation: sendpacket-led 3s ease-in-out infinite;
}

.sendpacket-card:hover {
    border-color: rgba(21, 101, 192, 0.55);
    animation-play-state: paused;
    filter:
        drop-shadow(0 0 7px  rgba(21, 101, 192, 0.45))
        drop-shadow(0 0 18px rgba(21, 101, 192, 0.22));
}

@keyframes sendpacket-led {
    0%, 100% {
        filter:
            drop-shadow(0 0 4px  rgba(21, 101, 192, 0.35))
            drop-shadow(0 0 10px rgba(21, 101, 192, 0.15));
    }
    50% {
        filter:
            drop-shadow(0 0 7px  rgba(13, 71, 161, 0.42))
            drop-shadow(0 0 18px rgba(21, 101, 192, 0.25));
    }
}

.sendpacket-card-img {
    background: linear-gradient(135deg, #0d1f3c 0%, #0a1628 100%);
}

.sendpacket-card-img::before {
    display: none;
}

.proj-sendpacket-logo {
    height: 88px;
    width: auto;
    max-width: 65%;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.3));
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.proj-modal-sp-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #1565C0;
    padding: 9px;
    display: block;
    box-sizing: border-box;
}


.proj-card:hover .proj-sendpacket-logo {
    transform: scale(1.06);
}

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

@media (max-width: 580px) {
    .proj-grid { grid-template-columns: 1fr; max-width: 420px; }
}


/* ── PROJECT MODAL ── */

dialog.proj-modal {
    background: rgba(11, 9, 25, 0.99);
    border: 1px solid var(--border-a);
    border-radius: 20px;
    max-width: 520px;
    width: calc(100% - 40px);
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px 32px 32px;
    margin: auto;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(139, 92, 246, 0.12),
        0 0 60px rgba(139, 92, 246, 0.06);
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

dialog.proj-modal.open {
    opacity: 1;
    transform: none;
}

dialog.proj-modal::backdrop {
    background: rgba(4, 5, 10, 0.75);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.proj-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.22s;
}

.proj-modal-close:hover {
    border-color: var(--border-a);
    color: var(--text);
    background: rgba(139, 92, 246, 0.12);
}

.proj-modal-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-right: 52px;
}

.proj-modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 4px;
}

.proj-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.proj-modal-btn--secondary {
    background: transparent;
    border: 1px solid var(--border-a);
    color: var(--text2);
}

.proj-modal-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.proj-modal-btn--primary {
    background: rgba(83, 55, 153, 0.15);
    border: 1px solid rgba(83, 55, 153, 0.45);
    color: rgba(180, 155, 230, 0.9);
}

.proj-modal-btn--primary:hover {
    background: rgba(83, 55, 153, 0.25);
    border-color: rgba(83, 55, 153, 0.7);
    color: #d4bbf5;
}

.proj-modal-btn--off {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.proj-modal-btn-ico {
    width: 16px;
    height: 16px;
    opacity: 0.65;
    filter: brightness(0) invert(1);
}

.proj-modal-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.proj-modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.6px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}

.proj-modal-type {
    font-size: 0.77rem;
    color: var(--text2);
    font-weight: 500;
    margin-top: 3px;
}

.proj-modal-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-a), transparent);
    margin: 16px 0;
}

.proj-modal-section-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.75;
}

.proj-modal-section-label::before {
    content: none;
}

.proj-modal-desc {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.85;
}

.proj-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.proj-modal-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.proj-modal-bullets li {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
}

.proj-modal-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
}

@media (max-width: 600px) {
    dialog.proj-modal { padding: 22px 18px 26px; }
    .proj-modal-top { flex-direction: column; align-items: flex-start; }
}
