:root {
    --primary-color: #3B82F6;
    --secondary-color: #60A5FA;
    --background-color: #111827;
    --text-color: #E5E7EB;
    --card-bg-color: #1F2937;
    --hover-color: #2563EB;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #3B82F6, #60A5FA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-left: 0.5rem;
}

.logo-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(to bottom, #3B82F6, #60A5FA);
    border-radius: 2px;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #E5E7EB;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(45deg, #3B82F6, #60A5FA);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-item {
    padding: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3B82F6;
}

@keyframes glowPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

.logo-container:hover .logo-text {
    animation: glowPulse 2s infinite;
}


body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

header {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 50; /* Augmenter le z-index */
}

header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
}

header a, header button {
    transition: color 0.3s ease;
}

header.scrolled a, header.scrolled button {
    color: #ffffff;
}

#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 49; /* Juste en dessous du header mais au-dessus du contenu */
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.card {
    background-color: var(--card-bg-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.skill-progress {
    background-color: var(--primary-color);
}

#logo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

#logo:hover {
    animation: logoMove 0.5s ease-in-out infinite alternate;
}

@keyframes logoMove {
    from { transform: translateX(0); }
    to { transform: translateX(10px); }
}

.profile-image-container {
    width: 300px;
    height: 300px;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slideUp {
    animation: slideUp 0.8s ease-out forwards;
}

#hero {
    position: relative;
    z-index: 1; /* S'assurer que le hero est en dessous du menu */
    padding-top: 6rem; /* Ajouter un padding pour compenser le header fixe */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    z-index: -1;
}

.main-content {
    position: relative;
    z-index: 1;
}

.skill-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.wave-decorator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-decorator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-decorator .shape-fill {
    fill: var(--card-bg-color);
}

@media (max-width: 768px) {
    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.125rem;
    }
}
/*hero*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slideUp {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 6s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.1; }
}

/*about*/
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}
.animate-blob {
    animation: blob 7s infinite;
}
.animation-delay-2000 {
    animation-delay: 2s;
}
.animation-delay-4000 {
    animation-delay: 4s;
}
/**/
line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/**/
@keyframes pulse-slow {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}
.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/**/
/* Animation du hamburger vers une croix */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Style de l'indicateur de navigation active */
.nav-link {
    position: relative;
}

.nav-link.active {
    color: white;
}

/* Animation au défilement */
header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Effet de focus sur les éléments du menu */
.nav-link:focus, .mobile-menu-item:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Styles du menu mobile avec animation */
#mobile-menu {
    max-height: 0;
    transition: max-height 0.5s ease;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 300px;
}

/**/
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.6;
    pointer-events: none;
  }
  
  .particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, #3B82F6, #60A5FA);
    animation: float 15s infinite;
    opacity: 0.1;
  }
  
  .particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 10%;
    animation-delay: 0s;
    animation-duration: 30s;
  }
  
  .particle:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 20%;
    top: 40%;
    animation-delay: 2s;
    animation-duration: 25s;
  }
  
  .particle:nth-child(3) {
    width: 120px;
    height: 120px;
    left: 30%;
    top: 70%;
    animation-delay: 4s;
    animation-duration: 35s;
  }
  
  .particle:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 50%;
    top: 20%;
    animation-delay: 6s;
    animation-duration: 28s;
  }
  
  .particle:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 70%;
    top: 50%;
    animation-delay: 8s;
    animation-duration: 32s;
  }
  
  .particle:nth-child(6) {
    width: 70px;
    height: 70px;
    left: 80%;
    top: 80%;
    animation-delay: 10s;
    animation-duration: 27s;
  }
  
  .particle:nth-child(7) {
    width: 150px;
    height: 150px;
    left: 5%;
    top: 60%;
    animation-delay: 12s;
    animation-duration: 40s;
  }
  
  .particle:nth-child(8) {
    width: 50px;
    height: 50px;
    left: 25%;
    top: 30%;
    animation-delay: 14s;
    animation-duration: 22s;
  }
  
  .particle:nth-child(9) {
    width: 110px;
    height: 110px;
    left: 45%;
    top: 80%;
    animation-delay: 16s;
    animation-duration: 38s;
  }
  
  .particle:nth-child(10) {
    width: 85px;
    height: 85px;
    left: 65%;
    top: 15%;
    animation-delay: 18s;
    animation-duration: 33s;
  }
  
  .particle:nth-child(11) {
    width: 55px;
    height: 55px;
    left: 85%;
    top: 35%;
    animation-delay: 3s;
    animation-duration: 26s;
  }
  
  .particle:nth-child(12) {
    width: 125px;
    height: 125px;
    left: 15%;
    top: 85%;
    animation-delay: 5s;
    animation-duration: 36s;
  }
  
  .particle:nth-child(13) {
    width: 95px;
    height: 95px;
    left: 35%;
    top: 5%;
    animation-delay: 7s;
    animation-duration: 29s;
  }
  
  .particle:nth-child(14) {
    width: 75px;
    height: 75px;
    left: 55%;
    top: 65%;
    animation-delay: 9s;
    animation-duration: 31s;
  }
  
  .particle:nth-child(15) {
    width: 135px;
    height: 135px;
    left: 75%;
    top: 25%;
    animation-delay: 11s;
    animation-duration: 37s;
  }
  
  .particle:nth-child(16) {
    width: 45px;
    height: 45px;
    left: 90%;
    top: 55%;
    animation-delay: 13s;
    animation-duration: 24s;
  }
  
  .particle:nth-child(17) {
    width: 130px;
    height: 130px;
    left: 5%;
    top: 45%;
    animation-delay: 15s;
    animation-duration: 39s;
  }
  
  .particle:nth-child(18) {
    width: 65px;
    height: 65px;
    left: 40%;
    top: 95%;
    animation-delay: 17s;
    animation-duration: 30s;
  }
  
  .particle:nth-child(19) {
    width: 115px;
    height: 115px;
    left: 60%;
    top: 5%;
    animation-delay: 19s;
    animation-duration: 34s;
  }
  
  .particle:nth-child(20) {
    width: 40px;
    height: 40px;
    left: 95%;
    top: 75%;
    animation-delay: 1s;
    animation-duration: 23s;
  }
  
  @keyframes float {
    0% {
      transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
      transform: translate(30px, -50px) rotate(45deg) scale(1.1);
    }
    66% {
      transform: translate(-20px, 20px) rotate(-30deg) scale(0.9);
    }
    100% {
      transform: translate(0, 0) rotate(0deg) scale(1);
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .particle {
      animation: none;
    }
  }
