/* ===== Navbar Styles ===== */
.navbar {
  width: 100vw;
  background: #18181c;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  box-shadow: 0 2px 12px #0003;
}
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #fff;
  flex: 1 1 auto;
  text-align: left;
}
.navbar-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 6px 10px;
  border-radius: 6px;
}
.navbar-links li a:hover {
  color: #61b3dc;
  background: #22223a;
}

body {
  padding-top: 60px; /* Décale le contenu sous la navbar */
}

@media (max-width: 700px) {
  .navbar-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }
  .navbar-brand {
    font-size: 1rem;
    text-align: left;
  }
  .navbar-lang-switcher {
    margin-top: 0;
    margin-left: auto;
    justify-content: flex-end;
  }
  .navbar-links {
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin-top: 6px;
  }
  .navbar-links li {
    flex: 1 1 40%;
  }
}

@media (max-width: 400px) {
  .navbar-container {
    padding: 0.3rem 0.5rem;
  }
  .navbar-links {
    gap: 0.2rem;
  }
  .navbar-links li a {
    font-size: 0.95rem;
    padding: 4px 6px;
  }
}
/* ===== Fin Navbar Styles ===== */
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #000 !important;
  color: #fff;
  padding-top: clamp(20px, 3vh, 32px);
  font-size: clamp(14px, 2.5vw, 16px);
}
.container {
  display: flex;
  min-height: 100vh;
  margin-left: clamp(5px, 2vw, 15px);
  padding-left: clamp(10px, 3vw, 20px);
}
/* Styles .sidebar et .sidebar-menu supprimés */
.main-content {
  flex: 1;
  padding: clamp(20px, 5vh, 40px) clamp(20px, 8vw, 60px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vh, 40px);
}
.profile-section {
  background: linear-gradient(120deg, #18181c 80%, #007bff 100%);
  border-radius: clamp(12px, 2.5vw, 20px);
  padding: clamp(15px, 3vh, 20px) clamp(12px, 2.5vw, 18px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(8px, 1.5vh, 10px);
  text-align: center;
  max-width: min(500px, 90vw);
  margin-bottom: 0;
  box-shadow: 0 4px 24px 0 #0002;
  margin-left: 0;
  margin-top: 0;
  max-height: 77vh;
  height: 100%;
  min-height: clamp(400px, 60vh, 600px);
  overflow-y: auto;
  flex: 0 1 clamp(300px, 40vw, 480px);
  align-self: flex-start;
  position: relative;
  background-image: url('assets/moi.jpg'), linear-gradient(120deg, #18181c 80%, #007bff 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
  will-change: transform;
  perspective: 800px;
}
.profile-section.tilted {
  box-shadow: 0 8px 32px 0 #0004, 0 1.5px 8px 0 #5227ff44;
}
.profile-photo {
  display: none;
}
.profile-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(16,16,20,0.35);
  z-index: 1;
}
.profile-section > * {
  position: relative;
  z-index: 2;
}
.profile-section h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0;
  font-weight: 700;
}
.profile-section h1 span {
  color: #fff;
}
.profile-section h1.blur-text {
  margin-bottom: 6px;
  margin-top: 0;
  color: #fff;
}
.profile-section h2 {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  font-weight: 400;
  margin: clamp(4px, 1vh, 6px) 0 clamp(6px, 1.5vh, 10px) 0;
  background: linear-gradient(90deg, #40ffaa, #4079ff, #40ffaa, #4079ff, #40ffaa);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 8s linear infinite;
  border-radius: clamp(4px, 1vw, 6px);
  padding: 0 clamp(1px, 0.5vw, 2px);
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.social-links {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 10px);
  margin-bottom: clamp(6px, 1.5vh, 10px);
  margin-top: clamp(4px, 1vh, 8px);
}
.social-links a {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-decoration: none;
  transition: color 0.2s;
}
.social-links a:hover {
  color: #007bff;
}
.social-links img {
  filter: brightness(0) invert(1);
}
.profile-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn {
  background: #007bff;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
  display: inline-block;
}
.btn:hover {
  background: #0056b3;
}
.about-section {
  background: #18181c;
  border-radius: clamp(12px, 2.5vw, 20px);
  padding: clamp(20px, 4vh, 30px);
  margin-bottom: clamp(15px, 3vh, 20px);
  box-shadow: 0 4px 24px 0 #0002;
}
.about-section h2 {
  margin-top: 0;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.about-content {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}
.about-text {
  flex: 2;
  min-width: clamp(200px, 40vw, 220px);
}
.about-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.label {
  background: #5227FF;
  color: #fff;
  border-radius: clamp(4px, 1vw, 5px);
  padding: clamp(4px, 1vh, 6px) clamp(12px, 3vw, 18px);
  margin-right: clamp(6px, 1.5vw, 8px);
  font-weight: 700;
  font-size: clamp(0.85em, 2.5vw, 0.95em);
  display: inline-block;
  line-height: 1.2;
}
.services-section {
  background: #18181c;
  border-radius: clamp(12px, 2.5vw, 20px);
  padding: clamp(20px, 4vh, 30px);
  box-shadow: 0 4px 24px 0 #0002;
}
.services-section h2 {
  margin-top: 0;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.services-list {
  display: flex;
  gap: clamp(15px, 3vw, 30px);
  flex-wrap: wrap;
}
.service-card {
  background: #101014;
  border-radius: clamp(10px, 2vw, 15px);
  padding: clamp(20px, 4vh, 25px) clamp(15px, 3vw, 20px);
  flex: 1 1 clamp(200px, 40vw, 220px);
  min-width: clamp(180px, 35vw, 200px);
  text-align: center;
  box-shadow: 0 2px 12px 0 #0001;
  margin-bottom: clamp(8px, 1.5vh, 10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, transparent 20%, #101014 70%);
  animation: meteor-rotate 20s linear infinite;
  z-index: 0;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: meteor-fall 3s linear infinite;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px 0 rgba(0, 123, 255, 0.2);
}

.service-card > * {
  position: relative;
  z-index: 2;
}

@keyframes meteor-fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
  }
  100% {
    transform: translateY(100px) rotate(360deg);
  }
}

@keyframes meteor-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #007bff;
}
.service-card h3 {
  margin: 0 0 clamp(8px, 1.5vh, 10px) 0;
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}
.service-card p {
  color: #b0b0b0;
  margin: 0;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}
.main-columns {
  display: flex;
  flex: 1;
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
  min-height: 100vh;
  margin-top: clamp(20px, 3vh, 32px);
  align-items: flex-start;
}
.right-card {
  flex: 1 1 0;
  background: rgba(24, 24, 28, 0.92);
  border-radius: clamp(12px, 2.5vw, 20px);
  box-shadow: 0 4px 24px 0 #0002;
  padding: clamp(20px, 4vh, 30px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vh, 30px);
  max-height: 75vh;
  overflow-y: auto;
  margin-right: clamp(10px, 2vw, 15px);
  width: clamp(300px, 60vw, 60vh);
  max-width: 100%;
}
.about-section, .services-section {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}
.tools-section {
  margin-bottom: clamp(15px, 3vh, 20px);
}
.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 12px);
  margin-top: clamp(6px, 1.5vh, 10px);
}
.tool {
  background: #22223a;
  color: #fff;
  border-radius: clamp(4px, 1vw, 6px);
  padding: clamp(4px, 1vh, 6px) clamp(12px, 3vw, 16px);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  box-shadow: 0 2px 8px 0 #0001;
  border: 1px solid #007bff22;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(160, 124, 254, 0.3);
}

.tool::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(
    45deg,
    #A07CFE,
    #FE8FB5,
    #FFBE7B,
    #A07CFE
  );
  background-size: 400% 400%;
  animation: shine-border-rotate 3s ease-in-out infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  z-index: 0;
}

.tool:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px 0 rgba(160, 124, 254, 0.3);
}



@keyframes shine-border-rotate {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.projects-section {
  margin-bottom: clamp(15px, 3vh, 20px);
}
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 40vw, 300px), 1fr));
  gap: clamp(12px, 2.5vw, 18px);
  margin-top: clamp(6px, 1.5vh, 10px);
}
.project-item {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vh, 10px);
  transition: all 0.3s ease;
}

.project-item:hover {
  transform: translateY(-3px);
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: clamp(6px, 1.5vw, 8px);
  transition: transform 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.02);
}

.project-item h3 {
  margin: 0;
  color: #007bff;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  text-align: center;
}


/* Styles pour la section Expérience Professionnelle */
.experience-section {
  margin-bottom: 20px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.experience-card {
  background: #101014;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 12px 0 #0001;
  border-left: 4px solid #5227FF;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(82, 39, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.experience-card:hover::before {
  left: 100%;
}

.experience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px 0 rgba(82, 39, 255, 0.2);
  border-left-color: #A07CFE;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.experience-header h3 {
  margin: 0;
  color: #5227FF;
  font-size: 1.2rem;
  font-weight: 700;
}

.experience-period {
  background: #5227FF;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.experience-company {
  color: #A07CFE;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}

.experience-card p {
  color: #b0b0b0;
  margin: 0 0 15px 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: rgba(82, 39, 255, 0.2);
  color: #A07CFE;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(82, 39, 255, 0.3);
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(82, 39, 255, 0.3);
  transform: translateY(-1px);
}
.footer {
  margin-top: clamp(20px, 4vh, 30px);
  text-align: center;
  color: #b0b0b0;
  font-size: clamp(0.9rem, 2.5vw, 0.98rem);
  padding-top: clamp(8px, 1.5vh, 10px);
  border-top: 1px solid #22223a;
  background: #18181c;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 100;
}
#dot-grid-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: #000;
}
.container, .main-columns, .right-card, .profile-section {
  position: relative;
  z-index: 1;
}
.blur-text {
  display: inline-block;
  overflow: hidden;
  color: #fff;
}
.blur-text .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-30px);
  transition:
    opacity 0.6s cubic-bezier(.4,2,.6,1),
    filter 0.6s cubic-bezier(.4,2,.6,1),
    transform 0.6s cubic-bezier(.4,2,.6,1);
}
.blur-text .word.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.profile-actions.simple-links {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.profile-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}
.profile-link:hover {
  color: #61b3dc;
  text-decoration: none;
}
.profile-buttons {
  display: flex;
  gap: clamp(6px, 1.5vw, 10px);
  justify-content: center;
  margin-top: clamp(6px, 1.5vh, 10px);
}
.profile-btn {
  background: #5227FF;
  opacity: 0.75;
  color: #fff;
  border: none;
  border-radius: clamp(6px, 1.5vw, 8px);
  padding: clamp(8px, 2vh, 10px) clamp(16px, 4vw, 22px);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px 0 #0002;
  text-decoration: none;
  display: inline-block;
}
.profile-btn:hover {
  background: #3e1fa8;
  transform: translateY(-2px) scale(1.04);
}
/* =====================
   Responsive Media Queries
   ===================== */

/* ≤ 400px */
@media (max-width: 400px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container, .main-content, .main-columns, .right-card, .profile-section, .about-section, .services-section, .tools-section, .xp-edu-section, .projects-section, .attestations-section {
    max-width: 100vw;
    width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    border-radius: 10px;
    padding: 10px 2vw;
  }
  .xp-edu-grid, .xp-col {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-direction: column;
    gap: 16px;
  }
  .main-content {
    padding: 0 2vw;
  }
  .about-content, .services-list {
    flex-direction: column;
    gap: 5px;
  }
  .projects-list, .attestations-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ≤ 600px */
@media (max-width: 600px) {
  .main-content {
    padding: 10px 2vw;
  }
  .profile-section, .right-card, .about-section, .services-section, .tools-section, .xp-edu-section, .projects-section, .attestations-section {
    border-radius: 10px;
    padding: 10px 5vw;
    max-width: 100vw;
    width: 100vw;
    box-sizing: border-box;
  }
  .container {
    padding-left: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
  }
  .xp-edu-grid, .xp-col {
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column;
    gap: 18px;
  }
  .projects-list, .attestations-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .right-card {
    min-height: 870vh;
    height: auto;
    max-height: none;
    overflow-y: visible;
  }
}

/* ≤ 900px */
@media (max-width: 900px) {
  .main-content {
    padding: 20px 5vw;
  }
  .about-content, .services-list {
    flex-direction: column;
    gap: 20px;
  }
  .profile-section {
    max-width: 100%;
  }
  .xp-edu-grid {
    flex-direction: column;
    gap: 24px;
  }
}

/* ≤ 1100px */
@media (max-width: 1100px) {
  .main-columns {
    flex-direction: column;
    gap: 20px;
  }
  .profile-section {
    max-width: 80vw;
    min-width: 0;
    flex: 1 1 100%;
    padding: 18px 6vw;
    border-radius: 16px;
    margin-left: auto;
    margin-right: auto;
  }
  .right-card {
    max-height: none;
    padding: 20px 10px;
  }
}

/* =====================
   Fin Media Queries Responsive
   ===================== */

.box-reveal-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.box-reveal-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #5046e6;
  z-index: 2;
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
}

.box-reveal-wrapper.revealed .box-reveal-overlay {
  transform: translateX(100%);
}

.box-reveal-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s 0.3s;
}

.box-reveal-wrapper.revealed .box-reveal-content {
  opacity: 1;
}

.service-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.xp-edu-section {
  margin: clamp(30px, 6vh, 40px) 0 0 0;
  padding: 0 0 clamp(30px, 6vh, 40px) 0;
}
.xp-edu-section h2 {
  text-align: left;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(24px, 4vh, 32px);
  font-weight: 700;
  color: #fff;
}
.xp-edu-grid {
  display: flex;
  gap: clamp(20px, 4vw, 32px);
  flex-wrap: wrap;
}
.xp-col {
  flex: 1 1 clamp(280px, 50vw, 320px);
  min-width: clamp(250px, 45vw, 300px);
}
.xp-block {
  background: #111115;
  border-radius: clamp(12px, 2vw, 16px);
  padding: clamp(20px, 4vh, 24px) clamp(15px, 3vw, 20px);
  box-shadow: 0 4px 24px 0 #0002;
}
.xp-block-header {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  margin-bottom: clamp(20px, 4vh, 24px);
}
.xp-block-icon {
  height: clamp(1.5rem, 4vw, 2rem);
  width: auto;
  display: inline-block;
  vertical-align: middle;
  color: #2196f3;
  margin-right: clamp(3px, 1vw, 4px);
  filter: brightness(0) invert(1);
}
.xp-block-title {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: clamp(0.5px, 0.2vw, 1px);
}
.xp-card {
  background: #18181c;
  border-radius: clamp(8px, 1.5vw, 12px);
  padding: clamp(15px, 3vh, 18px) clamp(12px, 2.5vw, 16px);
  margin-bottom: clamp(15px, 3vh, 18px);
  box-shadow: 0 2px 12px 0 #0001;
  position: relative;
}
.xp-date {
  display: inline-block;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 600;
  border-radius: clamp(15px, 3vw, 20px);
  padding: clamp(2px, 0.5vh, 3px) clamp(10px, 2.5vw, 14px);
  margin-bottom: clamp(8px, 1.5vh, 10px);
  background: #222;
  color: #fff;
}
.xp-date.blue {
  background: #2196f3;
  color: #fff;
}
.xp-date.gray {
  background: #333;
  color: #ccc;
}
.xp-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.xp-card-title {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 700;
  color: #fff;
}
.xp-logo {
  height: clamp(36px, 8vw, 48px);
  width: auto;
  border-radius: clamp(4px, 1vw, 6px);
  background: #fff;
  padding: clamp(1px, 0.5vw, 2px) clamp(4px, 1vw, 6px);
  object-fit: contain;
  box-shadow: 0 2px 8px #0002;
}
.xp-company {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #2196f3;
  font-weight: 600;
  margin-bottom: clamp(4px, 1vh, 6px);
}
.xp-desc {
  font-size: clamp(0.9rem, 2.5vw, 0.98rem);
  color: #ccc;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .xp-edu-grid {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 400px) {
  .xp-edu-grid {
    flex-direction: column;
    gap: 24px;
  }
}

.xp-edu-stepper .xp-stepper-list {
  position: relative;
  padding-left: 32px;
}
.xp-edu-stepper .xp-stepper-list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 32px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #2196f3 0%, #fff2 100%);
  border-radius: 2px;
  z-index: 0;
}
.xp-edu-stepper .xp-step {
  position: relative;
  margin-bottom: 32px;
}
.xp-edu-stepper .xp-step:last-child {
  margin-bottom: 0;
}
.xp-edu-stepper .xp-step::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 29px;
  width: 9px;
  height: 9px;
  background: #2196f3;
  border: 2px solid #2196f3;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px #2196f355;
}

.xp-exp-stepper .xp-stepper-list {
  position: relative;
  padding-left: 32px;
}
.xp-exp-stepper .xp-stepper-list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 32px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #2196f3 0%, #fff2 100%);
  border-radius: 2px;
  z-index: 0;
}
.xp-exp-stepper .xp-step {
  position: relative;
  margin-bottom: 32px;
}
.xp-exp-stepper .xp-step:last-child {
  margin-bottom: 0;
}
.xp-exp-stepper .xp-step::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 29px;
  width: 9px;
  height: 9px;
  background: #2196f3;
  border: 2px solid #2196f3;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px #2196f355;
}

.attestations-section {
  margin: clamp(36px, 6vh, 48px) 0 0 0;
  padding-bottom: clamp(30px, 5vh, 40px);
}
.attestations-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  margin-bottom: clamp(20px, 4vh, 28px);
  font-weight: 700;
}
.attestations-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 40vw, 300px), 1fr));
  gap: clamp(16px, 3vw, 24px);
  justify-items: center;
}
.attestation-img {
  width: clamp(280px, 60vw, 380px);
  max-width: 100%;
  border-radius: clamp(8px, 1.5vw, 12px);
  box-shadow: 0 4px 24px #0005;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #18181c;
}
.attestation-img:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 8px 32px #2196f388;
}
@media (max-width: 800px) {
  .attestations-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-content: center;
  }
  .attestation-img {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 400px) {
  .attestations-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-content: center;
  }
  .attestation-img {
    width: 100%;
    max-width: 340px;
  }
}

.iphone15pro-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.iphone15pro-frame {
  position: relative;
  width: 220px;
  height: 450px;
  background: #222;
  border-radius: 38px;
  box-shadow: 0 8px 32px #0008, 0 1.5px 8px 0 #5227ff44;
  border: 4px solid #888;
  overflow: hidden;
  margin-bottom: 12px;
}
.iphone15pro-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  z-index: 2;
  opacity: 0.7;
}
.iphone15pro-frame::after {
  content: none;
}
.iphone15pro-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  display: block;
}

@media (max-width: 400px) {
  .container {
    margin-left: 5px;
    padding-left: 10px;
  }
  
  .main-columns {
    gap: 15px;
  }
  
  .profile-section {
    max-width: 95vw;
    padding: 15px 3vw;
    border-radius: 10px;
    min-height: 50vh;
    max-height: 80vh;
  }
  
  .profile-section h1.blur-text {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  .profile-section h2 {
    font-size: 0.85rem;
    margin: 4px 0 8px 0;
  }
  
  .social-links {
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .social-links img {
    width: 18px;
    height: 18px;
  }
  
  .profile-buttons {
    gap: 8px;
  }
  
  .profile-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
  }
  
  .right-card {
    max-width: 95vw;
    width: 95vw;
    padding: 15px 5vw;
    border-radius: 10px;
    margin-right: 10px;
  }
  
  .about-section, .services-section, .tools-section, .xp-edu-section, .projects-section, .attestations-section {
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  .about-section h2, .services-section h2, .tools-section h2, .xp-edu-section h2, .projects-section h2, .attestations-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .about-content {
    gap: 20px;
  }
  
  .about-text {
    min-width: 100%;
  }
  
  .services-list {
    gap: 15px;
  }
  
  .service-card {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  .service-card h3 {
    font-size: 1.1rem;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }
  
  .tools-list {
    gap: 15px;
    justify-content: center;
  }
  
  .tool img {
    width: 50px;
    height: 50px;
  }
  
  .xp-edu-grid {
    gap: 20px;
  }
  
  .xp-col {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .xp-block {
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  .xp-block-header {
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .xp-block-icon {
    height: 1.5rem;
  }
  
  .xp-block-title {
    font-size: 1rem;
  }
  
  .xp-card {
    padding: 15px 12px;
    margin-bottom: 15px;
    border-radius: 8px;
  }
  
  .xp-date {
    font-size: 0.85rem;
    padding: 2px 10px;
  }
  
  .xp-card-title {
    font-size: 1rem;
  }
  
  .xp-logo {
    width: 25px;
    height: 25px;
  }
  
  .xp-company {
    font-size: 0.9rem;
  }
  
  .xp-desc {
    font-size: 0.85rem;
  }
  
  .projects-list {
    gap: 15px;
  }
  
  .project-item {
    flex: 1 1 100%;
  }
  
  .project-item h3 {
    font-size: 1rem;
  }
  
  .attestations-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .attestation-img {
    height: 100px;
  }
  
  .footer {
    padding: 15px;
    font-size: 0.8rem;
  }
  
  body {
    padding-top: 20px;
    padding-bottom: 80px;
  }
}

/* ===== Lang Switcher Navbar ===== */
.navbar-lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.lang-btn {
  background: #22223a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.lang-btn.active, .lang-btn:hover {
  background: #5227FF;
  color: #fff;
}
@media (max-width: 700px) {
  .navbar-lang-switcher {
    margin-top: 8px;
    margin-left: 0;
  }
  .lang-btn {
    font-size: 0.98rem;
    padding: 5px 10px;
  }
}
@media (max-width: 400px) {
  .lang-btn {
    font-size: 0.95rem;
    padding: 4px 8px;
  }
}
/* ===== Fin Lang Switcher Navbar ===== */
