/* ═══════════════════════════════════════════════
   css/responsive.css
   Mobile-first breakpoints. All text visible.
   Minimum font: 16px body. All touch targets 44px+.
   ═══════════════════════════════════════════════ */

/* ════════════════
   TABLET ≤ 1024px
   ════════════════ */
@media (max-width: 1024px) {
  .hero-content  { gap: 2.5rem; }
  .about-grid    { gap: 2.5rem; }
  .company-card  { gap: 2rem; padding: 2rem; }
  .skills-grid   { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  /* NOTE: Mobile nav/hamburger rules live entirely in css/nav.css */

  /* ── Global section spacing ── */
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .container { padding: 0 1.25rem; }

  /* ── Section typography — never let text overflow ── */
  .section-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .section-eyebrow { font-size: 0.6rem; }
  .body-text { font-size: 0.95rem; }

  /* ── Hero ── */
  .hero {
    padding: 5.5rem 1.25rem 4rem;
    min-height: auto;
    align-items: flex-start;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-bg-word { display: none; }
  /* Image first on mobile (visual anchor) */
  .hero-image { order: -1; }
  .image-frame {
    max-width: min(340px, 85vw);
    margin: 0 auto;
  }
  .hero-stats {
    max-width: min(340px, 85vw);
    margin: 1rem auto 0;
  }
  .hero-title {
    font-size: clamp(2.6rem, 11vw, 4.5rem);
    line-height: 0.9;
  }
  .hero-title .title-line-2 {
    font-size: clamp(2.2rem, 9vw, 3.8rem);
  }
  .hero-tagline  { font-size: clamp(1rem, 4vw, 1.3rem); }
  .hero-description { font-size: 0.95rem; max-width: 100%; }
  .hero-buttons  { flex-direction: column; gap: 0.75rem; }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;    /* WCAG 2.2 touch target */
    font-size: 0.75rem;
  }
  .hero-scroll { display: none; }
  .hero-badge  { font-size: 0.6rem; padding: 0.4rem 0.9rem; }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .stat-block { padding: 1rem 0.75rem; }
  .stat-number { font-size: 1.8rem; }
  .stat-plus   { font-size: 1.2rem; }
  .stat-label  { font-size: 0.58rem; }
  .about-text p { font-size: 0.95rem; }

  /* ── Company ── */
  .company-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
  }
  .company-card__body h3 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .company-highlights { grid-template-columns: 1fr 1fr; }

  /* ── Brands ── */
  .brands-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .brand-card h3 { font-size: 1.3rem; }

  /* ── Education ── */
  .edu-grid { grid-template-columns: 1fr; gap: 2rem; }
  .edu-col__heading { font-size: 1.3rem; margin-bottom: 1.25rem; }

  /* ── Skills ── */
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .skill-card { padding: 1.25rem 0.75rem; }
  .skill-card h3 { font-size: 0.78rem; }
  .skill-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }

  /* ── Services ── */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem; }
  .service-num { font-size: 2.2rem; margin-bottom: 0.75rem; }
  .service-card h3 { font-size: 1.05rem; }
  .service-card p  { font-size: 0.88rem; }

  /* ── Social/Connect ── */
  .social-grid { grid-template-columns: 1fr; max-width: 100%; gap: 1rem; }
  .social-card { padding: 2rem; }

  /* ── Timeline items ── */
  .tline-item { gap: 1rem; }
  .tline-year  { font-size: 0.6rem; min-width: 2.5rem; }
  .tline-body h3 { font-size: 0.9rem; }
  .tline-body p  { font-size: 0.82rem; }
  .tl-content h4 { font-size: 0.9rem; }
}

/* ═══════════════
   MOBILE ≤ 480px
   ═══════════════ */
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .container { padding: 0 1rem; }

  .hero { padding: 5rem 1rem 3.5rem; }
  .hero-title { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .hero-title .title-line-2 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .hero-tagline { font-size: 1rem; }
  .hero-description { font-size: 0.9rem; line-height: 1.7; }
  .image-frame { max-width: min(280px, 90vw); }
  .hero-stats { max-width: 100%; gap: 0; justify-content: space-between; }
  .stat-num  { font-size: 1.6rem; }
  .stat-lbl  { font-size: 0.55rem; letter-spacing: 0.08em; }

  .about-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
  .stat-number { font-size: 1.5rem; }

  .company-highlights { grid-template-columns: 1fr; }
  .company-card__body h3 { font-size: 1.3rem; }

  .skills-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .skill-card { padding: 1rem 0.75rem; }

  .brand-card { padding: 1.5rem; }
  .brand-card h3 { font-size: 1.15rem; }

  .edu-col__heading { font-size: 1.15rem; }

  .section-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .section-sub   { font-size: 0.9rem; }
}

/* ══════════════════
   SMALL PHONE ≤ 360px
   ══════════════════ */
@media (max-width: 360px) {
  .hero { padding: 4.5rem 0.75rem 3rem; }
  .hero-title { font-size: 2rem; }
  .hero-title .title-line-2 { font-size: 1.8rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr 1fr; }
}

/* ═══════════
   PRINT
   ═══════════ */
@media print {
  .navbar, .marquee-wrap, .hero-scroll, .hamburger { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding-top: 1.5rem; }
  .section--dark { background: #f5f5f5; }
  .footer { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.7em; color: #666; }
}

/* ═══════════════════════
   REDUCED MOTION
   ═══════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .hero-scroll   { animation: none; }
}
