html, body {
  scroll-snap-type: y mandatory;
}

/* FIRST SECTION */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  height: 100vh;
  padding: 8rem 1rem 0;
  p {
    font-size: 20px;
  }
}

.home_header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  h2 {
    font-size: 50px;
    font-weight: 300;
    color: var(--blue);
  }
}

.slot-texts {
  height: 225px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  /* outline: 2px dotted black; */
  h1 {
    font-family: var(--playfair);
    font-size: 200px;
    font-style: italic;
    color: var(--blue);
    line-height: 1;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.slot-track {
  display: flex;
  flex-direction: column;
  animation: slotScrollH1 5s infinite ease-in-out;
}

@keyframes slotScrollH1 {
  0%   { transform: translateY(0); }
  33%  { transform: translateY(-225px); }
  66%  { transform: translateY(-425px); }
  100% { transform: translateY(-625px); }
}

/* SECOND SECTION */
.wwo-wrapper { 
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 0 0;
}

.wwo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 540px;
  width: 540px;
  outline: 10px solid white;
  border-radius: 50%;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.119), 0 1.5px 6px rgba(0, 0, 0, 0.152);
  z-index: 1;
  h1 {
    font-family: var(--playfair);
    font-size: 70px;
    color: var(--blue);
  }
}

.wwo-logo {
  position: absolute;
  top: -50%;
  width: 500px;
  filter: drop-shadow(0 0 20px black);
  opacity: 5%;
  z-index: 0;
}

.wwo-contents {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin: 8rem 0 0;
  padding: 0 4rem;

  h2 {
      font-size: 25px;
      color: var(--blue);
      font-weight: lighter;
      margin: 0;
  }

  strong {
      color: var(--blue);
      font-weight: bold;
      font-size: 30px;
  }
}

.source-strat {
  display: flex;
  flex-direction: row;
  margin: 4rem 0;
  width: 100%;
  justify-content: center;
  gap: 6rem;
  z-index: 1;
}

.strategy, .source {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 540px;
  width: 540px;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.119), 0 1.5px 6px rgba(0, 0, 0, 0.152);
  outline: 10px solid white;
  border-radius: 50%;
  line-height: 1.2;
  h1 {
      font-size: 30px;
      font-weight: bold;
      color: var(--blue);
      margin-bottom: 2.5rem;
  }
  p {
    margin: 0;
  }
  hr {
    color: var(--blue);
    width: 40%;
    opacity: 100%;
  }
  a {
    font-weight: bold;
    color: var(--orange);
    text-decoration: none;
    margin-top: 6rem;
  }
  a:hover {
    text-decoration: underline;
  }
}

/* THIRD SECTION */
.wwa-content {
  display: flex;
  flex-direction: column;
  margin: 4rem 0;
}

.wwa-content p {
    display: block;
    justify-content: center;
    align-items: center;
    font-weight: lighter;
    word-wrap: break-word;
    text-align: center;
    flex-wrap: wrap;
    font-size: 1.25rem;
    line-height: 1.2;
    span {
        color: var(--blue);
        font-weight: bold;
        margin: 2rem 0;
    }
}

.about-sales {
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.about-sales-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.about-sales-card {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: left;
  width: 280px;
  height: 300px;
  border-radius: 30px;
  outline: 10px solid white;
  padding: 1rem;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.119), 0 1.5px 6px rgba(0, 0, 0, 0.152);
}

.about-sales-img img {
  display: flex;
  justify-content: left;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.about-sales-card p {
  font-size: 16px;
  text-align: left;
  color: black;
}

.about-sales-card strong {
  font-size: 30px;
  font-weight: bold;
  color: var(--blue);
  line-height: 1.1;
}

.wwa-content.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
  pointer-events: auto;
}

.wwa-content.up{
  opacity: 0;
  transform: translateY(-100vw);
  z-index: 1;
}

.wwa-content.down {
  opacity: 0;
  transform: translateY(100vw);
  z-index: 1;
}

.slot-texts2 {
  height: 100px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  margin-bottom: 2rem;
  h2 {
    font-family: var(--playfair);
    font-size: 80px;
    color: var(--blue);
    line-height: 1.1;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  p {
    font-size: 20px;
  }
}

.slot-track2 {
  display: flex;
  flex-direction: column;
  animation: slotScrollH2 5s infinite ease-in-out;
}

@keyframes slotScrollH2 {
  0%   { transform: translateY(0); }
  33%  { transform: translateY(-100px); }
  66%  { transform: translateY(-190px); }
  100% { transform: translateY(-288px); }
}

.company-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem 1rem;
}

.company-logos > div {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  outline: 1px solid lightgrey;
  padding: 1rem;
}

.company-logos img {
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.company-logos img:hover {
  filter: grayscale(0);
  transform: scale(1.1);
}

/* FOURTH SECTION */
.portfolio-sec {
  display: flex;
}

/* FIFTH SECTION  */
.why-about-sales-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1rem 8rem;
}

.why-about-sales-card {
  position: relative;
  background: #fff;
  width: 360px;
  height: 230px;
  border-radius: 20px;
  padding: 1rem;
  overflow: hidden;
  outline: 1px solid lightgrey;
  transition: all 0.35s ease;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.why-about-sales-text strong {
  font-size: 30px;
  font-weight: bold;
  color: var(--blue);
  line-height: 1.2;
}

.why-about-sales-text p {
  opacity: 0;
  max-height: 0;
  line-height: 1;
  transform: translateX(10px);
  overflow: hidden;
  transition: all 0.35s ease;
}

.why-about-sales-card:hover {
  width: 530px;
}

.why-about-sales-card:hover br{
  display: none;
}

.why-about-sales-card:hover .why-about-sales-text p {
  opacity: 1;
  max-height: 200px;
  margin-top: 1.5rem;
  margin-right: 2rem;
  transform: translateX(0);
}

.why-about-sales-img {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  height: 100%;
}

.why-about-sales-img img {
  height: 64px;
  width: 64px;
}

.card-toggle {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 24px;
  height: 24px;
}

.card-toggle::before,
.card-toggle::after {
  content: '';
  position: absolute;
  background: var(--blue);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* horizontal line */
.card-toggle::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* vertical line */
.card-toggle::after {
  height: 100%;
  width: 2px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Hover → minus */
.why-about-sales-card:hover .card-toggle::after {
  opacity: 0;
}

.bottom-text {
  text-align: center;
  margin-bottom: 8rem;
  h1 {
    font-size: 80px;
    font-weight: lighter;
  }
  span {
    font-family: var(--playfair);
    font-style: italic;
    font-weight: bold;
  }
}

@media (max-width: 1290px) {
  .wwo-header {
    height: auto;
    width: 400px;
    aspect-ratio: 1/1;
    h1 {
      font-size: 40px;
    }
  }
  .wwo-contents {
    margin: 4rem 0 0;
    padding: 0 1rem;
  }
  .wwo-logo {
    top: -60%;
    width: 350px;
  }
  .source-strat {
    margin: 0;
    gap: 4rem;
  }
  .strategy, .source {
    height: auto;
    width: 400px;
    aspect-ratio: 1/1;
    h1 {
      font-size: 25px;
      margin-bottom: 2rem;
    }
    hr {
      margin: 0.5rem 0;
    }
    a {
      margin-top: 4rem;
    }
  }

  .why-about-sales-grid {
    flex-direction: column;
    align-items: center;
  }

  .why-about-sales-card {
    pointer-events: none;
    width: 530px;
  }

  .why-about-sales-text strong {
    br {
      display: none;
    }
  }
  
  .why-about-sales-text p {
    opacity: 1;
    margin-top: 1rem;
    max-height: none;
    transform: none;
  }

  .card-toggle {
    display: none;
  }
  
  .about-sales-card {
    justify-content: center;
    height: auto;
    gap: 1rem;
    strong {
      font-size: 20px;
    }
  }
  .sales-wrapper {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 0 1rem;
  }
  .bottom-text {
    margin-bottom: 0;
    h1 {
      font-size: 60px;
    }
  }
}

@media (max-width: 1090px) {
  .hero-section {
    padding: 4rem 1rem 0;
  }

  .slot-texts {
    height: 120px;
    h1 {
      font-size: 100px;
    }
  }

  @keyframes slotScrollH1 {
    0% {transform: translateY(0);}
    33% {transform: translateY(-115px);}
    66% {transform: translateY(-218px);}
    100% {transform: translateY(-324px);}
  }
  .why-about-sales-grid {
    padding: 2rem 1rem;
  }
  .bottom-text {
    h1 {
        font-size: 40px;
    }
  }
}

@media (max-width: 900px) {
  .source-strat {
    flex-direction: column;
    align-items: center;
  }
  .wwo-logo {
    top: -50%;
    width: 200px;
  }
}

@media (max-width: 776px) {
  .home_header {
    gap: 0;
    h2 {
      font-size: 30px;
    }
  }
  .hero-section {
    justify-content: space-evenly;
  }
  .slot-texts2 {
    height: 35px;
    margin-bottom: 1rem;
    h2 {
      font-size: 35px;
    }
  }

  @keyframes slotScrollH2 {
    0% {transform: translateY(0);}
    33% {transform: translateY(-50px);}
    66% {transform: translateY(-95px);}
    100% {transform: translateY(-139px);}
  }
  .about-sales {
    padding: 2rem 0 0;
  }
  .company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
  }
  .company-logos > div {
    width: 160px;
  }
  .why-about-sales-text strong {
    font-size: 25px;
  }
  .wwa-content {
    margin: 4rem 0 2rem;
  }
}

@media (max-width: 546px) {
  .slot-texts {
    height: 70px;
    h1 {
        font-size: 60px;
    }
  }
  @keyframes slotScrollH1 {
    0% {transform: translateY(0);}
    33% {transform: translateY(-70px);}
    66% {transform: translateY(-135px);}
    100% {transform: translateY(-204px);}
  }
  .wwo-header {
    width: 350px;
  }
  .strategy, .source {
    width: 350px;
  }
  .why-about-sales-card {
    width: 100%;
    height: auto;
  }
  .why-about-sales-img img {
    height: 50px;
    width: 50px;
    margin-bottom: 1rem;
  }
  .why-about-sales-text p {
    font-size: 16px;
  }
}