.hero-section {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  z-index: 50;
}

.hero-text {
  padding-inline-end: 5rem;
  width: 50%;

  h1 {
    font-size: 3rem;
    font-weight: bold;
  }

  p {
    font-weight: 400;
    opacity: 50%;
    margin: 1rem 0;
  }

}

.image-column-overlap {
  position: relative;
  width: 100%;
  height: 60vh;
  /* Adjust based on your needs */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Prevent overflow */
}

.image-wrapper {
  position: relative;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-image {
  z-index: 1;
}

.bottom-image {
  z-index: 2;
  margin-top: -7%;
}

.hover-image {
  max-height: 100%;
  max-width: 100%;
  position: relative;
  transition: transform 0.5s ease;
}

/* Hover animations */
.top-image .hover-image {
  animation: floatLeftRight 3s infinite alternate ease-in-out;
}

.bottom-image .hover-image {
  animation: floatRightLeft 3s infinite alternate ease-in-out;
}

@keyframes floatLeftRight {
  0% {
    transform: translateX(-10px);
  }

  100% {
    transform: translateX(10px);
  }
}

@keyframes floatRightLeft {
  0% {
    transform: translateX(10px);
  }

  100% {
    transform: translateX(-10px);
  }
}

/* RTL support */
[dir="rtl"] .top-image .hover-image {
  animation: floatRightLeft 3s infinite alternate ease-in-out;
}

[dir="rtl"] .bottom-image .hover-image {
  animation: floatLeftRight 3s infinite alternate ease-in-out;
}

.hero-title {
  color: var(--tertiary);
}

.hero-title-dark {
  color: var(--primary);
}

/* CSS */
.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  /* Adjust based on your card height */
  padding: 2rem 0;
}

.carousel {
  position: relative;
  height: 100%;
  width: 100%;
}

.website-card {
  position: absolute;
  width: 70%;
  height: 100%;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  cursor: pointer;
}

/* Stacked cards positioning */
.website-card:nth-child(1) {
  left: 0;
  z-index: 3;
}

.website-card:nth-child(2) {
  left: 15%;
  z-index: 2;
  transform: scale(0.95);
}

.website-card:nth-child(3) {
  left: 30%;
  z-index: 1;
  transform: scale(0.9);
}

/* Focused card styling */
.website-card.focused {
  z-index: 10;
  transform: scale(1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background-color: var(--tertiary);

}

.indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--white);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: var(--tertiary);
  opacity: 1;
  transform: scale(1.2);
}

.arrow-container {
  position: absolute;
  bottom: -40px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 100;
}

.arrow {
  font-size: 1.8rem;
  color: var(--tertiary);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.arrow:hover {
  transform: scale(1.2);
}


.website-card img {
  object-fit: contain;
  width: 100%;
  height: 15rem;
  border-radius: 2rem;
}


.arrow-container {
  position: relative;
  margin-inline-end: 1rem;
  flex-direction: row;
}

[dir=rtl] .arrow-container {
  flex-direction: row-reverse;
}

.arrow {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

.arrow-left {
  left: 10px;
}


.arrow-right {
  right: 10px;
}



.website-card-title {
  color: var(--primary);
  text-transform: uppercase;
  font-size: xxx-large;
  font-weight: 600;
}

.card-tag {
  background-color: var(--secondary);
  color: var(--tertiary);
  padding: 0.25rem 1rem;
  font-weight: 600;
  align-self: anchor-center;
  border: 2.35px solid var(--secondary);
}

.website-btn-container {
  button {
    font-weight: 600;
  }
}

.website-card-body {
  width: 40%;

  h1 {
    font-size: xx-large;
    color: var(--secondary);
    font-weight: 700;
  }

  p {
    color: var(--primary);
    font-weight: 400;
  }
}

.numbers-container {
  text-align: center;

  h1 {
    font-size: 4rem;
    font-weight: bold;
  }

  p {
    color: var(--tertiary);
    font-size: larger;
  }
}

.why-smart-section {
  align-content: center;
  padding: 4rem 0 4rem 3rem;

  h1 {
    color: var(--primary);
    font-weight: bold;
  }

  p {
    color: var(--primary);
  }
}

.why-smart-container {
  margin-top: -2rem;
  margin-bottom: -2rem;
  padding-inline: 2rem;

}

.why-smart-img {
  justify-content: end;
  object-fit: contain;
  max-height: 100vh;

  img {
    z-index: 100;
    position: relative;
    object-fit: fill;
  }
}

.why-smart-tag {
  background-color: var(--tertiary);
  color: var(--primary);
  border-radius: 1rem;
  padding: 0.7rem;
  align-items: center;

  i {
    font-size: xx-large;
  }

  p {
    margin: 0;
    color: black;
  }
}

.contactus {
  padding: 2rem;
  margin: 4rem 3rem;
  border-radius: 3rem;
  background-color: var(--white);
  width: 100%;

  h1 {
    color: var(--primary);
    font-weight: bold;

  }

  p {
    color: var(--secondary);
    font-weight: 400;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.slider {
  overflow: hidden;
  position: relative;
  margin: 1rem 0;
}

.slider .slide-track {
  display: flex;
  width: calc(200px * 14);
  margin: 2rem 0;
  animation: scroll 30s linear infinite;
}

.slider .slide {
  max-width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2rem;
}

.slide {
  width: auto;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


.carousel-image-container img {
  object-fit: cover;
  filter: grayscale(100%) sepia(100%) hue-rotate(190deg) saturate(300%) brightness(90%);
}

.input-group {
  --bs-border-color: var(--tertiary) !important;
  --bs-border-radius: 0.775rem;

}

.input-group-text {
  background-color: transparent;
  color: var(--primary);
}


.conact-form-custom:dir(ltr) {
  --bs-border-color: var(--tertiary) !important;
  border-top-right-radius: 0.775rem !important;
  border-bottom-right-radius: 0.775rem !important;
}

.input-group-text:dir(ltr) {
  border-top-left-radius: 0.775rem !important;
  border-bottom-left-radius: 0.775rem !important;
}

/* RTL */
.conact-form-custom:dir(rtl) {
  border-top-left-radius: 0.775rem !important;
  border-bottom-left-radius: 0.775rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group-text:dir(rtl) {
  border-top-right-radius: 0.775rem !important;
  border-bottom-right-radius: 0.775rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.scrollable-text {
  position: relative;
}

.truncate-text .text-content {
  transition: max-height 0.3s ease;
  line-height: 1.5em;
  /* Should match your text line-height */
  overflow: hidden;
}

.truncate-text.expanded .text-content {
  max-height: 200px;
  /* Adjust based on your needs */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tertiary) transparent;
}

/* Custom scrollbar for WebKit browsers */
.truncate-text.expanded .text-content::-webkit-scrollbar {
  width: 4px;
}

.truncate-text.expanded .text-content::-webkit-scrollbar-thumb {
  background-color: var(--tertiary);
  border-radius: 2px;
}

.read-more {
  display: inline-block;
  cursor: pointer;
  font-size: 0.9rem;
}

.form-floating>label {
  color: var(--primary);
}

.fill-height {
  height: 100%;
}

textarea.form-control {
  height: 100% !important;
  box-sizing: border-box;
  resize: none;
  --bs-border-color: var(--tertiary) !important;
  color: var(--primary);
  border-top-left-radius: 0.775rem !important;
  border-bottom-left-radius: 0.775rem !important;
  border-top-right-radius: 0.775rem !important;
  border-bottom-right-radius: 0.775rem !important;
}

textarea.form-control:dir(rtl) {
  color: var(--primary);
  height: 100% !important;
  box-sizing: border-box;
  resize: none;
  --bs-border-color: var(--tertiary) !important;
  border-top-left-radius: 0.775rem !important;
  border-bottom-left-radius: 0.775rem !important;
  border-top-right-radius: 0.775rem !important;
  border-bottom-right-radius: 0.775rem !important;
}

.contact-info {
  h3 {
    font-weight: bold;
    color: var(--primary);
  }

  p {
    color: var(--primary);
  }
}



@media (max-width: 991.98px) {
  .hero-text {
    padding: 0;
    width: 100%;
  }

  .image-container {
    display: none;
  }

}

@media (max-width: 767.98px) {

  .image-container {
    padding: 3rem;
  }

  .website-card-body {
    width: 100%;
  }

  .website-card-title {
    font-size: x-large;
  }

  .website-card-body {
    width: 100%;

    h1 {
      font-size: large;
    }
  }
}