/* Hero Section */
header {
  width: 100vw;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 130px 8% 50px;

  display: flex;
  align-items: center;
  gap: 50px;
  text-align: center;

  position: relative;
  background-color: var(--page-bg);

  @media screen and (min-width: 650px){
    background-image: url('../image/bg-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}


.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap : 20px;
  width: 600px;

  color: var(--text-primary);
  @media screen and (min-width: 650px){
    align-items: start;
    color: var(--text-on-accent);
  }
}

.hero-title {
  display: block;
  margin: 0 0 20px 0;
  font-size: var(--h1-pref);
}

/* preferred = min + (max - min) * (100vw - minViewport) / (maxViewport - minViewport) */


.hero-subtitle {
  line-height: 1.5;
  color: var(--text-primary);
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  
  @media screen and (min-width: 650px){
    text-align: justify;
    color: var(--text-on-accent);
  }

}


/*Wrapper for button*/
.hero-actions {
  display: flex;
  flex-wrap: wrap;

  margin-top: 5px;
  gap:10px;
}

.hero-btn { 
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  padding: 12px 26px;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-scroll {
    position: absolute;   /* was: relative */
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
}

.scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    text-decoration: none;
    color: var(--text-on-accent);
    font-weight: 600;
    font-size: clamp(0.75rem, 1vw, 1.5rem);

    animation: bounce 1.5s infinite;
}

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


.ohero, .ehero {
  width:100vw;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 5.5rem;
  padding-bottom: 1rem;

  line-height: 1.5;
}

.ehero{
  background: var(--color2);
  border-top: 1px solid var(--section-muted-border);
  border-bottom: 1px solid var(--section-muted-border);
}

.ehero-title, .ohero-title {
  text-align: center;
}

h1.ehero-title-text, h1.ohero-title-text{
  background-image: linear-gradient(to top, transparent, var(--text-primary));
  color: transparent;
  background-clip: text;
  opacity: 0.3;
  z-index: 0;

  margin-bottom: 1rem;
  line-height: 1.33;
  font-size: clamp(2.5rem, 3.25vw, 3rem);
  font-weight: 800;
}

h2.ehero-title-text, h2.ohero-title-text {
  z-index: 1;
  margin-bottom: 1rem;
  line-height: 1.33;
  font-weight: 700;
  transform: translateY(-2.5rem);

  color: var(--text-primary);
  font-size: clamp(2.5rem, 3.25vw, 3rem);
}

.ehero-content, .ohero-content {
    width: 100%;
    margin-inline-start: auto;
    margin-inline-end: auto;
    max-width: 1024px;
    padding-inline-start: 2rem;
    padding-inline-end: 2rem;

    @media screen and (min-width: 650px) {
            max-width: 75rem;
    }
}

.ehero-text, .ohero-text {
  display: block;
  line-height: 2;
  color: var(--text-primary);
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  text-align: justify;
}