/* ============================================
   SKILLVERRS — Responsive Breakpoints
   Mobile-first approach
   ============================================ */

/* ---- Large Desktop (>1440px) ---- */
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--sp-12);
  }

  :root {
    --fs-5xl: 6rem;
  }
}

/* ---- Tablet & Below (<=1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --sp-32: 6rem;
    --sp-20: 4rem;
  }

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

  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
    z-index: 999;
    padding: var(--sp-12);
    border-top: 1px solid var(--clr-border);
  }

  .nav-links.open {
    display: flex;
    animation: fadeInDown 0.3s ease;
  }

  .nav-links a {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
  }

  .nav-toggle {
    display: flex !important;
  }

  .nav-cta {
    display: none;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Portfolio Grid */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Process */
  .process-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .process-connector {
    display: none;
  }

  /* Pricing */
  .pricing-cards {
    grid-template-columns: 1fr !important;
    max-width: 480px;
    margin: 0 auto;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .about-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .stats-grid {
    justify-content: center;
  }

  /* Hero */
  .hero-content {
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-blob-1 { width: 350px; height: 350px; }
  .hero-blob-2 { width: 300px; height: 300px; }
  .hero-blob-3 { width: 200px; height: 200px; }
}

/* ---- Mobile (<=768px) ---- */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --sp-32: 5rem;
    --sp-20: 3.5rem;
  }

  .container {
    padding: 0 var(--sp-5);
  }

  /* Typography */
  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* Grids */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr !important;
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--sp-6) !important;
  }

  /* Pricing tabs wrap */
  .pricing-tabs {
    gap: var(--sp-1);
  }

  .pricing-tabs .tab-btn {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-xs);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--sp-8);
  }

  .footer-social {
    justify-content: center;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hero tweaks */
  .hero-trust {
    flex-wrap: wrap;
    gap: var(--sp-3) !important;
  }

  .trust-item {
    flex: 1;
    min-width: 100px;
  }

  /* Card padding */
  .card, .glass-card {
    padding: var(--sp-6);
  }

  /* Toast */
  .toast {
    bottom: var(--sp-4);
    right: var(--sp-4);
    left: var(--sp-4);
  }
}

/* ---- Small Mobile (<=480px) ---- */
@media (max-width: 480px) {
  :root {
    --sp-32: 4rem;
  }

  /* Buttons */
  .btn-lg {
    padding: var(--sp-3) var(--sp-8);
    font-size: var(--fs-base);
  }

  .hero-btns {
    flex-direction: column;
    gap: var(--sp-3) !important;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  /* Section headers */
  .section-title {
    font-size: 1.75rem;
  }

  /* About stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer links */
  .footer-links-grid {
    grid-template-columns: 1fr !important;
  }

  /* Lightbox */
  #lightbox img {
    max-width: 95vw;
    max-height: 80vh;
  }

  /* Hero blobs smaller */
  .hero-blob-1 { width: 250px; height: 250px; }
  .hero-blob-2 { width: 200px; height: 200px; }
  .hero-blob-3 { display: none; }
}

/* ---- Print styles ---- */
@media print {
  .nav, .hero-blob, .grid-bg,
  #lightbox, .toast, .float-btn { display: none !important; }
  body { background: white; color: black; }
}

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

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
