/* ═══════════════════════════════════════════════════
   RESPONSIVE.CSS — All Breakpoints
   Somala Ajay Portfolio
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
═══════════════════════════════════════════════════ */

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

  /* Skills: stack globe on top */
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .skills-globe-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

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

  /* Projects: 2-col grid */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact: stack */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

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

  /* Disable custom cursor on touch */
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }

  /* Nav */
  #navbar { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  #hero { padding: 80px 1.25rem 3rem; }

  .hero-name { font-size: clamp(3.2rem, 17vw, 5.5rem); }

  .hero-ctas {
    gap: 0.65rem;
  }
  .btn-primary,
  .btn-secondary,
  .btn-outline { padding: 0.75rem 1.25rem; font-size: 0.75rem; }

  /* Stats: 2x2 grid */
  .hero-stats {
    flex-wrap: wrap;
    width: 100%;
    max-width: 340px;
  }
  .stat-item {
    flex: 1 1 calc(50% - 1px);
    border-bottom: 1px solid var(--border);
    min-width: 0;
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-bottom: none; }
  .stat-item:nth-child(4) { border-right: none; border-bottom: none; }

  /* About: stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-cards {
    grid-template-columns: 1fr 1fr;
  }

  /* Section padding */
  .section { padding: 4.5rem 0; }
  .container { padding: 0 1.25rem; }

  h2.section-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    margin-bottom: 2rem;
  }

  /* Timeline */
  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 44px; }
  .timeline-dot { left: 7px; width: 13px; height: 13px; }

  /* Skills */
  .skills-layout { grid-template-columns: 1fr; }
  .skills-cards { grid-template-columns: 1fr 1fr; }
  .skills-globe-wrap { min-height: 280px; }

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

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

  /* Contact: form stacks */
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

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

  /* Theme toggle - above chatbot button */
  #theme-toggle { bottom: 8rem; right: 1.25rem; }
}

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

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

  .hero-badge { font-size: 0.6rem; padding: 0.35rem 0.85rem; }

  .hero-ctas { gap: 0.5rem; }
  .btn-primary,
  .btn-secondary,
  .btn-outline { padding: 0.7rem 1rem; font-size: 0.72rem; }

  .hero-stats { max-width: 300px; }
  .stat-val { font-size: 1.6rem; }

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

  .skills-cards { grid-template-columns: 1fr; }

  .timeline-card { padding: 1.25rem; }

  .contact-form { padding: 1.25rem; }

  .mobile-menu a { font-size: 1.5rem; }
}

/* ── Wide Desktop: ≥1400px ── */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}
