@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap");

/* Style général et animations */
body {
  background: linear-gradient(135deg, var(--tw-gradient-stops));
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
}

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

.main-container {
  position: relative; /* Ajout pour contenir les éléments de design */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.05), 0 0 50px rgba(14, 165, 233, 0.08);
}

.card-hover-effect {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Titres de section avec ligne décorative */
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #4f46e5);
  margin-top: 8px;
  border-radius: 9999px;
}

/* Liste personnalisée */
ul.custom-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

ul.custom-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #0ea5e9;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.6em;
}

/* Animation de la photo de profil */
.profile-img-container {
  position: relative;
  z-index: 1;
}

.profile-img-container::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5, #8b5cf6);
  z-index: -1;
  animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Badges de compétences */
.skill-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.skill-badge:hover {
  background-color: #0ea5e9;
  color: white;
  transform: translateY(-2px);
}

.highlight-badge {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.2),
    rgba(79, 70, 229, 0.2)
  );
  color: #4f46e5;
}

.highlight-badge:hover {
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
}

/* Design elements */
.design-element {
  position: absolute;
  opacity: 0.5;
  z-index: 0;
  filter: blur(40px);
  border-radius: 50%;
}

/* Progress bar for skills */
.skill-container {
  margin-bottom: 0.75rem;
}

.skill-bar {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0ea5e9, #4f46e5);
}

/* Code snippet styling */
.code-element {
  font-family: "Fira Code", monospace;
  background-color: #1e293b;
  color: #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.code-element::before {
  content: "// Design + Code";
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
}

.code-keyword {
  color: #8b5cf6;
}

.code-string {
  color: #10b981;
}

.code-function {
  color: #0ea5e9;
}

/* Timeline elements */
.timeline-container {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    #0ea5e9 0%,
    rgba(14, 165, 233, 0.2) 100%
  );
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  position: absolute;
  left: 14px;
  top: 24px;
  z-index: 2;
}

/* Contact button */
.contact-button {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-button:hover::before {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem; /* Adjust padding for smaller screens */
  }

  .section-title {
    font-size: 1.75rem; /* Smaller font size for titles */
  }
  /* Add more responsive rules as needed */
}
