/* ============================================
   RESPONSIVE STYLES — Mobile First
   Breakpoints: 360, 390, 414, 480, 768, 1024, 1280, 1440, 1920
   ============================================ */

/* ---- Hide desktop nav on mobile (default) ---- */
.nav__links,
.nav__actions,
.nav__lang {
  display: none;
}

.nav__hamburger {
  display: flex;
}

/* ---- Hero mobile ---- */
.hero {
  min-height: auto;
  padding-top: calc(72px + 2.5rem);
  padding-bottom: 3rem;
}

.hero__container {
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}

.hero__content {
  align-items: center;
  order: 2;
}

.hero__portrait {
  order: 1;
}

.hero__portrait-frame {
  width: clamp(220px, 60vw, 300px);
}

.hero__name {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
}

.hero__headline {
  font-size: clamp(1rem, 4vw, 1.2rem);
}

.hero__description {
  font-size: 0.9rem;
}

.hero__expertise-tags {
  justify-content: center;
}

.hero__ctas {
  justify-content: center;
}

.hero__linkedin {
  justify-content: center;
}

/* ---- About mobile ---- */
.about__dimensions {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about__dimension {
  padding: 1.5rem;
}

/* ---- Expertise mobile ---- */
.expertise__grid {
  grid-template-columns: 1fr;
}

/* ---- Timeline mobile ---- */
.timeline::before {
  left: 10px;
}

.timeline__item {
  padding-left: 36px;
}

.timeline__marker {
  left: 3px;
  width: 13px;
  height: 13px;
}

.timeline__content {
  padding: 1.25rem;
}

.timeline__header {
  flex-direction: column;
  gap: 0.25rem;
}

/* ---- SecondAct pillars mobile ---- */
.secondact__pillars {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* ---- Contact channels mobile ---- */
.contact__channel {
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

/* ---- Footer mobile ---- */
.footer__top {
  flex-direction: column;
  text-align: center;
}

.footer__links {
  justify-content: center;
}

/* ============================================
   480px — Small phones landscape
   ============================================ */
@media (min-width: 480px) {
  .hero__name {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }

  .hero__expertise-tags {
    gap: 0.6rem;
  }

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

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

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

/* ============================================
   768px — Tablet
   ============================================ */
@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-top: 72px;
    padding-bottom: 0;
  }

  .hero__container {
    grid-template-columns: 1fr 0.7fr;
    text-align: left;
    gap: clamp(2rem, 4vw, 4rem);
  }

  .hero__content {
    align-items: flex-start;
    order: 1;
  }

  .hero__portrait {
    order: 2;
  }

  .hero__portrait-frame {
    width: clamp(280px, 28vw, 380px);
  }

  .hero__name {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
  }

  .hero__ctas {
    justify-content: flex-start;
  }

  .hero__linkedin {
    justify-content: flex-start;
  }

  .about__dimensions {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .expertise__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact__channel {
    flex-direction: row;
    text-align: left;
  }
}

/* ============================================
   1024px — Small desktop / large tablet
   ============================================ */
@media (min-width: 1024px) {
  /* Show desktop nav */
  .nav__links {
    display: flex;
  }

  .nav__actions {
    display: flex;
  }

  .nav__lang {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .hero__portrait-frame {
    width: clamp(320px, 26vw, 420px);
  }

  .about__dimensions {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .expertise__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   1280px — Desktop
   ============================================ */
@media (min-width: 1280px) {
  .hero__container {
    gap: 5rem;
  }

  .hero__portrait-frame {
    width: 420px;
  }
}

/* ============================================
   1440px — Large desktop
   ============================================ */
@media (min-width: 1440px) {
  .nav__container {
    padding: 0 3rem;
  }

  .section__container {
    padding: 0 3rem;
  }
}

/* ============================================
   1920px — Ultra-wide
   ============================================ */
@media (min-width: 1920px) {
  :root {
    --container-max: 1320px;
  }

  .hero__portrait-frame {
    width: 480px;
  }
}

/* ============================================
   Landscape phones
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 2rem;
  }

  .hero__container {
    grid-template-columns: 1fr 0.5fr;
    text-align: left;
  }

  .hero__content {
    align-items: flex-start;
    order: 1;
  }

  .hero__portrait {
    order: 2;
  }

  .hero__portrait-frame {
    width: 180px;
  }
}
