/* Loader styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0F172A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #2563EB;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1E293B;
}
::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 4px;
}

/* Smooth transitions */
.transition-slow {
    transition: all 0.4s ease;
}

/* Custom underline effect */
.underline-effect {
    position: relative;
}
.underline-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #2563EB;
    transition: width 0.3s ease;
}
.underline-effect:hover::after {
    width: 100%;
}

/* Skill card animation */
.skill-card {
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateX(0deg);
}
.skill-card:hover {
    transform: perspective(1000px) rotateX(10deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navbar blur effect */
.navbar-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(15, 23, 42, 0.8);
}

/* Project card animation */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #2563EB, #3B82F6);
}

/* Pulse animation for CTA */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Placeholder image */
.placeholder-img {
    background-color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}
.placeholder-img::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0) 20%,
        rgba(255,255,255,0) 80%,
        rgba(255,255,255,0.1) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Section spacing */
section {
    padding: 6rem 1.5rem;
    position: relative;
    scroll-snap-align: start;
    scroll-margin-top: 100px;
}

/* Gradient transition between sections */
.section-transition {
    position: relative;
    z-index: 1;
}

.section-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%);
    z-index: -1;
}

.section-secondary {
    background-color: #1E293B;
}

.section-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 1) 100%);
    z-index: -1;
}

.section-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0) 0%, rgba(15, 23, 42, 1) 100%);
    z-index: -1;
}

/* Content spacing */
.content-spacing > * + * {
    margin-top: 2rem;
}

/* Scroll animation */
.section-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.section-show {
    opacity: 1;
    transform: translateY(0);
}

.about{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about div p{
    text-align: center;
}
  
  #portfolio-inner {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1080px;
  }
  #portfolio-inner #portfolio-items {
    width: 100%;
    flex: 1;
    display: grid;
    gap: 32px;
  }
  @media screen and (min-width: 712px) {
    #portfolio-inner #portfolio-items {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  #portfolio-inner #portfolio-items .portfolio-card {
    width: 100%;
    position: relative;
    padding: 24px 16px 16px 16px;
    border-radius: 16px;
    /* background: linear-gradient(126deg, rgba(136, 117, 231, 0.05) 0%, rgba(136, 117, 231, 0.25) 100%); */
    background: #0F172A;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  #portfolio-inner #portfolio-items .portfolio-card #portfolio-type {
    padding: 4px 8px;
    border-radius: 15px;
    border: 1px solid #2563EB;
    background: #2563EB;
    color: #ffffff;
    /* color: #2563EB; */
    font-size: 12px;
    text-align: right;
  }
  #portfolio-inner #portfolio-items .portfolio-card .image {
    overflow: hidden;
    position: relative;
    padding: 0;
    width: 100%;
    aspect-ratio: 16/9;
  }
  #portfolio-inner #portfolio-items .portfolio-card .image::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #2563EB;
    opacity: 0.15;
    z-index: 2;
    transition: all 0.3s ease;
  }
  #portfolio-inner #portfolio-items .portfolio-card .image img {
    width: 100%;
    height: 100%;
    transform: rotate(4deg) scale(1.12) translateX(0px);
    transition: all 0.3s ease;
  }
  #portfolio-inner #portfolio-items .portfolio-card .image::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #2563EB;
    bottom: 0;
    left: 0;
    transition: 0.3s ease;
  }
  #portfolio-inner #portfolio-items .portfolio-card .content {
    padding: 8px 16px 16px 16px;
  }
  #portfolio-inner #portfolio-items .portfolio-card .content .portfolio-title {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #ffffff;
  }
  #portfolio-inner #portfolio-items .portfolio-card .content .portfolio-title span {
    font-size: 16px;
    text-align: right;
  }
  #portfolio-inner #portfolio-items .portfolio-card .content .portfolio-title h4 {
    font-size: 16px;
    font-weight: 600;
  }
  #portfolio-inner #portfolio-items .portfolio-card .content .portfolio-title h4 span {
    font-size: 12px;
  }
  #portfolio-inner #portfolio-items .portfolio-card .content .portfolio-technos {
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  #portfolio-inner #portfolio-items .portfolio-card .content .portfolio-technos .dot {
    background: #ffffff;
    width: 4px;
    height: 4px;
    border-radius: 50%;
  }
  #portfolio-inner #portfolio-items .portfolio-card:hover .image::after {
    width: 100%;
  }
  #portfolio-inner #portfolio-items .portfolio-card:hover img {
    transform: rotate(0) scale(1) translateX(0);
  }
  #portfolio-inner #portfolio-items .portfolio-card:hover .portfolio-link {
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0;
  }
  #portfolio-inner #portfolio-items .portfolio-card:hover .image::before {
    opacity: 0.05;
  }
  #portfolio-inner #portfolio-items .portfolio-card .portfolio-link {
      position: absolute;
      top: 50%;
    left: 50%;
    z-index: 999;
    background: #2563EB;
    border: 1px solid #2563EB;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    font-weight: 800;
    display: flex;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transform: translate(-50%, -50%) scale(0);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.63, 0.46, 0, 1.4);
    transition-delay: 0.2s;
  }
  #portfolio-inner #portfolio-items .portfolio-card .portfolio-link i{
    color: #ffffff;
    font-size: 16px;
  }
  /* #portfolio-inner #portfolio-items .portfolio-card .portfolio-link img {
    width: 20px;
    height: 20px;
  } */
  
  #portfolio-title {
    position: relative;
    color: #17161B;
    font-weight: 900;
    font-size: 4vw;
  }
  @media screen and (max-width: 768px) {
    #portfolio-title {
      font-size: 32px;
    }
  }
  #portfolio-title::before {
    position: absolute;
    content: "Projets💼";
    top: 0;
    left: 0;
    color: #8875E7;
    font-weight: 600;
    font-size: 16px;
    z-index: 99;
    transform: translate(-60px, -25px) rotate(-45deg);
  }
  @media screen and (max-width: 1160px) {
    #portfolio-title::before {
      transform: translate(0, -25px) rotate(0deg);
    }
  }
  
/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Correspond à l'offset du header */
}
  