/* XXL devices (very large screens, 1400px and up) */
@media (min-width: 1400px) {
}

/* Extra large devices (large desktops, 1200px to 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
}

/* Large devices (desktops, 992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-bg-shapes {
    display: none;
  }


 .navbar-expand-lg .navbar-nav .nav-link {
    padding-right:2px ;
    padding-left: 2px;
}



.service-mega-grid-advanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.services-row {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0px;
}



.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
}
}

/* Medium devices (tablets, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-enhanced {
    padding: 0rem 0;
  }
  .services-bg-shapes {
    display: none;
  }

  .hero-swiper {
    min-height: 500px;
    height: 50vh;
  }

  .about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
  }

  .about-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
  }

  .achievements-premium-section {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    padding: 0px 0;
    transform: translateY(0px) !important;
  }

  .service-content-3d {
    min-height: 200px;
    padding: 25px 20px;
    aspect-ratio: auto;
  }

  .service-card-3d {
    min-height: 300px;
  }

  .services-row {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0px;
  }

  .careers-cta-wrapper {
    padding: 80px 30px;
  }

  .mobile-service-accordion .accordion-button {
    background: transparent;
    font-weight: 700;
    padding: 8px;
    color: #1c1f21;
    box-shadow: none;
  }

  .mobile-service-item-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 8px 0;
    background: #ededed;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .mobile-service-img {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    object-fit: cover;
  }
  .mobile-service-item-premium .mobile-service-text {
    color: #1c1f21 !important;
  }
}

/* Small devices (phones, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-swiper {
    min-height: 100px;
    height: 50vh;
  }

  .services-bg-shapes {
    display: none;
  }

  .contact-icon-item {
    position: relative;
    display: flex;
    justify-content: flex-start;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    align-items: center;
    display: none;
  }

  /* .floating-contact-icons {
    bottom: auto;
    top: 82%;
    transform: translateY(-50%);
    right: 10px;
  } */
  .back-to-top {
    bottom: 20px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .navbar-enhanced {
    padding: 0px;
  }

  .about-enhanced {
    padding: 50px 0;
  }

  .about-section-badge {
    margin-bottom: 5px;
  }

  .about-image-wrapper {
    margin-bottom: 30px;
  }

  .about-description {
    position: relative;
    margin-bottom: 20px;
  }

  .key-points-grid {
    margin-bottom: 20px;
  }
  .btn-primary-about,
  .btn-outline-about {
    width: fit-content;
    padding: 8px 20px;
  }

  .achievements-premium-section {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    padding: 0px 0;
  }

  .achievements-container {
    padding: 50px 0;
  }

  .achievements-badge {
    margin-bottom: 5px;
  }

  .counter-description {
    margin-bottom: 0px;
  }
  .achievements-title {
    margin-bottom: 5px;
  }

  .achievements-header {
    margin-bottom: 20px;
  }

  .counter-card-premium {
    padding: 25px 15px;
    width: 100%;
    margin: 0 auto;
  }

  .services-3d-premium {
    padding: 50px 0;
  }

  .services-super-badge {
    margin-bottom: 5px;
  }

  .services-header-wrapper {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
  }

  .service-card-3d {
    min-height: 250px !important;
  }

  .service-content-3d {
    min-height: 250px;
  }

  .service-content-3d {
    aspect-ratio: auto;
  }

  .service-card-3d:hover .service-content-3d {
    aspect-ratio: auto;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: fit-content;
    padding: 10px 20px;
    font-size: small;
  }

  .btn-cta-primary i {
    font-size: small;
  }

  .services-fluid-grid {
    margin-bottom: 20px;
    padding: 0 0px;
  }

  .careers-cta-premium {
    padding: 00px 0;
  }
  .careers-cta-wrapper {
    padding: 60px 10px;
  }

  .services-bottom-cta {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 5;
  }

  .heading-highlight::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    z-index: -1;
  }
  .careers-stats {
    flex-direction: row;
    gap: 7px;
    border-radius: 10px;
  }

  .stat-divider-vertical {
    width: 5px;
    height: 5px;
  }

  .gallery-premium-section {
    padding: 50px 0;
  }

  .gallery-main-heading {
    margin-bottom: 5px;
  }

  .gallery-super-badge {
    margin-bottom: 5px;
  }

  .gallery-header-wrapper {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
  }

  .cta-content-wrapper {
    border-radius: 15px;
  }

  .testimonials-premium-section {
    padding: 50px 0;
  }

  .testimonials-super-badge {
    margin-bottom: 5px;
  }

  .heading-highlight::after {
    bottom: 3px;

    height: 3px;
  }

  .testimonials-main-heading {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .testimonials-header-wrapper {
    margin-bottom: 20px;
  }

  .testimonials-slider-wrapper {
    padding: 0px 0px;
  }

  .footer-widget-title {
    margin-bottom: 10px;
  }

  .footer-description {
    margin-bottom: 10px;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 0px;
  }

  .footer-widget {
    margin-bottom: 0px;
  }

  .key-points-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-row {
    grid-template-columns: 1fr 1fr;
  }

  .cta-button-group {
    flex-direction: row;
    align-items: center;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .mobile-service-accordion .accordion-button {
    background: transparent;
    font-weight: 700;
    padding: 8px;
    color: #1c1f21;
    box-shadow: none;
  }

  .mobile-service-item-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 8px 0;
    background: #ededed;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .mobile-service-img {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    object-fit: cover;
  }
  .mobile-service-item-premium .mobile-service-text {
    color: #1c1f21 !important;
  }

  .fancybox-content {
    padding: 5px;
  }

  .paam-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .popup-close-btn {
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
  }

  .popup-container {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: popupSlideIn 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-swiper {
    min-height: 100px;
    height: 50vh;
  }

  .services-bg-shapes {
    display: none;
  }

  .contact-icon-item {
    position: relative;
    display: flex;
    justify-content: flex-start;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    align-items: center;
    display: none;
  }

  /* .floating-contact-icons {
    bottom: auto;
    top: 82%;
    transform: translateY(-50%);
    right: 10px;
  } */
  .back-to-top {
    bottom: 20px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .navbar-enhanced {
    padding: 0px;
  }

  .about-enhanced {
    padding: 40px 0;
  }

  .about-section-badge {
    margin-bottom: 5px;
  }

  .about-image-wrapper {
    margin-bottom: 30px;
  }

  .about-description {
    position: relative;
    margin-bottom: 20px;
  }

  .key-points-grid {
    margin-bottom: 20px;
  }
  .btn-primary-about,
  .btn-outline-about {
    width: fit-content;
    padding: 8px 20px;
  }

  .achievements-premium-section {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    padding: 0px 0;
  }

  .achievements-container {
    padding: 40px 0;
  }

  .achievements-badge {
    margin-bottom: 5px;
  }

  .counter-description {
    margin-bottom: 0px;
  }
  .achievements-title {
    margin-bottom: 5px;
  }

  .achievements-header {
    margin-bottom: 20px;
  }

  .counter-card-premium {
    padding: 25px 15px;
    width: 80%;
    margin: 0 auto;
  }

  .services-3d-premium {
    padding: 40px 0;
  }

  .services-super-badge {
    margin-bottom: 5px;
  }

  .services-header-wrapper {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
  }

  .service-card-3d {
    min-height: 250px !important;
  }

  .service-content-3d {
    min-height: 250px;
  }

  .service-content-3d {
    aspect-ratio: auto;
  }

  .service-card-3d:hover .service-content-3d {
    aspect-ratio: auto;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: fit-content;
    padding: 10px 20px;
    font-size: small;
  }

  .btn-cta-primary i {
    font-size: small;
  }

  .services-fluid-grid {
    margin-bottom: 20px;
    padding: 0 20px;
  }

  .careers-cta-premium {
    padding: 00px 0;
  }
  .careers-cta-wrapper {
    padding: 60px 10px;
  }

  .services-bottom-cta {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 5;
  }

  .heading-highlight::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    z-index: -1;
  }
  .careers-stats {
    flex-direction: row;
    gap: 7px;
    border-radius: 10px;
  }

  .stat-divider-vertical {
    width: 5px;
    height: 5px;
  }

  .gallery-premium-section {
    padding: 40px 0;
  }

  .gallery-main-heading {
    margin-bottom: 5px;
  }

  .gallery-super-badge {
    margin-bottom: 5px;
  }

  .gallery-header-wrapper {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
  }

  .gallery-item {
    height: 225px;
  }

  .cta-content-wrapper {
    border-radius: 15px;
  }

  .testimonials-premium-section {
    padding: 40px 0;
  }

  .testimonials-super-badge {
    margin-bottom: 5px;
  }

  .heading-highlight::after {
    bottom: 3px;

    height: 3px;
  }

  .testimonials-main-heading {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .testimonials-header-wrapper {
    margin-bottom: 20px;
  }

  .testimonials-slider-wrapper {
    padding: 0px 0px;
  }

  .footer-widget-title {
    margin-bottom: 10px;
  }

  .footer-description {
    margin-bottom: 10px;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 0px;
  }

  .footer-widget {
    margin-bottom: 0px;
  }

  .mobile-service-accordion .accordion-button {
    background: transparent;
    font-weight: 700;
    padding: 8px;
    color: #1c1f21;
    box-shadow: none;
  }

  .mobile-service-item-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 8px 0;
    background: #ededed;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .mobile-service-img {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    object-fit: cover;
  }
  .mobile-service-item-premium .mobile-service-text {
    color: #1c1f21 !important;
  }

  .fancybox-content {
    padding: 5px;
  }

  .paam-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .popup-close-btn {
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
  }

  .popup-container {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: popupSlideIn 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  }
}
