/* =============================================
   FAZI PORTFOLIO — responsive.css
   Mobile & tablet breakpoints
   ============================================= */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .hero-name { font-size: 3rem; }

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

  .github-stats { grid-template-columns: repeat(2, 1fr); }
  .gh-stat:nth-child(2) { border-right: none; }
  .gh-stat:nth-child(1),
  .gh-stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .nav-container { padding: 0 1.25rem; }

  /* Mobile nav */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 52px;
    right: 0;
    height: calc(100vh - 52px);
    width: 220px;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { width: 100%; padding: 10px 12px; }

  /* Hero */
  .hero { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-content { flex-direction: column-reverse; gap: 2rem; text-align: left; }
  .hero-name { font-size: 2.5rem; }
  .hero-desc { max-width: 100%; }
  .avatar-placeholder { width: 120px; height: 120px; font-size: 3rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* Sections */
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.4rem; }

  /* Stats */
  .stats-row { grid-template-columns: 1fr; gap: 0.75rem; }

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

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

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

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

  /* GitHub */
  .github-stats { grid-template-columns: repeat(2, 1fr); }
  .github-box-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .repo-item { flex-direction: column; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer .btn { justify-content: center; }

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

  /* Back to top */
  #back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

/* ── Small mobile (≤ 420px) ── */
@media (max-width: 420px) {
  .hero-name { font-size: 2.1rem; }
  .hero-badge { font-size: 10px; flex-wrap: wrap; }
  .section-title { font-size: 1.25rem; }
  .gh-stat-num { font-size: 1.1rem; }
}
