/* ============================================================
   responsive.css - All breakpoint overrides
   Mobile-first approach: base styles in styles.css,
   overrides here for progressively larger screens.
   ============================================================ */

/* ── Tablet & below (max 768px) ──────────────────────────── */
@media (max-width: 768px) {

  /* Navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    z-index: 999;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-name {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  /* Profile */
  .profile-card-inner {
    padding: 2rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-photo-wrap {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .profile-social {
    flex-direction: row;
    width: auto;
    flex-wrap: wrap;
  }

  .profile-highlights {
    grid-template-columns: 1fr;
  }

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

  .exp-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Work */
  .github-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .gb-left {
    flex-direction: column;
    align-items: center;
  }

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

  .project-card.flagship {
    grid-column: 1;
  }

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

  .edu-card.full-width {
    grid-column: 1;
  }

  /* Contact */
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
  }
}

/* ── Small phones (max 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --section-gap: 4rem;
  }

  .section-container {
    padding: var(--section-gap) 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

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

  .profile-photo {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .profile-photo-wrap {
    flex-direction: column;
    text-align: center;
  }

  .profile-social {
    justify-content: center;
  }

  .hero-stats {
    gap: 1rem;
  }

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

/* ── Large screens (min 1200px) ───────────────────────────── */
@media (min-width: 1200px) {
  :root {
    --max-width: 1024px;
  }
}
