/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* ── Tablet ── (≤1024px) */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero-visual { order: -1; }
  .hero-profile-wrapper { width: 240px; height: 240px; }
  .hero-content { max-width: 100%; }
  .hero-name { font-size: clamp(2.5rem, 7vw, 4rem); }

  .about-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .about-image-wrapper { max-width: 400px; }

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

  .featured-project { grid-template-columns: 1fr; gap: var(--space-8); }
  .featured-project:nth-child(even) .featured-project-image,
  .featured-project:nth-child(even) .featured-project-content { order: unset; }

  .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Mobile ── (≤768px) */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .container { padding: 0 var(--space-5); }
  .section  { padding: var(--space-20) 0; }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-3xl); }

  .hero-inner { padding: var(--space-12) 0; }
  .hero-name { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-float-card { display: none; }
  .hero-scroll-hint { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

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

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

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

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

  .process-steps { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-2); }

  .timeline { padding-left: var(--space-8); }
  .timeline-dot { left: calc(-2rem - 4px); }

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

  .testimonial-card { padding: var(--space-6); }
  .testimonial-text { font-size: var(--text-base); }

  #back-to-top { bottom: var(--space-5); right: var(--space-5); }
  #ai-assistant { bottom: 80px; right: var(--space-5); }
  .ai-panel { width: calc(100vw - 40px); right: -20px; }

  .nav-status { display: none; }
  .hero-badge span:not(.dot) { display: none; }
}

/* ── Small Mobile ── (≤480px) */
@media (max-width: 480px) {
  .hero-name { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .hero-profile-wrapper { width: 180px; height: 180px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: var(--text-4xl); }

  .btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-sm); }

  .section-title { font-size: var(--text-3xl); }

  .command-box { margin: 0 var(--space-4); }

  .terminal-body { min-height: 220px; }
}

/* ── Large Desktop ── (≥1400px) */
@media (min-width: 1400px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero-profile-wrapper { width: 380px; height: 380px; }
  .about-grid { grid-template-columns: 0.8fr 1.2fr; }
}

/* ── Print Styles ── */
@media print {
  #navbar, #page-loader, #back-to-top, #ai-assistant,
  #command-palette, #cursor-dot, #cursor-ring,
  #scroll-progress { display: none !important; }
  body { background: white; color: black; }
  .card, .service-card, .timeline-card { border: 1px solid #ddd; }
  a { color: inherit; }
}
