/* ════════════════════════════════════════════════════
   ABDULBARI AHMED — PORTFOLIO
   mediaqueries.css — All responsive / breakpoint styles
════════════════════════════════════════════════════ */

/* ── TABLET (≤ 1100px) ── */
@media (max-width: 1100px) {
  /* Nav */
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }

  /* Hero — single column, text on top, photo below */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    gap: 2.5rem;
    padding: 7rem 5vw 4rem;
  }

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

  .hero-right {
    order: 2;
  }

  .hero-bio {
    text-align: center;
  }
  .hero-chips {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .scroll-indicator {
    display: none;
  }

  .hero-photo-container {
    width: 240px;
    height: 290px;
  }

  /* Sections */
  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-layout {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── MOBILE (≤ 680px) ── */
@media (max-width: 680px) {
  /* Hero */
  .hero {
    padding: 6rem 5vw 3rem;
    gap: 2rem;
  }

  .hero-name {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .hero-role-line {
    font-size: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-bio {
    font-size: 0.95rem;
  }

  .hero-photo-container {
    width: 200px;
    height: 240px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
  }

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

  .btn {
    font-size: 0.72rem;
    padding: 0.75rem 1.25rem;
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }

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

  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  /* Experience cards */
  .exp-card {
    height: 220px;
  }

  /* Skills */
  .skill-group {
    padding: 1.25rem;
  }
  .skill-bubble {
    font-size: 0.68rem;
    padding: 0.3rem 0.7rem;
  }

  /* Projects */
  .project-body h3 {
    font-size: 1rem;
  }

  /* Contact terminal */
  .contact-terminal {
    font-size: 0.8rem;
  }
  .terminal-body {
    padding: 1.25rem;
  }

  /* Footer */
  .footer-nav {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  /* Experience cards */
  .exp-card {
    height: 260px;
  }

  .exp-flip-hint {
    position: absolute;
    bottom: 1.25rem;
  }

  .exp-date {
    margin-bottom: 1.5rem;
  }
}

/* ── SMALL MOBILE (≤ 400px) ── */
@media (max-width: 400px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-photo-container {
    width: 170px;
    height: 210px;
  }

  .hero-stats {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .stat-n {
    font-size: 1.2rem;
  }
  .stat-l {
    font-size: 0.6rem;
  }

  .stat-divider {
    height: 28px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .exp-card {
    height: 240px;
  }
}
