/* ============================================
   RESPONSIVE — Breakpoints & Mobile Styles
   ============================================ */

/* ── Tablet: ≤1024px ── */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
  }

  .contact-grid {
    gap: var(--space-xl);
  }

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

/* ── Mobile: ≤768px ── */
@media (max-width: 768px) {
  /* Cursor — hide on touch devices */
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto;
  }

  a, button, input, textarea {
    cursor: auto;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  /* Hero */
  .hero-content {
    text-align: center;
  }

  .hero-label {
    justify-content: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-scroll {
    display: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image-wrapper {
    max-width: 250px;
    margin: 0 auto;
  }

  .about-content {
    max-width: 100%;
  }

  .about-stats {
    justify-content: center;
  }

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

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

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .contact-links {
    align-items: stretch;
  }

  .contact-link:hover {
    transform: none;
  }

  .contact-location {
    justify-content: center;
  }

  .btn-submit {
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ── Small Mobile: ≤480px ── */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

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

  .about-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  .skill-bar-wrapper {
    width: 70px;
  }
}

/* ── RTL adjustments for mobile ── */
@media (max-width: 768px) {
  [dir="rtl"] .about-grid {
    text-align: center;
  }

  [dir="rtl"] .contact-info {
    text-align: center;
  }

  [dir="rtl"] .btn-submit {
    align-self: stretch;
  }
}
