.slider {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.tabs {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 80%;
  left: 30%;
  z-index: 999;
  padding: 15px 0;
}

.tab {
  color: white;
  padding: 10px 25px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
  margin-right: 60px;
}

.tab:hover {
  transform: translateY(-2px);
}

.tab.active {
  color: red;
}

.tab-indicator {
  position: absolute;
  top: 1px;
  height: 3px;
  background-color: rgb(190, 4, 4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

.slides {
  position: relative;
  width: 100%;
  height: 100vh;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide .content {
  padding: 20px 30px;
  border-radius: 10px;
}

.tabContent {
  padding-top: 100px;
  color: white;
  text-align: center;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease;
}

.slide.active .tabContent {
  transform: translateY(0);
  opacity: 1;
}

.tabContent button {
  margin-top: 15px;
  padding: 12px 25px;
  border: 2px solid white;
  background-color: transparent;
  color: rgb(255, 255, 255);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.tabContent button:hover {
  background-color: white;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.tabContent h1 {
  padding: 20px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 10px;
}

.tabContent p {
  font-size: large;
  margin-bottom: 10px;
  opacity: 0.9;
}

.med-slider-container {
  width: 90%;
  max-width: 1100px;
  margin: 50px auto;
  position: relative;
}

.med-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.med-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.med-tab {
  padding: 8px 0;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  color: #333;
  transition: all 0.3s ease;
}

.med-tab:hover {
  color: #c00;
  transform: translateY(-2px);
}

.med-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background: red;
  border-radius: 2px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    margin: 0 auto;
  }
  to {
    width: 100%;
  }
}

.med-arrow {
  position: absolute;
  top: 270px;
  transform: translateY(-50%);
  font-size: 30px;
  background: white;
  color: #333;
  border: 2px solid rgb(54, 48, 48);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 41px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.med-arrow-left {
  position: absolute;
  top: 31vh;
  left: -60px;
}

.med-arrow-right {
  position: absolute;
  top: 32vh;
  right: -60px;
}

.med-arrow:hover {
  background: red;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
}

.med-slider-wrapper {
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.med-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.med-card {
  flex: 0 0 33.3333%;
  padding: 15px;
  box-sizing: border-box;
}

.med-card-content {
  background: white;
  border-radius: 15px;
  padding: 0 0 20px 0;

  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.4s ease;
  overflow: hidden;
}

.med-card-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.med-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 15px 15px 0 0;
  transition: transform 0.4s ease;
}

.med-card-content:hover img {
  transform: scale(1.05);
}

.med-card h3 {
  font-size: 18px;
  color: #333;
  margin: 20px 0 10px;
  line-height: 1.3;
}

.med-explore-btn {
  padding: 10px 20px;
  font-size: 14px;
  border: 2px solid red;
  border-radius: 25px;
  color: red;
  background: transparent;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  width: fit-content;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.med-explore-btn:hover {
  background: red;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.med-explore-btn:hover .med-arrow-icon {
  transform: translateX(4px);
}

.med-arrow-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.explore-section {
  margin: 80px 50px;
  background: linear-gradient(135deg, #e6e6e6 0%, #f0f0f0 100%);
  border-radius: 20px;
  text-align: center;
  padding: 40px 20px;
}

.explore-title {
  font-size: 3rem;
  color: #0c0c0c;
  margin-bottom: 50px;
  text-align: left;
  padding: 50px 0 0 40px;
  margin-left: 30vh;
}

.explore-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 40px;
  gap: 60px;
}

.explore-card {
  padding: 30px 25px;
  width: 250px;
  transition: all 0.4s ease;
  border-radius: 15px;
  position: relative;
}

.explore-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.divider {
  width: 2px;
  background: linear-gradient(to bottom, transparent, #ccc, transparent);
  margin: 0 30px;
}

.explore-card i {
  font-size: 48px;
  color: #111;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.explore-card:hover i {
  color: #c00;
  transform: scale(1.1);
}

.explore-card h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.explore-card:hover h3 {
  color: #c00;
}

.explore-card p {
  font-size: 17px;
  color: #242121;
  line-height: 1.5;
}

.icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.info-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: #eee;
  padding: 60px 40px;
  gap: 40px;
  position: relative;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  overflow-x: hidden;
}

.banner-header {
  margin: 40px 0 10px 120px;
}

.banner-header h2 {
  font-size: 35px;
  color: #111;
  margin-bottom: 10px;
}

.banner-header p {
  font-size: 22px;
  color: #555;
  font-weight: 500;
}

.info-image {
  margin-bottom: 200px;
  position: relative;
}

.info-image img {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.info-image:hover img {
  transform: scale(1.02);
}

.info-content {
  position: absolute;
  top: 55vh;
  left: 70vh;
  background: linear-gradient(135deg, #031a47 0%, #1e3a8a 100%);
  width: 1000px;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-content p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #ccc;
  line-height: 1.6;
}

.info-button {
  padding: 12px 28px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
}

.info-button:hover {
  background-color: #fff;
  color: #031a47;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }
  .slides .slide:nth-child(1) {
    background-image: url("../img/choosemob.webp") !important; /*/this part for mobile has been edited/*/
  }
  .slides .slide:nth-child(2) {
    background-image: url("../img/productmob.webp") !important; /*/this part for mobile has been edited/*/
  }
  .slides .slide:nth-child(3) {
    background-image: url("../img/servicemob.webp") !important; /*/this part for mobile has been edited/*/
  }
  .slides .slide:nth-child(4) {
    background-image: url("../img/partnermob.webp") !important; /*/this part for mobile has been edited/*/
  }

  .med-arrow-left,
  .med-arrow-right {
    display: none !important;
  }
  .tabs {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    z-index: 999;
  }

  .tab {
    flex: 0 0 auto;
    margin-right: 0;
    padding: 12px 20px;
    font-size: 14px;
    color: white;
    border-radius: 25px;

    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
  }

  .tabContent {
    padding: 40px 20px;
    padding-bottom: 120px;
  }

  .tabContent h1 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .tabContent p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
    opacity: 0.95;
  }

  .tabContent button {
    padding: 14px 30px;
    font-size: 16px;
    margin-top: 20px;
  }

  .med-slider-container {
    width: 95%;
    margin: 30px auto;
    padding: 0 15px;
  }

  .med-title {
    font-size: 26px;
    margin-bottom: 25px;
    text-align: center;
  }

  .med-tabs {
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
  }

  .med-tab {
    padding: 10px 15px;
    font-size: 14px;

    border-radius: 20px;
    transition: all 0.3s ease;
  }

  .med-tab.active {
    color: rgb(0, 0, 0);
    transform: scale(1.05);
  }

  .med-card {
    flex: 0 0 100%;
    padding: 10px;
  }

  .med-card-content {
    margin-bottom: 20px;
  }

  .med-card img {
    height: 200px;
  }

  .med-card h3 {
    font-size: 18px;
    margin: 20px 0 15px;
  }

  .med-arrow-left,
  .med-arrow-right {
    display: none;
  }

  .explore-section {
    margin: 40px 15px;
    padding: 40px 20px;
  }

  .explore-title {
    font-size: 2.2rem;
    margin-left: 0;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .explore-container {
    flex-direction: column;
    padding: 20px 0;
    gap: 40px;
    align-items: center;
  }

  .explore-card {
    width: 100%;
    max-width: 350px;
    padding: 30px 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  .explore-card i {
    font-size: 50px;
    margin-bottom: 25px;
  }

  .explore-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .explore-card p {
    font-size: 16px;
    line-height: 1.6;
  }

  .divider {
    display: none;
  }

  .info-banner {
    padding: 30px 20px;
    gap: 30px;
  }

  .banner-header {
    margin: 0;
    text-align: center;
    order: 1;
  }

  .banner-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .banner-header p {
    font-size: 18px;
    line-height: 1.5;
  }

  .info-image {
    margin-bottom: 0;
    order: 2;
    width: 100%;
  }

  .info-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
  }

  .info-content {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 0;
    max-width: 100%;
    padding: 30px;
    order: 3;
    margin-top: -50px;
    z-index: 2;
  }

  .info-content p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.7;
  }

  .info-button {
    padding: 14px 30px;
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 30px;
    text-align: center;
  }

  .footer-section h3 {
    font-size: 18px;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tabs {
    left: 15px;
    right: 15px;
    padding: 12px;
  }

  .tab {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 70px;
  }

  .tabContent {
    padding: 30px 15px;
    padding-bottom: 110px;
  }

  .tabContent h1 {
    font-size: 24px;
  }

  .tabContent p {
    font-size: 15px;
  }

  .explore-title {
    font-size: 1.8rem;
  }

  .banner-header h2 {
    font-size: 24px;
  }

  .banner-header p {
    font-size: 16px;
  }

  .info-content {
    padding: 25px;
    margin-top: -30px;
  }

  .footer-content {
    padding: 0 20px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tab,
  .med-tab,
  .med-explore-btn,
  .info-button,
  .tabContent button {
    min-height: 44px;
    touch-action: manipulation;
  }

  .med-card-content:hover,
  .explore-card:hover,
  .tab:hover,
  .med-tab:hover {
    transform: none;
  }
}
html {
  scroll-behavior: smooth;
}
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #c00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

[data-aos="slide-up-custom"] {
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

[data-aos="slide-up-custom"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

[data-aos="zoom-in-custom"] {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

[data-aos="zoom-in-custom"].aos-animate {
  transform: scale(1);
  opacity: 1;
}
