/* ========================================
   Responsive Design — Mobile First
   ======================================== */

/* ── Tablet & Below ── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    position: static;
    text-align: center;
  }

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

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

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

/* ── Mobile ── */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-lg);
    transition: right var(--transition);
    z-index: var(--z-nav);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: calc(var(--z-nav) + 1);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-nav) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero-avatar {
    width: 120px;
    height: 120px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  /* About */
  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .highlight-value {
    font-size: 1.5rem;
  }

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

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

  /* Timeline */
  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-dot {
    left: 4px;
    width: 16px;
    height: 16px;
  }

  .blog-detail-view {
    padding: calc(72px + var(--space-xl)) 0 var(--space-3xl);
  }

  .blog-detail-card {
    padding: var(--space-xl);
  }

  .blog-detail-title {
    font-size: 1.75rem;
  }

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

  /* Section header */
  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }
}

/* ── Small Mobile ── */
@media (max-width: 480px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }

  .hero-avatar {
    width: 100px;
    height: 100px;
  }

  .social-links {
    gap: var(--space-sm);
  }

  .social-link {
    width: 40px;
    height: 40px;
  }
}

/* ── Large Desktop ── */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

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

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