/*
==========
Styles for hero.
==========
*/

.hero {
    width: 100%;
    min-height: 300px;
    height: calc(100vh - 3em);
    position: relative;
    overflow: hidden;
    background-image: url('../resources/images/website/aguaminis-back.png');
    background-size: cover;
    background-position: center;
}

.hero .background__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.hero .hero__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 1em;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-direction: column;
    text-align: center;
    padding: 1em;
}

.hero .hero__content h1{
    color: var(--lightskyblue-color);
    margin: 0;
    padding: 0;
}

.hero .hero__content p{
    color: var(--black-color);
}

.hero .hero__content a{
    text-decoration: none;
}

.hero .hero__content .button__lightskyblue{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding-right: .5em;
    padding-left: .5em;
    font-weight: 600;
}

.hero .hero__content .button__lightskyblue .icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
}

.hero .hero__content .button__lightskyblue svg{
    width: 100%;
    height: 100%;
    fill: var(--white-color);
}

.hero__animate,
.services__animate {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 1s ease;
}

.hero__animate--visible,
.services__animate--visible {
  opacity: 1;
  transform: translateY(0);
}

/*
==========
Styles for services
==========
*/

.services {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--silver-color);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 1em;
}

.services__container {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 1em;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.services__container::-webkit-scrollbar {
  display: none;
}

.services__card {
  min-width: 180px;
  height: 160px;
  background-color: var(--white-color);
  border-radius: 10px;
  text-decoration: none;
  color: var(--black-color);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0px 20px var(--black-color-transparent);
}

.services__card:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/*
==========
Images for services:
    100px
    180px
==========
*/

.services__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.services__title {
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  padding: 6px;
}

.services__nav {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--lightskyblue-color-transparent);
  color: var(--white-color);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.services__nav:hover {
  opacity: 1;
}

.services__nav--prev {
  left: 10px;
}

.services__nav--next {
  right: 10px;
}

/*
==========
Styles for fade.
==========
*/

.services__fade {
  position: absolute;
  top: 0;
  height: 100%;
  width: 80px;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.services__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--silver-color) 40%, rgba(255, 255, 255, 0));
  opacity: 0;
}

.services__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--silver-color) 40%, rgba(255, 255, 255, 0));
  opacity: 0;
}

/*
==========
Styles for about.
==========
*/

.about {
  width: 100%;
  padding: 3em 1em;
  background: var(--white-color);
  overflow: hidden;
}

.about__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.about__image-wrapper {
  flex: 1;
}

.about__image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0px 20px var(--black-color-transparent);
}

.about__content {
  flex: 1;
}

.about__title {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--lightskyblue-color);
}

.about__text {
  margin-bottom: 18px;
  line-height: 1.7;
  color: var(--black-color);
  font-size: 16px;
}

.about__animate {
  opacity: 0;
  transition: all 1s ease;
}

.about__animate--left {
  transform: translateX(-80px);
}

.about__animate--right {
  transform: translateX(80px);
}

.about__animate--visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 992px) {
  .about__container {
    flex-direction: column;
    gap: 40px;
  }

  .about__animate--left,
  .about__animate--right {
    transform: translateY(60px);
  }

  .about__animate--visible {
    transform: translateY(0);
  }
}

/* 
==========
Hide navigation on large screens. 
==========
*/

@media (min-width: 1370px) {
  .services__nav {
    display: none;
  }
}

/*
==========
Styles for question.
==========
*/

.why {
  width: 100%;
  padding: 100px 20px;
  background-color: var(--lightskyblue-color);
  overflow: hidden;
}

.why__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.why__content {
  flex: 1;
}

.why__image-wrapper {
  flex: 1;
}

.why__image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0px 20px var(--black-color-transparent);
}

.why__title {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--white-color);
}

.why__text {
  margin-bottom: 18px;
  line-height: 1.7;
  color: var(--white-color);
  font-size: 16px;
}

.why .button__white{
    padding: .7em;
}

.why__animate {
  opacity: 0;
  transition: all 1s ease;
}

.why__animate--left {
  transform: translateX(-80px);
}

.why__animate--right {
  transform: translateX(80px);
}

.why__animate--visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 992px) {
  .why__container {
    flex-direction: column;
    gap: 40px;
  }

  .why__animate--left,
  .why__animate--right {
    transform: translateY(60px);
  }

  .why__animate--visible {
    transform: translateY(0);
  }
}

/*
==========
Styles for projects.
==========
*/

.projects {
  width: 100%;
  padding-top: 100px;
  padding-bottom: 2em;
  padding-left: 20px;
  padding-right: 20px;
  background-color: var(--white-color);
}

.projects__header {
  max-width: 1200px;
  margin: 0 auto 50px;
  text-align: center;
}

.projects__title {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--lightskyblue-color);
}

.projects__description {
  font-size: 16px;
  color: var(--black-color);
}

.projects__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}

.projects__card {
  background-color: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0px 20px var(--black-color-transparent);
  transition: transform 0.3s ease, opacity 0.8s ease;
  opacity: 0; 
  flex: 0 1 320px; 
  max-width: 100%;
}

.projects__card:hover {
  transform: translateY(-6px);
}

.projects__slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.projects__slides {
  display: flex;
  width: auto; 
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.projects__image {
  flex: 0 0 100%; 
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.projects__content {
  padding: 15px 20px;
}

.projects__card-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--lightskyblue-color);
}

.projects__meta,
.projects__client {
  font-size: 14px;
  color: var(--black-color);
  margin-bottom: 5px;
}

.projects__text {
  font-size: 15px;
  color: var(--black-color);
  line-height: 1.6;
  margin-bottom: 10px;
}

.projects__animate.projects__animate--left {
  transform: translateX(-60px);
}

.projects__animate.projects__animate--right {
  transform: translateX(60px);
}

.projects__animate.projects__card--visible {
  opacity: 1;
  transform: translateX(0);
}

.projects__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.projects .button__lightskyblue{
    padding: .7em;
}

@media (max-width: 768px) {
  .projects {
    padding-bottom: 100px; 
  }

  .projects__cta-wrapper {
    width: 100%;
    margin-top: 60px;
    display: flex;
    justify-content: center;
  }

  .projects .button__lightskyblue {
    width: auto; 
    min-width: 200px; 
  }
}

@media (max-width: 480px) {
  .projects__container {
    gap: 1em; 
  }
}

@media (max-width: 600px) {
    .hero .background__video {
        display: none;
    }

    .hero .container__image__aguaminis,
    .hero .hero__content p {
        display: none;
    }

    .hero .hero__content {
        justify-content: flex-end;
        padding-bottom: 20px;
    }

    .hero .button__lightskyblue {
        margin-bottom: 10px;
    }
}

/*
==========
Styles for workflow
==========
*/

.workflow {
  width: 100%;
  padding-top: 3em;
  padding-bottom: 7em;
  padding-left: 20px;
  padding-right: 20px;
  background: var(--silver-color);
}

.workflow__container {
  max-width: 1200px;
  margin: 0 auto;
}

.workflow__title {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--lightskyblue-color);
  text-align: center;
}

.workflow__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.workflow__step {
  background: var(--white-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px var(--black-color-transparent);
  transition: all 0.4s ease;
  cursor: pointer;
}

.workflow__number {
  width: 65px;
  height: 65px;
  background: var(--lightskyblue-color);
  color: var(--white-color);
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.workflow__step-title {
  margin: 10px 0;
  font-size: 25px;
  transition: color 0.3s ease;
  color: var(--black-color);
}

.workflow__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--black-color);
  transition: color 0.3s ease;
}

.workflow__step:hover {
  background: var(--lightskyblue-color);
}

.workflow__step:hover .workflow__step-title,
.workflow__step:hover .workflow__text {
  color: var(--white-color);
}

.workflow__step:hover .workflow__number {
  background: var(--white-color);
  color: var(--lightskyblue-color);
}

/*
==========
Animations
==========
*/

.workflow__animate {
  opacity: 0;
  transition: all 0.8s ease;
}

.workflow__animate--left {
  transform: translateX(-60px);
}

.workflow__animate--right {
  transform: translateX(60px);
}

.workflow__animate--visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 992px) {
  .workflow__animate--left,
  .workflow__animate--right {
    transform: translateY(40px);
  }

  .workflow__animate--visible {
    transform: translateY(0);
  }

  .workflow__steps {
    grid-template-columns: 1fr;
  }
}