/* ══════════════════════════════════════════
   TOKENS — LIGHT MODE (défaut)
══════════════════════════════════════════ */
:root {
  --purple: #5C1F8A;
  --purple-d: #3D1260;
  --purple-l: #7B35B0;
  --pink: #E2186A;
  --pink-l: #F03D8A;
  --pink-ll: #FF6BAA;
  --grad: linear-gradient(135deg, #5C1F8A, #E2186A);

  /* surfaces */
  --bg: #FAF7FF;
  --bg2: #F0EBF9;
  --card: #FFFFFF;
  --card2: #F7F3FE;

  /* textes */
  --ink: #1A0B2E;
  --ink2: #2E1250;
  --muted: #8B6AAE;
  --muted2: #A98FCB;

  /* bordures */
  --border: rgba(92, 31, 138, 0.15);
  --border2: rgba(92, 31, 138, 0.09);

  /* sections sombres */
  --dark-bg: #1A0B2E;
  --dark-bg2: #130825;
  --dark-surface: rgba(255, 255, 255, 0.05);
  --dark-border: rgba(255, 255, 255, 0.09);
  --dark-text: rgba(255, 255, 255, 0.85);
  --dark-muted: rgba(255, 255, 255, 0.38);

  /* nav */
  --nav-bg: rgba(250, 247, 255, 0.88);

  /* dots bg */
  --dot-color: rgba(92, 31, 138, 0.10);

  /* blobs */
  --blob1-col: rgba(92, 31, 138, 0.13);
  --blob2-col: rgba(226, 24, 106, 0.09);
  --blob3-col: rgba(92, 31, 138, 0.07);

  /* toggle icon */
  --toggle-icon: "🌙";
}

/* ══════════════════════════════════════════
   TOKENS — DARK MODE
══════════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #0F0720;
  --bg2: #130825;
  --card: #1E0D35;
  --card2: #160A2A;

  --ink: #F0E8FF;
  --ink2: #D9C8F5;
  --muted: #9B7FC4;
  --muted2: #7A5FA8;

  --border: rgba(160, 100, 220, 0.22);
  --border2: rgba(160, 100, 220, 0.13);

  --dark-bg: #0A0416;
  --dark-bg2: #0F0720;
  --dark-surface: rgba(255, 255, 255, 0.04);
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-text: rgba(255, 255, 255, 0.88);
  --dark-muted: rgba(255, 255, 255, 0.35);

  --nav-bg: rgba(15, 7, 32, 0.92);

  --dot-color: rgba(160, 100, 220, 0.12);

  --blob1-col: rgba(92, 31, 138, 0.30);
  --blob2-col: rgba(226, 24, 106, 0.20);
  --blob3-col: rgba(123, 53, 176, 0.18);

  --toggle-icon: "☀️";
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  transition: background 0.35s, color 0.35s;
}

/* dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s;
}

/* blobs */
.blob1,
.blob2,
.blob3 {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.35s;
}

.blob1 {
  width: 600px;
  height: 600px;
  background: var(--blob1-col);
  top: -150px;
  right: -180px;
  animation: fa 16s ease-in-out infinite alternate;
}

.blob2 {
  width: 450px;
  height: 450px;
  background: var(--blob2-col);
  bottom: 5%;
  left: -120px;
  animation: fb 20s ease-in-out infinite alternate;
}

.blob3 {
  width: 320px;
  height: 320px;
  background: var(--blob3-col);
  top: 45%;
  right: 8%;
  animation: fa 24s ease-in-out infinite alternate;
}

@keyframes fa {
  from {
    transform: translate(0, 0)
  }

  to {
    transform: translate(-50px, 70px)
  }
}

@keyframes fb {
  from {
    transform: translate(0, 0)
  }

  to {
    transform: translate(70px, -50px)
  }
}

section,
nav,
footer {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.9rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s, border-color 0.35s;
}

.nav-logo-wrap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(92, 31, 138, 0.08);
  border: 1.5px solid rgba(92, 31, 138, 0.22);
  padding: 0.42rem 1rem;
  border-radius: 5px;
  transition: color 0.3s, background 0.3s;
}

[data-theme="dark"] .nav-logo-wrap {
  color: #c88fff;
  background: rgba(160, 100, 220, 0.1);
  border-color: rgba(160, 100, 220, 0.25);
}

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

.nav-links {
  display: flex;
  gap: 0.3rem;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.42rem 0.9rem;
  border-radius: 4px;
  transition: all 0.18s;
}

.nav-links a:hover {
  background: var(--purple);
  color: white;
}

/* Toggle bouton */
.theme-toggle {
  margin-left: 0.6rem;
  width: 38px;
  height: 38px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--pink);
  transform: scale(1.08);
}

.theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  padding: 8rem 5vw 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 2rem;
  box-shadow: 0 2px 16px rgba(92, 31, 138, 0.10);
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 2s infinite;
}

@keyframes pulse {

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

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

.hero-name {
  font-size: clamp(3.8rem, 8.5vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.7s 0.25s forwards;
}

.hero-name .grad-name {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.hero-sub strong {
  color: var(--ink2);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.6rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 22px rgba(226, 24, 106, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(226, 24, 106, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--purple);
}

.btn-s {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--purple);
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-s:hover {
  background: rgba(92, 31, 138, 0.08);
  transform: translateY(-2px);
  border-color: var(--pink);
}

[data-theme="dark"] .btn-s {
  color: var(--ink);
  border-color: rgba(160, 100, 220, 0.4);
}

.btn-ghost:hover {
  border-color: var(--purple);
  background: rgba(92, 31, 138, 0.06);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-ghost {
  color: #c88fff;
  border-color: rgba(160, 100, 220, 0.3);
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(160, 100, 220, 0.1);
  border-color: #c88fff;
}

.hero-right {
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}

.stats-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(92, 31, 138, 0.14);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: background 0.35s, border-color 0.35s;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.stat-div {
  height: 1px;
  background: var(--border2);
}

.avail-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(226, 24, 106, 0.07);
  border: 1px solid rgba(226, 24, 106, 0.2);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--pink);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  background: var(--grad);
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.marquee-item::before {
  content: '◆';
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.45rem;
}

/* ══════════════════════════════════════════
   UTILS PARTAGÉS
══════════════════════════════════════════ */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  color: var(--pink);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--pink);
  display: inline-block;
}

.eyebrow.light {
  color: rgba(255, 200, 230, 0.85);
}

.eyebrow.light::before {
  background: rgba(255, 200, 230, 0.85);
}

.sec-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

.sec-title.light {
  color: white;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about {
  padding: 7rem 5vw;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
  background: var(--bg);
  transition: background 0.35s;
}

.about-text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

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

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  transition: all 0.2s;
}

.info-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 16px rgba(92, 31, 138, 0.12);
  transform: translateY(-2px);
}

.ic-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.ic-v {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink2);
}

.ablock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(92, 31, 138, 0.06);
  transition: background 0.35s, border-color 0.35s;
}

.ablock-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border2);
}

.lang-row:last-child {
  border: none;
}

.lang-n {
  font-weight: 700;
  font-size: 0.9rem;
}

.lang-lv {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: white;
  background: var(--grad);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
}

.ichips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ichip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--ink2);
  font-weight: 500;
  transition: all 0.18s;
}

.ichip:hover {
  background: rgba(92, 31, 138, 0.08);
  border-color: var(--purple);
  color: var(--purple);
}

.obj-list {
  list-style: none;
}

.obj-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border2);
  font-size: 0.85rem;
  color: var(--ink2);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
}

.obj-list li:last-child {
  border: none;
}

.obj-list li::before {
  content: '→';
  color: var(--pink);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ══════════════════════════════════════════
   SKILLS (section sombre)
══════════════════════════════════════════ */
#skills {
  padding: 7rem 5vw;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}

#skills::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(92, 31, 138, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(226, 24, 106, 0.22) 0%, transparent 50%);
  pointer-events: none;
}

.skills-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.skills-intro p {
  color: var(--dark-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 1.2rem;
}

.skill-cat {
  margin-bottom: 2.4rem;
}

.scat-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tchip {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s;
  cursor: default;
}

.tchip:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
  transform: translateY(-2px);
}

.tchip.hl {
  border-color: rgba(226, 24, 106, 0.4);
  color: #FF9EC5;
  background: rgba(226, 24, 106, 0.1);
}

.soft-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.schip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}

.schip:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ══════════════════════════════════════════
   FORMATION
══════════════════════════════════════════ */
#formation {
  padding: 7rem 5vw;
  background: var(--bg2);
  transition: background 0.35s;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 3rem;
}

.fcard {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

.fcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}

.fcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(92, 31, 138, 0.12);
}

.fc-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  color: var(--pink);
  background: rgba(226, 24, 106, 0.07);
  border: 1px solid rgba(226, 24, 106, 0.18);
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.fc-t {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.fc-s {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.fc-ul {
  list-style: none;
}

.fc-ul li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.fc-ul li:last-child {
  border: none;
}

.fc-ul li::before {
  content: '▸';
  color: var(--purple);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
#projects {
  padding: 7rem 5vw;
  background: var(--bg);
  transition: background 0.35s;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pcard {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.pcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

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

.pcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(92, 31, 138, 0.14);
  border-color: var(--purple-l);
}

.pcard:hover::after {
  opacity: 0.05;
}

/* featured = pleine largeur */
.pcard.big {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.pc-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.ic-p {
  background: rgba(92, 31, 138, 0.1);
}

.ic-r {
  background: rgba(226, 24, 106, 0.1);
}

.ic-g {
  background: rgba(0, 180, 140, 0.1);
}

.ic-y {
  background: rgba(255, 200, 0, 0.12);
}

.ic-gold {
  background: rgba(212, 175, 55, 0.15);
}

.pc-bdg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
}

.bdg-on {
  background: rgba(226, 24, 106, 0.08);
  color: var(--pink);
  border: 1px solid rgba(226, 24, 106, 0.22);
}

.bdg-off {
  background: var(--bg2);
  color: var(--muted);
  border: 1px solid var(--border2);
}

.pc-n {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.pc-d {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.4rem;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.ptag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  background: rgba(92, 31, 138, 0.07);
  color: var(--purple);
  border: 1px solid rgba(92, 31, 138, 0.16);
}

[data-theme="dark"] .ptag {
  background: rgba(160, 100, 220, 0.1);
  color: #c88fff;
  border-color: rgba(160, 100, 220, 0.22);
}

.proj-hl {
  background: var(--card2);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--border2);
}

.proj-hl-t {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.proj-hl ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.proj-hl li {
  font-size: 0.82rem;
  color: var(--ink2);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.proj-hl li::before {
  content: '▸';
  color: var(--pink);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CONTACT (section sombre)
══════════════════════════════════════════ */
#contact {
  padding: 7rem 5vw;
  background: var(--dark-bg2);
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(226, 24, 106, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(92, 31, 138, 0.4) 0%, transparent 55%);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-big {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 1.4rem;
}

.contact-big .grd {
  background: linear-gradient(120deg, #FF9EC5, var(--pink-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-p {
  font-size: 0.9rem;
  color: var(--dark-muted);
  line-height: 1.8;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ccard {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  transition: all 0.2s;
}

.ccard:hover {
  background: rgba(226, 24, 106, 0.15);
  border-color: rgba(226, 24, 106, 0.4);
  transform: translateX(5px);
}

.cc-ico {
  width: 42px;
  height: 42px;
  background: rgba(226, 24, 106, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cc-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--dark-muted);
  margin-bottom: 0.25rem;
}

.cc-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-text);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  padding: 1.5rem 5vw;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.22);
  transition: background 0.35s;
}

footer .hi {
  color: var(--pink-l);
}

/* ══════════════════════════════════════════
   ANIMATIONS & REVEAL
══════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}

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

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media(max-width:900px) {
  #hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  #about {
    grid-template-columns: 1fr;
  }

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

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

  .pcard.big {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

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

  .nav-links {
    display: none;
  }

  #scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--grad);
    z-index: 1001;
    transition: width 0.1s ease-out;
  }

  .cc-ico svg {
    fill: currentColor;
  }

  /* ══════════════════════════════════════════
   MOBILE OPTIMIZATIONS 
══════════════════════════════════════════ */

  @media (max-width: 768px) {
    .hero-title {
      font-size: 2.8rem;
      line-height: 1.1;
    }

    .contact-big {
      font-size: 2.5rem;
    }

    .contact-layout,
    .projects-grid,
    #hero>div {
      grid-template-columns: 1fr !important;
      gap: 2rem;
    }

    nav {
      padding: 1rem 20px;
    }


    .ccard {
      width: 100%;
    }
  }

  @media (max-width: 480px) {
    .hero-title {
      font-size: 2.2rem;
    }

    .hero-badge {
      font-size: 0.7rem;
    }
  }
}