:root {
  --bg: #0f172a;
  --surface: #0b1324;
  --accent: #3b82f6;
  --accent-soft: #93c5fd;
  --text: #f8fafc;
  --font-display: "Rockwell", Georgia, serif;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --ui-font: var(--font-sans);
}

body {
  font-family: var(--font-sans);
  color: #0f172a;
  background:
    radial-gradient(circle at 78% 20%, rgba(110, 231, 183, 0.18), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(7, 11, 20, 0.98));
  transition: background 220ms ease, color 220ms ease;
}

.layout {
  display: block;
}

main > section,
.hero-section,
.section {
  position: relative;
  overflow: hidden;
  background: transparent;
  color: #f8fafc;
}

.side-nav {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 230px;
  z-index: 40;
}

.side-nav-glass {
  height: 100%;
  border-radius: 1.8rem;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(110, 231, 183, 0.18), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(18px);
}

.side-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.side-nav-close {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  background: #050505;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav-close:hover {
  color: #ffffff;
  background: #111111;
}

.side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.side-nav-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.92), rgba(110, 231, 183, 0.92));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: "Material Symbols Rounded";
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
  font-style: normal;
  white-space: nowrap;
  user-select: none;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.side-nav-projects {
  display: grid;
  gap: 0.8rem;
}

.side-dot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.side-dot::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.side-nav-footer {
  margin-top: auto;
  display: grid;
  gap: 1rem;
}

.side-actions {
  display: grid;
  gap: 0.7rem;
}

.side-action {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.side-action:hover {
  color: #ffffff;
  background: #111111;
  transform: translateY(-1px);
}

.side-control {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

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

.side-control:hover {
  background: #111111;
  color: #fff;
  transform: translateY(-1px);
}

.side-control-label {
  font-size: 0.8rem;
}

#langToggle::after {
  content: "🇫🇷";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

#langToggle[data-lang="en"]::after {
  content: "🇬🇧";
}

#langToggle {
  padding-right: 2.7rem;
}

.side-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.8rem;
}

.side-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.92), rgba(110, 231, 183, 0.92));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.page-content {
  padding-left: 280px;
  background: transparent;
}

.nav-open-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050505;
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-open-btn:hover {
  color: #ffffff;
  background: #111111;
}

.nav-collapsed .side-nav {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  width: 90px;
}

.nav-collapsed .page-content {
  padding-left: 140px;
}

.nav-collapsed .nav-open-btn {
  opacity: 1;
  pointer-events: auto;
}

.nav-collapsed .side-nav-glass {
  padding: 1.2rem 0.6rem;
  align-items: center;
}

.nav-collapsed .side-nav-logo {
  flex-direction: column;
  gap: 0.6rem;
}

.nav-collapsed .side-nav-logo span {
  display: none;
}

.nav-collapsed .side-nav-close {
  display: none;
}

.nav-collapsed .side-nav-links {
  align-items: center;
  gap: 1rem;
}

.nav-collapsed .side-nav-item {
  padding: 0.6rem;
  justify-content: center;
}

.nav-collapsed .side-nav-item span:last-child {
  display: none;
}

.nav-collapsed .side-nav-projects {
  justify-items: center;
}

.nav-collapsed .side-actions {
  justify-items: center;
}

.nav-collapsed .side-nav-projects p {
  display: none;
}

.nav-collapsed .side-dot {
  font-size: 0;
  gap: 0;
}

.nav-collapsed .side-dot::before {
  width: 0.55rem;
  height: 0.55rem;
}

.nav-collapsed .side-toggle {
  padding: 0.6rem;
  justify-content: center;
}

.nav-collapsed .side-control {
  width: auto;
  min-width: 2.6rem;
  padding: 0.6rem;
  justify-content: center;
}

.nav-collapsed .side-control-label {
  display: none;
}

.nav-collapsed .side-action {
  width: auto;
  min-width: 2.6rem;
  padding: 0.6rem;
  justify-content: center;
}

.nav-collapsed .side-action span:last-child {
  display: none;
}

.nav-collapsed #langToggle {
  padding-right: 0.6rem;
}

.nav-collapsed #langToggle::after {
  content: none;
  display: none;
}

.nav-collapsed .side-toggle span:last-child {
  display: none;
}

.nav-collapsed .side-avatar {
  width: 2.6rem;
  height: 2.6rem;
}

.font-display {
  font-family: var(--font-display);
}

.text-accent {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.8);
  z-index: 50;
}

.logo-mark {
  background: var(--accent);
  color: #0b1120;
  font-weight: 700;
  height: 2.2rem;
  width: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.28);
}

.nav-link {
  color: rgba(226, 232, 240, 0.8);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.section {
  padding: 5rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Projects page: let the browser handle scrolling normally. */
main#projects .section {
  padding: 2rem 0;
}

main#projects .mx-auto {
  width: 100%;
}

.projects-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.projects-list {
  display: grid;
  gap: 1rem;
}

.project-code {
  overflow: auto;
  max-height: 60vh;
}

.section > div {
  width: 100%;
}

/* Mobile navigation behavior: hide sidebar and expose hamburger button */
@media (max-width: 768px) {
  .side-nav {
    position: fixed !important;
    top: 0.5rem;
    left: 0.5rem;
    bottom: 0.5rem;
    width: 260px;
    max-width: 86%;
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 200ms ease;
    z-index: 60;
  }

  /* make the open button visible on small screens */
  .nav-open-btn {
    opacity: 1;
    pointer-events: auto;
    display: inline-grid;
  }

  /* compact the panel glass for overlay style */
  .side-nav-glass {
    height: 100%;
    padding: 1.2rem;
    border-radius: 14px;
  }

  .side-nav-logo { display: flex; }

  .side-nav-links { gap: 0.6rem; }

  .page-content { padding-left: 0; }

  /* When mobile menu is opened, slide panel in and show overlay */
  body.mobile-nav-open .side-nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 30px 80px rgba(2,6,23,0.6);
  }

  /* dim content when nav open */
  body.mobile-nav-open .page-content::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.46);
    z-index: 50;
  }

  /* ensure small screens have suitable close button visibility */
  .side-nav-close { display: inline-grid; }

  /* make bottom spacing less aggressive on tiny screens */
  @media (max-width: 420px) {
    .side-nav { left: 0.4rem; width: calc(100% - 0.8rem); }
    body.mobile-nav-open .side-nav { width: calc(100% - 0.8rem); }
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #f8fafc;
}

.about-showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  background: transparent;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
}

.about-showcase::before,
.about-showcase::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.about-showcase::before {
  width: 20rem;
  height: 20rem;
  right: -7rem;
  top: -6rem;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.22), transparent 68%);
  filter: blur(18px);
}

.about-showcase::after {
  width: 22rem;
  height: 22rem;
  left: -8rem;
  bottom: -10rem;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.12), transparent 70%);
  filter: blur(22px);
}

.about-copy {
  position: relative;
  z-index: 1;
  padding-left: 0.5rem;
}

.about-title-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.92), rgba(110, 231, 183, 0.92));
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.22);
}

.about-kicker {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(226, 232, 240, 0.55);
}

.about-heading {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  line-height: 0.98;
  color: #f8fafc;
  max-width: 12ch;
}

.about-text {
  margin-top: 1.5rem;
  max-width: 42rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-visual {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
}

.about-blob {
  position: absolute;
  inset: 12% 14% 10% 14%;
  border-radius: 32% 32% 18% 18% / 18% 18% 28% 28%;
  background: linear-gradient(180deg, rgba(110, 231, 183, 0.92), rgba(34, 197, 94, 0.72) 45%, rgba(15, 23, 42, 0.08) 100%);
  box-shadow: 0 25px 70px rgba(34, 197, 94, 0.12);
  transform: rotate(-2deg);
}

.about-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  height: 33rem;
  padding: 0.6rem;
  border-radius: 30% 30% 16% 16% / 18% 18% 24% 24%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.32);
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 28% 28% 14% 14% / 16% 16% 22% 22%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22));
}

.hero-section {
  position: relative;
}

.space-hero {
  position: relative;
  overflow: hidden;
  min-height: 95vh;
  display: flex;
  align-items: center;
  margin: 1rem 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
}

.space-hero::before {
  content: none;
}

.space-hero::after {
  content: none;
}

.space-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.space-hero-content {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 520px;
  justify-self: end;
}

.hero-intro {
  display: grid;
  gap: 0.8rem;
  max-width: 520px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.hero-role {
  color: rgba(248, 250, 252, 0.75);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.hero-right {
  margin-left: auto;
  text-align: right;
  justify-items: end;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.7);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.hero-subtitle {
  color: rgba(248, 250, 252, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-btn {
  width: fit-content;
  border-color: rgba(248, 250, 252, 0.35);
}

.hero-planet {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -45%;
  height: 70%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.1), rgba(2, 6, 23, 0.95) 60%),
    radial-gradient(circle at 50% 60%, rgba(34, 197, 94, 0.22), transparent 65%);
  box-shadow: 0 -40px 120px rgba(2, 6, 23, 0.8);
  z-index: 1;
}

.hero-orbit {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  border: 2px dashed rgba(34, 197, 94, 0.45);
  animation: spin 16s linear infinite;
}

.hero-portrait {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.6), rgba(15, 23, 42, 0.5));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.8);
}

.portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #050505;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: #050505;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #111111;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #050505;
  color: #ffffff;
}

.card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 260px;
}

.card.subtle {
  text-align: center;
  align-items: center;
}

.card-media {
  height: 120px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(30, 41, 59, 0.7));
  display: grid;
  place-items: center;
  color: rgba(226, 232, 240, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.projects-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.projects-list {
  display: grid;
  gap: 1rem;
}

.project-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.82));
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 1.4rem;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.48), inset 0 1px 0 rgba(110, 231, 183, 0.08);
  min-height: 220px;
}

.project-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.5), rgba(34, 197, 94, 0.06));
  z-index: 0;
}

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

.project-item.selected {
  outline: 2px solid rgba(34, 197, 94, 0.72);
  transform: translateY(-4px);
}

/* Smaller buttons for project items */
.project-item .btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  gap: 0.4rem;
  border-radius: 0.9rem;
}

.project-item .btn-primary {
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.22);
}

.project-item .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.3);
}

.project-item .btn-ghost {
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
}



.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #f8fafc;
}

.project-text {
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.6;
}

.project-code {
  background: rgba(9, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.6rem;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.6);
  display: grid;
  gap: 1rem;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.85rem;
}

.code-pill {
  background: rgba(34, 197, 94, 0.18);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-block {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.85rem;
  line-height: 1.7;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.card-text {
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.skill-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* Skills circular badges */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.2rem;
  align-items: center;
}
.skill-item {
  position: relative;
  text-align: center;
  padding-top: 1rem;
}
.skill-bg-icon {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  z-index: 3;
}
.skill-logo {
  width: 110px;
  height: 110px;
  opacity: 0;
  transform: scale(0.9);
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.55));
  transition: transform 260ms cubic-bezier(.2,.9,.3,1), opacity 260ms ease;
  mix-blend-mode: normal;
  will-change: opacity, transform;
}

.node-sticker {
  mix-blend-mode: multiply;
  filter: brightness(0.98) contrast(1.15) saturate(1.05);
}

.skill-item:hover .node-sticker,
.skill-item:focus-within .node-sticker,
.skill-bg-icon:hover .node-sticker {
  mix-blend-mode: multiply;
}

.skill-item:hover .skill-logo {
  transform: scale(1.06);
  opacity: 0.28;
}

/* Hover logo: enlarge and make more visible */
.skill-item:hover .skill-logo,
.skill-item:focus-within .skill-logo,
.skill-bg-icon:hover .skill-logo {
  transform: scale(1.12);
  opacity: 1;
  filter: drop-shadow(0 22px 48px rgba(0,0,0,0.65));
}

/* When logo hovered, blur the percentage inside the following ring */
.skill-percent {
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  opacity: 0.6;
  transform: scale(1);
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

/* Quand on survole le logo, rendre le pourcentage clairement visible */
.skill-item:hover .skill-percent,
.skill-item:focus-within .skill-percent {
  filter: none;
  opacity: 1;
  transform: scale(1.12);
}
.skill-ring {
  width: 110px;
  height: 110px;
  margin: 0 auto 0.8rem auto;
  position: relative;
}
.ring {
  --size: 110px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0deg);
  display: grid;
  place-items: center;
  position: relative;
}
.ring::before {
  content: "";
  width: calc(var(--size) - 22px);
  height: calc(var(--size) - 22px);
  border-radius: 999px;
  background: rgba(15,23,42,0.7);
  position: absolute;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.skill-percent {
  font-weight: 700;
  color: #fff;
}
.skill-name {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #f8fafc;
}
.skill-desc {
  font-size: 0.85rem;
  color: rgba(226,232,240,0.7);
}

@media (max-width: 640px) {
  .ring { --size: 96px; }
  .skill-bg-icon { font-size: 4.5rem; top: 14px; }
}

.input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
  padding: 0.85rem 1rem;
  color: #ffffff;
}

.input:focus {
  outline: 1px solid rgba(34, 197, 94, 0.4);
}

.reveal {
  animation: fadeUp 0.9s ease forwards;
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .space-hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .space-hero-content {
    justify-self: start;
  }

  .hero-right {

/* New contact layout (two columns + form card) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: start;
}
.contact-left {
  padding: 2rem 0 1rem 0;
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem 0;
  color: #fff;
}
.contact-lead {
  color: rgba(248,250,252,0.68);
  max-width: 40ch;
  margin-bottom: 1.25rem;
}
.contact-ctas {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.follow-block {
  margin-top: 1.2rem;
  /* augmente l'espace à droite pour séparer les icônes du formulaire */
  margin-right: 1.4rem;
}
.follow-title { color: rgba(248,250,252,0.72); margin-bottom: 0.6rem; font-weight:700 }
.follow-icons { display:flex; gap:12px }
.social-link { width:36px; height:36px; display:inline-grid; place-items:center; border-radius:6px; background:rgba(255,255,255,0.02); color:rgba(255,255,255,0.9); text-decoration:none }

.contact-right .form-card {
  background: linear-gradient(180deg, rgba(8,10,16,0.86), rgba(6,8,12,0.9));
  border-radius: 1rem;
  padding: 1.6rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.message-input { grid-column: 1 / -1; height: 160px }
.form-actions { display:flex; justify-content:flex-end; margin-top:0.8rem }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-right { order: 2; }
  .contact-left { order: 1; }
  .contact-right .form-card { padding: 1rem }
  .message-input { height: 120px }
}

/* Typography polish */
:root {
  --ui-font: var(--font-sans);
}
body {
  font-family: var(--font-sans);
}
.contact-heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}
.contact-lead {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(248,250,252,0.72);
}
.follow-title { text-transform: none; font-weight:600; font-size:0.95rem; color: rgba(248,250,252,0.74); }
.follow-icons .social-link { font-weight:700; font-size:0.9rem; }
.contact-left .btn-ghost { font-weight:600 }

.form-card .input {
  font-size: 0.98rem;
  font-weight: 500;
  color: #fff;
}
.form-card .input::placeholder { color: rgba(255,255,255,0.46); }
.form-card .message-input { font-size: 0.98rem; line-height:1.6 }

.btn { font-weight:700; letter-spacing:0.06em }


    text-align: left;
    justify-items: start;
    margin-left: 0;
  }
  .side-nav {
    position: relative;
    width: calc(100% - 2.5rem);
    height: auto;
    margin: 1.25rem auto 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .side-nav-glass {
    flex-direction: column;
  }

  .side-nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .page-content {
    padding-left: 0;
  }

  .nav-open-btn {
    display: none;
  }

  .hero-orbit {
    display: none;
  }
  .card {
    min-height: auto;
  }

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

  .about-showcase {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .about-visual {
    min-height: 24rem;
  }

  .about-frame {
    width: min(100%, 18rem);
    height: 24rem;
  }
}

/* Footer styles */
.site-footer {
  background: transparent;
  color: rgba(248,250,252,0.92);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.social-link {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.social-link:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(90deg, rgba(59,130,246,0.18), rgba(168,85,247,0.12));
  color: #fff;
}
.footer-desc {
  max-width: 840px;
  color: rgba(248,250,252,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 auto;
}
.footer-brand {
  display: grid;
  gap: 6px;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  color: #ffffff;
  letter-spacing: 0.06em;
}
.footer-meta {
  color: rgba(248,250,252,0.5);
  font-size: 0.85rem;
}

body[data-page="cv"] {
  background: #efefea;
  color: #1f2430;
}

body[data-page="cv"] .cv-page {
  min-height: 100vh;
  padding: 32px 24px 40px;
}

body[data-page="cv"] .cv-shell {
  max-width: 1180px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

body[data-page="cv"] .cv-header {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
  background: #2f3340;
  color: #ffffff;
}

body[data-page="cv"] .cv-portrait-wrap {
  position: relative;
  min-height: 250px;
}

body[data-page="cv"] .cv-portrait-ring {
  position: absolute;
  left: 50%;
  bottom: -56px;
  transform: translateX(-50%);
  width: clamp(160px, 22vw, 240px);
  height: clamp(160px, 22vw, 240px);
  border-radius: 999px;
  padding: 0;
  border: 10px solid #f4f4f0;
  background: transparent;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 40px rgba(34,197,94,0.08) inset;
}

body[data-page="cv"] .cv-portrait-ring::before {
  /* inner vignette */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 18px 48px rgba(0,0,0,0.28);
  pointer-events: none;
}

body[data-page="cv"] .cv-portrait-ring::after {
  /* outer subtle colored glow */
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(110,231,183,0.12), transparent 30%), radial-gradient(circle at 70% 80%, rgba(34,197,94,0.06), transparent 40%);
  filter: blur(10px);
  opacity: 0.95;
  pointer-events: none;
}

body[data-page="cv"] .cv-portrait {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(0.18) contrast(0.98);
  transition: filter 220ms ease, transform 220ms ease;
}

body[data-page="cv"] .cv-portrait-ring:hover .cv-portrait {
  filter: none;
  transform: scale(1.04);
}

body[data-page="cv"] .cv-header-copy {
  padding: 42px 48px 40px 20px;
  display: grid;
  align-content: center;
  gap: 10px;
}

/* Responsive adjustments for CV page */
@media (max-width: 900px) {
  body[data-page="cv"] .cv-header {
    grid-template-columns: 1fr;
    padding-bottom: 80px; /* room for ring */
    gap: 1rem;
  }

  body[data-page="cv"] .cv-portrait-wrap {
    min-height: 140px;
  }

  body[data-page="cv"] .cv-portrait-ring {
    position: relative;
    left: 50%;
    top: -70px;
    bottom: auto;
    transform: translateX(-50%);
    width: clamp(120px, 28vw, 180px);
    height: clamp(120px, 28vw, 180px);
    border-width: 6px;
  }

  body[data-page="cv"] .cv-header-copy {
    padding: 28px 18px 18px 18px;
    text-align: center;
  }

  body[data-page="cv"] .cv-name {
    font-size: 1.6rem;
  }

  body[data-page="cv"] .cv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0 3rem 0;
  }

  body[data-page="cv"] .cv-sidebar {
    order: 2;
  }

  body[data-page="cv"] .cv-main {
    order: 3;
  }
}

@media (max-width: 420px) {
  body[data-page="cv"] .cv-portrait-ring {
    width: 110px;
    height: 110px;
    top: -56px;
    border-width: 5px;
  }

  body[data-page="cv"] .cv-header-copy {
    padding: 20px 12px 12px 12px;
  }

  body[data-page="cv"] .cv-name {
    font-size: 1.35rem;
    line-height: 1.05;
  }
}

body[data-page="cv"] .cv-name-pretitle {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.64);
}

body[data-page="cv"] .cv-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

body[data-page="cv"] .cv-role {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

body[data-page="cv"] .cv-summary {
  margin: 6px 0 0;
  max-width: 42rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="cv"] .cv-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

body[data-page="cv"] .cv-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2430;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body[data-page="cv"] .cv-pill-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

body[data-page="cv"] .cv-pill-link-dark {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

body[data-page="cv"] .cv-pill-link-download {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.95), rgba(110, 231, 183, 0.95));
  color: #122015;
}

body[data-page="cv"] .cv-pill-link-download:hover {
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.24);
}

body[data-page="cv"] .cv-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}

body[data-page="cv"] .cv-sidebar {
  background: #e8e6e2;
  padding: 92px 28px 32px;
  display: grid;
  gap: 22px;
}

body[data-page="cv"] .cv-main {
  background: #ffffff;
  padding: 34px 34px 36px;
  display: grid;
  gap: 28px;
}

body[data-page="cv"] .cv-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="cv"] .cv-card-soft {
  padding: 8px 0 0;
}

body[data-page="cv"] .cv-card-main {
  padding: 0;
}

body[data-page="cv"] .cv-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #1a1d26;
}

body[data-page="cv"] .cv-section-title::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #1a1d26;
  display: inline-block;
}

body[data-page="cv"] .cv-section-title-main {
  margin-bottom: 20px;
}

body[data-page="cv"] .cv-text,
body[data-page="cv"] .cv-contact-list,
body[data-page="cv"] .cv-bullet-list,
body[data-page="cv"] .cv-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #353b49;
  line-height: 1.7;
}

body[data-page="cv"] .cv-contact-list,
body[data-page="cv"] .cv-bullet-list {
  display: grid;
  gap: 10px;
}

body[data-page="cv"] .cv-bullet-list li {
  position: relative;
  padding-left: 16px;
}

body[data-page="cv"] .cv-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1a1d26;
}

body[data-page="cv"] .cv-timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

body[data-page="cv"] .cv-timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #23262f;
  margin-top: 6px;
}

body[data-page="cv"] .cv-time {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 1rem;
  color: #23262f;
}

body[data-page="cv"] .cv-entry-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #141820;
}

body[data-page="cv"] .cv-entry-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: #3f4654;
}

body[data-page="cv"] .cv-entry-note,
body[data-page="cv"] .cv-detail-list {
  margin-top: 8px;
  color: #545c6d;
}

body[data-page="cv"] .cv-detail-list {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  list-style: disc;
}

@media (max-width: 960px) {
  body[data-page="cv"] .cv-header,
  body[data-page="cv"] .cv-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="cv"] .cv-portrait-wrap {
    min-height: 160px;
  }

  body[data-page="cv"] .cv-portrait-ring {
    bottom: -44px;
    width: 180px;
    height: 180px;
  }

  body[data-page="cv"] .cv-header-copy {
    padding: 18px 24px 34px;
    text-align: center;
    justify-items: center;
  }

  body[data-page="cv"] .cv-sidebar {
    padding-top: 72px;
  }

  body[data-page="cv"] .cv-main {
    padding: 28px 24px 34px;
  }
}

@media (max-width: 640px) {
  body[data-page="cv"] .cv-page {
    padding: 16px;
  }

  body[data-page="cv"] .cv-sidebar {
    padding-left: 18px;
    padding-right: 18px;
  }

  body[data-page="cv"] .cv-header-copy {
    padding-left: 18px;
    padding-right: 18px;
  }

  body[data-page="cv"] .cv-name {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 0 12px;
  }
}

/* Animated color gradient for social icons */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.social-link {
  background: linear-gradient(90deg, rgba(59,130,246,0.12), rgba(168,85,247,0.08));
  background-size: 200% 200%;
  transition: transform 200ms ease, box-shadow 200ms ease, color 180ms ease;
  display: inline-grid;
  place-items: center;
  margin: 1rem;

}
.social-link svg { width: 18px; height: 18px; transition: transform 180ms ease, fill 180ms ease; }
.social-link:hover,
.social-link:focus {
  animation: gradientShift 3s linear infinite;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 30px rgba(59,130,246,0.12);
  color: #ffffff;
}
.social-link:focus { outline: 2px solid rgba(59,130,246,0.12); outline-offset: 3px }


/* Final visual polish for Contact section (overrides) */
.contact-left {
  padding-left: 1rem;
  padding-top: 0.6rem;
}
.contact-heading { letter-spacing: -0.02em; font-weight:700 }
.contact-lead { font-size: 1rem; }
.contact-ctas .btn-ghost { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); }

/* Form card deeper look */
.contact-right .form-card {
  border-radius: 1.25rem;
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(8,10,16,0.92), rgba(4,6,10,0.88));
  border: 1px solid rgba(255,255,255,0.035);
  box-shadow: 0 28px 80px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* Inputs polished */
.contact-right .form-card .input {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
}
.contact-right .form-card .input:focus {
  border-color: rgba(99,102,241,0.9);
  box-shadow: 0 10px 30px rgba(99,102,241,0.06);
}
.contact-right .form-card .message-input { min-height: 140px }

/* Primary button stronger */
.contact-right .form-card .btn-primary {
  background: #050505;
  color: #ffffff;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
}

/* Follow icons circular and subtle */
.follow-icons .social-link { width:36px; height:36px; border-radius:999px; display:inline-grid; place-items:center; }
.follow-icons .social-link:hover { transform: translateY(-4px) scale(1.04); }

/* Decorative dot-grid subtle */
.contact-left::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 52%;
  width: 220px;
  height: 140px;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.45;
  transform: translate(-10%, -10%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .contact-left::before { display:none }
}

/* Contact panel (centered large card) */
.contact-panel {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}
.contact-panel > .contact-grid {
  width: min(680px, 100%);
  background: transparent;
  border-radius: 10px;
  padding: 0.8rem;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* Underlined inputs for a sleek form look */
.contact-grid .form-card .input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  padding: 0.45rem 0.22rem 0.32rem 0;
  font-size: 0.92rem;
}
.contact-grid .form-card .input::placeholder { color: transparent }
.contact-grid .form-card .label-text {
  left: 0.2rem;
  top: -0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transform: none;
}
.contact-grid .form-card .field .label-text { position: relative }
.contact-grid .form-card .input:focus { border-bottom-color: var(--accent); box-shadow: none }

/* Make message textarea taller and with same underline style */
.contact-grid .form-card .message-input { min-height: 100px; padding-top: 0.45rem }

/* Black rounded submit to match the site style */
.contact-grid .form-card .btn-primary {
  background: #050505;
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
}

.contact-status {
  min-height: 1.2rem;
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.72);
}

.contact-status.is-success {
  color: #86efac;
}

.contact-status.is-error {
  color: #fca5a5;
}

@media (max-width: 900px) {
  .contact-panel { padding: 1.2rem 1rem }
  .contact-panel > .contact-grid { padding: 1rem }
  .contact-grid .form-card .message-input { min-height: 120px }
}


/* Floating labels and extra polish */
.field { position: relative; display: block; }
.field .label-text {
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: transform 180ms ease, font-size 160ms ease, top 160ms ease;
  pointer-events: none;
}
.field .input {
  padding: 1.1rem 1rem 0.6rem 1rem;
  background: transparent;
}
.field input:focus + .label-text,
.field textarea:focus + .label-text,
.field input:not(:placeholder-shown) + .label-text,
.field textarea:not(:placeholder-shown) + .label-text {
  transform: translateY(-10px) scale(0.92);
  font-size: 0.78rem;
  color: rgba(168,85,247,0.98);
}
.field.area .label-text { top: 14px }

/* Animated subtle glow behind the left column */
.contact-left .accent-glow {
  position: absolute;
  left: -6rem;
  top: -6rem;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.35), rgba(168,85,247,0.12) 45%, transparent 60%);
  filter: blur(28px);
  opacity: 0.95;
  animation: glowMove 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowMove {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* Button arrow animation */
.btn-arrow { margin-left: 8px; transform: translateX(0); transition: transform 220ms ease; }
.form-card .btn-primary:hover .btn-arrow { transform: translateX(6px); }



