/* ============================================
   SASHAN SYSTEMS — Portfolio
   css/responsive.css | Mobile & Tablet Styles
   © 2025 Sashan Systems. MIT License.
   ============================================ */

/* ══════════════════════════════
   TABLET — max 1024px
══════════════════════════════ */
@media (max-width: 1024px) {

  /* Hero: ocultar terminal, centrar contenido */
  .hero-terminal       { display: none !important; }
  #hero                { justify-content: center; text-align: center; padding: 0 6%; }
  .hero-content        { max-width: 100%; }
  .hero-desc           { max-width: 100%; }
  .hero-cta            { justify-content: center; }
  .stats-bar           { justify-content: center; }

  /* About */
  .about-grid          { grid-template-columns: 1fr; gap: 2rem; }
  #about               { max-width: 100%; padding: 5rem 6%; }

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

  /* Contact */
  .contact-grid        { gap: 2.5rem; }

  /* Footer */
  footer               { flex-direction: column; text-align: center; }
  footer .license      { text-align: center; }
}

/* ══════════════════════════════
   MOBILE — max 768px
══════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ── */
  nav                  { padding: 1rem 5%; }
  nav ul               { display: none; }

  /* Hamburger button */
  .nav-toggle {
    display:        flex;
    flex-direction: column;
    gap:            5px;
    background:     none;
    border:         none;
    cursor:         pointer;
    padding:        4px;
    z-index:        200;
  }
  .nav-toggle span {
    display:          block;
    width:            24px;
    height:           2px;
    background:       var(--blue);
    transition:       transform 0.3s, opacity 0.3s;
    transform-origin: center;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile menu drawer */
  .nav-menu-mobile {
    display:         none;
    position:        fixed;
    top:             0; left: 0; right: 0; bottom: 0;
    background:      rgba(8,15,24,0.97);
    backdrop-filter: blur(20px);
    z-index:         150;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             2.5rem;
  }
  .nav-menu-mobile.open { display: flex; }
  .nav-menu-mobile a {
    color:          var(--white);
    text-decoration:none;
    font-family:    'Orbitron', monospace;
    font-size:      1.5rem;
    font-weight:    700;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition:     color 0.3s;
  }
  .nav-menu-mobile a:hover { color: var(--blue); }

  /* ── Hero ── */
  #hero                { padding: 0 5%; min-height: 100svh; }
  .hero-content        { padding-top: 5rem; padding-bottom: 3rem; width: 100%; }
  h1                   { font-size: clamp(1.8rem, 9vw, 3rem); white-space: normal; word-break: break-word; }
  h1 .role             { font-size: clamp(0.65rem, 3vw, 0.9rem); letter-spacing: 2px; }
  .hero-desc           { font-size: 0.95rem; word-break: break-word; }
  .hero-cta            { flex-direction: column; align-items: stretch; }
  .btn-primary,
  .btn-outline         { width: 100%; justify-content: center; }
  .stats-bar           { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; margin-top: 1.5rem; }
  .stat                { text-align: center; }
  .stat-num            { font-size: 1.4rem; }
  .stat-label          { font-size: 0.62rem; letter-spacing: 1px; }

  /* ── Sections ── */
  section              { padding: 4rem 5%; }
  h2                   { font-size: clamp(1.5rem, 7vw, 2.2rem); margin-bottom: 2rem; }

  /* ── About ── */
  .skills-grid         { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .skill-item          { font-size: 0.8rem; padding: 0.5rem 0.8rem; }

  /* ── Projects ── */
  .projects-grid       { grid-template-columns: 1fr; }
  .project-card        { padding: 1.5rem; }

  /* ── Contact ── */
  .contact-grid        { grid-template-columns: 1fr; gap: 2rem; }
  form button          { width: 100%; justify-content: center; }

  /* ── Footer ── */
  footer               { padding: 2rem 5%; text-align: center; }
  footer .license .fine-print { display: none; }

  /* ── Cursor: ocultar en touch ── */
  .cursor, .cursor-ring { display: none; }
  body                  { cursor: auto; }
  a, button             { cursor: pointer; }
}

/* ══════════════════════════════
   MOBILE PEQUEÑO — max 400px
══════════════════════════════ */
@media (max-width: 400px) {
  .skills-grid         { grid-template-columns: 1fr; }
  .stats-bar           { flex-direction: column; align-items: center; gap: 1rem; }
  .stat                { text-align: center; }
}