/* ═══════════════════════════════════════════════════
   RESPONSIVE.CSS — Mobile, Tablet, Desktop
   ═══════════════════════════════════════════════════ */

/* ─── Tablet (1024px and below) ─── */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 4rem;
    --fs-5xl: 3rem;
    --fs-4xl: 2.5rem;
    --fs-3xl: 2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    text-align: center;
  }

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

  .hero__portrait {
    order: 1;
    justify-content: center;
  }

  .portrait-3d {
    width: 320px;
    height: 380px;
  }

  .hero__description {
    max-width: 100%;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__scroll {
    display: none;
  }

  .about__areas {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about__heading {
    max-width: 100%;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

/* ─── Mobile (768px and below) ─── */
@media (max-width: 768px) {
  :root {
    --fs-hero: 3rem;
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav {
    padding: var(--space-md) var(--space-lg);
  }

  .section--hero {
    padding-top: calc(60px + var(--space-2xl));
  }

  .portrait-3d {
    width: 260px;
    height: 320px;
  }

  .hero__heading {
    font-size: var(--fs-2xl);
  }

  .hero__subheading {
    font-size: var(--fs-md);
  }

  .education__card {
    padding: var(--space-2xl);
  }

  .education__meta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .project-card {
    height: 520px;
  }

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

  .closing__links {
    flex-direction: column;
    gap: var(--space-md);
  }

  .section--education,
  .section--skills,
  .section--projects,
  .section--closing {
    padding: var(--space-4xl) 0;
  }

  .section--about {
    padding: var(--space-3xl) 0;
  }

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

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

  .intro__skip {
    bottom: var(--space-lg);
    right: var(--space-lg);
  }
}

/* ─── Small Mobile (480px and below) ─── */
@media (max-width: 480px) {
  :root {
    --fs-hero: 2.25rem;
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.25rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .portrait-3d {
    width: 220px;
    height: 280px;
  }

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

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

  .project-card {
    height: auto;
    min-height: 480px;
  }

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

/* ─── Large Screens (1440px+) ─── */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .portrait-3d {
    width: 480px;
    height: 560px;
  }
}
