/* ===== RESPONSIVE: FLUID ADAPTIVE STRATEGY ===== */

/* Large Desktop (1200px+) — default, handled by variables.css */

/* Medium Desktop / Tablet Landscape (1024px) */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3.25rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --container-padding: var(--space-6);
    --section-padding: var(--space-20) var(--space-6);
  }

  .hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); }

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

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

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

  .about-visual {
    order: -1;
    height: 280px;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .footer-inner .footer-brand { grid-column: 1 / -1; }

  .hero-shapes { width: 42%; }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --container-padding: var(--space-5);
    --space-24: 5rem;
    --space-20: 4rem;
    --space-16: 3rem;
    --space-12: 2.5rem;
  }

  .site-header { padding: var(--space-4) var(--space-5); }

  #hero {
    padding: var(--space-24) var(--space-5) var(--space-16);
    min-height: 90vh;
  }

  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }

  .hero-desc { font-size: var(--text-base); max-width: 100%; }

  .hero-shapes {
    position: relative;
    width: 100%;
    height: 200px;
    right: auto;
    top: auto;
    transform: none;
    margin-top: var(--space-8);
    opacity: 0.7;
  }

  .hero-content { display: flex; flex-direction: column; }

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .filter-tabs { gap: var(--space-2); }

  .filter-tab { font-size: var(--text-xs); padding: var(--space-1) var(--space-3); }

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

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

  .about-visual { height: 220px; }

  .hk-ring:nth-child(1) { width: 220px; height: 220px; }
  .hk-ring:nth-child(2) { width: 160px; height: 160px; }
  .hk-ring:nth-child(3) { width: 100px; height: 100px; }
  .hk-core { width: 60px; height: 60px; font-size: 1.5rem; }

  /* Simplify 3D shapes on small screens */
  .shape-3, .shape-5 { display: none; }
  .shape-1 { width: 120px; height: 120px; right: 5%; }
  .shape-2 { width: 70px; height: 70px; right: 15%; }
  .shape-4 { width: 45px; height: 45px; }

  /* Reduce orb on touch devices */
  #cursor-orb { display: none; }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  :root {
    --text-6xl: 2rem;
    --space-24: 4rem;
    --space-20: 3.5rem;
  }

  .hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

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

  .stat-number { font-size: var(--text-4xl); }

  .section { padding: var(--space-16) var(--space-4); }

  .card { padding: var(--space-6); }

  .contact-item { flex-direction: column; gap: var(--space-2); }

  .hero-shapes { display: none; }
}

/* Hover media (reduce animations on hover: none devices) */
@media (hover: none) {
  .card:hover { transform: none; }
  .btn:hover  { transform: none; }
}

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

  .hero-content > * { animation: none; opacity: 1; transform: none; }
  .reveal, .reveal-scale, .reveal-right { opacity: 1; transform: none; }
  #cursor-orb { display: none; }
}
