/* ========================================================
   AVINASHI STEEL - RESPONSIVE STYLESHEET
   Breakpoints: 1440px+, 1200px, 992px, 768px, 576px, 480px, 375px
   Zero horizontal overflow guarantee
   ======================================================== */

/* --- 1440px and Up (Large Desktop Displays) --- */
@media (min-width: 1440px) {
  :root {
    --container-width: 1360px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
}

/* --- Below 1200px (Laptops & Small Desktops) --- */
@media (max-width: 1200px) {
  .desktop-nav {
    gap: 18px;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
  
  .timeline-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .footer-top-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
    gap: 28px;
  }
  
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Below 992px (Tablets Landscape & Portrait) --- */
@media (max-width: 992px) {
  :root {
    --header-height: 74px;
    --header-height-scrolled: 68px;
  }

  .desktop-nav,
  .header-action .btn {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .brand-logo-img {
    height: 46px;
  }

  .section-padding {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-brand-col {
    grid-column: span 2;
    padding-right: 0;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
  }
  
  .hero-subtext {
    font-size: 1.1rem;
  }

  .cta-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Below 768px (Standard Tablets & Large Phones) --- */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .grid-3,
  .grid-4,
  .grid-6 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-track {
    grid-template-columns: 1fr;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--primary-red);
  }

  .timeline-step-card {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card {
    padding: 24px 18px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 50px;
    padding: 14px 20px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .home-hero {
    min-height: max(100svh, 660px);
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 90px;
  }

  .hero-slider-nav {
    bottom: 24px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    justify-content: center;
    gap: 12px;
  }

  .hero-nav-arrow {
    width: 42px;
    height: 42px;
  }

  .hero-slider-counter {
    top: calc(var(--header-height) + 12px);
    right: 18px;
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  .hero-slider-counter .counter-current {
    font-size: 1.05rem;
  }

  .hero-subtext {
    font-size: 1.02rem;
    margin-bottom: 18px;
    line-height: 1.55;
  }

  .hero-tagline-box {
    margin-bottom: 24px;
    padding: 10px 16px;
  }

  .product-card-actions {
    flex-direction: column;
  }

  .product-card-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: span 1;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 14px;
  }

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

  .filter-tabs {
    gap: 8px;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* --- Below 576px (Standard Mobile Devices) --- */
@media (max-width: 576px) {
  .container,
  .container-wide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .hero-tagline-box {
    padding: 10px 14px;
  }

  .hero-tagline-text {
    font-size: 0.98rem;
  }

  .brand-logo-img {
    height: 38px;
  }

  .section-desc {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .counter-value {
    font-size: 2.2rem;
  }

  .mobile-nav-drawer {
    max-width: 85%;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.82rem;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.88rem;
  }

  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* --- Below 480px & 375px (Compact Mobile Screens) --- */
@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.18;
  }

  .hero-subtext {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-badge {
    padding: 4px 12px;
    margin-bottom: 14px;
  }

  .hero-badge-text {
    font-size: 0.7rem;
  }

  .hero-slider-nav {
    bottom: 18px;
    gap: 8px;
  }

  .hero-nav-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-indicator-dot {
    width: 8px;
    height: 8px;
  }

  .hero-indicator-dot.active {
    width: 24px;
  }

  .home-hero {
    min-height: max(100svh, 620px);
    padding-bottom: 80px;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .testing-card {
    padding: 20px 16px;
  }

  .product-image-box {
    height: 190px;
  }

  .product-card-body {
    padding: 20px 16px;
  }

  .tech-table th, 
  .tech-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* Strict Anti-Overflow Rules */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

pre, code, table {
  max-width: 100%;
  word-break: break-word;
}
