/* ============================================
   RESPONSIVE — Breakpoints: 480, 768, 1024
   ============================================ */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .hamburger { display: flex; }

  .nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1050;
    padding: 80px 32px 32px;
    transition: right 0.35s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
  }

  .nav-drawer.open { right: 0; }

  .nav-drawer a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
  }

  .nav-drawer a:hover { color: var(--accent); }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .hero h1 { font-size: 2.2rem; }
  .typewriter-wrapper { font-size: 1.1rem; }

  .hero-inner { flex-direction: column; }
  .hero-illustration { width: 280px; order: -1; }

  .now-content { flex-direction: column; gap: 8px; }
  .now-marquee-inner { animation-duration: 15s; }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

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

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

  .section { padding: 70px 0; }
  .section-title { font-size: 1.6rem; }

  .modal-content { padding: 28px; }

  .research-card { flex-direction: column; gap: 16px; }
  .research-card-icon { width: 44px; height: 44px; font-size: 1rem; }

  .shortcut-hints { display: none; }
}

@media (max-width: 480px) {
  .hero { text-align: center; }

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

  .hero-illustration { width: 220px; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero-tagline { font-size: 0.95rem; }

  .edu-card-header { flex-direction: column; }

  .timeline { padding-left: 30px; }
  .timeline-dot { left: -23px; width: 10px; height: 10px; }
  .timeline-card { padding: 20px; }

  .container { padding: 0 16px; }

  .modal-content { padding: 20px; }
  .modal-header h3 { font-size: 1.15rem; }
}
