/*====================================================
 * RESPONSIVE CSS
 *====================================================*/

/* Large Desktop - 1200px and up */
@media (min-width: 1200px) {
  /* Large screens specific styles if needed */
}

/* Tablet & Smaller Desktops - below 992px */
@media (max-width: 991.98px) {

  /* Force burger menu visibility */
  .custom-toggler {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1050;
    padding: 5px 10px;
  }

  /* Fix header background and overflow */
  .site-header {
    background-color: var(--white) !important;
    width: 100vw !important;
  }

  /* Fix preloader centering */
  #preloader {
    width: 100vw;
    height: 100vh;
  }

  /* Category Sidebar Mobile/Tablet Layout */
  .category-sidebar {
    margin-bottom: 30px;
  }

  .site-header .main-header {
    height: 70px;
  }

  .site-header.scrolled .main-header {
    height: 70px;
  }

  .logo-placeholder {
    height: 45px;
    font-size: 20px;
  }

  .site-logo {
    height: auto;
    width: 175px;
  }

  .hero-section {
    margin-top: 70px;
  }
}

/* Mobile Devices - below 768px */
@media (max-width: 767.98px) {

  /* Force burger menu visibility on mobile */
  .custom-toggler {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1050;
  }

  /* Fix header background and overflow */
  .site-header {
    background-color: var(--white) !important;
    width: 100vw !important;
  }

  /* Fix preloader centering for mobile */
  #preloader {
    width: 100vw;
    height: 100vh;
  }



  .site-header .main-header {
    height: 65px;
  }

  .site-header.scrolled .main-header {
    height: 65px;
  }

  .logo-placeholder {
    height: 40px;
    font-size: 18px;
  }

  .site-logo {
    height: auto;
    width: 145px;
  }

  /* Small quote button on mobile if needed, though hidden in offcanvas per design */
  .btn-quote {
    padding: 10px 20px;
    font-size: 14px;
    height: 42px;
  }

  .hero-section {
    margin-top: 65px !important;
  }
}

/*====================================================
 * HERO SECTION RESPONSIVENESS (1920px to 360px)
 *====================================================*/
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-content::before {
    font-size: 140px;
  }
}

@media (max-width: 991.98px) {
  .hero-content {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero-content::before {
    font-size: 110px;
  }

  .hero-title {
    font-size: 42px;
    margin-bottom: 2rem !important;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-controls-container {
    bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .hero-content::before {
    font-size: 70px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 1.5rem !important;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .hero-content {
    padding-top: 80px;
    padding-bottom: 120px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-next,
  .hero-prev {
    width: 40px;
    height: 40px;
  }

  .hero-next::after,
  .hero-prev::after {
    font-size: 14px;
  }

  .hero-controls-container {
    bottom: 20px;
    gap: 15px !important;
  }
}

@media (max-width: 380px) {
  .hero-content {
    padding-top: 0px;
    padding-bottom: 100px;
  }

  .hero-content::before {
    font-size: 50px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-controls-container {
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
  }
}

/*====================================================
 * ABOUT SECTION RESPONSIVENESS
 *====================================================*/
@media (max-width: 1199.98px) {
  .about-content {
    padding-left: 0;
  }
}

@media (max-width: 991.98px) {
  .about-image-wrapper {
    margin-bottom: 50px;
    padding: 15px 30px 30px 45px;
  }

  .about-experience-block {
    padding: 15px;
    min-height: 150px;
    width: 150px;
  }

  .about-experience-block .number {
    font-size: 46px;
  }

  .about-experience-block .text {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .about-iso-block {
    right: 5px;
    left: auto;
    bottom: -5px;
    padding: 15px;
    width: 150px;
    min-height: 130px;
  }

  .about-iso-block .iso-title {
    font-size: 38px;
  }

  .about-iso-block .iso-text {
    font-size: 13px;
  }

  .features-list {
    padding-right: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .about-image-wrapper {
    padding: 10px 15px 30px 25px;
  }

  .about-bg-shape {
    width: 90%;
  }

  .about-experience-block {
    top: 5%;
    padding: 10px;
    min-height: 130px;
    width: 130px;
  }

  .about-experience-block .number {
    font-size: 38px;
    margin-bottom: 5px;
  }

  .about-experience-block .text {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .about-iso-block {
    right: 0px;
    left: auto;
    bottom: 0px;
    padding: 10px;
    width: 130px;
    min-height: 110px;
  }

  .about-iso-block .iso-title {
    font-size: 32px;
  }

  .about-iso-block .iso-text {
    font-size: 11px;
    letter-spacing: 1px;
  }
}

@media (max-width: 575.98px) {
  .about-image-wrapper {
    padding: 0px;
  }

  .about-bg-shape {
    width: 99%;
    height: 85%;
  }

  .about-experience-block {
    top: -10px;
    left: 0;
    padding: 8px;
    min-height: 110px;
    width: 110px;
  }

  .about-experience-block .number {
    font-size: 28px;
    margin-bottom: 2px;
  }

  .about-experience-block .text {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .about-iso-block {
    right: -5px;
    left: auto;
    bottom: -5px;
    padding: 8px;
    width: 110px;
    min-height: 90px;
  }

  .about-iso-block .iso-title {
    font-size: 26px;
    margin-bottom: 5px;
  }

  .about-iso-block .iso-text {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .why-image-wrapper {
    padding: 0;
  }

  .why-bg-shape {
    top: 10px;
    left: 10px;
  }
}

/*====================================================
 * FOOTER RESPONSIVENESS
 *====================================================*/
@media (max-width: 767.98px) {
  .footer-contact-cta {
    margin-top: -50px !important;
    padding: 30px !important;
    text-align: center;
  }

  .footer-contact-cta .cta-icon {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px !important;
  }

  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 15px;
  }
}

/*====================================================
 * BREADCRUMB RESPONSIVENESS
 *====================================================*/
@media (max-width: 991.98px) {
  .breadcrumb-section {
    padding: 190px 0 50px 0;
  }

  .breadcrumb-section .breadcrumb-title {
    font-size: 38px !important;
  }
}

@media (max-width: 767.98px) {
  .breadcrumb-section {
    padding: 160px 0 40px 0;
  }

  .breadcrumb-section .breadcrumb-title {
    font-size: 32px !important;
  }
}

@media (max-width: 575.98px) {
  .breadcrumb-section {
    padding: 130px 0 35px 0;
  }

  .breadcrumb-section .breadcrumb-title {
    font-size: 26px !important;
  }

  .breadcrumb-section .breadcrumb {
    font-size: 13px;
  }

  .breadcrumb-section .breadcrumb-item a,
  .breadcrumb-section .breadcrumb-item.active {
    font-size: 13px;
  }
}

/*====================================================
 * ABOUT PAGE MODERN RESPONSIVENESS
 *====================================================*/
@media (max-width: 991.98px) {
  .about-page-modern .experience-badge-modern {
    right: 15px;
    bottom: 15px;
    padding: 20px;
    min-width: 180px;
  }

  .about-page-modern .experience-badge-modern .num {
    font-size: 42px;
  }
}

@media (max-width: 767.98px) {
  .about-page-modern .image-stack {
    padding: 0;
    margin-bottom: 30px;
  }

  .about-page-modern .experience-badge-modern {
    right: 15px;
    bottom: 15px;
    padding: 15px;
    min-width: 160px;
  }

  .about-page-modern .experience-badge-modern .num {
    font-size: 36px;
  }

  .about-page-modern .section-title-modern {
    font-size: 32px;
  }
}

@media (max-width: 575.98px) {
  .about-page-modern .stat-box {
    text-align: center;
  }

  .about-page-modern .stat-box .icon {
    margin: 0 auto 15px auto;
  }
}

@media (max-width: 380px) {
  .about-page-modern .experience-badge-modern {
    position: absolute;
    left: auto;
    right: 10px;
    bottom: 10px;
    margin: 0;
    min-width: 140px;
    padding: 10px;
  }

  .about-page-modern .section-title-modern {
    font-size: 28px;
  }
}

/*====================================================
 * INDUSTRIES WE SERVE RESPONSIVENESS
 *====================================================*/
@media (max-width: 991.98px) {
  .industry-card {
    padding: 25px 20px;
  }

  .industry-card .icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-bottom: 20px;
  }

  .industry-card .industry-title {
    font-size: 18px;
  }
}

@media (max-width: 767.98px) {
  .industry-card {
    text-align: center;
  }

  .industry-card .icon-wrapper {
    margin: 0 auto 20px auto;
  }
}

/*====================================================
 * COMPREHENSIVE INDEX PAGE RESPONSIVENESS (360px - 1920px)
 *====================================================*/

/* Large Desktop (1200px+) - Default styles apply */

/* Tablet & Smaller Desktops (max-width: 1199.98px) */
@media (max-width: 1199.98px) {

  .section-title,
  .about-title,
  .quality-section-title {
    font-size: 38px;
  }
}

/* Tablet (max-width: 991.98px) */
@media (max-width: 991.98px) {

  .section-title,
  .about-title,
  .quality-section-title {
    font-size: 32px;
  }

  .section-subtitle,
  .about-subtitle,
  .quality-section-subtitle {
    font-size: 13px;
  }

  .section-desc,
  .about-desc,
  .quality-text-para {
    font-size: 15px;
  }

  /* Reduce Marquee Text */
  .marquee-title {
    font-size: 40px !important;
  }

  .marquee-text {
    font-size: 40px !important;
  }

  .marquee-content i {
    font-size: 24px !important;
  }
}

/* Mobile Devices (max-width: 767.98px) */
@media (max-width: 767.98px) {

  /* Override Bootstrap Padding and Margins */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .mt-5 {
    margin-top: 1.5rem !important;
  }

  .section-title,
  .about-title,
  .quality-section-title {
    font-size: 26px;
  }

  .section-desc,
  .about-desc,
  .quality-text-para {
    font-size: 14px;
  }

  /* Hero Image Background Design Resizing */
  .hero-image-wrapper {
    padding: 20px;
  }

  .hero-image-wrapper::before {
    max-width: 250px;
  }

  .hero-image-wrapper::after {
    max-width: 220px;
  }

  /* Marquee Further Reduction */
  .marquee-title,
  .marquee-text {
    font-size: 28px !important;
  }

  .marquee-content i {
    font-size: 18px !important;
  }

  /* Product Card Buttons Stack */
  .theme-product-card .card-actions {
    flex-direction: column;
    gap: 10px !important;
  }

  .theme-product-card .card-actions .btn,
  .theme-product-card .card-actions a {
    width: 100%;
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Extra Small Mobile Devices (max-width: 380px) */
@media (max-width: 380px) {

  .section-title,
  .about-title,
  .quality-section-title {
    font-size: 24px;
  }

  .section-subtitle,
  .about-subtitle,
  .quality-section-subtitle {
    font-size: 12px;
  }

  .section-desc,
  .about-desc,
  .quality-text-para {
    font-size: 16px;
  }

  .hero-image-wrapper {
    padding: 10px;
  }

  .hero-image-wrapper::before {
    max-width: 200px;
  }

  .hero-image-wrapper::after {
    max-width: 170px;
  }

  /* Extremely Small Product Cards */
  .product-title {
    font-size: 16px;
  }

  .product-desc {
    font-size: 13px;
  }

  .theme-product-card .card-actions a {
    font-size: 12px;
    padding: 6px 8px;
  }

  /* Adjusting global container paddings if necessary */
  .container,
  .container-custom {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Responsive adjustments for About Page Refactored Sections */
@media (max-width: 767px) {
  .stat-col::after {
    display: none;
  }

  /* 2x2 grid borders on mobile */
  .stat-col:nth-child(odd)::after {
    display: block;
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transform: none;
  }

  .stat-col:nth-child(1)::before,
  .stat-col:nth-child(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
  }

  .stats-card-wrapper {
    padding: 3rem 1rem;
  }

  .stat-count {
    font-size: 2.5rem;
  }

  .cv-card {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cv-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .manufacturing-stat-overlay {
    position: relative;
    border-radius: 12px;
    margin-top: -30px;
    margin-left: 1rem;
    margin-right: 1rem;
    z-index: 2;
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .theme-product-card {
    margin: 0 20px;
  }

  /* Make all generic buttons responsive */
  .btn,
  .card-btn-primary,
  .card-btn-secondary,
  .theme-btn {
    font-size: 14px !important;
    padding: 8px 12px !important;
  }

  /* For product card buttons, stack them vertically on mobile for a clean look */
  .theme-product-card .card-actions {
    flex-direction: column;
    gap: 10px !important;
  }

  .theme-product-card .card-actions a {
    width: 100%;
  }
}

/*====================================================
 * PRODUCT DETAIL PAGE RESPONSIVE
 *====================================================*/
/* Tablet & Mobile (below 992px) */
@media (max-width: 991.98px) {
  .product-detail-section .sticky-top {
    position: relative !important;
    top: 0 !important;
    z-index: 1 !important;
  }

  .pd-premium-title {
    font-size: 28px;
  }

  .pd-premium-img-wrapper {
    margin-bottom: 1.5rem;
  }

  .pd-main-img {
    max-height: 450px;
    object-fit: contain;
  }
}

/* Mobile (below 768px) */
@media (max-width: 767.98px) {
  .pd-premium-title {
    font-size: 24px;
    margin-bottom: 0.75rem;
  }

  .pd-premium-category {
    font-size: 0.75rem;
  }

  .pd-premium-section-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .pd-premium-table th,
  .pd-premium-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .pd-premium-desc {
    font-size: 15px;
    line-height: 1.6;
  }

  .pd-premium-desc h2 {
    font-size: 1.4rem;
  }

  .pd-premium-desc h3 {
    font-size: 1.25rem;
  }

  .pd-premium-desc h4 {
    font-size: 1.1rem;
  }

  .pd-main-img {
    max-height: 350px;
  }
}

/* Small Mobile (below 576px) */
@media (max-width: 575.98px) {
  .pd-premium-title {
    font-size: 26px;
    font-weight: 700;
  }

  .pd-premium-table th {
    width: 45%;
  }

  .pd-premium-table th,
  .pd-premium-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  /* .pd-main-img {
    max-height: 280px;
  } */
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .pd-premium-title {
    font-size: 42px;
  }

  .pd-premium-desc {
    font-size: 17px;
  }
}

@media (max-width:360px) {
  .card-image-wrapper {
    height: 235px !important;
  }
}