.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 4rem;
  margin-top: 2rem;
  border-radius: 30px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 30px;
}

.hero-media .hero-image.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(0, 0, 0, 0.75) 0,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.25) 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
  border-radius: 30px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 3rem 0;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.hero-button i {
  font-size: 0.9rem;
}

.hero-button:hover {
  background-color: #3b8ac1;
}

.about {
  padding: 3rem 0;
  display: flex;
  align-items: stretch;
  justify-content: start;
  gap: 3rem;
}

.about .left {
  width: 45%;
}

.about .left img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about .right {
  width: 55%;
}

.about .right .header {
  margin-bottom: 2rem;
}

.about .right .header .tagline {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-color);
}

.about .right .header h2 {
  font-size: 1.8rem;
  line-height: 1.2;
}

.about .right .services {
  position: relative;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.about .right .services::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--primary-color);
  transform: translateX(-0.5px);
  pointer-events: none;
}

.about .right .services::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--primary-color);
  transform: translateY(-0.5px);
  pointer-events: none;
}

.about .right .services .service {
  padding: 1rem;
}

.about .right .services .service img {
  width: 90px;
  height: auto;
  object-fit: contain;
  margin-top: 0.5rem;
}

.about .right .services .service .title {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

.about .right .services .service .title span {
  font-size: 1rem;
  font-weight: 500;
}

.about .right .service-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about .right .service-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.works {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-color);
}

.section-header h2 {
  margin-top: 1rem;
  max-width: 70%;
}

.cases {
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 3rem;
}

.cases .case {
  width: calc(100% / 3 - 3rem / 3);
}

.cases .case img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.cases .case h3 {
  font-size: 1rem;
  font-weight: 500;
}

.row {
  display: flex;
  align-items: stretch;
  justify-content: start;
  gap: 3rem;
  padding-left: 5vw;
}

.row .right {
  max-width: 90%;
  padding-top: 1rem;
}

.row .right .work {
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 2rem;
  margin-bottom: 1rem;
}

.row .right .work img {
  width: 20rem;
  height: 11.5em;
  object-fit: cover;
  border: 1px solid #f1f1f1;
}

.row .right .work h3 {
  font-weight: 500;
}

.row .right .work p {
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: gray;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row .right .work .btn {
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta {
  min-height: 22rem;
  color: white;
  text-align: center;
}

.cta .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 60%;
  margin: auto;
}

.cta .wrapper h2 {
  font-size: 2.5rem;
}

.cta .wrapper p {
  margin-bottom: 1rem;
}

.cta .wrapper .btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.cta .wrapper .btn:hover {
  background-color: #3b8ac1;
}

.partners {
  padding: 2rem 0;
}

.partners .list {
  margin-top: 2rem;
}

.partners .partners-slider {
  overflow: hidden;
  width: 100%;
}

.partners .partners-slider .list {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: partners-scroll 40s linear infinite;
}

.partners .partner img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.partners .partners-slider:hover .list {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive: tablet */
@media only screen and (max-width: 997px) {
  .hero {
    padding: 3rem 2rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 2.5rem 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .about {
    flex-direction: column-reverse;
  }

  .about .left,
  .about .right {
    width: 100%;
  }

  .about .left {
    padding: 0 10vw;
  }

  .about .left img {
    height: 450px;
    object-fit: contain;
  }

  .section-header h2 {
    margin-top: 1rem;
    max-width: 90%;
  }

  .row {
    gap: 2rem;
    padding-left: 0vw;
  }

  .row .left img {
    height: 30rem;
  }

  .row .right {
    max-width: 100%;
    padding-top: 1rem;
  }

  .row .right .work {
    gap: 1rem;
  }

  .row .right .work img {
    width: 15rem;
    height: 9rem;
  }

  .row .right .work p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .cases {
    gap: 1rem;
  }

  .cases .case {
    width: calc(100% / 3 - 1rem / 3);
  }

  .cases .case img {
    height: 20rem;
  }

  .cta {
    min-height: 22rem;
    color: white;
    text-align: center;
  }

  .cta .wrapper {
    max-width: 90%;
  }

  .cta .wrapper h2 {
    font-size: 2rem;
  }
}

/* Responsive: mobile */
@media only screen and (max-width: 768px) {
  .hero {
    padding: 2.5rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .about {
    padding: 2.5rem 0;
  }

  .partners .partner img {
    height: 40px;
  }

  .cta .wrapper {
    max-width: 100%;
  }

  .cta .wrapper h2 {
    font-size: 1.8rem;
  }

  .row .right .work img {
    width: 10rem;
    height: 6rem;
  }

  .cases {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .cases .case {
    width: calc(100% / 2 - 1rem / 2);
  }

  .cases .case img {
    height: 15rem;
  }
}

/* Responsive: small mobile */
@media only screen and (max-width: 540px) {
  .hero {
    padding: 2rem 1.25rem;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-button {
    width: 100%;
    justify-content: center;
  }

  .about {
    gap: 2rem;
  }

  .about .right .header h2 {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }

  .cases .case img {
    height: 14rem;
  }

  .partners .partners-slider .list {
    gap: 2rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
    max-width: 100%;
    line-height: 1.6rem;
  }
}

@media only screen and (max-width: 420px) {
  .row .right .work {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 1rem;
  }

  .row .right .work img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
  }

  .cases {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .cases .case {
    width: 100%;
  }

  .cases .case img {
    height: 12rem;
  }
}
