/* ═══════════════════════════════════════════════════════
   RESPONSIVE  ·  responsive.css
   All breakpoint overrides in one place.
   Load this file LAST in index.html.
═══════════════════════════════════════════════════════ */

/* ── Tablet / small desktop (≤ 800px) ── */
@media (max-width: 800px) {
  :root {
    --brick-gap:            10px;
    --brick-height:         30px;
    --brick-font-size:      0.92rem;
    --brick-letter-spacing: 0.18em;
    --brick-padding-x:      14px;
    --paddle-width:         128px;
    --paddle-height:        24px;
    --ball-size:            31.5px;
  }

  .skills-arkanoid__header {
    flex-direction: column;
    gap: 12px;
  }
  .skills-arkanoid__description {
    max-width: 360px;
    text-align: center;
    margin: 0 auto;
  }

  .reviews-section__header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .reviews-section__description {
    max-width: 360px;
    text-align: center;
    margin: 0 auto;
  }
}

/* ── Small Desktop / Tablet (601px - 1280px) ── */
/* Works scale is handled via JS for better browser compatibility */

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  body { overflow: auto; }

  /* Hero */
  .hero { height: 100vh; height: 100svh; overflow: hidden; }
  .hero__container { 
    width: 480px; 
    height: 100%; 
    padding: 0;
  }
  .hero__left { display: none; }
  .hero__right { 
    padding: 80px 48px; 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .hero__unit { min-height: 0; }
  .hero__title { font-size: 130px; }
  .hero__slogan { font-size: 64px; }
  .hero__name { font-size: 32px; }
  .hero__nav { gap: 24px; padding: 0; }
  .role-item { font-size: 18px; gap: 12px; }
  .role-bullet { width: 8px; height: 8px; }


  /* Skills */
  .skills-arkanoid__header { padding: 40px 24px 0; }
  .skills-arkanoid__inner { padding: 0 24px 28px; }
  .skills-arkanoid__board { cursor: default; } /* no custom cursor on touch devices */

  /* Reviews */
  .reviews-section__header { padding: 40px 24px 0; }

  /* Works */
  #worksBgCanvas { display: none; }
  .works-section__header { padding: 40px 24px 80px; }
  .works-section__sticky-container {
    flex-direction: column;
  }
  .works-section__text-col {
    width: 100%;
    height: 140px;
    padding: 20px 24px;
    background-color: transparent;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
  }
  .works-section__text-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--c-yellow);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: -1;
  }
  .works-section__text-col.is-expanded::before {
    transform: translateX(-50%) scaleX(1);
  }
  .works-section__text-block {
    width: 100%;
    height: 100px;
    align-items: center;
    text-align: center;
  }
  .works-section__text-group {
    transform-origin: 50% 50%;
  }
  .works-section__h3 {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--c-black);
  }
  .works-section__text-divider {
    display: none;
  }
  .works-section__h5 {
    font-size: 13px;
    line-height: 1.2;
    margin: 0;
    color: var(--c-black);
  }
  .works-section__image-col {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
  }

  /* Contact */
  .contact-section { padding-bottom: 80px; }
  .contact-section__header { padding: 80px 20px 40px; }
  .contact-section__inner { padding: 0 20px; }
  .contact-section__subtitle { font-size: 24px; margin-bottom: 40px; }
  .contact-section__btn { width: 100%; }

  /* Footer */
  .footer-waves-wrap { display: none; }
  .footer-section__inner { 
    flex-direction: row;
    padding: 20px;
    gap: 20px;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }
  .footer-section__left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .footer-section__name { 
    font-size: 11.5cqi; 
    white-space: nowrap; 
    margin-bottom: 4px;
    width: 100%;
    display: block;
  }
  .footer-section__copy { 
    font-size: 11px; 
    white-space: normal; 
    max-width: 200px;
    line-height: 1.3;
  }
  .footer-section__up-btn { 
    width: 56px; 
    height: 56px; 
    flex-shrink: 0;
  }
  .footer-section__up-btn svg {
    width: 24px;
    height: 24px;
  }
}
