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

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centre the elements vertically */
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 64rem;
  width: 100%;
}

.avatar-wrapper {
  /* for the avatar badge*/
  position: relative;
  flex-shrink: 0;
}

.avatar-img-container {
  width: 12rem;
  height: 12rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 6px solid var(--surface-container-lowest);
  box-shadow: var(--shadow-float);
  transform: scale(0.95);
  transition: var(--transition-transform);
}

.avatar-img-container:hover {
  transform: scale(1);
}

.avatar-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: green;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% -24%;
  transform: translateX(7px) scale(1.2);
}

.hero-text {
  text-align: center;
}

.hero-text > * + * {
  /* skips the first child and adds to every child after it */
  margin-top: var(--space-xs);
}

.hero-title {
  font-size: var(--text-display);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  color: var(--on-background);
  line-height: var(--leading-none);
}

.hero-subtitle {
  font-size: var(--text-subtitle);
  font-weight: var(--weight-light);
  color: var(--on-surface-variant);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hero-cta {
  padding-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.btn-primary {
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-signature);
  color: var(--on-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-btn);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  transition: var(--transition-transform);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-0.25rem);
}

.btn-primary .material-symbols-outlined {
  font-size: var(--text-sm);
}

.btn-secondary {
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  border: 1px solid rgba(172, 179, 183, 0.239);
  color: var(--on-surface);
  border-radius: var(--radius-full);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-bold);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-bg);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--surface-container-low);
}

.scroll-indicator {
  position: absolute; /* offset itself based on its relative parent element */
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  opacity: 0.4;
}

.scroll-label {
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background-color: rgba(89, 96, 100, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--primary);
  animation: scroll-down 2s linear infinite;
}

@keyframes scroll-down {
  from {
    translate: 0 -2rem;
  }
  to {
    translate: 0 3rem;
  }
}
