/* --------------------- */
/*        RESET          */
/* --------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #0a0f1c;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --------------------- */
/*        LOADER         */
/* --------------------- */
.loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #0a0f1c;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.circle {
  width: 16px;
  height: 16px;
  margin: 0 5px;
  border-radius: 50%;
  background: #00bfff;
  animation: bounce 0.6s infinite;
}
.circle.delay { animation-delay: 0.2s; }
.circle.delay2 { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* --------------------- */
/*        NAVBAR         */
/* --------------------- */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(10, 15, 28, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
}
.logo {
  font-family: 'Orbitron', sans-serif;
  color: #00bfff;
  font-size: 24px;
}
.logo span {
  color: #fff;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}
.nav-links a:hover {
  color: #00bfff;
}

/* --------------------- */
/*        HERO           */
/* --------------------- */
.photo-pro {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.photo-pro img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 20px #00bfff66;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-pro img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #00bfffaa;
}

.hero {
  height: 100vh;
  background: linear-gradient(130deg, #0a0f1c, #112240, #0a0f1c);
  background-size: 400% 400%;
  animation: backgroundFlow 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

.hero h1 {
  font-size: 3rem;
  color: #00bfff;
}
.hero h2 {
  font-size: 1.5rem;
  color: #aaa;
}
.hero p {
  margin-top: 10px;
  color: #ccc;
}
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 12px 25px;
  background: #00bfff;
  color: #fff;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover {
  background: #0077b6;
}

/* Animations intro */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s forwards;
}
.fade-in-delay {
  opacity: 0;
  animation: fadeIn 2s 1s forwards;
}
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1.5s forwards;
}
.slide-up-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1.5s 0.8s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------- */
/*      SECTIONS         */
/* --------------------- */
.section {
  padding: 80px 10%;
}
.section h2 {
  font-size: 2.5rem;
  text-align: center;
  color: #00bfff;
  margin-bottom: 40px;
}

/* --------------------- */
/*       ABOUT           */
/* --------------------- */
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.qualites {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  list-style: none;
}
.qualites li {
  background: rgba(255,255,255,0.05);
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px #00bfff22;
}

/* --------------------- */
/*     COMPÉTENCES       */
/* --------------------- */
.skills-container {
  max-width: 600px;
  margin: auto;
}
.skill {
  margin-bottom: 20px;
}
.bar {
  background: #222;
  height: 10px;
  border-radius: 5px;
}
.progress {
  height: 100%;
  background: #00bfff;
  border-radius: 5px;
  animation: progressAnim 2s ease forwards;
}
@keyframes progressAnim {
  from { width: 0; }
  to { width: inherit; }
}

/* --------------------- */
/*     EXPÉRIENCE        */
/* --------------------- */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: auto;
}
.timeline-item {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #00bfff;
  padding: 1rem 2rem;
  margin: 20px 0;
  position: relative;
  border-radius: 10px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  width: 15px;
  height: 15px;
  background: #00bfff;
  border-radius: 50%;
}

/* --------------------- */
/*       PROJETS         */
/* --------------------- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  background: #111927;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px #00bfff33;
  transition: transform 0.4s ease;
}
.project-card:hover {
  transform: translateY(-10px);
}
.project-info {
  padding: 1rem;
}

/* --------------------- */
/*        CONTACT        */
/* --------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1c1f2b;
  color: #fff;
  font-size: 16px;
}
.contact-form button {
  cursor: pointer;
}

/* --------------------- */
/*        FOOTER         */
/* --------------------- */
footer {
  text-align: center;
  padding: 1rem;
  background: #0a0f1c;
  font-size: 14px;
  color: #666;
}

:root {
  --bg-color: #0a0f1c;
  --text-color: #fff;
  --accent-color: #00bfff;
}
body.light-mode {
  --bg-color: #f4f4f4;
  --text-color: #111;
  --accent-color: #0077b6;
  background: var(--bg-color);
  color: var(--text-color);
}
.mode-switch {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 18px;
  cursor: pointer;
}

.temoignages .slider {
  max-width: 700px;
  margin: auto;
  position: relative;
}
.slide {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}
.slide.active {
  display: block;
}
.slider-nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.slider-nav .dot {
  height: 10px;
  width: 10px;
  background-color: #888;
  border-radius: 50%;
  cursor: pointer;
}
.slider-nav .dot.active {
  background-color: var(--accent-color);
}


.project-card:hover {
  transform: scale(1.05) rotateZ(1deg);
  box-shadow: 0 0 20px #00bfff88;
  transition: all 0.4s ease-in-out;
}
.timeline-item:hover {
  background: #00bfff11;
  transform: scale(1.02);
  transition: all 0.3s ease;
}
.btn:hover {
  background: #00bfff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px #00bfff88;
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.service {
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  box-shadow: 0 0 12px #00bfff22;
  transition: transform 0.4s ease, box-shadow 0.3s;
}
.service:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 20px #00bfff55;
}
.service i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Animations Hero Section */
.animated {
  opacity: 0;
  transform: translateY(40px);
  animation-fill-mode: forwards;
}

.fade-in-up {
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.zoom-in {
  animation: zoomIn 1s ease-out 1s forwards;
}

.bounce-in {
  animation: bounceIn 1s ease-out 2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(100px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
  }
  80% {
    transform: scale(0.95) translateY(5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

/* Typewriter */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-color);
  width: 0;
  animation: typing 3.5s steps(40, end) 1.2s forwards, blink 0.7s step-end infinite;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--accent-color);
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}
