/* ================================================================================
   PORTFOLIO 9xsys - STYLE.CSS
   ================================================================================ */

/* CSS Variables */
:root {
  /* Colors */
  --primary: #f54703;
  --secondary: #ff7518;
  --dark: #1b1b1b;
  --medium: #2f2f2f;
  --text: #ffffff;
  --text-gray: #cccccc;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #f54703 0%, #ff7518 100%);
  --gradient-dark: linear-gradient(135deg, #1b1b1b 0%, #2f2f2f 100%);

  /* Shadows & Glows */
  --glow-primary: 0 0 20px rgba(245, 71, 3, 0.5), 0 0 40px rgba(245, 71, 3, 0.3);
  --glow-secondary: 0 0 30px rgba(255, 117, 24, 0.4);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-padding: 100px;
  --container-padding: 5%;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
* {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero, .section {
  transform: translateZ(0);
  will-change: opacity;
}

body.loaded {
  opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  box-shadow: var(--glow-primary);
}

/* Custom Cursor */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  transition: transform 0.2s, background 0.2s;
}

.cursor.hover {
  transform: scale(3);
  background: rgba(245, 71, 3, 0.2);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--secondary);
  opacity: 0.5;
}

/* Background Code Canvas */
#code-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

/* Blockchain Canvas - Hero Section Right Side */
#blockchain-canvas {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem var(--container-padding);
  z-index: 1000;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(27, 27, 27, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(245, 71, 3, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradient-shift 3s infinite;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-base);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link svg {
  width: 16px;
  height: 16px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 30;
  padding-top: 80px;
  background: transparent;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  /* Colonne de gauche avec le contenu */
}

.hero-greeting {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradient-shift 3s infinite;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  min-height: 50px;
}

.cursor-blink {
  animation: blink 1s infinite;
}

.hero-description {
  background: rgba(10, 10, 10, 0.7);
  border: 2px solid transparent;
  border-image: var(--gradient-primary) 1;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  box-shadow: var(--glow-primary);
  animation: laserPulse 3s infinite;
}

.hero-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  animation: laserScan 3s infinite;
}

.hero-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

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

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  width: 150px;
  height: 180px;
  background: rgba(47, 47, 47, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(245, 71, 3, 0.3);
  transition: all var(--transition-base);
  text-align: center;
}

.floating-card:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
}

.card-1 {
  top: 50px;
  left: 0;
  animation: float-1 6s ease-in-out infinite;
}

.card-2 {
  top: 150px;
  right: 50px;
  animation: float-2 7s ease-in-out infinite;
}

.card-3 {
  bottom: 50px;
  left: 80px;
  animation: float-3 8s ease-in-out infinite;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  position: relative;
  animation: mouse-bounce 2s infinite;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel-scroll 2s infinite;
}

/* Sections */
.section {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 25;
  background: var(--dark);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradient-shift 3s infinite;
}

/* About Section */
.about-section {
  z-index: 30;
  position: relative;
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  gap: 1.5rem;
}

.stat-card {
  background: rgba(47, 47, 47, 0.5);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(245, 71, 3, 0.2);
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--glow-primary);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-gray);
  font-size: 1rem;
}

/* ============================================================
   PROJECTS SECTION - HORIZONTAL SCROLL (TEMPLATE EXACT)
   ============================================================ */

/* 1. Container Section */
.projects-section {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 10;
}

/* 2. Wrapper (viewport fixe) */
.projects-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 3. Track (les cards en ligne) */
.projects-track {
  display: flex;
  height: 100vh;
  will-change: transform;
  margin: 0;
  padding: 0;
}

/* 4. Cards individuelles */
.projects-card {
  min-width: 100vw;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Canvas FAM3LY dans la première card */
#fam3ly-canvas,
#dendrogram-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  pointer-events: none;
  display: block;
  will-change: transform;
  transform: translateZ(0);
}

/* Wrapper de contenu centré avec max-width */
.projects-card > *:not(#fam3ly-canvas):not(#dendrogram-canvas) {
  max-width: 1200px;
  padding: 0 4rem;
  width: 100%;
  box-sizing: border-box;
}

/* Backgrounds différents par card */
.projects-card:nth-child(1) {
  background: #1b1b1b;
}

.projects-card:nth-child(2) {
  background: #1b1b1b;
}

.projects-card:nth-child(3) {
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
}

.projects-card:nth-child(4) {
  background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
}

/* Content Styling */
.project-content-wrapper {
  background: #2f2f2f !important;
  background-color: #2f2f2f !important;
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(245, 71, 3, 0.3);
  padding: 3rem;
  box-shadow: var(--glow-primary);
  opacity: 1 !important;
  position: relative;
  z-index: 10;
}

.project-content-wrapper .project-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradient-shift 3s infinite;
}

.project-content-wrapper .project-subtitle {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.project-content-wrapper .project-description {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.project-content-wrapper .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.project-content-wrapper .project-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  transition: all var(--transition-base);
}

.project-content-wrapper .project-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--glow-primary);
}

/* Timeline (Experience) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -8.5px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--dark), var(--glow-primary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.timeline-dot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--dark), var(--glow-secondary);
}

.experience-card {
  background: var(--medium);
  padding: 2rem;
  border-radius: 16px;
  transition: all var(--transition-base);
  border: 1px solid rgba(245, 71, 3, 0.2);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
}

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

.experience-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.experience-company {
  font-size: 1.1rem;
  color: var(--text);
}

.experience-period {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.experience-description {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.4rem 1rem;
  background: rgba(245, 71, 3, 0.1);
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary);
  transition: all var(--transition-base);
}

.tag:hover {
  transform: translateY(-2px);
  background: rgba(245, 71, 3, 0.2);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(47, 47, 47, 0.5);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(245, 71, 3, 0.2);
  transition: all var(--transition-base);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
}

/* Double Width Card for Learning */
.skill-category-double {
  grid-column: span 2;
}

/* Learning Card - Full Orange Style */
.learning-card {
  background: linear-gradient(135deg, rgba(245, 71, 3, 0.15) 0%, rgba(255, 117, 24, 0.15) 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px rgba(245, 71, 3, 0.3);
  position: relative;
  overflow: hidden;
}

.learning-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(245, 71, 3, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.learning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.learning-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(245, 71, 3, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(245, 71, 3, 0.8);
  }
}

.learning-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

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

.skill-percentage {
  color: var(--primary);
  font-weight: 600;
}

.skill-bar {
  width: 100%;
  height: 12px;
  background: rgba(245, 71, 3, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 6px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.skill-progress.animated {
  width: var(--progress);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(47, 47, 47, 0.5);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-base);
  border: 1px solid rgba(245, 71, 3, 0.2);
}

.contact-method:hover {
  transform: translateX(10px);
  box-shadow: var(--glow-primary);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 40px;
  height: 40px;
  color: var(--dark);
}

.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: var(--text-gray);
}

.cta-card {
  background: var(--medium);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  border: 2px solid var(--primary);
  box-shadow: var(--glow-primary);
}

.cta-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.cta-card p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--medium);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(245, 71, 3, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links a::before {
  content: '→ ';
  opacity: 0;
  transition: opacity var(--transition-base);
}

.footer-links a:hover::before {
  opacity: 1;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  background: rgba(245, 71, 3, 0.1);
  border: 1px solid var(--primary);
  border-radius: 50px;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--primary);
  transform: rotate(360deg);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 71, 3, 0.1);
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  box-shadow: var(--glow-primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
}

/* Animations */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

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

@keyframes float-2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-15px) translateX(10px) scale(1.02); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(5deg) scale(1.02); }
}

@keyframes mouse-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes wheel-scroll {
  0%, 100% { opacity: 0; top: 8px; }
  50% { opacity: 1; top: 15px; }
}

@keyframes laserPulse {
  0%, 100% { box-shadow: var(--glow-primary); }
  50% { box-shadow: 0 0 40px rgba(245, 71, 3, 0.8), 0 0 60px rgba(245, 71, 3, 0.5); }
}

@keyframes laserScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pixelMove {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .floating-card {
    width: 120px;
    height: 150px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #blockchain-canvas {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-visual {
    width: 100%;
  }

  .floating-card {
    width: 100px;
    height: 130px;
  }

  .card-icon {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    width: auto;
    height: auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--gradient-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left var(--transition-base);
    backdrop-filter: blur(20px);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-visual {
    height: 300px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Désactiver le scroll horizontal sur mobile */
  .projects-wrapper {
    height: auto;
    overflow-y: auto;
  }

  .projects-track {
    flex-direction: column;
    height: auto;
  }

  .projects-card {
    min-width: 100%;
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 60px 20px;
  }

  .projects-card > * {
    padding: 0 1rem;
  }

  .project-content-wrapper {
    padding: 2rem;
  }

  .project-content-wrapper .project-title {
    font-size: 2rem;
  }

  .project-content-wrapper .project-subtitle {
    font-size: 1.1rem;
  }

  .project-content-wrapper .project-description {
    font-size: 1rem;
  }

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

  .skill-category-double {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

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

  .floating-card {
    width: 80px;
    height: 100px;
    padding: 1rem;
  }

  .card-icon {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 0.8rem;
  }

  .card-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .floating-card {
    width: 70px;
    height: 90px;
    padding: 0.8rem;
  }
}

/* Print Styles */
@media print {
  .nav,
  .floating-card,
  .cursor,
  .cursor-follower,
  #code-canvas,
  .back-to-top,
  .scroll-progress {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
