/* ==========================================================================
   1. HERO SECTION - BASE LAYOUT
   ========================================================================== */
.section--blue {
  background-color: var(--color-primary);
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr 20px;
  grid-template-rows: 1fr;
  height: 100vh;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
  position: relative;
}

.hero-container-left {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
  padding-top: clamp(40px, 10vw, 120px);
}

.hero-container-center {
  align-self: end;
  position: relative;
}

.hero-container-right {
  align-self: center;
  position: absolute;
  right: 24px;
}

/* ==========================================================================
   2. TYPOGRAPHY & BUTTONS
   ========================================================================== */
.txt-hero {
  line-height: clamp(60px, 49px + 3.6vw, 100px);
  display: flex;
  flex-direction: column;
}

.hero-container-left span {
  font-family: var(--font-primary);
  font-size: clamp(32px, 27px + 1.4vw, 48px);
  color: var(--color-txt-primary);
  line-height: 1.5;
  padding-bottom: 16px;
  font-weight: var(--fw-regular);
}

h1 {
  font-family: var(--font-secondary);
  font-size: var(--fs-h1);
  color: var(--color-txt-primary);
  margin-block-start: 0;
  margin-block-end: 0;
  padding-bottom: 16px;
}

.get-in-touch {
  display: inline-block;
  width: 150px;
  border: 1px solid var(--color-txt-primary);
  border-radius: 100px;
  padding: 8px 16px;
  color: var(--color-txt-primary);
  font-size: 18px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.get-in-touch:hover {
  background-color: var(--color-bg-hover);
}

.heroBtn {
  color: var(--color-secondary);
}

/* ==========================================================================
   3. VISUAL ELEMENTS & ANIMATIONS
   ========================================================================== */
.author-img {
  height: clamp(350px, 80vh, 800px);
  position: relative;
  display: block;
}

.orange-wheel-hero {
  position: absolute;
  right: clamp(60px, 80px, 120px);
  top: 80px;
  height: clamp(100px, 20vw, 300px);
  width: clamp(100px, 20vw, 300px);
}

.scroll-down-img {
  position: relative;
  height: 144px;
  width: 144px;
}

.scroll-down-wheel {
  animation: rotateWheel 8s linear infinite;
}

.arrow-down {
  position: absolute;
  top: 39%;
  left: 41%;
  height: 32px;
}

.side-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   4. MEDIA QUERIES (DESKTOP & LAPTOP)
   ========================================================================== */
@media (min-height: 650px) and (max-height: 800px) and (min-width: 1200px) {
  .hero-container-left {
    padding-top: 80px;
  }
  .hero-container-left span {
    font-size: 32px;
  }
  h1 {
    font-size: 64px;
  }
  .orange-wheel-hero {
    height: 200px;
    width: 200px;
    right: 250px;
  }
}

@media (min-width: 900px) and (max-width: 1280px) and (min-height: 600px) and (max-height: 800px) and (orientation: landscape) {
  h1 {
    font-size: 40px;
  }
  .hero-container-left span {
    font-size: 24px;
  }
}

/* ==========================================================================
   5. MEDIA QUERIES (TABLET & MOBILE PORTRAIT)
   ========================================================================== */
@media (max-width: 850px) {
  .section-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }

  .hero-container-right {
    display: none;
  }
  .hero-container-left {
    padding-top: 100px;
    width: 100%;
  }
  .hero-container-center {
    align-self: center;
  }

  .author-img {
    height: clamp(250px, 50vh, 800px);
  }

  .orange-wheel-hero {
    left: 150px;
    height: 150px;
    width: 150px;
    top: 20px;
  }

  .scroll-down-img {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 50;
  }

  .scroll-down-wheel {
    border-radius: 50%;
    background-color: var(--color-primary);
  }
}

@media (max-width: 500px) {
  .hero-container-left {
    padding-top: 80px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .hero-container-left span {
    font-size: 1.5rem;
  }

  .scroll-down-img {
    height: 80px;
    width: 80px;
    left: 10px;
    bottom: 30px;
  }
  .scroll-down-wheel {
    height: 100px;
    width: 100px;
  }
  .arrow-down {
    height: 22px;
    left: 50%;
    top: 50%;
  }

  .orange-wheel-hero {
    left: 130px;
  }
}

@media (min-height: 900px) and (max-height: 1000px) and (max-width: 450px) {
  h1 {
    font-size: 3rem;
  }
  .hero-container-left {
    padding-top: 120px;
  }
}

@media (max-height: 660px) and (max-width: 450px) {
  .hero-container-left span {
    font-size: 1.3rem;
    padding-bottom: 8px;
  }
  h1 {
    font-size: 2rem;
    padding-bottom: 8px;
  }
  .orange-wheel-hero {
    height: 80px;
    width: 80px;
  }
}

/* ==========================================================================
   6. SPECIAL QUERIES (LANDSCAPE & LARGE TABLETS)
   ========================================================================== */

@media (min-width: 480px) and (max-width: 950px) and (max-height: 450px) and (orientation: landscape) {
  .section-content {
    height: auto !important;
    min-height: auto !important;
    grid-template-columns: 1fr;
  }
  .hero-container-left {
    padding-top: 50px;
  }
}

@media (min-width: 835px) and (max-width: 1024px) and (min-height: 1181px) and (max-height: 1366px) and (orientation: portrait) {
  .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
  .hero-container-left {
    align-self: flex-start;
  }
  .hero-container-right {
    display: none;
  }
  .author-img {
    height: 750px;
  }
}
