/* Tabelo - Home Page Hero Section (Section 1) */

/* ===== Section Wrapper ===== */
.section-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* ===== Hero Container (pinned underlay) ===== */
.hero-container {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  will-change: opacity;
  /* No transition - instant response to scroll */
}

.hero-content {
  max-width: 800px;
  text-align: center;
  width: 100%;
}

/* Hero standalone (no content overlay) */
.hero-standalone {
  position: relative;
  min-height: 80vh;
  z-index: 1;
}

/* Content Overlay (scrolls over hero) */
.content-overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  background: transparent;
  will-change: transform;
  width: 100%;
}

/* ===== Hero Typography ===== */
.hero-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeInUp 0.6s ease-out;
}

.hero-headline {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-support {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-header {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.hero-subline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.hero-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* ===== Animation Container (Section 1 Lottie) ===== */
.animation-container {
  width: clamp(280px, 70vw, 500px);
  aspect-ratio: 9 / 16;
  position: relative;
  animation: fadeInScale 1s ease-out 0.4s backwards;
}

#lottie-animation {
  width: 100%;
  height: 100%;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  /* Mobile hero adjustments */
  .hero-subtitle {
    font-size: 0.8125rem;
  }

  .hero-support {
    font-size: 1rem;
  }

  .hero-header {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  /* Mobile spacing */
  .section-wrapper {
    min-height: 100svh; /* Use svh for better mobile viewport handling */
  }

  .hero-container {
    min-height: 100svh;
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .content-overlay {
    min-height: 100svh;
    padding: var(--spacing-xl) var(--spacing-md);
  }
}
