/* ========================= GLOBAL ========================= */
* {
  margin: 0; 
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* 🔥 Animated Gradient Background */
body {
  background: linear-gradient(270deg, #2563eb, #7c3aed, #9333ea, #2563eb);
  background-size: 800% 800%;
  animation: gradientShift 15s ease infinite;
  color: #111827;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================= LAYOUT ========================= */
.container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  display: grid;
  grid-template-columns: 250px 1fr 60px;
  height: 100vh;
  overflow: hidden;
}

/* ========================= SIDEBAR ========================= */
.sidebar {
  padding: 20px;
  border-right: 1px solid #e5e7eb;
  text-align: center;
}
.sidebar .profile img {
  border-radius: 50%;
  width: 120px;
  border: 4px solid #2563eb;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sidebar .profile img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
}
.sidebar h2 { color: #2563eb; }
.sidebar p { color: #6b7280; }
.sidebar .social a {
  margin: 0 5px;
  color: #374151;
  font-size: 18px;
  transition: 0.3s;
}
.sidebar .social a:hover { color: #2563eb; }
.sidebar .btn {
  display: block;
  margin-top: 15px;
  padding: 10px;
  text-align: center;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.sidebar .btn:hover { opacity: 0.9; }

/* ========================= MAIN CONTENT ========================= */
.main-content { padding: 30px; overflow-y: auto; }
.highlight { color: #2563eb; }

/* ========================= BUTTONS ========================= */
.hire-btn {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: white;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.hire-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.2);
  transform: rotate(45deg);
  animation: shine 2s infinite;
}
@keyframes shine {
  0% { left: -50%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ========================= HERO ========================= */
.hero {
  position: relative;
  padding: 60px 20px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  border-radius: 16px;
  color: white;
  overflow: hidden;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-text { max-width: 600px; }
.hero-text h1 { font-size: 40px; margin-bottom: 15px; }
.hero-text .highlight { color: #fff200; }
.hero-text .tagline { font-size: 18px; margin-bottom: 15px; color: #f3f4f6; }
.hero-text .typing-text { font-size: 20px; font-weight: bold; margin-bottom: 20px; color: #fff; }
.hero-buttons { margin-bottom: 20px; }
.hero-buttons .hire-btn, .hero-buttons .btn { margin-right: 12px; }
.hero-buttons .hire-btn {
  padding: 12px 24px; background: #fff200; color: #111827; border-radius: 8px;
  font-weight: bold; text-decoration: none; transition: 0.3s;
}
.hero-buttons .hire-btn:hover { opacity: 0.9; }
.hero-buttons .btn {
  padding: 12px 24px; background: rgba(255,255,255,0.2); color: #fff; border-radius: 8px;
  text-decoration: none; transition: 0.3s;
}
.hero-buttons .btn:hover { background: rgba(255,255,255,0.35); }
.hero-social a { margin-right: 15px; font-size: 22px; color: #fff; transition: 0.3s; }
.hero-social a:hover { color: #ffea00; }
.hero-img img { width: 250px; border-radius: 16px; box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ========================= EXPERIENCE ========================= */
.experience {
  margin-top: 50px;
}
.experience h2 {
  margin-bottom: 30px; color: #2563eb; text-align: left;
}
.timeline {
  position: relative;
  margin: 0 auto;
  padding: 10px 0;
  width: 90%;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #2563eb, #9333ea);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin: 20px 0 20px 70px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.timeline-icon {
  position: absolute;
  top: 20px;
  left: -55px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: floatIcon 4s ease-in-out infinite, pulseIcon 2s infinite;
}
.timeline-content h3 { margin-bottom: 5px; color: #2563eb; }
.timeline-content span {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}
.timeline-content p { color: #374151; font-size: 15px; line-height: 1.6; }

/* ========================= SERVICES ========================= */
.services h2 { margin-bottom:20px;color: #2563eb; text-align:center; }
.services .grid {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:20px;
}
.services .card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
}
.services .card i {
  font-size: 32px;
  color: #2563eb;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulseIcon 2s infinite, floatIcon 4s ease-in-out infinite;
  transition: transform 0.3s, color 0.3s, text-shadow 0.3s;
}
.services .card:nth-child(1) i { animation: pulseIcon 2s infinite, floatIcon 4s ease-in-out infinite; }
.services .card:nth-child(2) i { animation: pulseIcon 2s infinite, floatIcon 5s ease-in-out infinite; }
.services .card:nth-child(3) i { animation: pulseIcon 2s infinite, floatIcon 6s ease-in-out infinite; }
.services .card:nth-child(4) i { animation: pulseIcon 2s infinite, floatIcon 4.5s ease-in-out infinite; }
.services .card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(37,99,235,0.3), 0 8px 20px rgba(124,58,237,0.3);
  background: linear-gradient(135deg, #ffffff, #f3f3ff);
}
.services .card:hover i {
  color: #7c3aed;
  transform: scale(1.2) rotate(15deg);
  text-shadow: 0 0 20px rgba(124,58,237,0.9), 0 0 30px rgba(37,99,235,0.7);
}
.services .card:nth-child(1) { animation-delay: 0.2s; }
.services .card:nth-child(2) { animation-delay: 0.4s; }
.services .card:nth-child(3) { animation-delay: 0.6s; }
.services .card:nth-child(4) { animation-delay: 0.8s; }

/* ========================= ANIMATIONS ========================= */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulseIcon {
  0% { text-shadow: 0 0 5px rgba(37,99,235,0.5), 0 0 10px rgba(124,58,237,0.3); }
  50% { text-shadow: 0 0 15px rgba(37,99,235,1), 0 0 25px rgba(124,58,237,0.7); }
  100% { text-shadow: 0 0 5px rgba(37,99,235,0.5), 0 0 10px rgba(124,58,237,0.3); }
}
@keyframes floatIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* ========================= FOOTER ========================= */
.footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #ddd;
}
.footer p { color: #6b7280; margin-bottom: 10px; }
.footer .social a {
  margin: 0 5px;
  color: #374151;
  font-size: 18px;
  transition: 0.3s;
}
.footer .social a:hover { color: #2563eb; }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1024px) { .container { grid-template-columns: 220px 1fr; } .right-nav { display: none; } }
@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid #ddd; }
  .main-content { padding: 15px; }
  .hero h1 { font-size: 24px; text-align: center; }
  .services .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) { .services .grid { grid-template-columns: 1fr; } }

/* ========================= HAMBURGER & MOBILE SIDEBAR ========================= */
.hamburger {
  display: none; 
  position: fixed; top: 15px; left: 15px;
  font-size: 24px;
  background: #fff; padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer; z-index: 1000;
  transition: 0.3s;
}
.hamburger:hover { background: #f0f0f0; }
@media (max-width: 768px) {
  .sidebar { position: fixed; top: 0; left: -260px; width: 250px; height: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 999; transition: left 0.3s ease; }
  .sidebar.active { left: 0; }
  .hamburger { display: block; }
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-img img {
    width: 200px;
    margin-bottom: 20px;
  }
/* 3D Timeline Effect */
.timeline-item {
  transform-style: preserve-3d;  /* essentiel pour les rotations 3D */
  perspective: 1000px;           /* distance de vision 3D */
  opacity: 1;                     /* invisible avant animation */
  transform: rotateY(-20deg) rotateX(10deg) translateY(50px);
  transition: transform 0.5s, box-shadow 0.5s;
}

.timeline-item:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.3), 0 10px 20px rgba(124,58,237,0.3);
}

/* Animation d'entrée douce */
.timeline-icon {
  transform-style: preserve-3d;
}
.skills {
  padding: 15px;
}
.skills h3 {
  font-size: 1.1rem;
}
.skill-bar {
  height: 10px;
}
.skill-name {
  font-size: 0.9rem;
}
}

/* ========================= MOTIVATION ========================= */
.motivation {
  margin: 50px 0; padding: 30px; background: #f3f4f6; border-radius: 12px; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.motivation h2 { color: #2563eb; margin-bottom: 15px; font-size: 28px; }
.motivation p { color: #374151; font-size: 16px; line-height: 1.6; }
.hero-social a,
.footer .social a {
  text-decoration: none;   
  margin: 0 10px;          
  color: #444;             
  font-size: 1.8rem;       
  display: inline-flex;    
  align-items: center;     
  justify-content: center; 
  width: 50px;             
  height: 50px;            
  border-radius: 50%;      
  background: #f5f5f5;     
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hover animation */
.hero-social a:hover,
.footer .social a:hover {
  transform: scale(1.2) rotate(10deg);   /* zoom + légère rotation */
  background: linear-gradient(135deg, #6e8efb, #a777e3); /* dégradé moderne */
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Petite animation au chargement */
.hero-social a,
.footer .social a {
  animation: popIn 0.6s ease forwards;
  opacity: 0;
}

.hero-social a:nth-child(1) { animation-delay: 0.1s; }
.hero-social a:nth-child(2) { animation-delay: 0.2s; }
.hero-social a:nth-child(3) { animation-delay: 0.3s; }
.hero-social a:nth-child(4) { animation-delay: 0.4s; }
.hero-social a:nth-child(5) { animation-delay: 0.5s; }
.hero-social a:nth-child(6) { animation-delay: 0.6s; }
.hero-social a:nth-child(7) { animation-delay: 0.7s; }

@keyframes popIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* 3D Timeline Effect */
.timeline-item {
  transform-style: preserve-3d;  /* essentiel pour les rotations 3D */
  perspective: 1000px;           /* distance de vision 3D */
  opacity: 1;                     /* invisible avant animation */
  transform: rotateY(-20deg) rotateX(10deg) translateY(50px);
  transition: transform 0.5s, box-shadow 0.5s;
}

.timeline-item:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.3), 0 10px 20px rgba(124,58,237,0.3);
}

/* Animation d'entrée douce */
.timeline-icon {
  transform-style: preserve-3d;
}
/* ====== SKILLS SECTION ====== */
/* ====== SKILLS SECTION ====== */
/* ====== SKILLS SECTION ====== */

/* ====== SKILLS SECTION ====== */.skills {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.skills h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: #2563eb;
  text-align: center;
  font-weight: bold;
}
.skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skills li {
  margin-bottom: 15px;
}
.skill-name {
  display: block;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 6px;
}
.skill-bar {
  width: 100%;
  height: 12px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 8px;
  transition: width 1.5s ease-in-out;
}


@media (max-width: 480px) {
  .Projects .grid {
    grid-template-columns: 1fr;
  }
  .Projects .card i {
    font-size: 28px;
  }
  .Projects .card h3 {
    font-size: 1.1rem;
  }
  .Projects .card p {
    font-size: 0.9rem;
  }
  .skills {
    padding: 10px;
  }
  .skills h3 {
    font-size: 1rem;
  }
  .skill-bar {
    height: 8px;
  }
  .skill-name {
    font-size: 0.85rem;
  }
}
/* ========================= PROJECTS SECTION ========================= */
.Projects {
  margin-top: 50px;
  padding: 30px;
}
.Projects h2 {
  text-align: center;
  color: #2563eb;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: bold;
}
.Projects .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.Projects .card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}
.Projects .card i {
  font-size: 32px;
  color: #2563eb;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulseIcon 2s infinite, floatIcon 4s ease-in-out infinite;
  transition: transform 0.3s, color 0.3s, text-shadow 0.3s;
}
.Projects .card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #2563eb;
}
.Projects .card p {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}
.Projects .card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(37,99,235,0.3), 0 8px 20px rgba(124,58,237,0.3);
  background: linear-gradient(135deg, #ffffff, #f3f3ff);
}
.Projects .card:hover i {
  color: #7c3aed;
  transform: scale(1.2) rotate(15deg);
  text-shadow: 0 0 20px rgba(124,58,237,0.9), 0 0 30px rgba(37,99,235,0.7);
}
a {
  text-decoration: none;
}
/* Responsive */
@media (max-width: 768px) {
  .Projects .grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* Reuse animations from other sections */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulseIcon {
  0% { text-shadow: 0 0 5px rgba(37,99,235,0.5), 0 0 10px rgba(124,58,237,0.3); }
  50% { text-shadow: 0 0 15px rgba(37,99,235,1), 0 0 25px rgba(124,58,237,0.7); }
  100% { text-shadow: 0 0 5px rgba(37,99,235,0.5), 0 0 10px rgba(124,58,237,0.3); }
}
@keyframes floatIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.page-header {
  text-align: center;
  padding: 40px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #007bff;
}

.project-card h3 {
  margin: 10px 0;
}

.project-card p {
  font-size: 14px;
  color: #555;
}

.project-card .btn {
  margin-top: 10px;
  display: inline-block;
}