/* ===========================
   HERO SECTION CSS
   =========================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 800px;
  position: relative;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 50%, rgba(13, 13, 13, 1) 100%);
}

.hero__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: 0 var(--spacing-4xl);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  max-width: 824px;
  font-size: var(--font-size-h1);
  line-height: 1;
  color: var(--color-text-white);
  margin: 0;
}

.hero__title--bold {
  font-weight: 700;
  line-height: 1.2;
}

.hero__actions {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-sm);
}

.hero__animation {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__animation spline-viewer,
.hero__animation .spline-mobile-fallback {
  width: 100%;
  height: 100%;
}

/* Mobile performance optimization */
.spline-mobile-fallback {
  display: none;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spline-mobile-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Show/hide based on device type */
@media (max-width: 768px) {
  .spline-desktop {
    display: none !important;
  }

  .spline-mobile-fallback {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .spline-desktop {
    display: block;
  }

  .spline-mobile-fallback {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 700px;
  }

  .hero__title {
    max-width: 100%;
  }

  .hero__animation {
    height: 700px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 600px;
    padding: var(--spacing-4xl) var(--spacing-lg);
    /*background: linear-gradient(180deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 1) 100%),*/
    /*            url('/assets/hero.png') center/cover;*/
  }

  .hero__title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero__actions .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
    padding: var(--spacing-3xl) var(--spacing-md);
  }

  .hero__container {
    padding: 0;
  }

  .hero__actions .button {
    min-width: 170px;
    width: auto;
  }

  .hero__title {
    font-size: clamp(28px, 7vw, 40px);
  }
}
