/* ============================================
   Responsive Styles
   ============================================ */

/* --- Tablet (< 1024px) --- */
@media (max-width: 1023px) {
  .certs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Mobile Nav + Timeline (< 768px) --- */
@media (max-width: 767px) {
  /* Navigation */
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__scroll {
    display: none;
  }

  /* Timeline: Single column */
  .timeline__line {
    left: 28px;
  }

  .timeline__item,
  .timeline__item--left {
    flex-direction: row;
  }

  .timeline__node {
    position: relative;
    left: 0;
    transform: none;
    flex-shrink: 0;
  }

  .timeline__card,
  .timeline__item--left .timeline__card,
  .timeline__item--right .timeline__card {
    width: auto;
    flex: 1;
    text-align: left;
    margin-left: var(--space-6);
    margin-right: 0;
  }

  .timeline__item--left .timeline__highlights li {
    padding-left: var(--space-4);
    padding-right: 0;
  }

  .timeline__item--left .timeline__highlights li::before {
    left: 0;
    right: auto;
  }

  /* Timeline slide animation: all from right on mobile */
  .timeline__item--left[data-reveal],
  .timeline__item--right[data-reveal] {
    transform: translateX(30px);
  }

  .timeline__item--left[data-reveal].revealed,
  .timeline__item--right[data-reveal].revealed {
    transform: translateX(0);
  }

  /* Education */
  .education__card {
    padding: var(--space-6);
    padding-left: var(--space-8);
  }

  .education__degree {
    font-size: var(--text-xl);
  }

  /* Awards */
  .award-row {
    flex-wrap: wrap;
  }

  .award-row__meta {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding-left: 60px;
  }

  /* Section spacing */
  .section__title {
    font-size: var(--text-3xl);
  }
}

/* --- Small Mobile (< 640px) --- */
@media (max-width: 639px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }

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

  .hero__photo img {
    width: 96px;
    height: 96px;
  }

  .hero__name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .education__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* --- Large Desktop (> 1280px) --- */
@media (min-width: 1280px) {
  :root {
    --container-max: 1200px;
  }
}
