/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --bg: #f0f2f5;
  --white: #ffffff;
  --sidebar-bg: #ffffff;
  --sidebar-width: 260px;
  --dark: #1e2535;
  --dark-hover: #2a3347;
  --accent: #5b4be8;
  --accent2: #7c3aed;
  --gradient: linear-gradient(135deg, #7b5ea7 0%, #5b4be8 100%);
  --text: #1a202c;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --accent-purple: #6366f1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 16px 24px;
  z-index: 1000;
  transition: left 0.3s ease;
}

.sidebar-profile {
  text-align: center;
  padding: 0 8px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  /* background: var(--gradient); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.avatar-lg {
  width: 100px;
  height: 100px;
  font-size: 30px;
  margin: 0 auto 24px;
}

.sidebar-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.sidebar-bio {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-item i {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.nav-item:hover {
  background: var(--bg);
  color: var(--text);
}

.nav-item.active {
  background: var(--dark);
  color: #fff;
}

/* ===========================
   MAIN
=========================== */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 80px 80px 80px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===========================
   HERO
=========================== */
.section-hero {
  align-items: center;
  text-align: center;
  position: relative;
  background: var(--bg);
}

.hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: 52px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-socials {
  display: flex;
  gap: 20px;
}

.social-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--accent);
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 18px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===========================
   BOUTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--dark-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--white);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  flex: 1;
  justify-content: center;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 16px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--border);
}

/* ===========================
   TIMELINE
=========================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.timeline-item {
  display: flex;
  gap: 0;
  position: relative;
  padding-bottom: 0;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.timeline-icon.work {
  background: #dbeafe;
  color: #3b82f6;
}

.timeline-icon.edu {
  background: #ede9fe;
  color: #7c3aed;
}

.timeline-item:not(:last-child) .timeline-icon::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--border);
  bottom: -40px;
}

.timeline-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-left: 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.timeline-date {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 16px;
}

.timeline-company {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   COMPETENCES
=========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.icon-blue {
  background: #dbeafe;
  color: #3b82f6;
}

.icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.icon-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.icon-orange {
  background: #ffedd5;
  color: #ea580c;
}

.icon-pink {
  background: #fce7f3;
  color: #db2777;
}

.icon-yellow {
  background: #fef9c3;
  color: #ca8a04;
}

.skill-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.skill-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================
   EXPERIENCES
=========================== */

.section2 {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem;
}

.container2 {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.exp-item {
  display: flex;
  gap: 1rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border: 1px solid var(--card-bg);
  height: auto;
  align-items: flex-start;
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  transition: .1s;
}

.exp-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

.exp-logo-container {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.exp-img {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.exp-content {
  flex: 1;
  min-width: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .5rem;
  gap: 15px;
  flex-wrap: nowrap;
}

.exp-header h3 {
  font-size: 1.1rem;
  flex: 1;
  margin: 0;
  line-height: 1.4;
  color: #111;
  font-weight: 700;
}

.badge {
  background: rgba(235, 35, 151, 0.1);
  color: var(--accent-purple);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.company {
  font-size: .9rem;
  margin-bottom: .8rem;
  font-weight: 500;
  color: #6b7280;
}

.desc-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  line-height: 1.5;
  color: #555;
  font-size: .9rem;
}

.desc-list li {
  margin-bottom: 5px;
}


/* ===========================
   CERTIFICATIONS
=========================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cert-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cert-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.cert-badge {
  font-size: 12px;
  color: #16a34a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cert-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.cert-org {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.cert-year {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cert-id {
  font-size: 11px;
  color: var(--text-light);
  margin: 12px 0 6px;
}

.cert-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.cert-link:hover {
  opacity: 0.7;
}

/* ===========================
   CONTACT
=========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.contact-left h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-left>p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.contact-info-item div {
  display: flex;
  flex-direction: column;
}

.contact-info-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.contact-info-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  resize: none;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 48px 80px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 13px;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #64748b;
}

.heart {
  color: #ef4444;
}


/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .main {
    margin-left: 0;
  }

  .section {
    padding: 60px 24px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer {
    padding: 40px 24px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 36px;
  }
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-body {
  padding: 20px;
}

.tags {
  margin: 10px 0;
}

.tag {
  display: inline-block;
  background: #eee;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-right: 5px;
}

.project-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

/* ===========================
   MENU 
=========================== */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: white;
  border: 2px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1100;
  display: none;
  cursor: pointer;
  box-shadow: var(--gradient);
}

.menu-toggle i {
  font-size: 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===========================
   OVERLAY
=========================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .sidebar {
    left: -260px;
  }

  .sidebar.active {
    left: 0;
  }

  .main {
    margin-left: 0;
  }

  .section {
    padding: 60px 20px;
  }

  .hero-name {
    font-size: 34px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .exp-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .timeline-card-header {
    flex-direction: column;
  }
}