/* ============================================================
   RESPONSIVE.CSS — Mobile-First Media Queries
   ============================================================ */

/* ─── Ultra-wide (2560px+) ──────────────────────────────────── */
@media (min-width: 2560px) {
  :root { --container-width: 1600px; font-size: 18px; }
  .hero-name-text { font-size: clamp(5rem, 7vw, 9rem); }
  .section-title   { font-size: clamp(3rem, 4vw, 5rem); }
}

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

/* ─── Desktop (1200px+) ──────────────────────────────────────── */
@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Laptop (1024px - 1199px) ───────────────────────────────── */
@media (max-width: 1199px) {
  .hero-container {
    gap: 3rem;
  }
  .profile-wrapper {
    width: 340px;
    height: 340px;
  }
}

/* ─── Tablet & Below (1024px) ────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 90px 0;
  }

  /* Navigation */
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .lang-switcher { display: none; }

  /* Hero */
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    gap: 4rem;
  }
  .hero-content { align-items: center; }
  .hero-cta { justify-content: center; }
  .hero-social { justify-content: center; padding: 20px 0; }
  .hero-visual { order: -1; }
  .profile-wrapper { width: 300px; height: 300px; }
  .float-card { display: none; }

  .scroll-indicator { display: none; }
  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-content { order: 2; }
  .about-stats { order: 1; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }

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

  /* Timeline */
  .timeline-item { flex-direction: column; gap: 1rem; }
  .timeline-marker { flex-direction: row; align-items: center; }
  .timeline-line { width: auto; height: 2px; flex: 1; }
  .timeline-meta { flex-direction: column; align-items: flex-end; }

  /* Cursor - hide on touch devices */
  .cursor, .cursor-follower { display: none; }
}

/* ─── Tablet Portrait (768px - 1023px) ───────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
    font-size: 15px;
  }

  /* Nav */
  .nav-container { padding: 0 1.5rem; }

  /* Hero */
  .hero-name-text { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero-title { font-size: 1.25rem; }
  .hero-description { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; width: 100%; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }

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

  /* Skills */
  .skill-tabs { flex-wrap: wrap; gap: 0.5rem; }
  .skill-tab-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-filters { flex-wrap: wrap; gap: 0.5rem; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

  /* Certs */
  .certs-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tech Stack */
  .tech-stack-grid { grid-template-columns: repeat(3, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
  .contact-form-wrap { order: 1; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { flex-direction: column; gap: 1rem; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ─── Mobile (max 480px) ─────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --section-padding: 60px 0; }

  .container { padding: 0 1.25rem; }

  /* Hero */
  .profile-wrapper { width: 240px; height: 240px; }
  .hero-badge { font-size: 0.8rem; }
  .hero-name-text { font-size: clamp(2.2rem, 12vw, 3rem); }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .section-tag { font-size: 0.75rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-number { font-size: 2.2rem; }

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

  /* Tech */
  .tech-stack-grid { grid-template-columns: repeat(2, 1fr); }

  /* Timeline */
  .timeline-card { padding: 1.25rem; }
  .timeline-achievements { display: none; }

  /* Testimonials */
  .testimonial-text { font-size: 0.95rem; }

  /* Contact */
  .btn { padding: 0.75rem 1.5rem; }

  /* Back to top */
  .back-to-top { bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }

  /* Mobile menu larger touch targets */
  .mobile-menu a { padding: 1rem 1.5rem; font-size: 1.25rem; }
}

/* ─── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .float-anim, .float-anim-slow { animation: none; }
  .gradient-text { animation: none; background-size: 100%; }
}

/* ─── Print ──────────────────────────────────────────────────── */
@media print {
  .loader, .cursor, .cursor-follower, .scroll-progress,
  .nav, .hero-canvas, .back-to-top, .mobile-menu { display: none; }
  body { background: white; color: black; }
  .hero { min-height: auto; }
  section { page-break-inside: avoid; }
}

/* ─── Touch Device Specifics ─────────────────────────────────── */
@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
  [data-tilt] { transform: none !important; }
  [data-magnetic] { transform: none !important; }
  .project-card:hover .project-card-glow { opacity: 0.5; }
  .btn:hover { transform: none; }
}

/* ─── High Resolution Displays ───────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .profile-ring {
    border-width: 0.5px;
  }
}
