/* ==================== MEDIA QUERIES ==================== */

/* Tablet Styles (1024px and below) */
@media (max-width: 1024px) {
  .founder-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 15px;
  }
  
  .service-item {
    padding: 25px 15px;
    min-height: 180px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  
  .service-icon i {
    font-size: 45px;
  }
  
  .service-item h3 {
    font-size: 20px;
  }
  
  .service-card {
    margin-bottom: 30px;
  }
}
 
/* 900px and below */
@media (max-width: 900px) {
   .service-card-content {
    flex-direction: column;
    min-height: auto;
  }
  .service-slides-container {
  display: flex;
  transition: transform 0.5s ease;
  height: 300px;
}
  .service-image-slider,
  .service-info {
    flex: 0 0 100%;
  }
  
  .service-image-slider {
    height: 200px;
  }
  
  .service-title {
    font-size: 28px;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .top-bar-content {
     flex-direction: column;
    gap: 3px;
    text-align: center;
  }
  
  .top-contact-info {
    /*flex-direction: column;*/
    gap: 8px;
  }
}

/* Tablet/Mobile Styles (768px and below) */
@media (max-width: 768px) {
  .carousel-track img {
    height: 100%;
    width: auto;
    min-width: 105px; /* adjust based on your design */
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
  }


  .carousel-track {
    animation-duration: 55s;  /* was 20s – now faster */
  }
  
  [dir="rtl"] .carousel-track {
    animation-duration: 55s;
  }

 .service-slides-container {
  display: flex;
  transition: transform 5.5s ease;
  height: 300px;
}
  .top-bar {
    position: sticky;
    top: 0;
    z-index: 1002;
  }

  .header {
    top: 36px;
  }

  .nav {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    overflow-x: clip;
  }
  
  .logo {
    position: static;
    transform: none;
    order: -1;
    /*margin-bottom: 10px;*/
    height: auto;
    max-height: 100px;
  }
  
  .logo img {

    margin-top: 41pt;
    max-height: 97px;
  }
  
  .nav-left,
  .nav-right {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center; 
  }
.nav-left li a,
.nav-right li a { 
  font-size: 15px; 
}

.dropdown-menu li a{
  font-size: 13px; 
}
  .hero-slider {
    height: 25vh;
    min-height: 250px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 20px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 0 10px;
  }
  
  .harmony-float-icons {
    bottom: 15px;
    right: 15px;
    gap: 10px;
    right: 10px;
    left: auto;
    max-width: 100vw;
  }
  
  .harmony-icon {
    width: 44px;
    height: 44px;
  }
  
  .harmony-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .dropdown-menu {
    left: 50%;
    transform: translateY(10px);
    min-width: 200px;
  }
  /* RTL Support */
  [dir="rtl"] .dropdown-menu {
    right: -90%;
    transform: translateY(10px);
    min-width: 200px;
  }
  
  .modal-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .modal-close {
    top: -35px;
    right: 0;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .modal-content img {
    max-height: 60vh;
  }
  
  [dir="rtl"] .modal-close {
    right: auto;
    left: 0;
  }
  
  [dir="rtl"] .harmony-float-icons {
    left: 20px;
    right: auto;
  }

   /*[dir="ltr"] .harmony-float-icons {
    left: 20px !important;
    right: auto !important;
  }*/
  
  .services-hero {
    padding: 80px 20px 60px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .services-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .service-detail h2 {
    font-size: 24px;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
  
  /* Faster scroll on mobile */
  .carousel-track {
    animation-duration: 55s;
  }
  
  [dir="rtl"] .carousel-track {
    animation-duration: 55s;
  }
  
  .service-detail {
    scroll-margin-top: 180px; /* Adjusted for mobile header size */
    padding: 30px 20px;
  }
  
  .service-detail h2 {
    font-size: 24px;
  }
  
  .service-detail-icon {
    font-size: 40px;
  }
  
  html {
    scroll-padding-top: 180px;
  }
  
  .services-cards-section {
   /* padding: 60px 20px;*/
    grid-template-columns: 1fr;
    /*max-width: 500px;*/
  }
  
  .service-card {
    scroll-margin-top: 180px;
  }
  
  .service-image-slider {
    height: 220px;
  }
  
  .service-title {
    font-size: 22px;
  }
  
  .service-slider-prev,
  .service-slider-next {
    opacity: 1;
  }
  
  .modal-title {
    font-size: 16px;
  }
  
  .modal-counter {
    font-size: 13px;
  }
  
  .modal-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    opacity: 0.7; /* Always visible on mobile */
  }
  
  .developer-credit {
    font-size: 10px;
    flex-direction: column;
    gap: 5px;
  }
  
  .service-card-content {
    flex-direction: column;
    min-height: auto;
  }
  
  .service-image-slider,
  .service-info {
    flex: 0 0 100%;
  }
  
  .service-image-slider {
    height: 400px;
  }
  
  .service-title {
    font-size: 28px;
  }
  
  .service-card-header {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
  
  .service-info {
    padding: 30px 20px;
  }
  
  .service-description {
    font-size: 16px;
  }
  
  .service-slider-prev,
  .service-slider-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .service-item {
    padding: 20px 10px;
    min-height: 160px;
    margin-bottom: 0;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  
  .service-icon i {
    font-size: 40px;
  }
  
  .service-icon-img {
    max-width: 100%;
    max-height: 100%;
  }
  
  .service-item h3 {
    font-size: 16px;
    line-height: 1.2;
  }
}

/* Mobile Styles (767px and below) */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
   .service-slides-container {
  display: flex;
  transition: transform 0.5s ease;
  height: 200px;
}
}

/* Small Mobile Styles (480px and below) */
@media (max-width: 280px) {
    .carousel-track img {
    height: 100%;
    width: auto;
    min-width: 40px; /* adjust based on your design */
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
  }
  .header {    padding: 10px 0;  }
  .top-bar-content {    padding: 0 15px;  }
  .top-contact-info {    font-size: 11px;  }
  .nav {    padding: 0 15px;overflow-x: clip;  }

  .nav-left,  .nav-right {    gap: 10px;   }
  .nav-left li a,
  .nav-right li a {    font-size: 14px;    letter-spacing: 1.5px;  }
  .about-section,
  .founder-section,
  .services-section{    padding: 50px 20px;  }
  .section-title {    font-size: 28px;  }
  .section-subtitle {    font-size: 18px;  }
  .service-item {    padding: 20px;  }
  .hero-slider {    height: 25vh;    min-height: 200px;  }
  .founder-photo {    height: 350px;  }
  .slider-arrow {    width: 35px;    height: 35px;    font-size: 12px;  }
  .slider-arrow.prev {    left: 10px;  }
  .slider-arrow.next {    right: 10px;  }
  
  /* Even faster on small screens */
  .carousel-track {    animation-duration: 55s;  }
  [dir="rtl"] .carousel-track {    animation-duration: 55s;  }
  .service-detail {    scroll-margin-top: 160px; /* Further adjusted for smaller screens */
    padding: 25px 15px;
  }
  
  .service-detail h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .service-detail-icon {
    font-size: 36px;
    margin-bottom: 15px;
  }
  
  .service-detail p {
    font-size: 15px;
  }
  
  html {
    scroll-padding-top: 160px;
  }
  
  .services-cards-section {
    /*padding: 50px 15px;*/
  }
  
  .service-card {
    scroll-margin-top: 160px;
  }
  
  .service-card-header {
    padding: 25px 20px 15px;
  }
  
  .service-card-content {
    padding: 20px 20px 25px;
  }
  
  .service-image-slider {
    height: 200px;
  }
  
  .service-title {
    font-size: 20px;
  }
  
  .service-inquire-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .modal-title {
    font-size: 14px;
  }
  
  .modal-counter {
    font-size: 12px;
  }
  
  .modal-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .service-item {
    padding: 25px 20px;
    min-height: 150px;
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 15px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .service-icon i {
    font-size: 35px;
  }
  
  .service-item h3 {
    font-size: 18px;
    text-align: left;
    flex: 1;
  }
  
  .service-card {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-title {
    font-size: 20px;
  }
  
  /* RTL adjustments for mobile */
  body.rtl .service-item {
    flex-direction: row-reverse;
    text-align: right;
  }
  
  body.rtl .service-item h3 {
    text-align: right;
  }
}


/* 360px and below */
@media (max-width: 600px) {
   .carousel-track img {
    height: 100%;
    width: auto;
    min-width: 105px; /* adjust based on your design */
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
  }
  .nav {    flex-direction: column;    gap: 20px;    padding: 0 20px;    overflow-x: clip;  }
  .harmony-float-icons {    bottom: 12px;    right: 1%;    gap: 8px;  } 
  [dir="rtl"] .harmony-float-icons {  left: 1%;  right: auto;}
}

@media (max-width: 480px) {
  .carousel-track img {
    height: 100%;
    width: auto;
    min-width: 105px; /* adjust based on your design */
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
  }  
    .carousel-track {
    animation-duration: 55s;
  }
  [dir="rtl"] .carousel-track {
    animation-duration: 55s;
  }

  .harmony-float-icons {    bottom: 12px;    right: 2%;    gap: 8px;  } 
  [dir="rtl"] .harmony-float-icons {  left: 1%;  right: auto;}
}
/* 360px and below */
@media (max-width: 360px) {
  .harmony-float-icons {    bottom: 12px;    right: 4%;    gap: 8px;  }  
[dir="rtl"] .harmony-float-icons {  left: 5%;  right: auto;}

  /*.harmony-float-icons {    bottom: 12px;    right: 25px;    gap: 8px;  }
[dir="rtl"] .harmony-float-icons {  left: 24%;  right: auto;}*/
  .service-item {   /* padding: 20px 15px; */ }
  
  .service-icon {    width: 45px;    height: 45px;  }
  
  .service-icon i {
    font-size: 30px;
  }
  
  .service-item h3 {
    font-size: 16px;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .service-item {
    min-height: 140px;
    padding: 15px 10px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .service-icon i {
    font-size: 35px;
  }
  
  .service-item h3 {
    font-size: 14px;
  }
}