/* ==============================
   Variables & Base Styles
============================== */
:root {
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-dark: #5b21b6;
  --accent-glow: rgba(124, 58, 237, 0.3);

  /* Missing Slider Variables */
  --bg-primary: #05080f;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.1);
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --dark: #09090b;
  --dark-card: #0f0f12;
  --dark-lighter: #18181b;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  /* Hide default cursor */
}

a,
button,
.card-hover,
.skill-card,
.nav-link,
.theme-switch {
  cursor: none !important;
}

/* ==============================
   Scrollbar
============================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
}

/* ==============================
   Animated Background
============================== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==============================
   Custom Cursor
============================== */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-out;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  opacity: 0.5;
}

/* Cursor Hover State */
body.cursor-hover .cursor-outline {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: var(--accent);
  opacity: 0.2;
  border: none;
}

.flashlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle 350px at var(--x, 50%) var(--y, 50%),
      rgba(124, 58, 237, 0.15) 0%,
      transparent 100%);
  opacity: 0.6;
}

[data-theme="light"] .flashlight {
  background: radial-gradient(circle 400px at var(--x, 50%) var(--y, 50%),
      rgba(10, 189, 227, 0.12) 0%,
      transparent 100%);
  opacity: 0.8;
}

@media (max-width: 1024px) {

  .cursor-dot,
  .cursor-outline,
  .flashlight {
    display: none;
  }
}

/* ==============================
   Floating Particles
============================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ==============================
   Sidebar
============================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 14rem;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  animation: pulse-glow 3s infinite;
}

.sidebar-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px var(--accent-glow);
  animation: pulse-glow 3s infinite;
  transition: transform 0.3s ease;
}

.sidebar-logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 15px var(--accent-glow);
  }

  50% {
    box-shadow: 0 4px 25px var(--accent-glow), 0 0 40px rgba(124, 58, 237, 0.2);
  }
}

.sidebar-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.95rem;
}

.sidebar-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-link {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), transparent);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-light);
  padding-left: 1.25rem;
}

.nav-link.active {
  background: rgba(124, 58, 237, 0.1);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==============================
   Main Content
============================== */
.main-content {
  margin-left: 14rem;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* ==============================
   Hero Section
============================== */
.hero-section {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* ==============================
   Indicateur de Défilement (Souris)
============================== */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 20;
  animation: float-indicator 3s infinite ease-in-out;
}

.mouse-scroll {
  width: 28px;
  height: 45px;
  border: 2px solid var(--accent-light);
  border-radius: 15px;
  position: relative;
  display: flex;
  justify-content: center;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background-color: var(--accent-light);
  border-radius: 2px;
  margin-top: 10px;
  animation: scroll-wheel 1.8s infinite;
  box-shadow: 0 0 8px var(--accent-glow);
}

.scroll-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  opacity: 0.8;
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(12px);
    opacity: 0.3;
  }

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

@keyframes float-indicator {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -10px);
  }
}

/* ==============================
   Cartes Epreuve E6 Premium
   ============================== */
.e6-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.e6-card {
  background: var(--dark-card);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.e6-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.1);
}

.realization-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.e6-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.e6-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.e6-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.e6-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.check-list li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.e6-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-situations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-mini {
  padding: 0.5rem;
  font-size: 0.75rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-mini:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--accent-light);
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 0.75rem;
    scale: 0.9;
  }
}

/* ==============================
   Project Cards Premium
   ============================== */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--accent);
  color: white;
}

.project-status.in-progress {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
  color: #fbbf24;
}

.project-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-icon-wrapper {
  transform: scale(1.1);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.tag-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  margin: 0.2rem;
  display: inline-block;
}

.project-links-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.project-badge-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.project-badge-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.project-badge-link i {
  font-size: 0.9rem;
}

.btn-play-game {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  background: var(--accent);
  color: #05080f;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(203, 164, 247, 0.3);
}

.btn-play-game:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(203, 164, 247, 0.5);
}

/* ==============================
   Sections
============================== */
.section {
  padding: 6rem 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 4rem;
  }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

/* ==============================
   Cards
============================== */
.card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.5s ease;
}

.card-hover:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

/* ==============================
   Skill Cards Enhanced
============================== */
.skill-card {
  background: linear-gradient(135deg, var(--dark-card), var(--dark-lighter));
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.skill-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-card:hover::after {
  transform: scaleX(1);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skill-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-item {
  padding: 0.35rem 0.75rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent-light);
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: scale(1.05);
}

.skill-level {
  margin-top: 1rem;
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  animation: progressGrow 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes progressGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ==============================
   Buttons
============================== */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary::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.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: transparent;
  color: var(--accent-light);
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.btn-accent {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-accent:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--accent);
  transform: translateX(5px);
}

.btn-doc {
  display: block;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 0.75rem;
  text-align: center;
}

.btn-doc:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ==============================
   Text Colors
============================== */
.text-accent {
  color: var(--accent-light);
}

.bg-dark {
  background: var(--dark);
}

/* ==============================
   Cert Logos
============================== */
.cert-logo {
  width: 55px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.card-hover:hover .cert-logo {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.logo-container {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==============================
   Timeline Enhanced
============================== */
.timeline {
  position: relative;
  padding-left: 35px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light), var(--accent));
  animation: timelineGlow 3s infinite;
}

@keyframes timelineGlow {

  0%,
  100% {
    box-shadow: 0 0 10px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 20px var(--accent-glow);
  }
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--dark), 0 0 20px var(--accent-glow);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px var(--dark), 0 0 20px var(--accent-glow);
  }

  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--dark), 0 0 30px var(--accent-glow);
  }
}

.timeline-content {
  padding-left: 15px;
  padding: 1rem 1.25rem;
  background: var(--dark-card);
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  margin-left: 10px;
}

/* ==============================
   PDF Container Enhanced
============================== */
.pdf-container {
  background: linear-gradient(135deg, var(--dark-card), var(--dark-lighter));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.pdf-container:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 58, 237, 0.1);
}

.pdf-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.pdf-header {
  padding: 1rem 1.25rem;
  background: rgba(124, 58, 237, 0.1);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-title {
  font-weight: 600;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==============================
   Badges & Tags
============================== */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
  font-size: 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-alt {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-light);
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

/* ==============================
   Form Inputs
============================== */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), 0 0 20px rgba(124, 58, 237, 0.1);
}

/* ==============================
   Footer
============================== */
.footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.02));
}

/* ==============================
   Stagger Animation
============================== */
.stagger-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

[data-aos] .stagger-item {
  animation: staggerIn 0.6s ease forwards;
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   Glowing Border
============================== */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-light), var(--accent));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.glow-border:hover::before {
  opacity: 0.5;
}

/* ==============================
   Responsive
============================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-image-container {
    max-width: 250px;
  }
}

/* ==============================
   Hero & Profile Image
   ============================== */
.hero-section {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  position: relative;
  animation: profileFloat 6s ease-in-out infinite;
  /* Masking to create a "cut-out" effect if needed, or just relying on PNG transparency */
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes profileFloat {

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

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

@keyframes glowPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.5;
  }

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

.hero-content {
  z-index: 3;
}

.hero-title {
  background: linear-gradient(to right, #fff, var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  line-height: 1.1;
}

.section-title {
  font-size: 2rem;
}

/* ==============================
   Réseaux Sociaux & Contact
   ============================== */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-link-item {
  width: 50px;
  height: 50px;
  background: var(--dark-card);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link-item:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--accent-glow);
  background: rgba(124, 58, 237, 0.1);
}

.social-link-item.github:hover {
  color: #fff;
  background: #24292e;
  border-color: #444;
}

.social-link-item.linkedin:hover {
  color: #fff;
  background: #0077b5;
  border-color: #0077b5;
}

.theme-switch {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
}

.switch-track {
  width: 48px;
  height: 24px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.switch-knob span {
  font-size: 10px;
  position: absolute;
  transition: all 0.3s ease;
}

.icon-moon {
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
}

.icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

[data-theme="light"] .switch-track {
  background: rgba(10, 189, 227, 0.1);
  border-color: rgba(10, 189, 227, 0.2);
}

[data-theme="light"] .switch-knob {
  left: 26px;
  background: linear-gradient(135deg, #48dbfb, #0984e3);
}

[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(45deg);
}

[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.theme-switch:hover .switch-track {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ==============================
   Smooth Theme Transition
============================== */
body,
.sidebar,
.card,
.skill-card,
.timeline-content,
.pdf-container,
.pdf-header,
.form-input,
.nav-link,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-doc,
.badge,
.tag,
.skill-item,
.footer {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ==============================
   Light Mode Theme (Call of Duty / Tactical)
============================== */
/* ==============================
   Light Mode Theme (Interactive JS Gaming / Matrix)
============================== */
[data-theme="light"] {
  --accent: #0abde3;
  /* Tactical Cyan */
  --accent-light: #48dbfb;
  --accent-dark: #0984e3;
  --accent-glow: rgba(10, 189, 227, 0.4);

  /* Deep Night Vision/Gunmetal */
  --dark: #0f172a;
  --dark-card: rgba(30, 39, 46, 0.7);
  /* Deep Glass HUD plates */
  --dark-lighter: rgba(47, 54, 64, 0.8);

  --text-primary: #f5f6fa;
  /* High contrast white/grey text */
  --text-secondary: #dcdde1;
  --text-muted: #7f8fa6;
}

/* Override Tailwind classes for light mode (Now behaving like a dark sub-theme) */
[data-theme="light"] .text-white {
  color: #ffffff !important;
}

[data-theme="light"] .text-gray-200 {
  color: #f5f6fa !important;
}

[data-theme="light"] .text-gray-300 {
  color: #dcdde1 !important;
}

[data-theme="light"] .text-gray-400 {
  color: #bdc3c7 !important;
}

[data-theme="light"] .text-gray-500 {
  color: #7f8fa6 !important;
}

[data-theme="light"] .text-gray-600 {
  color: #718093 !important;
}

[data-theme="light"] .bg-dark {
  background: var(--dark) !important;
}

/* Hide CSS Grid, use Canvas Instead */
[data-theme="light"] .bg-grid {
  display: none !important;
}

/* Hide Canvas in Dark Mode */
.gaming-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Behind content */
  display: none;
  pointer-events: none;
  /* Let clicks pass through */
}

[data-theme="light"] .gaming-canvas {
  display: block;
}

/* Sidebar light mode (Glass HUD) */
[data-theme="light"] .sidebar {
  background: rgba(15, 23, 42, 0.85);
  /* Dark Gunmetal Glass */
  border-right: 1px solid rgba(10, 189, 227, 0.2);
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .sidebar-header {
  border-bottom-color: rgba(124, 92, 230, 0.08);
}

[data-theme="light"] .sidebar-name {
  color: #f5f6fa;
}

[data-theme="light"] .sidebar-subtitle {
  color: #0abde3;
}

[data-theme="light"] .sidebar-footer {
  border-top-color: rgba(10, 189, 227, 0.1);
  color: #7f8fa6;
}

[data-theme="light"] .nav-link {
  color: #bdc3c7;
}

[data-theme="light"] .nav-link:hover {
  color: var(--accent);
  background: rgba(10, 189, 227, 0.1);
}

[data-theme="light"] .nav-link.active {
  color: var(--accent);
  background: rgba(10, 189, 227, 0.15);
  border-right: 3px solid var(--accent);
}

/* Cards — Glass HUD Plates */
[data-theme="light"] .card {
  background: var(--dark-card) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(10, 189, 227, 0.2);
  border-left: 3px solid rgba(10, 189, 227, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  transition: all 0.2s ease-out;
}

[data-theme="light"] .card-hover:hover {
  border-color: #0abde3;
  border-left: 4px solid #0abde3;
  box-shadow:
    0 8px 30px rgba(10, 189, 227, 0.2),
    0 0 15px rgba(10, 189, 227, 0.1);
  transform: translateY(-4px);
}

/* Skill cards - Glass HUD Plates */
[data-theme="light"] .skill-card {
  background: var(--dark-card) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(10, 189, 227, 0.2);
  border-bottom: 3px solid rgba(10, 189, 227, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  transition: all 0.2s ease-out;
}

[data-theme="light"] .skill-card:hover {
  border-color: #0abde3;
  border-bottom: 4px solid #0abde3;
  box-shadow: 0 8px 30px rgba(10, 189, 227, 0.2), 0 0 15px rgba(10, 189, 227, 0.1);
  transform: translateY(-4px);
}

[data-theme="light"] .skill-logo {
  background: rgba(10, 189, 227, 0.1);
}

[data-theme="light"] .skill-item {
  background: rgba(10, 189, 227, 0.1);
  border-color: rgba(10, 189, 227, 0.2);
  color: #0abde3;
}

[data-theme="light"] .skill-bar {
  background: rgba(0, 0, 0, 0.06);
}

/* Buttons — antigravity glow (shadow rises) */
[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 15px rgba(124, 92, 230, 0.3);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 -4px 20px rgba(124, 92, 230, 0.4), 0 8px 25px rgba(124, 92, 230, 0.2);
}

[data-theme="light"] .btn-secondary {
  color: var(--accent);
  border-color: rgba(124, 92, 230, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(124, 92, 230, 0.06);
  box-shadow: 0 -4px 15px rgba(124, 92, 230, 0.15);
}

[data-theme="light"] .btn-accent {
  color: var(--accent);
  background: rgba(124, 92, 230, 0.06);
}

[data-theme="light"] .btn-doc {
  background: rgba(124, 92, 230, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #5a5672;
}

[data-theme="light"] .btn-doc:hover {
  color: var(--accent);
  background: rgba(124, 92, 230, 0.08);
  border-color: rgba(124, 92, 230, 0.2);
  box-shadow: 0 -4px 12px rgba(124, 92, 230, 0.1);
}

/* Timeline */
[data-theme="light"] .timeline-content {
  background: var(--dark-card) !important;
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 16px;
}

/* PDF container */
[data-theme="light"] .pdf-container {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pdf-header {
  background: rgba(124, 92, 230, 0.04);
  border-bottom-color: rgba(124, 92, 230, 0.08);
}

[data-theme="light"] .pdf-title {
  color: var(--accent);
}

/* Badge & Tags — pastel */
[data-theme="light"] .badge {
  background: rgba(124, 92, 230, 0.08);
  color: var(--accent);
  border-color: rgba(124, 92, 230, 0.15);
}

[data-theme="light"] .badge-alt {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .tag {
  background: rgba(124, 92, 230, 0.06);
  color: var(--accent);
  border-color: rgba(124, 92, 230, 0.1);
}

/* Form inputs */
[data-theme="light"] .form-input {
  background: #f5f3f0;
  border-color: rgba(0, 0, 0, 0.08);
  color: #2d2a3e;
}

[data-theme="light"] .form-input::placeholder {
  color: #a09caf;
}

[data-theme="light"] .form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 230, 0.1);
  background: #ffffff;
}

/* Footer */
[data-theme="light"] .footer {
  border-top-color: rgba(0, 0, 0, 0.04);
  color: #8a86a0;
}

/* Background effects — very subtle */
[data-theme="light"] .bg-grid {
  background-image: none;
  /* Removed in favor of large pastel blobs */
}

[data-theme="light"] .mouse-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(244, 114, 182, 0.03) 40%, transparent 70%);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f0ede8;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 230, 0.25);
}

/* Section title — warm gradient */
[data-theme="light"] .section-title span {
  background: linear-gradient(135deg, #2d2a3e, #7c5ce6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .section-subtitle {
  color: #8a86a0;
}

[data-theme="light"] .section-divider {
  background: linear-gradient(90deg, transparent, rgba(124, 92, 230, 0.3), transparent);
}

/* Text accent */
[data-theme="light"] .text-accent {
  color: var(--accent) !important;
}

/* Cert logo */
[data-theme="light"] .cert-logo {
  filter: none;
}

/* Hero — warm treatment */
[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #2d2a3e, #7c5ce6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sidebar logo glow softened */
[data-theme="light"] .sidebar-logo,
[data-theme="light"] .sidebar-logo-img {
  box-shadow: 0 4px 15px rgba(124, 92, 230, 0.15);
}

/* Modal */
[data-theme="light"] #inextSuiviModal>div {
  background: #ffffff !important;
  border-color: rgba(124, 92, 230, 0.1) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #inextSuiviModal>div>button {
  color: #2d2a3e !important;
}

[data-theme="light"] #inextSuiviModal h3 {
  color: var(--accent) !important;
}

[data-theme="light"] #inextSuiviModal p {
  color: #5a5672 !important;
}

[data-theme="light"] #inextSuiviModal img {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Theme toggle in light mode */
[data-theme="light"] .theme-toggle {
  background: rgba(124, 92, 230, 0.06);
  border-color: rgba(124, 92, 230, 0.12);
  color: var(--accent);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(124, 92, 230, 0.12);
  box-shadow: 0 -4px 15px rgba(124, 92, 230, 0.1);
}

/* ==============================
   Theme Transition Overlay
============================== */
.theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

.theme-celestial {
  position: absolute;
  font-size: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  pointer-events: none;
}

/* ==============================
   Marquee Banner
============================== */
.marquee-banner {
  overflow: hidden;
  white-space: nowrap;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  position: relative;
  margin: 2rem 0;
}

.marquee-banner::before,
.marquee-banner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-banner::before {
  left: 0;
  background: linear-gradient(90deg, var(--dark), transparent);
}

.marquee-banner::after {
  right: 0;
  background: linear-gradient(270deg, var(--dark), transparent);
}

.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marquee-item .marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

[data-theme="light"] .marquee-banner {
  border-color: rgba(124, 92, 230, 0.08);
}

/* ==============================
   Tech Carousel Cards
============================== */
.tech-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 120px;
  background: transparent;
  border: none;
  border-radius: 16px;
  margin: 0 8px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
}

.tech-card:hover {
  background: transparent;
  transform: translateY(-5px);
  color: var(--text-primary);
}

.tech-card.active {
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
}


.tech-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

[data-theme="light"] .tech-card {
  background: transparent;
  border: none;
  color: var(--text-muted);
}

[data-theme="light"] .tech-card:hover {
  background: transparent;
  color: #2d2a3e;
  box-shadow: none;
}

/* Marquee Filtering Animation */
.tech-card.hidden {
  display: none !important;
}

/* Skill Card Filtering */
.skill-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-card.hidden {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.marquee-banner.cards-marquee {
  border-top: none;
  border-bottom: none;
  padding: 1rem 0;
  overflow: visible;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================================
   TECHNOLOGIES SLIDER (Aziz Reference Style)
   ========================================= */
.tech-slider {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.tech-slider::before,
.tech-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.tech-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.tech-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.tech-slider.filtered::before,
.tech-slider.filtered::after {
  display: none;
}

.tech-slider.filtered .tech-track {
  animation: none !important;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.tech-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.tech-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  min-width: 120px;
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

.tech-icon:hover {
  transform: translateY(-8px) scale(1.05);
  background: var(--bg-surface-hover);
  border-color: var(--primary);
  box-shadow: 0 -12px 30px -10px rgba(123, 104, 238, 0.4);
}

.tech-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.tech-icon:hover img {
  filter: grayscale(0%);
}

.tech-icon span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.tech-icon:hover span {
  color: var(--text-primary);
}

.tech-icon img.invert {
  filter: brightness(0) invert(1);
}

.light-mode .tech-icon img.invert {
  filter: brightness(0);
}

/* =========================================
   TECH FILTER BUTTONS
   ========================================= */
.tech-filter {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-filter:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--primary-light);
}

.tech-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.light-mode .tech-filter.active {
  color: #fff;
}

/* ==============================
   Floating Parallax Shapes
============================== */
.parallax-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Hide all shapes in Light Mode for immersive menu aesthetic */
[data-theme="light"] .parallax-shapes {
  display: none !important;
}

/* ==============================
   Antigravity Hover Glow
============================== */
.antigravity-glow {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.antigravity-glow::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 100%;
  height: 0;
  background: radial-gradient(ellipse, var(--accent-glow), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.antigravity-glow:hover::after {
  height: 40px;
  opacity: 1;
  bottom: calc(100% - 5px);
}

.antigravity-glow:hover {
  box-shadow: 0 -8px 25px rgba(124, 58, 237, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .antigravity-glow:hover {
  box-shadow: 0 -8px 25px rgba(124, 92, 230, 0.15), 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* =========================================
   SUPER SKILL CARDS (Fused Expertise & Docs)
   ========================================= */
.super-skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.super-skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(123, 104, 238, 0.2);
}

.super-skill-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.super-skill-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .super-skill-title {
  color: var(--text-primary);
}

.super-skill-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.super-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.super-skill-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
  white-space: nowrap;
}

.super-skill-docs {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 0.75rem;
}

[data-theme="light"] .super-skill-docs {
  background: rgba(0, 0, 0, 0.02);
}

.super-skill-doc-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.super-skill-doc-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
  color: #fff;
}

[data-theme="light"] .super-skill-doc-link {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-theme="light"] .super-skill-doc-link:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--primary);
}

.super-skill-doc-icon {
  font-size: 1rem;
}