/* =========================================================
   DARK EMPIRE TECHNOLOGIES — responsive.css
   ========================================================= */

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
    justify-content: center;
  }

  .hero-frame { width: 320px; height: 370px; }

  .hero-float-card-1 { right: -4%; }
  .hero-float-card-2 { left: -4%; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

/* ── Mobile nav ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(0,0,0,0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    gap: 0;
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-size: 0.7rem;
  }

  .nav-links a::after { display: none; }

  .nav-github {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  #home {
    padding: 7rem 1.25rem 3rem;
    text-align: center;
  }

  .hero-eyebrow { justify-content: center; }
  .hero-role { text-align: left; width: fit-content; margin: 0 auto 1.6rem; }
  .hero-tagline { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }

  .hero-frame { width: 280px; height: 320px; }
  .hero-float-card { display: none; }
  .hero-ring { display: none; }

  /* Sections */
  :root { --section-pad: 4rem 1.25rem; }

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

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

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

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

/* ── Small mobile ───────────────────────────────────────── */
@media (max-width: 480px) {
  #home { padding: 6.5rem 1rem 2.5rem; }
  :root { --section-pad: 3.5rem 1rem; }

  .hero-frame { width: 250px; height: 290px; }
  .hero-avatar-ring { width: 110px; height: 110px; }
  .hero-avatar-inner { font-size: 2rem; }
  .hero-avatar-photo { object-fit: cover; }
  .hero-avatar-fallback { font-size: 2rem; }
  .hero-stats-row { gap: 0.4rem; }

  .btn { padding: 0.75rem 1.4rem; font-size: 0.65rem; }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .contact-item-actions { width: 100%; }
  .contact-action-btn { flex: 1; text-align: center; }

  .projects-meta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
