/* Reset et polices */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* Effets visuels */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABOSURBVFhH7c6hDcAwDABRZ4f+Q9uBkQh5QJb8JN1d1V1VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/4wD+QYQZzYxUQ8AAAAASUVORK5CYII=');
    opacity: 0.05;
    z-index: 9998;
    pointer-events: none;
}

/* Animations de base */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #6e45e2 }
}

/* Contenu principal */
.homepage-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.typewriter {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #6e45e2, #88d3ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(90deg, #6e45e2, #88d3ce);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(110, 69, 226, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(110, 69, 226, 0.4);
}

/* Section profil */
.profile-section {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    gap: 50px;
}

.profile-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
}

.profile-text {
    flex: 1;
}

.profile-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #6e45e2, #88d3ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-text h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.profile-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

/* Soft Skills */
.soft-skill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.soft-skill-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}

.floating-circle {
    animation: float 8s ease-in-out infinite;
}

/* Timeline */
.tl-item {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tl-content {
    transition: all 0.3s ease;
}

.tl-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4) !important;
}

/* Carrousel */
.portfolio-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.2);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #6e45e2;
    transform: scale(1.2);
}

/* Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(110, 69, 226, 0.3);
}

.card-icon svg {
    width: 50px;
    height: 50px;
    stroke: #6e45e2;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.card-description {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(110, 69, 226, 0.2);
    color: rgb(179, 158, 255);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(110, 69, 226, 0.4);
}

.card-progress {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6e45e2, #88d3ce);
    position: relative;
    transition: width 1s ease;
}

.progress-value {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.8rem;
    color: white;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    transition: all 0.3s ease;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.card-image h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(110, 69, 226, 0.9);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.portfolio-card:hover .card-image {
    transform: scale(1.1);
}

.overlay-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.overlay-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.overlay-content a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
}

/* Footer */
footer {
    position: relative;
    padding: 80px 20px;
    background: #0a0a0a;
    text-align: center;
    overflow: hidden;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    position: relative;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(110, 69, 226, 0.3);
    transform: translateY(-5px);
}

.link-icon {
    margin-right: 10px;
}

.link-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.link-hover-effect {
    position: absolute;
    top: 0;
    left: var(--mouse-x, 0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(110, 69, 226, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-link:hover .link-hover-effect {
    opacity: 1;
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.bubble {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(var(--blur, 0px));
    animation: float var(--duration, 10s) ease-in-out infinite var(--delay, 0s);
    opacity: var(--opacity, 0.1);
    left: var(--left, 0);
    transform: translateX(var(--x-drift, 0));
}

/* Responsive */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
    }
    
    .typewriter {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajoutez ces styles à votre fichier CSS */

/* Effets de fond pour chaque slide du carrousel */
.carousel-slide[data-slide="1"] {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.carousel-slide[data-slide="2"] {
  background: linear-gradient(135deg, #0a0a0a 0%, #16213e 100%);
}

.carousel-slide[data-slide="3"] {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.carousel-slide[data-slide="4"] {
  background: linear-gradient(135deg, #0a0a0a 0%, #1e5128 100%);
}

.carousel-slide[data-slide="5"] {
  background: linear-gradient(135deg, #0a0a0a 0%, #4e4e4e 100%);
}

.carousel-slide[data-slide="6"] {
  background: linear-gradient(135deg, #0a0a0a 0%, #3d0000 100%);
}

/* Ajout d'effets visuels pour chaque slide */
.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
  z-index: 1;
}

/* Animation pour le contenu des slides */
.slide-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* Style des badges dans le carrousel */
.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge-element {
  background: rgba(255,255,255,0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.badge-element:hover {
  background: rgba(110, 69, 226, 0.3);
  transform: translateY(-3px);
}

/* Ajoutez ce style pour espacer les points de navigation */
.nav-point {
  padding-top: 80px !important; /* Augmentation de l'espace */
}

.nav-indicator {
  top: 20px !important; /* Descend les indicateurs */
}

.nav-point h3 {
  margin-bottom: 1rem !important; /* Plus d'espace sous le titre */
}

.nav-point p {
  margin-top: 0.5rem !important; /* Plus d'espace au-dessus du paragraphe */
  line-height: 1.4;
}

/* Animation 3D plus prononcée */
.soft-skill-card {
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.soft-skill-card:hover {
  transform: 
    translateY(-10px) 
    perspective(1000px) 
    rotateX(10deg) 
    rotateY(10deg) 
    scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
}

/* Animation de l'icône */
.soft-skill-card div {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.soft-skill-card:hover div {
  transform: 
    translateY(-10px) 
    rotate(10deg) 
    scale(1.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Effet de profondeur */
.soft-skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.soft-skill-card:hover::before {
  opacity: 1;
}

/* Ajoutez ces animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    transform: translateY(30px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slideUp {
  animation: slideUp 0.8s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-cardIn {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: var(--delay);
}