:root {
  --header-height: 4rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

a {
  color: inherit; /* Inherits color from parent, or set to a specific color like #000 */
  text-decoration: none; /* Removes the underline */
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}


html, body {
  font-family: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
  background-color: #f2f2f7;
}

.hero-container {
  min-height: 720px;
  height: calc(100svh - var(--header-height));
  display: grid;
  background-color: #f2f2f7;
  justify-items: center;
}


.hero-image {
  width: auto;
  height: 280px;
}

.hero-image-text {
  align-self: flex-end;
}

.hero-chatbox {
  width: 347px;
  height: 86px;
  background-color: white;
  padding: 16px;
  border-radius: 12px;
  position: relative;
  box-shadow: 
    inset 0  1px 0 rgb(230, 230, 230), 
    0 1px 3px hsla(0, 0%, 0%, 0.2);
}

.hero-chatbox__submit {
  width: 32px;
  height: 32px;
  background-color: #E0E0E0;
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 6px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  row-gap: 16px;
}

.hero-content__heading {
  font-size: 64px;

}

.hero-content__text {
  font-size: 24px;
}

.hero-content__google-play {
  width: 163px;
  height: 48px;
}

.hero-explore-button {
  font-weight: bold;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  row-gap: 8px;
  animation: bounce 2s infinite;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.hero-explore-button.hidden {
  opacity: 0;
  pointer-events: none;
}




.header {
    display: flex;
    align-items: center;
    max-width: 1024px;
    margin: auto;
    height: var(--header-height);
    padding: 0 1rem;
}

.header__icon {
    width: 2rem;
}



@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}


.feature-section {
    height: auto;
    min-height: max(100svh, 1024px);
    display: flex;
    flex-direction: column;
    padding: 40px;
    max-width: 1024px;
    margin: auto;
}

.feature-section__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-section__heading {
  font-size: 36px;
  font-weight: 900;
  color: #1F7AFF;
}

.feature-section__description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
}

.feature-section__image {
  object-fit: scale-down;
  width: auto;
  height: 720px;
}



.footer {
  display: grid;
  background-color: #007AFF;
  padding: 36px 0;
  row-gap: 16px;
}


.footer__balaod-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer__balaod-image {
  width: 40px;
  height: auto;
  
}

.footer__balaod-name {
  color: white;
}

.footer__text {
  text-align: center;
  color: white;
}



@media (min-width: 720px) {

  .feature-section {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .feature-section__heading {
    align-self: flex-end;
    grid-column: 1;
    grid-row: 1;
    font-size: 64px;
    margin-bottom: 64px;
  }

  .feature-section__image-wrapper {
    grid-column: 2;
    grid-row: 1 / span 2;
    object-fit: cover;
  }

  .feature-section__description {
    font-size: 24px;
    line-height: 1.5;
  }

  .feature-section__image {
    height: 512px;
  }


}  


.feature-nav {
    position: fixed;
    top: 50%;
    left: 96px;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    padding: 1rem;
  
    display: flex;
    flex-direction: column;
    row-gap: 36px;
  
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 1600px) {
  
  .feature-nav.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .feature-nav__link {
    padding: 0 16px;
    position: relative;
    text-decoration: none;
    color: #333;
  }

  .feature-nav__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent; /* default hidden */
    transition: background 0.3s;
  }

  .feature-nav__link.active::before {
    background: dodgerblue; /* active indicator color */
  }
}

.feature-section__heading--fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.feature-section__heading--fade-in-left.show {
  opacity: 1;
  transform: translateX(0);
}


@media(min-width: 1024px) {
  .hero-container {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 1fr auto auto 1fr;
    max-width: 1024px;
    margin: auto;
    padding: 32px 0;
  }

  .hero-image {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .hero-image-text {
    grid-column: 2;
    grid-row: 1;
    align-self: flex-end;
  }

  .hero-chatbox {
    grid-column: 2;
    grid-row: 3;
  }

  .hero-content {
    grid-row: 2 / span 2;
    grid-column: 1;
    align-self: center;
  }

  .hero-explore-button {
    grid-row: 4;
    grid-column: 1 / span 2;
    align-self: flex-end;
  }
}