/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile v2
   ═══════════════════════════════════════════════════ */

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

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

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

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

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

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

  /* Disable parallax on tablet/mobile for performance */
  header {
    background-attachment: scroll;
  }
}

/* ── MOBILE (≤ 600px) ─────────────────────────────── */
@media (max-width: 600px) {
  .section {
    padding: clamp(40px, 8vw, 80px) 16px;
  }

  .section-alt {
    padding-left: 0;
    padding-right: 0;
  }

  .navbar {
    padding: 14px 16px;
  }

  .navbar-scrolled {
    padding: 10px 16px;
  }

  .hero-content {
    padding: 100px 16px 60px;
  }

  .hero-name {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

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

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

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  /* Disable 3D tilt on touch devices */
  .tilt-card {
    transform: none !important;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .fab-cv {
    right: 16px;
    bottom: 78px;
  }

  .fab-top {
    right: 16px;
    bottom: 20px;
  }

  .about-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Smaller wave dividers on mobile */
  .wave-divider svg {
    height: 50px;
  }
}

/* ── SMALL MOBILE (≤ 380px) ───────────────────────── */
@media (max-width: 380px) {
  .skill-ring {
    width: 90px;
    height: 90px;
  }

  .skill-percent {
    font-size: 1rem;
  }

  .service-card {
    padding: 24px 20px;
  }

  .wave-divider svg {
    height: 40px;
  }
}
