* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  padding-bottom: 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  color: #1e293b;
  line-height: 1.6;
}

/* Effet d'ondulation aquatique en arrière-plan */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(99, 179, 237, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(129, 140, 248, 0.1) 0%,
      transparent 50%
    );
  animation: aquaticFlow 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* Animation des ondulations d'eau */
@keyframes aquaticFlow {
  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translateX(-10px) translateY(-5px) scale(1.02);
    opacity: 0.4;
  }
  66% {
    transform: translateX(10px) translateY(5px) scale(0.98);
    opacity: 0.35;
  }
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* Effet de reflet aquatique */
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 20%
    ),
    linear-gradient(225deg, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
  animation: waterReflection 8s ease-in-out infinite;
}

/* Animation des reflets d'eau */
@keyframes waterReflection {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%;
  }
  50% {
    background-position: 100% 20%, 0% 80%;
  }
}

/* Poissons avec style portfolio */
.fish {
  position: absolute;
  width: 55px;
  height: auto;
  object-fit: contain;
  transition: transform 0.1s linear;
  z-index: 2;
  pointer-events: none;
  transform-origin: center center;
  opacity: 1;
  filter: grayscale(0.3) drop-shadow(0 2px 4px rgba(30, 41, 59, 0.1));
  /* Effet de flottaison subtil */
  animation: fishFloat 4s ease-in-out infinite;
}

/* Animation de flottaison des poissons */
@keyframes fishFloat {
  0%,
  100% {
    filter: grayscale(0.3) drop-shadow(0 2px 4px rgba(30, 41, 59, 0.1));
  }
  50% {
    filter: grayscale(0.2) drop-shadow(0 3px 6px rgba(30, 41, 59, 0.15));
  }
}

.container {
  max-width: 680px;
  width: 100%;
  padding: 40px;
  border-radius: 20px;
  position: relative;
  z-index: 3;
  margin-bottom: 50px;
  /* Effet de vague subtil */
  animation: containerFloat 6s ease-in-out infinite;
}
@keyframes bubble {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
  }
}

.profile {
  text-align: center;
  margin-bottom: 40px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 6px solid #1e293b;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  /* Effet de reflet aquatique */
  position: relative;
}

.profile-img::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 30%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 50%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(30, 41, 59, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 20px rgba(99, 179, 237, 0.3);
}

h1 {
  color: #0f172a;
  margin-bottom: 15px;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.bio {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 400;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.link-card {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.95),
    rgba(51, 65, 85, 0.9)
  );
  border-radius: 50px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  border: 2px solid rgba(226, 232, 240, 0.3);
  width: 320px;
  justify-content: flex-start;
  gap: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.1) 0%,
    rgba(226, 232, 240, 0.05) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(30, 41, 59, 0.25),
    0 8px 15px rgba(30, 41, 59, 0.1), 0 0 20px rgba(99, 179, 237, 0.2);
  border-color: rgba(248, 250, 252, 0.4);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(30, 41, 59, 0.9)
  );
}

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

.flower {
  font-size: 28px;
  position: relative;
  top: -2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.link-card:hover .flower {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.link-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.link-card i {
  margin-right: 15px;
  font-size: 24px;
  color: rgba(248, 250, 252, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.link-card:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

.link-content span {
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.link-card:hover .link-content span {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.link-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(248, 250, 252, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.link-card:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
}

/* Animation de ripple améliorée */
@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Responsive design amélioré */
@media (max-width: 480px) {
  body {
    padding: 15px;
    padding-bottom: 120px;
  }

  .container {
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 16px;
  }

  .profile-img {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }

  h1 {
    font-size: 2rem;
  }

  .bio {
    font-size: 14px;
  }

  .link-card {
    width: 90%;
    padding: 15px 20px;
    gap: 15px;
    margin: 0 auto;
    border-radius: 40px;
  }

  .flower {
    font-size: 24px;
  }

  .link-card i {
    font-size: 20px;
    margin-right: 10px;
  }

  .link-content span {
    font-size: 14px;
  }
}

/* Animations fluides pour les transitions */
* {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de parallax subtil pour le background */
@media (prefers-reduced-motion: no-preference) {
  .background {
    transform: translateZ(0);
    will-change: transform;
  }

  /* Activation du mode GPU pour les animations */
  .fish,
  .container,
  .link-card {
    will-change: transform;
    transform: translateZ(0);
  }
}
