/* ==========================================================
   LOISARO
   Hero
========================================================== */

.hero {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 100vh;

  overflow: hidden;

  isolation: isolate;
}

/* =========================================
   Hero Background
========================================= */

.hero-background {
  position: absolute;

  inset: 0;

  background-image: url("../img/hero.png");

  background-size: cover;

  background-position: center center;

  background-repeat: no-repeat;

  transform: scale(1.04);

  z-index: -3;
}

/* =========================================
   Dark Overlay
========================================= */

.hero-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.12) 0%,
      rgba(10, 10, 10, 0.26) 35%,
      rgba(10, 10, 10, 0.55) 100%
    ),
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.03),
      transparent 60%
    );

  z-index: -2;
}

/* =========================================
   Hero Content
========================================= */

.hero-content {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  width: 100%;

  padding-top: 140px;

  padding-bottom: 90px;
}

/* =========================================
   Logo
========================================= */

.hero-logo {
  width: 560px;

  max-width: 90%;

  margin-bottom: 60px;

  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45));

  animation: logoFade 1.4s ease;
}

/* =========================================
   Heading
========================================= */

.hero h1 {
  color: #ffffff;

  font-size: clamp(3.2rem, 5vw, 5.3rem);

  font-weight: 400;

  letter-spacing: -0.04em;

  line-height: 1.05;

  margin-bottom: 30px;

  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

  animation: heroFadeUp 0.9s ease 0.25s both;
}

/* =========================================
   Text
========================================= */

.hero p {
  max-width: 760px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 1.22rem;

  font-weight: 300;

  line-height: 1.85;

  margin-bottom: 60px;

  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

  animation: heroFadeUp 0.9s ease 0.45s both;
}

/* =========================================
   CTA
========================================= */

.hero-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 300px;

  height: 64px;

  padding: 0 42px;

  border-radius: 999px;

  background: linear-gradient(180deg, #d4b36d, #c8a15a);

  color: white;

  font-size: 1rem;

  font-weight: 500;

  letter-spacing: 0.02em;

  transition: all 0.35s ease;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);

  animation: heroFadeUp 0.9s ease 0.7s both;
}

.hero-button:hover {
  transform: translateY(-4px) scale(1.015);

  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.32),
    0 14px 32px rgba(200, 161, 90, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);

  filter: brightness(1.05);
}

/* =========================================
   Scroll Indicator
========================================= */

.scroll-indicator {
  position: absolute;

  left: 50%;

  bottom: 40px;

  transform: translateX(-47%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 14px;

  z-index: 20;

  animation: heroFadeUp 1s ease 1.2s both;
}

.scroll-indicator span {
  color: rgba(255, 255, 255, 0.75);

  font-size: 0.82rem;

  font-weight: 500;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}

/* =========================================
   Mouse
========================================= */

.scroll-mouse {
  width: 30px;

  height: 50px;

  border: 2px solid rgba(255, 255, 255, 0.65);

  border-radius: 999px;

  display: flex;

  justify-content: center;

  padding-top: 8px;

  backdrop-filter: blur(4px);
}

.scroll-wheel {
  width: 4px;

  height: 10px;

  border-radius: 999px;

  background: white;

  animation: wheelMove 2s infinite;
}

/* =========================================
   Scroll Arrow
========================================= */

.scroll-arrow {
  width: 10px;

  height: 10px;

  border-right: 2px solid rgba(255, 255, 255, 0.75);

  border-bottom: 2px solid rgba(255, 255, 255, 0.75);

  transform: rotate(45deg);

  animation: arrowBounce 2s infinite;
}

/* =========================================
   Hero Decoration
========================================= */

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 20% 25%,

      rgba(255, 255, 255, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 80% 15%,

      rgba(255, 255, 255, 0.05),
      transparent 32%
    );

  z-index: -1;
}

/* =========================================
   Hero Background Animation
========================================= */

.hero-background {
  animation: heroZoom 18s ease-in-out infinite alternate;
}

/* =========================================
   Keyframes
========================================= */

@keyframes heroFadeUp {
  from {
    opacity: 0;

    transform: translateY(40px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes logoFade {
  from {
    opacity: 0;

    transform: scale(0.93);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.1);
  }
}

@keyframes wheelMove {
  0% {
    opacity: 0;

    transform: translateY(0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;

    transform: translateY(16px);
  }
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }

  50% {
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* =========================================
   Hero Glass Light
========================================= */

.hero::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0) 78%,
    rgba(255, 255, 255, 0.04) 100%
  );

  mix-blend-mode: soft-light;

  z-index: -1;
}

/* =========================================
   Content Width
========================================= */

.hero-content > * {
  max-width: 900px;
}

/* =========================================
   Better Button Interaction
========================================= */

.hero-button:active {
  transform: translateY(-1px) scale(0.985);
}

/* =========================================
   Prevent Image Overflow
========================================= */

.hero-background img {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;
}

/* =========================================
   Better Rendering
========================================= */

.hero,
.hero-background,
.hero-overlay {
  backface-visibility: hidden;

  -webkit-backface-visibility: hidden;

  transform-style: preserve-3d;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 1200px) {
  .hero-logo {
    width: 500px;
  }

  .hero h1 {
    font-size: clamp(3rem, 6vw, 4.8rem);
  }

  .hero p {
    max-width: 650px;

    font-size: 1.15rem;
  }
}

/* =========================================
   Tablet Portrait
========================================= */

@media (max-width: 992px) {
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 150px;

    padding-bottom: 80px;
  }

  .hero-logo {
    width: 430px;

    margin-bottom: 45px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero p {
    font-size: 1.08rem;

    line-height: 1.75;

    margin-bottom: 50px;
  }

  .hero-button {
    min-width: 280px;

    height: 60px;
  }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;

    padding-inline: 0;
  }

  .hero-content {
    padding-top: 135px;
    padding-bottom: 70px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-logo {
    width: 300px;

    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 2.5rem;

    line-height: 1.1;

    margin-bottom: 22px;
  }

  .hero p {
    font-size: 1rem;

    line-height: 1.7;

    margin-bottom: 42px;
  }

  .hero-button {
    width: 100%;

    max-width: 320px;

    min-width: unset;

    height: 58px;
  }

  .scroll-indicator {
    bottom: 40px;
  }
}

/* =========================================
   Small Phones
========================================= */

@media (max-width: 480px) {
  .hero-logo {
    width: 240px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}

/* =========================================
   Hero Bottom Fade
========================================= */

.hero-bottom-fade {
  position: absolute;

  left: 0;

  right: 0;

  bottom: 0;

  height: 180px;

  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(247, 245, 242, 0) 0%,
    rgba(247, 245, 242, 0.2) 40%,
    rgba(247, 245, 242, 0.55) 72%,
    var(--color-background) 100%
  );

  z-index: 5;
}

/* =========================================
   Vignette
========================================= */

.hero-vignette {
  position: absolute;

  inset: 0;

  pointer-events: none;

  background: radial-gradient(
    ellipse at center,

    transparent 48%,

    rgba(0, 0, 0, 0.08) 78%,

    rgba(0, 0, 0, 0.18) 100%
  );

  z-index: -1;
}

/* =========================================
   Better Image Rendering
========================================= */

.hero-background {
  image-rendering: auto;

  will-change: transform;
}

/* =========================================
   Large Screens
========================================= */

@media (min-width: 1800px) {
  .hero-logo {
    width: 680px;
  }

  .hero h1 {
    font-size: 6rem;
  }

  .hero p {
    font-size: 1.35rem;

    max-width: 840px;
  }

  .hero-button {
    height: 68px;

    min-width: 320px;

    font-size: 1.05rem;
  }
}

/* =========================================
   Ultra Wide
========================================= */

@media (min-width: 2200px) {
  .hero {
    min-height: 95vh;
  }
}

/* =========================================
   Reduce Motion
========================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;
  }
}

/* =========================================
   Selection
========================================= */

.hero ::selection {
  background: var(--color-gold);

  color: #fff;
}

/* =========================================
   Performance
========================================= */

.hero-background,
.hero-overlay,
.hero-content {
  contain: layout style paint;
}

/* =========================================
   End of Hero
========================================= */
