/* ════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero__inner--about {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    display: flex;
    justify-content: center;
  }

  .hero__photo-frame {
    width: 140px;
    height: 180px;
  }

  .hero__pills {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 460px;
    margin: 0 auto;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__photo {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .photo__frame {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
  }

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

  /* Timeline — collapse to single column */
  .timeline::before {
    left: 20px;
  }

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

  .timeline__item--right .timeline__card,
  .timeline__item--left .timeline__card {
    grid-column: 1;
    margin-left: 44px;
  }

  .timeline__node {
    left: 20px;
    transform: none;
  }

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

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

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

/* ════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --nav-h: 58px;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Nav */
  .nav__burger {
    display: flex;
  }

  .nav__links {
    /* Animation handled in animations.css */
    font-size: 1rem;
  }

  /* Hero */
  .hero__inner {
    padding: 1.5rem 1.25rem;
  }

  .hero__name {
    letter-spacing: -0.5px;
  }

  .hero__badge {
    font-size: 0.78rem;
    text-align: center;
  }

  .terminal__body {
    font-size: 0.78rem;
  }

  /* About */
  .about__photo {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo__frame {
    width: 120px;
    height: 120px;
  }

  .journey {
    gap: 0.4rem;
    overflow-x: auto;
    padding: 1rem;
  }

  .journey__item { min-width: 70px; }
  .journey__arrow { font-size: 0.9rem; }

  /* Skills */
  .skills__grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline__card {
    padding: 1.25rem;
  }

  .timeline__item--right .timeline__card,
  .timeline__item--left .timeline__card {
    margin-left: 36px;
  }

  /* Toolkit */
  .toolkit__grid {
    grid-template-columns: 1fr;
  }

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

  /* Projects */
  .projects__grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact__links {
    align-items: flex-start;
    padding: 0 1rem;
  }

  .contact__link {
    font-size: 0.8rem;
  }

  /* Section title */
  .section__title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .section__title::after {
    max-width: 80px;
  }
}

/* ════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max 480px)
════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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

  .timeline__tags {
    display: none; /* Hide tags on very small screens to save space */
  }

  .cert-card {
    padding: 1.5rem 1rem;
  }

  .frameworks {
    padding: 1.25rem;
  }

  .framework-tags {
    gap: 0.4rem;
  }
}

/* ════════════════════════════════════
   REDUCED MOTION
════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
