@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Inter", sans-serif;
}

/* Background gradient animé */
.gradient-bg {
  background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533483);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Particules flottantes */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

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

/* Effets de glow */
.glow-effect {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  transition: all 0.3s ease;
}

.glow-effect:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
  transform: translateY(-2px);
}

.glow-effect:active {
  transform: scale(0.98);
}

.text-glow {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Animations d'apparition */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease forwards;
}

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

/* Effet de pulsation */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  }
  to {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
  }
}

/* Effet de typing */
.typing-effect {
  overflow: hidden;
  border-right: 3px solid rgba(59, 130, 246, 0.8);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: rgba(59, 130, 246, 0.8);
  }
}

/* Navigation */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Cartes 3D */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* Barres de progression */
.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
  transition: width 2s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Floating element animation */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

/* Orbiting elements */
.orbit-1 {
  animation: orbit1 8s linear infinite;
}

.orbit-2 {
  animation: orbit2 10s linear infinite;
}

.orbit-3 {
  animation: orbit3 12s linear infinite;
}

@keyframes orbit1 {
  from {
    transform: rotate(0deg) translateX(200px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(200px) rotate(-360deg);
  }
}

@keyframes orbit2 {
  from {
    transform: rotate(0deg) translateX(180px) rotate(0deg);
  }
  to {
    transform: rotate(-360deg) translateX(180px) rotate(360deg);
  }
}

@keyframes orbit3 {
  from {
    transform: rotate(0deg) translateX(190px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(190px) rotate(-360deg);
  }
}

/* Specialty cards hover effects */
.specialty-card {
  transform: translateY(0);
  transition: all 0.3s ease;
}

.specialty-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.specialty-card:active {
  transform: translateY(-5px);
}

/* Enhanced mobile responsiveness */
@media (max-width: 1024px) {
  .orbit-1,
  .orbit-2,
  .orbit-3 {
    display: none;
  }

  .floating-element {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .text-5xl {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .text-6xl {
    font-size: 3rem;
    line-height: 1;
  }

  .text-7xl {
    font-size: 3.5rem;
    line-height: 1;
  }

  .text-8xl {
    font-size: 4rem;
    line-height: 1;
  }

  .floating-element {
    width: 200px;
    height: 200px;
  }

  .specialty-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .text-5xl {
    font-size: 2rem;
  }

  .text-6xl {
    font-size: 2.5rem;
  }

  .text-7xl {
    font-size: 2.5rem;
  }

  .text-8xl {
    font-size: 3rem;
  }

  .hero-section {
    padding-top: 2rem;
  }
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
  .specialty-card:active {
    transform: translateY(-5px);
  }

  .glow-effect:active {
    transform: scale(0.98);
  }
}
