/* ============================================================================
   BASE STYLES - Reset, Variables, Body, Shared Components
   ============================================================================ */

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

/* CSS Variables */
:root {
  /* Color Palette */
  --space-cadet: #1a1b37;
  --special-magenta: #8c355b;
  --dark-cyan: #008e96;
  --chrysler-blue: #4427b9;
  --byzantine-blue: #3d59c8;

  /* Text Colors - WCAG AAA compliant (min 7:1 contrast ratio, targeting 8:1+) */
  --text-primary: #f0f1f5; /* Ratio 12.5:1 sur space-cadet */
  --text-secondary: #c5c7d4; /* Ratio 8.5:1 sur space-cadet */
  --text-accent: #5eeef5; /* Ratio 10:1 - cyan clair WCAG AAA */
  --text-muted: #b0b2c2; /* Ratio 8.1:1 - WCAG AAA compliant */
  --text-cyan: #5eeef5; /* Ratio 10:1 - pour remplacer dark-cyan en texte */
  --text-purple: #baadf4; /* Ratio 8.4:1 - WCAG AAA compliant */

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
}

/* HTML & Body */
html {
  scroll-padding-top: 100px;
}

/* Smooth scroll handled by JS on desktop for inertia effect */
@media (pointer: coarse) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

body {
  background-color: var(--space-cadet);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================================
   SCROLL & PAGE LOAD ANIMATIONS
   ============================================================================ */

/* Hide elements before animation */
.scroll-reveal {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
}

.scroll-reveal.reveal-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Variants for different animation directions */
.scroll-reveal-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
}

.scroll-reveal-left.reveal-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
}

.scroll-reveal-right.reveal-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(10px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
}

.scroll-reveal-scale.reveal-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

/* Staggered delays for cards */
.scroll-reveal-scale:nth-child(1) {
  transition-delay: 0.05s;
}
.scroll-reveal-scale:nth-child(2) {
  transition-delay: 0.1s;
}
.scroll-reveal-scale:nth-child(3) {
  transition-delay: 0.15s;
}
.scroll-reveal-scale:nth-child(4) {
  transition-delay: 0.2s;
}
.scroll-reveal-scale:nth-child(5) {
  transition-delay: 0.25s;
}
.scroll-reveal-scale:nth-child(6) {
  transition-delay: 0.3s;
}

/* ============================================================================
   CUSTOM CURSOR
   ============================================================================ */
body,
body * {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: -8px;
  left: -8px;
  width: 16px;
  height: 16px;
  background: var(--dark-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  box-shadow:
    0 0 12px var(--dark-cyan),
    0 0 25px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.3);
  transition:
    opacity 0.2s,
    width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    top 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    left 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.2s,
    box-shadow 0.3s;
  will-change: transform;
}

.cursor.visible {
  opacity: 1;
}

/* Hover - expand with stronger glow */
.cursor.hover {
  width: 40px;
  height: 40px;
  top: -20px;
  left: -20px;
  background: transparent;
  border: 2px solid var(--dark-cyan);
  box-shadow:
    0 0 15px var(--dark-cyan),
    0 0 30px rgba(0, 255, 255, 0.5),
    inset 0 0 15px rgba(0, 255, 255, 0.1);
}

/* Game zone — green cursor */
.cursor.game-zone {
  width: 8px;
  height: 8px;
  background: #00ff41;
  box-shadow:
    0 0 12px #00ff41,
    0 0 25px rgba(0, 255, 65, 0.5),
    0 0 40px rgba(0, 255, 65, 0.3);
}

.cursor.game-zone.hover {
  background: transparent;
  border-color: #00ff41;
  box-shadow:
    0 0 15px #00ff41,
    0 0 30px rgba(0, 255, 65, 0.5),
    inset 0 0 15px rgba(0, 255, 65, 0.1);
}

.cursor.game-zone.active {
  background: #00ff41;
  box-shadow:
    0 0 20px #00ff41,
    0 0 40px rgba(0, 255, 65, 0.6);
}

/* Click - shrink pulse */
.cursor.active {
  width: 10px;
  height: 10px;
  top: -5px;
  left: -5px;
  background: #00ffff;
  box-shadow:
    0 0 20px #00ffff,
    0 0 40px rgba(0, 255, 255, 0.6);
}

@media (pointer: coarse), (max-width: 768px) {
  .cursor {
    display: none !important;
  }
  body,
  body * {
    cursor: auto !important;
  }
}

/* ============================================================================
   SHARED SECTION STYLES
   ============================================================================ */
main {
  margin-top: 80px;
}

section {
  padding: var(--spacing-xl) 5%;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  scroll-behavior: smooth;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px 0;
}

/* Sections with canvas elements need immediate layout for correct sizing */
.hero,
.skills-section {
  content-visibility: visible;
}

/* Accent Lines */
.accent-line {
  position: absolute;
  width: 3px;
  height: 200px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--dark-cyan),
    transparent
  );
  opacity: 0.6;
}

.accent-line.left {
  left: 3%;
  top: 20%;
}

.accent-line.right {
  right: 3%;
  top: 30%;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: var(--spacing-lg);
  justify-content: center;
}

@media (max-width: 768px) {
  .section-header {
    justify-content: flex-start;
  }
}

.section-number {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #5eeef5; /* WCAG AA: lighter cyan */
  padding: 0.5rem 1rem;
  border: 2px solid #5eeef5;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 142, 150, 0.1), transparent);
  box-shadow: 0 4px 10px rgba(0, 142, 150, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.section-number::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 225, 0.3),
    rgba(0, 142, 150, 0.2)
  );
  border-radius: 10px;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.section-header:hover .section-number::before {
  opacity: 1;
}

.section-header:hover .section-number {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 142, 150, 0.3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  position: relative;
  color: #5eeef5; /* WCAG AA: solid cyan */
}

@keyframes title-shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--dark-cyan), var(--chrysler-blue));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 142, 150, 0.5);
  transition: all 0.3s ease;
}

.section-header:hover .section-title::after {
  width: 100px;
  box-shadow: 0 0 15px rgba(0, 142, 150, 0.8);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  padding: 0.9rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

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

.btn svg {
  transition: transform 0.4s ease;
}

.btn:hover svg {
  transform: translateX(5px) rotate(5deg);
}

.btn-primary {
  background: rgba(61, 89, 200, 0.3);
  background-size: 200% 100%;
  color: #5eeef5; /* WCAG AA: solid color instead of rgba */
  box-shadow: 0 8px 32px rgba(0, 142, 150, 0.4);
  position: relative;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow: hidden;
  border: 2px solid var(--byzantine-blue);
}

@keyframes neon-pulse {
  0%,
  100% {
    opacity: 0.7;
    filter: blur(20px);
  }
  50% {
    opacity: 1;
    filter: blur(25px);
  }
}

.btn-primary:hover {
  transform: translateY(-6px) scale(1.05);
  color: #7ff4f9; /* WCAG AA: lighter solid color on hover */
  background: rgba(0, 217, 225, 0.4);
  box-shadow:
    0 16px 48px rgba(0, 142, 150, 0.6),
    0 0 40px rgba(0, 217, 225, 0.4);
  border-color: #5eeef5;
}

.btn-secondary {
  border: 2.5px solid rgba(61, 89, 200, 0.3);
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.6),
    rgba(61, 89, 200, 0.05)
  );
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-secondary::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(
    135deg,
    rgba(61, 89, 200, 0.4),
    rgba(0, 142, 150, 0.3)
  );
  border-radius: 14px;
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-secondary:hover::after {
  opacity: 1;
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(61, 89, 200, 0.12),
    rgba(0, 142, 150, 0.08)
  );
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(61, 89, 200, 0.6);
  box-shadow: 0 10px 28px rgba(61, 89, 200, 0.3);
  color: var(--text-accent);
}

/* CV Button */
.btn-cv {
  background: linear-gradient(
    135deg,
    rgba(68, 39, 185, 0.12),
    rgba(61, 89, 200, 0.08)
  );
  border: 2px solid rgba(68, 39, 185, 0.4);
  color: #a3b2f7; /* WCAG AAA: 8.3:1 on space-cadet */
  position: relative;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(68, 39, 185, 0.25);
}

.btn-cv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(68, 39, 185, 0.25),
    rgba(61, 89, 200, 0.2)
  );
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.btn-cv:hover::before {
  opacity: 1;
}

.btn-cv::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    135deg,
    rgba(68, 39, 185, 0.6),
    rgba(61, 89, 200, 0.5)
  );
  border-radius: 14px;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-cv:hover::after {
  opacity: 1;
}

.btn-cv:hover {
  background: linear-gradient(
    135deg,
    rgba(68, 39, 185, 0.25),
    rgba(61, 89, 200, 0.2)
  );
  border-color: #8b7fdb;
  color: #baadf4; /* WCAG AAA: 8.4:1 on hover */
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 25px rgba(68, 39, 185, 0.5);
}

.btn-cv svg {
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.btn-cv:hover svg {
  transform: translateY(3px);
}

/* ============================================================================
   CUSTOM SCROLLBAR
   ============================================================================ */

/* Scrollbar pour Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 27, 55, 0.8);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--dark-cyan), var(--chrysler-blue));
  border-radius: 10px;
  border: 2px solid rgba(26, 27, 55, 0.8);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--text-accent), var(--dark-cyan));
  box-shadow: 0 0 15px rgba(0, 217, 225, 0.6);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    135deg,
    var(--chrysler-blue),
    var(--special-magenta)
  );
}

/* Scrollbar corner */
::-webkit-scrollbar-corner {
  background: rgba(26, 27, 55, 0.8);
}

/* Scrollbar pour Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-cyan) rgba(26, 27, 55, 0.8);
}

/* Style spécifique pour les sections avec overflow */
.project-content::-webkit-scrollbar,
.tech-stack::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.project-content::-webkit-scrollbar-thumb,
.tech-stack::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.7),
    rgba(68, 39, 185, 0.7)
  );
  border-radius: 6px;
}

.project-content::-webkit-scrollbar-thumb:hover,
.tech-stack::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--text-accent), var(--chrysler-blue));
  box-shadow: 0 0 10px rgba(0, 217, 225, 0.5);
}

/* ============================================================================
   BACKGROUND & OVERLAYS
   ============================================================================ */

/* Animated Background Gradient */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orb-float 20s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--dark-cyan), transparent);
  top: -10%;
  right: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--chrysler-blue), transparent);
  bottom: -15%;
  left: -10%;
  animation-delay: 7s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--special-magenta), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

/* Background Animations */
@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

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

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 142, 150, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 142, 150, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Language Transition Animation */
.lang-transition-overlay {
  position: fixed;
  border-radius: 50%;
  background: var(--space-cadet);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  pointer-events: none;
  z-index: 99999;
  width: 0;
  height: 0;
  opacity: 0;
  /* will-change retiré : transition ponctuelle, pas besoin de promotion GPU permanente */
  transition:
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease-out;
  box-shadow:
    0 0 150px rgba(0, 217, 225, 0.6),
    0 0 300px rgba(68, 39, 185, 0.4),
    inset 0 0 100px rgba(255, 255, 255, 0.1);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.15) saturate(1.2);
  }
}

/* Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(61, 89, 200, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 89, 200, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Menu Overlay - appears behind mobile menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  z-index: 998;
  cursor: pointer;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

/* Header Container */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  background: rgba(26, 27, 55, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 142, 150, 0.15);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header:hover {
  background: rgba(26, 27, 55, 0.98);
  border-bottom-color: rgba(0, 142, 150, 0.25);
}

/* ============================================================================
   LOGO
   ============================================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.4rem 0.6rem;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.6),
    rgba(20, 21, 45, 0.8)
  );
  border: 2px solid rgba(0, 217, 225, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 225, 0.4),
    rgba(68, 39, 185, 0.4)
  );
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(15px);
}

.logo:hover::before {
  opacity: 1;
}

.logo:hover {
  border-color: rgba(0, 217, 225, 0.5);
  box-shadow:
    0 12px 40px rgba(0, 217, 225, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Logo Image Container with Effects */
.logo-container {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing Background */
.logo-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(
    circle,
    rgba(0, 217, 225, 0.6),
    rgba(0, 142, 150, 0.4),
    transparent
  );
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0.5;
  animation: logo-glow-pulse 2.5s ease-in-out infinite;
  transform: translateZ(0);
}

@keyframes logo-glow-pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.logo:hover .logo-glow {
  opacity: 1;
  animation-duration: 1.5s;
}

/* Rotating Ring */
.logo-ring {
  position: absolute;
  inset: -6px;
  border: 3px solid transparent;
  border-radius: 50%;
  opacity: 0.7;
  animation: logo-ring-rotate 3s linear infinite;
  transform: translateZ(0);
  background: linear-gradient(
    135deg,
    var(--text-accent),
    var(--dark-cyan),
    var(--chrysler-blue),
    transparent
  );
  -webkit-mask-image:
    linear-gradient(to bottom, #fff, #fff),
    linear-gradient(to bottom, #fff, #fff);
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-image:
    linear-gradient(to bottom, #fff, #fff),
    linear-gradient(to bottom, #fff, #fff);
  mask-clip: content-box, border-box;
  mask-composite: exclude;
  padding: 3px;
  box-shadow: 0 0 20px rgba(0, 217, 225, 0.5);
}

@keyframes logo-ring-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Logo Image */
.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.2),
    rgba(68, 39, 185, 0.2)
  );
  padding: 5px;
  border: 2px solid rgba(0, 217, 225, 0.3);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    0 0 20px rgba(0, 217, 225, 0.3);
}

.logo:hover .logo-img {
  transform: scale(1.05) rotate(5deg);
  filter: drop-shadow(0 12px 30px rgba(0, 217, 225, 0.8));
  border-color: rgba(0, 217, 225, 0.6);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    0 0 35px rgba(0, 217, 225, 0.6);
}

/* Animated Logo Text */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Individual Letters with Stagger Animation - Gradient */
.text-letter {
  display: inline-block;
  color: #ffffff; /* AAA fallback: 14:1 on space-cadet */
  background: linear-gradient(135deg, #ffffff 0%, #5eeef5 50%, #a99eeb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(0, 217, 225, 0.3));
}

.logo:hover .text-letter {
  background: linear-gradient(135deg, #5eeef5 0%, #7ff4f9 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: letter-bounce 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 15px rgba(0, 217, 225, 0.8));
}

/* Glowing Dot - Gradient */
.logo-dot {
  font-size: 1.8rem;
  color: #5eeef5; /* AAA fallback: 10:1 on space-cadet */
  background: linear-gradient(135deg, #5eeef5 0%, #00d9e1 50%, #a99eeb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  animation: dot-pulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(0, 217, 225, 0.8));
  transform: translateZ(0);
}

@keyframes dot-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(0, 217, 225, 0.8));
  }
  50% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 25px rgba(0, 217, 225, 1));
  }
}

@keyframes letter-bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes dot-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.logo:hover .logo-dot {
  animation: dot-spin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 20px rgba(0, 217, 225, 1));
}

/* Subtitle - WCAG AA */
.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5eeef5; /* WCAG AA: solid cyan */
  margin-left: 2px;
  filter: drop-shadow(0 0 8px rgba(0, 217, 225, 0.4));
}

@keyframes subtitle-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.logo:hover .logo-subtitle {
  opacity: 1;
  letter-spacing: 3.5px;
  filter: drop-shadow(0 0 12px rgba(0, 217, 225, 0.8));
}

.logo:hover .logo-ring {
  opacity: 1;
  animation-duration: 2s;
  box-shadow: 0 0 30px rgba(0, 217, 225, 0.8);
}

/* ============================================================================
   DESKTOP NAVIGATION
   ============================================================================ */
nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(61, 89, 200, 0.05), transparent);
  border: 1px solid transparent;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dark-cyan), var(--chrysler-blue));
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 2px;
}

nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.15),
    rgba(68, 39, 185, 0.1)
  );
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

nav a:hover {
  color: var(--text-accent);
  background: linear-gradient(
    135deg,
    rgba(61, 89, 200, 0.12),
    rgba(0, 142, 150, 0.08)
  );
  border-color: rgba(0, 142, 150, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 142, 150, 0.2);
}

nav a:hover::after {
  width: 60%;
}

nav a:hover::before {
  opacity: 1;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--dark-cyan);
  border-radius: 12px;
  color: var(--text-cyan) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 700 !important;
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.15),
    rgba(68, 39, 185, 0.08)
  );
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 142, 150, 0.2);
}

.nav-cta::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: transparent;
  transition: none;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-cyan), var(--chrysler-blue));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.nav-cta:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.25),
    rgba(68, 39, 185, 0.15)
  );
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 142, 150, 0.4);
  border-color: var(--text-accent);
  color: var(--text-accent) !important;
}

.nav-cta:hover::before {
  opacity: 0.2;
}

.lang-btn {
  background: none;
  color: var(--text-cyan) !important;
  font-weight: 700 !important;
}

.lang-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.25),
    rgba(68, 39, 185, 0.15)
  );
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 142, 150, 0.4);
  border-color: var(--text-accent);
  color: var(--text-accent) !important;
}

/* ============================================================================
   HAMBURGER MENU (Mobile)
   ============================================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.05);
}

.hamburger:focus {
  outline: 2px solid var(--text-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.hamburger-line {
  width: 28px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
  display: block;
}

/* Active state - X animation */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background: var(--text-accent);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background: var(--text-accent);
}

/* ============================================================================
   NAV MENU & NAV LINKS
   ============================================================================ */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}

/* Clean nav links with subtle effects */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(61, 89, 200, 0.06),
    rgba(0, 142, 150, 0.03)
  );
  border: 1.5px solid rgba(61, 89, 200, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hover effect - simple and effective */
.nav-link:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.15),
    rgba(68, 39, 185, 0.1)
  );
  border-color: rgba(0, 142, 150, 0.4);
  box-shadow: 0 6px 20px rgba(0, 142, 150, 0.3);
}

/* Background gradient glow on hover */
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 225, 0.2),
    rgba(68, 39, 185, 0.15)
  );
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.nav-link:hover::before {
  opacity: 1;
}

/* Animated underline */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dark-cyan), var(--text-accent));
  transition: width 0.4s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 70%;
}

/* Icon - simple and clean */
.nav-icon {
  font-size: 1.15rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-link:hover .nav-icon {
  transform: scale(1.1) rotate(3deg);
  filter: drop-shadow(0 4px 8px rgba(0, 217, 225, 0.4));
}

/* Text - clean */
.nav-text {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.nav-link:hover .nav-text {
  letter-spacing: 0.5px;
  color: var(--text-accent);
}

.nav-highlight:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.3),
    rgba(68, 39, 185, 0.2)
  );
  border-color: var(--text-accent);
  box-shadow: 0 8px 30px rgba(0, 142, 150, 0.5);
  transform: translateY(-4px) scale(1.05);
}

.nav-highlight:hover::after {
  width: 80%;
}

.nav-highlight .nav-text {
  color: var(--text-cyan);
  font-weight: 700;
}

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

/* Active state - simple visual feedback */
.nav-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 142, 150, 0.3);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

/* Hero Layout */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 5%;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.15),
    rgba(0, 142, 150, 0.05)
  );
  border: 2px solid rgba(0, 142, 150, 0.4);
  border-radius: 30px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-accent);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 142, 150, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 225, 0.3),
    rgba(0, 142, 150, 0.2)
  );
  border-radius: 30px;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.hero-badge:hover::before {
  opacity: 1;
  animation: badge-glow-pulse 2s ease-in-out infinite;
}

.hero-badge:hover {
  border-color: var(--text-accent);
  box-shadow: 0 8px 25px rgba(0, 142, 150, 0.3);
  transform: translateY(-3px) scale(1.05);
}

@keyframes badge-glow-pulse {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-badge svg circle {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Hero entrance animations */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  animation: hero-fade-up 0.8s ease-out 0.1s both;
}
.hero-greeting {
  animation: hero-fade-up 0.8s ease-out 0.2s both;
}
.hero-title {
  animation: hero-fade-up 0.8s ease-out 0.3s both;
}
.hero-subtitle {
  animation: hero-fade-up 0.8s ease-out 0.4s both;
}
.hero-description {
  animation: hero-fade-up 0.8s ease-out 0.5s both;
}
.hero-cta {
  animation: hero-fade-up 0.8s ease-out 0.6s both;
}
.hero-stats {
  animation: hero-fade-up 0.8s ease-out 0.7s both;
}
.hero-breach {
  animation: hero-fade-up 1s ease-out 0.3s both;
}

.hero-greeting {
  color: var(--text-cyan);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #ffffff; /* AAA fallback: 14:1 on space-cadet */
  background: linear-gradient(135deg, #ffffff 0%, #00d9e1 50%, #4427b9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.title-decoration {
  position: absolute;
  top: -20px;
  right: -40px;
  opacity: 0.3;
  pointer-events: none;
}

.accent-text {
  color: #5eeef5; /* WCAG AA: lighter cyan */
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-location svg {
  width: 14px;
  height: 14px;
}

.typing-text {
  position: relative;
  display: inline-block;
}

.typing-text::after {
  content: "|";
  color: var(--text-cyan);
  animation: blink 1s infinite;
  margin-left: 4px;
}

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

.hero-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 142, 150, 0.08);
  border: 1px solid rgba(0, 217, 225, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 225, 0.5);
  background: rgba(0, 142, 150, 0.15);
  box-shadow: 0 4px 12px rgba(0, 142, 150, 0.2);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.hero-stat-item:hover .stat-label {
  color: var(--text-accent);
}

/* ============================================================================
   HERO VISUAL - Broken Screen / Contained Breach
   ============================================================================ */

/* Shared shattered-glass clip-path — used by interior + edge glow */
:root {
  --breach-clip: polygon(
    /* Top */
    8% 5%,
    15% 0%,
    28% 7%,
    35% 0%,
    44% 4%,
    58% 0%,
    63% 8%,
    76% 0%,
    90% 3%,
    /* Right */
    96% 9%,
    100% 20%,
    95% 28%,
    100% 44%,
    93% 55%,
    100% 68%,
    96% 78%,
    100% 90%,
    /* Bottom */
    94% 96%,
    82% 100%,
    68% 94%,
    52% 100%,
    40% 92%,
    28% 100%,
    14% 95%,
    5% 100%,
    /* Left */
    0% 92%,
    6% 80%,
    0% 65%,
    4% 50%,
    0% 38%,
    7% 24%,
    0% 12%
  );
}

/* ─── The Breach — shattered hole on the right side ─── */
.hero-breach {
  flex: 1;
  position: relative;
  height: 500px;
  max-width: 550px;
  z-index: 2;
  order: 2;
}

/* The interior — terminal + matrix rain + dino game, clipped to shattered shape */
.breach-interior {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  clip-path: var(--breach-clip);
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 255, 65, 0.08);
}

/* Matrix rain fills the breach hole */
.matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Game wrapper — groups HUD + canvas as a single centered unit */
.game-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 420px;
}

/* Dino game canvas */
.dino-canvas {
  width: 100%;
  height: 180px;
  display: block;
  image-rendering: pixelated;
}

/* CRT Scanlines inside the hole */

/* Green glow around the shattered edge */
.breach-edge-glow {
  position: absolute;
  inset: -8px;
  clip-path: var(--breach-clip);
  background: transparent;
  box-shadow:
    inset 0 0 30px rgba(0, 255, 65, 0.12),
    inset 0 0 60px rgba(0, 255, 65, 0.06);
  border: 2px solid rgba(0, 255, 65, 0.15);
  pointer-events: none;
  z-index: 6;
  animation: edge-glow-pulse 4s ease-in-out infinite;
}

@keyframes edge-glow-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 30px rgba(0, 255, 65, 0.12),
      inset 0 0 60px rgba(0, 255, 65, 0.06);
    border-color: rgba(0, 255, 65, 0.15);
  }
  50% {
    box-shadow:
      inset 0 0 40px rgba(0, 255, 65, 0.18),
      inset 0 0 80px rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.25);
  }
}

/* ─── Terminal HUD — lives INSIDE the breach ─── */
.hud-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  backdrop-filter: blur(8px);
  z-index: 4;
  pointer-events: none;
}

.terminal-dots {
  display: flex;
  gap: 0.3rem;
}

.terminal-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
  background: #ff5f57;
}
.terminal-dots span:nth-child(2) {
  background: #febc2e;
}
.terminal-dots span:nth-child(3) {
  background: #28c840;
}

.terminal-title {
  color: #00cc33;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  font-family: "Courier New", monospace;
}

.hud-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 0.3rem 0.7rem;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0 0 6px 6px;
  backdrop-filter: blur(8px);
  font-size: 0.6rem;
  color: #00cc33;
  letter-spacing: 0.5px;
  font-family: "Courier New", monospace;
  z-index: 4;
  pointer-events: none;
}

.terminal-score {
  font-variant-numeric: tabular-nums;
}

/* ─── Hero content sits on the left ─── */
.hero-content {
  position: relative;
  z-index: 5;
  order: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .breach-edge-glow {
    animation: none;
  }
  .breach-scanlines {
    opacity: 0.2;
  }
}

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */
.about {
  background: linear-gradient(135deg, rgba(61, 89, 200, 0.03), transparent);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.quote-decoration {
  font-family: var(--font-heading);
  font-size: 8rem;
  line-height: 0;
  color: var(--text-cyan);
  opacity: 0.15;
  position: absolute;
  left: -20px;
  top: -40px;
  pointer-events: none;
}

.about-text {
  position: relative;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--dark-cyan), var(--chrysler-blue)) 1;
  padding-left: 1.75rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* ============================================================================
   SKILLS SECTION — Hacker Breach Terminal
   Full-bleed shattered void cutting the page in two.
   Green phosphor CRT aesthetic matching the hero dino-game.
   Two-column layout: skill list + live preview panel.
   ============================================================================ */

/* ─── Green CRT palette ─── */
.skills-section {
  --term: #00ff41; /* AAA: 15:1 on terminal bg - active/selected */
  --term-mid: #00dd38; /* AAA: 10.7:1 - primary text */
  --term-dim: #00cc33; /* AAA: 9.1:1 - secondary text, labels */
  --term-subtle: rgba(0, 255, 65, 0.08); /* bg only */
  --term-glow: rgba(0, 255, 65, 0.15); /* bg only */
  --term-surface: rgba(2, 2, 8, 0.92);
}

/* ─── Breach clip-path ─── */
:root {
  --skills-breach-clip: polygon(
    0% 4%,
    10% 16%,
    21% 7%,
    26% 15%,
    34% 4%,
    48% 14%,
    50% 8%,
    58% 11%,
    66% 0%,
    79% 6%,
    84% 16%,
    91% 11%,
    95% 17%,
    100% 10%,
    100% 95%,
    86% 87%,
    81% 96%,
    70% 86%,
    64% 97%,
    58% 85%,
    47% 96%,
    42% 82%,
    33% 94%,
    21% 90%,
    11% 97%,
    12% 82%,
    0% 90%
  );
}

/* ─── Full-bleed section — cuts the page in two ─── */
.skills-section {
  width: 100vw;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: calc(-50vw + 50%);
}

.skills-section .section-header {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 5%;
}

/* ─── Green overrides for section header ─── */
.skills-section .accent-line {
  background: linear-gradient(
    180deg,
    transparent,
    var(--term-mid),
    transparent
  );
}

.skills-section .section-number {
  color: var(--term);
  border-color: rgba(0, 255, 65, 0.25);
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.06), transparent);
  box-shadow: 0 4px 10px rgba(0, 255, 65, 0.1);
  font-family: "Courier New", monospace;
}

.skills-section .section-number::before {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.15),
    rgba(0, 255, 65, 0.08)
  );
}

.skills-section .section-header:hover .section-number {
  box-shadow: 0 6px 15px rgba(0, 255, 65, 0.2);
}

.skills-section .section-title {
  color: var(--term);
  font-family: "Courier New", monospace;
}

.skills-section .section-title::after {
  background: linear-gradient(90deg, var(--term-mid), rgba(0, 255, 65, 0.15));
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.skills-section .section-header:hover .section-title::after {
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

/* ─── Breach container ─── */
.skills-breach {
  position: relative;
  width: 100%;
  margin-top: 3rem;
}

/* ─── The void — clipped interior ─── */
.skills-breach-interior {
  position: relative;
  background: #050505;
  clip-path: var(--skills-breach-clip);
  overflow: hidden;
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Matrix rain canvas ─── */
.skills-breach-interior .matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ─── Green edge glow ─── */
.skills-breach-edge-glow {
  position: absolute;
  inset: -20px;
  clip-path: var(--skills-breach-clip);
  background: transparent;
  box-shadow:
    inset 0 0 50px rgba(0, 255, 65, 0.3),
    inset 0 0 100px rgba(0, 255, 65, 0.12);
  border: 3px solid rgba(0, 255, 65, 0.45);
  pointer-events: none;
  z-index: 6;
  will-change: opacity;
  animation: skills-edge-pulse 4s ease-in-out infinite;
}

@keyframes skills-edge-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

/* ─── Terminal container ─── */
.skills-terminal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 16px;
  overflow: hidden;
  background: var(--term-surface);
  box-shadow:
    0 0 40px rgba(0, 255, 65, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.6);
  outline: none;
  contain: layout style;
}

.skills-terminal:focus,
.skills-terminal:focus-visible {
  outline: none;
  border-color: rgba(0, 255, 65, 0.35);
  box-shadow:
    0 0 60px rgba(0, 255, 65, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Kill cyan outline from accessibility-fixes.css (*:focus has same specificity,
   so we scope to .skills-section to win) */
.skills-section *:focus {
  outline: none;
}

.skills-section *:focus-visible {
  outline: 1px dashed rgba(0, 255, 65, 0.4);
  outline-offset: 2px;
}

/* CRT vignette */
.skills-terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10;
}

/* ─── Terminal header ─── */
.st-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(0, 255, 65, 0.02);
  border-bottom: 1px solid rgba(0, 255, 65, 0.08);
}

.st-dots {
  display: flex;
  gap: 6px;
}

.st-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.st-dots span:nth-child(1) {
  background: #ff5f57;
  box-shadow: 0 0 4px rgba(255, 95, 87, 0.25);
}

.st-dots span:nth-child(2) {
  background: #ffbd2e;
  box-shadow: 0 0 4px rgba(255, 189, 46, 0.25);
}

.st-dots span:nth-child(3) {
  background: #28c840;
  box-shadow: 0 0 4px rgba(40, 200, 64, 0.25);
}

.st-title {
  font-family: "Courier New", "Fira Code", monospace;
  font-size: 0.68rem;
  color: var(--term-dim);
  letter-spacing: 1.5px;
  text-transform: lowercase;
}

/* ─── Terminal body ─── */
.st-body {
  position: relative;
  min-height: 340px;
  contain: layout paint;
}

.st-binary {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: "Courier New", monospace;
  font-size: 10px;
  line-height: 1.4;
  color: var(--term);
  opacity: 0.025;
  word-break: break-all;
  pointer-events: none;
  z-index: 0;
  padding: 4px;
}

.st-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.015) 2px,
    rgba(0, 255, 65, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Content layer */
.st-content {
  position: relative;
  z-index: 2;
}

/* ─── Two-column layout ─── */
.st-main {
  display: flex;
  min-height: 340px;
}

.st-list-panel {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem;
  border-right: 1px solid rgba(0, 255, 65, 0.06);
}

/* ─── Preview panel ─── */
.st-preview {
  width: 260px;
  min-width: 260px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.st-preview-header {
  font-family: "Courier New", monospace;
  font-size: 0.6rem;
  color: var(--term-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 255, 65, 0.06);
  margin-bottom: 1rem;
}

.st-preview-idle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-preview-idle[hidden] {
  display: none;
}

.st-prompt-mini {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  color: var(--term-dim);
  line-height: 1.8;
  text-align: center;
}

.st-preview-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.st-preview-body[hidden] {
  display: none;
}

/* ─── Preview visual container ─── */
.st-preview-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 0.75rem;
  min-height: 100px;
}

/* ─── 3D Logo card (tech skills with logos) ─── */
.st-logo-scene {
  perspective: 600px;
}

.st-logo-card {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 2px dashed rgba(0, 255, 65, 0.35);
  background: rgba(0, 255, 65, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--term);
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  animation: logo-spin 6s linear infinite;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.06);
}

/* Duplicate face on the back so text reads correctly from both sides */
.st-logo-card::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  color: inherit;
  text-shadow: inherit;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

.st-logo-card > span {
  backface-visibility: hidden;
}

@keyframes logo-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* ─── Soft skill scan display ─── */
.st-scan-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.st-scan-glyph {
  font-family: "Courier New", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--term);
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-scan-ring {
  position: absolute;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  animation: scan-ring 2.5s ease-out infinite;
}

.st-scan-glyph .st-scan-ring:nth-child(2) {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
}

.st-scan-glyph .st-scan-ring:nth-child(3) {
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  animation-delay: 0.6s;
}

.st-scan-glyph .st-scan-ring:nth-child(4) {
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  animation-delay: 1.2s;
}

@keyframes scan-ring {
  0% {
    opacity: 0.5;
    transform: scale(0.85);
    border-color: rgba(0, 255, 65, 0.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
    border-color: rgba(0, 255, 65, 0);
  }
}

.st-scan-bar {
  width: 80%;
  height: 2px;
  background: rgba(0, 255, 65, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.st-scan-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--term);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
  transform-origin: left;
  will-change: transform;
  animation: scan-fill 1.2s ease-out forwards;
}

@keyframes scan-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.st-scan-label {
  font-family: "Courier New", monospace;
  font-size: 0.5rem;
  color: var(--term-dim);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.st-preview-name {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--term);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.4;
}

.st-preview-sub {
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  color: var(--term-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0.2rem;
}

.st-preview-sub[hidden] {
  display: none;
}

.st-preview-divider {
  width: 80%;
  height: 1px;
  background: rgba(0, 255, 65, 0.08);
  margin: 0.75rem 0;
}

.st-preview-desc {
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  color: var(--term-dim);
  line-height: 1.7;
  text-align: center;
  padding: 0 0.25rem;
}

.st-preview-status {
  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  color: var(--term-mid);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
}

/* ─── Terminal text ─── */
.st-prompt {
  font-family: "Courier New", "Fira Code", monospace;
  font-size: 0.78rem;
  color: var(--term-dim);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.st-typed {
  color: var(--term);
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.st-output {
  font-family: "Courier New", "Fira Code", monospace;
  font-size: 0.75rem;
  color: var(--term-dim);
  margin-bottom: 1.25rem;
}

@keyframes st-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.st-blink {
  animation: st-blink 1s step-end infinite;
  color: var(--term);
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

/* ─── Menu options ─── */
.st-options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.st-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-family: "Courier New", "Fira Code", monospace;
  font-size: 1.05rem;
  color: var(--term-dim);
  border-radius: 2px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.st-option:hover {
  background: rgba(0, 255, 65, 0.04);
}

.st-option.active {
  color: var(--term);
  background: rgba(0, 255, 65, 0.06);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.st-cursor {
  color: var(--term);
  font-weight: 700;
  font-size: 1.15rem;
  opacity: 0;
  transition: opacity 0.12s ease;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
  min-width: 14px;
}

.st-option.active .st-cursor {
  opacity: 1;
}

/* ─── Terminal footer ─── */
.st-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 255, 65, 0.02);
  border-top: 1px solid rgba(0, 255, 65, 0.08);
}

.st-status {
  font-family: "Courier New", "Fira Code", monospace;
  font-size: 0.6rem;
  color: var(--term-mid);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.st-hint {
  font-family: "Courier New", "Fira Code", monospace;
  font-size: 0.58rem;
  color: var(--term-dim);
  letter-spacing: 0.5px;
}

.st-hint kbd {
  color: var(--term);
  font-family: inherit;
}

/* ─── Loading ─── */
.st-loading {
  font-family: "Courier New", "Fira Code", monospace;
  font-size: 0.78rem;
  color: var(--term);
  margin-bottom: 1rem;
  display: none;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.st-loading.visible {
  display: block;
}

.st-loading-dots::after {
  content: "...";
  display: inline-block;
  width: 0;
  overflow: hidden;
  animation: st-dots 1.2s steps(3, end) infinite;
}

@keyframes st-dots {
  to {
    width: 1.2em;
  }
}

/* ─── Skills list ─── */
.st-skills {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.st-skills[hidden] {
  display: none;
}

.st-skill-row {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 65, 0.04);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.st-skill-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.st-skill-row:last-child {
  border-bottom: none;
}

.st-skill-row:hover {
  background: rgba(0, 255, 65, 0.04);
  box-shadow: inset 3px 0 0 rgba(0, 255, 65, 0.3);
}

.st-skill-row[data-suite="adobe"]:hover {
  background: rgba(212, 96, 138, 0.04);
  box-shadow: inset 3px 0 0 rgba(212, 96, 138, 0.3);
}

/* Index number */
.st-skill-idx {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--term-dim);
  width: 36px;
  min-width: 36px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.st-skill-row:hover .st-skill-idx {
  color: var(--term);
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.st-skill-row[data-suite="adobe"]:hover .st-skill-idx {
  color: #f090b8;
  text-shadow: 0 0 6px rgba(212, 96, 138, 0.3);
}

/* Skill name */
.st-skill-name {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--term-mid);
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.st-skill-row:hover .st-skill-name {
  color: var(--term);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

.st-skill-row[data-suite="adobe"]:hover .st-skill-name {
  color: #f090b8;
  text-shadow: 0 0 6px rgba(212, 96, 138, 0.2);
}

/* Name group + subtitle */
.st-skill-name-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.st-skill-name-group .skill-card-sub {
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  color: var(--term-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.st-skill-row:hover .skill-card-sub {
  color: var(--term-mid);
}

.st-skill-row[data-suite="adobe"]:hover .skill-card-sub {
  color: #f090b8;
}

/* ─── Back hint ─── */
.st-back {
  width: 4rem;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  color: var(--term-dim);
  margin-top: 1.25rem;
  padding: 0.4rem 0.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.st-back:hover {
  color: var(--term);
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.st-back kbd {
  color: var(--term);
  font-family: inherit;
}

/* ─── View transitions ─── */
.st-view {
  transition: opacity 0.2s ease;
}

.st-view[hidden] {
  display: none;
}

.st-view.fade-out {
  opacity: 0;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .st-logo-card {
    animation: none;
  }

  .st-scan-ring {
    animation: none;
    opacity: 0.2;
    transform: scale(1);
  }

  .st-scan-bar-fill {
    animation: none;
    transform: scaleX(1);
  }

  .st-skill-row {
    opacity: 1;
    transform: none;
    transition: background 0.2s ease;
  }

  .st-blink {
    animation: none;
    opacity: 1;
  }

  .skills-breach-edge-glow {
    animation: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .skills-breach-interior {
    padding: 5rem 0.75rem;
  }

  .skills-terminal {
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .st-main {
    flex-direction: column;
  }

  .st-list-panel {
    border-right: none;
    padding: 1.25rem 1rem;
  }

  .st-preview {
    display: none;
  }

  .st-option {
    font-size: 1rem;
    padding: 1rem 1rem;
    min-height: 48px;
  }

  .st-back {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .st-skill-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .st-back {
    width: 4rem;
  }
  .skills-breach-interior {
    padding: 4rem 0.5rem;
  }

  kbd {
    margin-right: 3px;
  }

  .st-list-panel {
    padding: 1rem 0.75rem;
  }

  .st-skill-name {
    font-size: 0.75rem;
  }

  .st-skill-name-group .skill-card-sub {
    font-size: 0.55rem;
  }
}

/* ============================================================================
   EDUCATION & TIMELINE
   ============================================================================ */
.education {
  background: linear-gradient(135deg, rgba(0, 142, 150, 0.03), transparent);
  position: relative;
}

.education-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin-bottom: 4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--dark-cyan), var(--chrysler-blue));
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 142, 150, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--dark-cyan), var(--text-accent));
  border-radius: 50%;
  border: 4px solid var(--space-cadet);
  box-shadow: 0 0 20px rgba(0, 142, 150, 0.6);
  z-index: 2;
  animation: pulse-dot 2s ease-in-out infinite;
}

.timeline-card {
  width: 45%;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.8),
    rgba(0, 142, 150, 0.05)
  );
  border: 2px solid rgba(0, 142, 150, 0.2);
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 225, 0.3),
    rgba(0, 142, 150, 0.2)
  );
  border-radius: 18px;
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.5s ease;
  z-index: -1;
}

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

.timeline-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--text-cyan);
  box-shadow: 0 15px 40px rgba(0, 142, 150, 0.3);
}

.timeline-date {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.2),
    rgba(0, 142, 150, 0.1)
  );
  border: 1.5px solid var(--dark-cyan);
  border-radius: 20px;
  color: var(--text-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-school {
  color: var(--text-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(0, 142, 150, 0.1);
  border: 1.5px solid rgba(0, 142, 150, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-cyan);
  font-weight: 600;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 142, 150, 0.2);
  border-color: var(--text-accent);
  transform: translateY(-2px);
}

/* Certifications */
.certifications {
  margin-top: 3rem;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.cert-card {
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.7),
    rgba(68, 39, 185, 0.05)
  );
  border: 2px solid rgba(61, 89, 200, 0.2);
  border-radius: 16px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cert-card::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    135deg,
    rgba(68, 39, 185, 0.4),
    rgba(61, 89, 200, 0.3)
  );
  border-radius: 18px;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.5s ease;
  z-index: -1;
}

.cert-card:hover::after {
  opacity: 1;
}

.cert-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--text-purple);
  box-shadow: 0 15px 35px rgba(68, 39, 185, 0.3);
}

.cert-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.cert-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cert-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-end;
  }

  .timeline-card {
    width: calc(100% - 60px);
    margin-left: auto;
  }
}

/* ============================================================================
   TECH STACK SHOWCASE
   ============================================================================ */
.tech-showcase {
  padding: var(--spacing-xl) 5%;
  position: relative;
}

.showcase-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tech-item {
  perspective: 1200px;
  -webkit-perspective: 1200px;
  height: 350px;
  width: 100%;
}

.tech-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.tech-item:hover .tech-item-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.tech-item:active .tech-item-inner {
  transition: transform 0.5s ease;
}

.tech-item-front,
.tech-item-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

/* Front - Shows icon (visible by default) */
.tech-item-front {
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.15),
    rgba(68, 39, 185, 0.1)
  );
  border: 2px solid rgba(0, 142, 150, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 142, 150, 0.15) inset;
}

/* Back - Shows details (hidden, revealed on hover) */
.tech-item-back {
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.95),
    rgba(68, 39, 185, 0.15)
  );
  border: 2px solid var(--dark-cyan);
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transform: rotateY(180deg) translateZ(0);
  -webkit-transform: rotateY(180deg) translateZ(0);
}

.tech-item-back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(0, 142, 150, 0.1),
    transparent
  );
  pointer-events: none;
}

.tech-icon-large {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.tech-item:hover .tech-icon-large {
  transform: scale(1.1) rotateZ(5deg);
}

.tech-icon-large svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 142, 150, 0.4));
  transition: filter 0.3s ease;
}

.tech-item:hover .tech-icon-large svg {
  filter: drop-shadow(0 6px 20px rgba(0, 142, 150, 0.6));
}

.tech-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 142, 150, 0.4));
  transition: filter 0.3s ease;
}

#html-logo {
  margin-bottom: 0.6em;
  width: 100%;
  height: 100%;
}

#react-logo {
  margin-bottom: 0.2em;
}

.tech-item:hover .tech-logo-img {
  filter: drop-shadow(0 6px 20px rgba(0, 142, 150, 0.6));
}

.tech-item-front h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.tech-percentage {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #5eeef5; /* WCAG AA: solid cyan */
}

.back-content {
  width: 100%;
  position: relative;
  z-index: 1;
}

.back-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-accent);
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.back-content ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.back-content li {
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.6rem 0.85rem;
  border-left: 3px solid var(--dark-cyan);
  border-radius: 4px;
  background: rgba(0, 142, 150, 0.05);
  transition: all 0.3s ease;
}

.back-content li:hover {
  border-left-color: var(--text-accent);
  background: rgba(0, 142, 150, 0.1);
  transform: translateX(5px);
}

/* ============================================================================
   PROJECTS SECTION
   ============================================================================ */
.projects {
  background: linear-gradient(135deg, transparent, rgba(140, 53, 91, 0.03));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  padding: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.8),
    rgba(68, 39, 185, 0.05)
  );
  border: 2px solid rgba(61, 89, 200, 0.2);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 18px 18px 0 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.15),
    rgba(26, 27, 55, 0.3)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.project-lang {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    135deg,
    rgba(68, 39, 185, 0.5),
    rgba(140, 53, 91, 0.3)
  );
  border-radius: 22px;
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.5s ease;
  z-index: -1;
}

.project-card:hover::after {
  opacity: 1;
  animation: card-glow-pulse 3s ease-in-out infinite;
}

/* Card glow pulse animation (shared) */
@keyframes card-glow-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 142, 150, 0.1), transparent);
  transition: all 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
  top: -20%;
  right: -20%;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: #4364e86e;
  box-shadow: 0 20px 50px rgba(68, 39, 185, 0.4);
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.95),
    rgba(68, 39, 185, 0.1)
  );
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.project-tag {
  padding: 0.4rem 1rem;
  background: rgba(0, 142, 150, 0.15);
  border: 1.5px solid var(--dark-cyan);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-cyan);
  white-space: nowrap;
  transition: all 0.3s ease;
  font-weight: 600;
}

.project-card:hover .project-tag {
  background: rgba(0, 142, 150, 0.25);
  box-shadow: 0 0 15px rgba(0, 142, 150, 0.3);
  transform: translateY(-2px) scale(1.05);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-tech span {
  padding: 0.4rem 0.9rem;
  background: rgba(61, 89, 200, 0.12);
  border: 1.5px solid rgba(61, 89, 200, 0.4);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-purple);
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-card:hover .project-tech span {
  background: rgba(61, 89, 200, 0.2);
  border-color: var(--text-cyan);
  color: var(--text-cyan);
  transform: translateY(-3px);
}

.project-tech span:nth-child(2) {
  transition-delay: 0.05s;
}

.project-tech span:nth-child(3) {
  transition-delay: 0.1s;
}

.project-tech span:nth-child(4) {
  transition-delay: 0.15s;
}

.project-tech span:nth-child(5) {
  transition-delay: 0.2s;
}

.project-links {
  padding-top: 1rem;
  border-top: 1px solid rgba(61, 89, 200, 0.2);
}

.project-link {
  color: var(--text-cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.project-link::after {
  content: "→";
  transition: transform 0.4s ease;
}

.project-link:hover {
  transform: translateX(8px);
  color: var(--text-accent);
}

.project-link:hover::after {
  transform: translateX(5px);
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */
.contact {
  background: linear-gradient(135deg, rgba(0, 142, 150, 0.03), transparent);
  padding: var(--spacing-xl) 5%;
  display: flex;
  justify-content: center;
}

.contact .contact-wrapper {
  max-width: 800px;
  width: 100%;
}

.contact .contact-form {
  justify-self: center;
  background: rgba(26, 27, 55, 0.4);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 142, 150, 0.4);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.contact .contact-form::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.3),
    rgba(68, 39, 185, 0.2)
  );
  border-radius: 18px;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.contact .contact-form:hover::after {
  opacity: 1;
}

.contact .contact-form:hover {
  border-color: rgba(0, 142, 150, 0.7);
  box-shadow: 0 8px 30px rgba(0, 142, 150, 0.2);
  transform: translateY(-2px);
}

.contact .contact-form h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  font-weight: 600;
}

.contact .contact-form h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--dark-cyan), var(--text-accent));
  border-radius: 2px;
}

.contact .form-required-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.contact .message {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: message-appear 0.5s ease-out;
}

@keyframes message-appear {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact .message.succes {
  background: linear-gradient(
    135deg,
    rgba(40, 200, 64, 0.2),
    rgba(40, 200, 64, 0.05)
  );
  border: 2px solid rgba(40, 200, 64, 0.4);
  color: #7ceb8c; /* WCAG AA: lighter green for contrast */
}

.contact .message.succes::before {
  content: "✓";
  font-size: 1.5rem;
  font-weight: 700;
}

.contact .message.erreur {
  background: linear-gradient(
    135deg,
    rgba(255, 95, 87, 0.2),
    rgba(255, 95, 87, 0.05)
  );
  border: 2px solid rgba(255, 95, 87, 0.4);
  color: #ff9a95; /* WCAG AA: lighter red for contrast */
}

.contact .message.erreur::before {
  content: "✕";
  font-size: 1.5rem;
  font-weight: 700;
}

.contact .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact .form-group {
  margin-bottom: 1rem;
}

.contact .form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.contact .form-group:focus-within label {
  color: var(--text-accent);
}

.contact .form-group input,
.contact .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(26, 27, 55, 0.5);
  border: 1px solid rgba(0, 142, 150, 0.25);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.contact .form-group input::placeholder,
.contact .form-group textarea::placeholder {
  color: var(
    --text-muted
  ); /* WCAG AA: use muted color instead of opacity */
}

.contact .form-group input:focus,
.contact .form-group textarea:focus {
  background: rgba(26, 27, 55, 0.7);
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 225, 0.15), 0 0 20px rgba(0, 217, 225, 0.08);
}

.contact .form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.contact .btn-submit-alignment {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.contact .btn-submit {
  border: 2.5px solid rgba(0, 142, 150, 0.4);
  padding: 0.75rem 5rem;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.6),
    rgba(61, 89, 200, 0.05)
  );
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.contact .btn-submit::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(
    135deg,
    rgba(61, 89, 200, 0.4),
    rgba(0, 142, 150, 0.3)
  );
  border-radius: 14px;
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.contact .btn-submit:hover::after {
  opacity: 1;
}

.contact .btn-submit:hover {
  background: linear-gradient(
    135deg,
    rgba(61, 89, 200, 0.12),
    rgba(0, 142, 150, 0.08)
  );
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(61, 89, 200, 0.6);
  box-shadow:
    0 10px 28px rgba(61, 89, 200, 0.3),
    0 0 40px rgba(0, 142, 150, 0.12);
  color: var(--text-accent);
  animation: submit-glow-pulse 2s ease-in-out infinite;
}

@keyframes submit-glow-pulse {
  0%, 100% {
    box-shadow:
      0 10px 28px rgba(61, 89, 200, 0.3),
      0 0 40px rgba(0, 142, 150, 0.12);
  }
  50% {
    box-shadow:
      0 10px 35px rgba(61, 89, 200, 0.4),
      0 0 50px rgba(0, 142, 150, 0.18);
  }
}

/* États de validation */
.contact .form-group input:valid,
.contact .form-group textarea:valid {
  border-color: rgba(40, 200, 64, 0.3);
}

.contact .form-group input:invalid:not(:placeholder-shown),
.contact .form-group textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(0, 142, 150, 0.4);
}

.contact-content {
  max-width: 900px;
  margin: 0 auto;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  margin-top: 2rem;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.contact-card {
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.7),
    rgba(68, 39, 185, 0.05)
  );
  border: 2px solid rgba(61, 89, 200, 0.2);
  border-radius: 16px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    135deg,
    rgba(0, 142, 150, 0.5),
    rgba(68, 39, 185, 0.3)
  );
  border-radius: 18px;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.5s ease;
  z-index: -1;
}

.contact-card:hover::after {
  opacity: 1;
}

.contact-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.contact-icon {
  margin-right: 0.25rem;
  width: 32px;
  height: 32px;
  color: var(--text-cyan);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  color: var(--text-accent);
  transform: scale(1.1) rotate(5deg);
}

.contact-card-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-card-disabled .contact-icon {
  color: var(--text-secondary);
}

.contact-card-disabled .contact-value {
  font-style: italic;
  color: var(--text-secondary);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 142, 150, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--text-cyan);
  box-shadow: 0 15px 40px rgba(0, 142, 150, 0.3);
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.9),
    rgba(68, 39, 185, 0.1)
  );
}

.contact-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

#linkedin {
  padding-top: 2.7rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
  padding: 2.5rem 5%;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  background: linear-gradient(
    135deg,
    rgba(26, 27, 55, 0.5),
    rgba(68, 39, 185, 0.02)
  );
  position: relative;
  transition: all 0.3s ease;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-socials a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0.4rem;
  border-radius: 8px;
}

.footer-socials a:hover {
  color: var(--text-accent);
  transform: translateY(-2px);
  background: rgba(0, 142, 150, 0.1);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Mobile Touch Interactions */
@media (hover: none) and (pointer: coarse) {
  /* Auto-enable glows on mobile for better visibility */
  .hero-badge::before,
  .btn-primary::after,
  .btn-secondary::after {
    opacity: 0.6;
    animation: badge-glow-pulse 3s ease-in-out infinite;
  }

  /* Cards show subtle glow on mobile */
  .project-card::after,
  .contact-card::after {
    opacity: 0.3;
  }

  /* Section numbers always show glow on mobile */
  .section-number::before {
    opacity: 0.5;
  }

  /* Touch active states for interactive elements */
  .nav-link:active {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(
      135deg,
      rgba(0, 142, 150, 0.15),
      rgba(68, 39, 185, 0.1)
    );
    border-color: rgba(0, 142, 150, 0.4);
    box-shadow: 0 6px 20px rgba(0, 142, 150, 0.3);
  }

  .nav-link:active::before {
    opacity: 1;
  }

  .nav-link:active::after {
    width: 70%;
  }

  .nav-link:active .nav-icon {
    transform: scale(1.3) rotate(10deg);
  }

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

  .btn:active {
    transform: translateY(-3px) scale(1.03);
  }

  .btn-primary:active::before {
    opacity: 1;
  }

  .btn-primary:active::after {
    opacity: 1;
  }

  .btn-secondary:active::after {
    opacity: 1;
  }

  .btn-cv:active::before {
    opacity: 1;
  }

  .btn-cv:active::after {
    opacity: 1;
  }

  /* Cards expand on tap/active */
  .project-card:active,
  .contact-card:active {
    transform: translateY(-8px) scale(1.02);
  }

  .project-card:active::after,
  .contact-card:active::after {
    opacity: 1;
  }

  /* Stats active state */
  .stat:active {
    transform: translateY(-8px) scale(1.03);
  }

  .stat:active::before {
    opacity: 1;
  }

  /* Logo container - subtle animation on mobile */
  .logo-glow {
    opacity: 0.3;
    animation: logo-glow-pulse 3s ease-in-out infinite;
  }

  .logo-ring {
    opacity: 0.5;
  }

  /* Subtle breathing animation for cards on mobile */
  .project-card {
    animation: card-breathe 4s ease-in-out infinite;
  }

  @keyframes card-breathe {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }

  /* Section titles have constant shimmer on mobile */
  .section-title {
    animation: title-shimmer 3s ease-in-out infinite;
  }

  /* Tech showcase items auto-rotate slightly on mobile */
  .tech-item:nth-child(odd) {
    animation: subtle-float 6s ease-in-out infinite;
  }

  .tech-item:nth-child(even) {
    animation: subtle-float 6s ease-in-out infinite reverse;
  }

  @keyframes subtle-float {
    0%,
    100% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-10px) rotate(1deg);
    }
  }

  /* Nav links pulse slightly to indicate interactivity */
  .nav-link {
    animation: nav-pulse 3s ease-in-out infinite;
  }

  .nav-link:nth-child(2) {
    animation-delay: 0.2s;
  }

  .nav-link:nth-child(3) {
    animation-delay: 0.4s;
  }

  .nav-link:nth-child(4) {
    animation-delay: 0.6s;
  }

  .nav-link:nth-child(5) {
    animation-delay: 0.8s;
  }

  @keyframes nav-pulse {
    0%,
    100% {
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
      box-shadow: 0 4px 15px rgba(0, 142, 150, 0.2);
    }
  }
}

/* Tablet & Large Mobile (<=968px) */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md) 5%;
  }

  .hero-content {
    flex: none;
    max-width: 100%;
  }

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

  /* Breach scales on tablet — flex: none so height isn't overridden by flex-basis: 0
     width: 100% needed because align-items: center prevents stretching in column layout,
     and all breach children are position: absolute (no in-flow content to give width) */
  .hero-breach {
    flex: none;
    width: 100%;
    height: 350px;
    max-width: 400px;
    margin: 0 auto;
  }

  .game-wrapper {
    width: 85%;
  }

  .dino-canvas {
    height: 140px;
  }

  .hero-cracks {
    display: none;
  }

  .hud-header,
  .hud-footer {
    left: 8%;
    right: 8%;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .logo {
    z-index: 1001;
  }

  /* Mobile Menu - Radial/Circle Style */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 125vh;
    background: radial-gradient(
      circle at top right,
      rgba(0, 142, 150, 0.15) 0%,
      rgba(26, 27, 55, 0.98) 50%,
      rgba(20, 21, 45, 0.99) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    clip-path: circle(0% at calc(100% - 40px) 35px);
    transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    visibility: hidden;
  }

  .nav-menu::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(
      circle,
      rgba(0, 142, 150, 0.1) 0%,
      transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
  }

  .nav-menu::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(
      circle at top right,
      rgba(68, 39, 185, 0.3) 0%,
      transparent 60%
    );
    pointer-events: none;
    ul {
      margin-top: 2rem;
    }
  }

  .nav-menu.active {
    clip-path: circle(150% at calc(100% - 40px) 35px);
    visibility: visible;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    align-items: center;
  }

  .nav-menu li {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    animation: none;
  }

  .nav-menu.active li {
    opacity: 1;
    animation: circle-menu-pop 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav-menu.active li:nth-child(1) {
    animation-delay: 0.05s;
  }
  .nav-menu.active li:nth-child(2) {
    animation-delay: 0.1s;
  }
  .nav-menu.active li:nth-child(3) {
    animation-delay: 0.15s;
  }
  .nav-menu.active li:nth-child(4) {
    animation-delay: 0.2s;
  }
  .nav-menu.active li:nth-child(5) {
    animation-delay: 0.25s;
  }
  .nav-menu.active li:nth-child(6) {
    animation-delay: 0.3s;
  }

  @keyframes circle-menu-pop {
    0% {
      opacity: 0;
      transform: scale(0.9) translateY(10px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  .nav-link {
    padding: 1.1rem 2.5rem;
    justify-content: center;
    border-radius: 50px;
    background: linear-gradient(
      135deg,
      rgba(0, 142, 150, 0.15),
      rgba(68, 39, 185, 0.1)
    );
    border: 2px solid rgba(0, 142, 150, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    min-width: 200px;
    text-align: center;
  }

  .nav-link::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    background: linear-gradient(
      135deg,
      rgba(0, 142, 150, 0.4),
      rgba(68, 39, 185, 0.3)
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
  }

  .nav-link:hover::before,
  .nav-link:active::before {
    opacity: 1;
  }

  .nav-link:hover,
  .nav-link:active {
    background: linear-gradient(
      135deg,
      rgba(0, 142, 150, 0.25),
      rgba(68, 39, 185, 0.15)
    );
    border-color: var(--text-cyan);
    transform: scale(1.08);
    box-shadow:
      0 8px 30px rgba(0, 142, 150, 0.35),
      0 0 20px rgba(0, 142, 150, 0.2);
  }

  .nav-text {
    font-size: 1.15rem;
    font-weight: 600;
    pointer-events: none;
    letter-spacing: 0.5px;
  }

  .nav-icon {
    font-size: 1.3rem;
    pointer-events: none;
  }

  .nav-highlight {
    background: linear-gradient(
      135deg,
      rgba(0, 142, 150, 0.25),
      rgba(68, 39, 185, 0.15)
    );
    border-color: var(--text-cyan);
    box-shadow: 0 4px 20px rgba(0, 142, 150, 0.2);
  }

  .nav-highlight:hover,
  .nav-highlight:active {
    background: linear-gradient(
      135deg,
      rgba(0, 142, 150, 0.3),
      rgba(68, 39, 185, 0.18)
    );
    box-shadow: 0 4px 20px rgba(0, 142, 150, 0.35);
  }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  section {
    padding: var(--spacing-lg) 5%;
  }

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

  /* Simplified skills breach clip-path — fewer jagged points for readability */
  :root {
    --skills-breach-clip: polygon(
      0% 2%,
      18% 10%,
      40% 2%,
      60% 8%,
      82% 0%,
      100% 6%,
      100% 94%,
      80% 100%,
      58% 92%,
      38% 100%,
      16% 93%,
      0% 98%
    );
  }

  /* Softer edge glow on mobile */
  .skills-breach-edge-glow {
    inset: -10px;
    box-shadow:
      inset 0 0 30px rgba(0, 255, 65, 0.18),
      inset 0 0 60px rgba(0, 255, 65, 0.08);
    border-width: 2px;
    border-color: rgba(0, 255, 65, 0.25);
    animation: none;
  }

  /* Tech cards - Modern mobile design */
  .tech-item {
    height: auto;
    perspective: none;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(
      145deg,
      rgba(26, 27, 55, 0.9),
      rgba(20, 21, 45, 0.95)
    );
    border: 1px solid rgba(0, 142, 150, 0.2);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .tech-item:active {
    transform: scale(0.98);
  }

  .tech-item-inner {
    transform-style: flat;
    display: flex;
    flex-direction: row;
    transform: none !important;
    gap: 0;
  }

  .tech-item:hover .tech-item-inner {
    transform: none;
  }

  .tech-item-front,
  .tech-item-back {
    position: relative;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none !important;
    height: auto;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  .tech-item-front {
    flex: 0 0 100px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 142, 150, 0.15) !important;
    background: linear-gradient(
      180deg,
      rgba(0, 142, 150, 0.08),
      rgba(68, 39, 185, 0.05)
    ) !important;
  }

  .tech-item-front h3 {
    font-size: 0.85rem;
    margin-top: 0.6rem;
    text-align: center;
    line-height: 1.2;
  }

  .tech-icon-large {
    width: 48px;
    height: 48px;
  }

  .tech-icon-large svg,
  .tech-logo-img {
    filter: drop-shadow(0 4px 12px rgba(0, 142, 150, 0.4));
  }

  .tech-item-back {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .back-content {
    padding: 0;
  }

  .back-content h4 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .back-content h4::before {
    content: "";
    width: 12px;
    height: 2px;
    background: var(--dark-cyan);
    border-radius: 2px;
  }

  .back-content ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .back-content ul li {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    list-style: none;
    padding-left: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Formulaire de contact responsive */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .contact-form {
    padding: 1.5rem !important;
  }

  .contact-form h2 {
    font-size: 1.5rem !important;
  }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

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

  /* Formulaire de contact sur petit mobile */
  .contact-form {
    padding: 1.25rem !important;
  }

  .contact-form h2 {
    font-size: 1.35rem !important;
  }

  .btn-submit {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Breach on phone */
  .hero-breach {
    height: 300px;
    max-width: 340px;
  }

  .game-wrapper {
    width: 85%;
  }

  .dino-canvas {
    height: 100px;
  }

  .hud-header,
  .hud-footer {
    left: 6%;
    right: 6%;
    font-size: 0.5rem;
  }

  .hud-header,
  .hud-footer {
    font-size: 0.55rem;
    padding: 0.2rem 0.4rem;
  }

  .terminal-dots span {
    width: 5px;
    height: 5px;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  /* Mobile menu adjustments for small screens */
  .nav-menu ul {
    gap: 0.8rem;
  }

  .nav-link {
    padding: 0.9rem 1.8rem;
    min-width: 180px;
  }

  .nav-text {
    font-size: 1rem;
  }

  .hamburger {
    padding: 8px;
  }

  .hamburger-line {
    width: 24px;
    height: 2px;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

