/* ==============================
   RESPONSIVE — css/responsive.css
   ============================== */

/* ── Tablet: ≤900px ── */
@media (max-width: 900px) {

  :root { --space-xl: 5rem; }

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

  .about-card {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
  }

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

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

  .project-card--research {
    grid-column: span 1;
  }

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

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

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

/* ── Mobile: ≤640px ── */
@media (max-width: 640px) {

  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
    --space-md: 1.5rem;
  }

  /* Nav */
  .nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.75rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1rem;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Cursor – hide on touch */
  .cursor,
  .cursor-follower {
    display: none;
  }

  body { cursor: auto; }

  /* Hero */
  .hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 1rem;
    padding: 1.25rem;
  }

  .stat-num { font-size: 1.4rem; }

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

  /* Projects */
  .project-card {
    flex-direction: column;
    gap: 1rem;
  }

  .project-num {
    font-size: 2rem;
  }

  /* About card */
  .about-card {
    flex-direction: column;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.5rem;
  }

  /* Education */
  .edu-card {
    flex-direction: column;
    gap: .75rem;
  }

  /* Contact */
  .contact-cta {
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Section title */
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
}

/* ── Very small: ≤380px ── */
@media (max-width: 380px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }
}
