/* ==========================================================================
   Landing Page
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px; /* nav height */
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.hero__title {
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

/* Hero geometric background */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.hero__bg::before {
  width: 600px;
  height: 600px;
  background: var(--color-gradient-end);
  top: -200px;
  right: -100px;
}

.hero__bg::after {
  width: 500px;
  height: 500px;
  background: var(--color-gradient-start);
  bottom: -150px;
  left: -100px;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
  background-size:
    100px 100px,
    100px 100px,
    20px 20px,
    20px 20px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero__shapes {
  position: absolute;
  inset: 0;
}

.hero__shapes::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  top: 15%;
  left: 8%;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: var(--radius-md);
  transform: rotate(25deg);
}

.hero__shapes::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 10%;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 50%;
}

/* ---------- About ---------- */

.about__text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 680px;
  line-height: var(--leading-normal);
}

.about__text strong {
  color: var(--color-text-primary);
}

/* ---------- Projects ---------- */

.projects .card {
  display: flex;
  flex-direction: column;
}

.projects .card__description {
  flex: 1;
}

.card__stats {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Landing responsive ---------- */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-block: var(--space-5xl) var(--space-4xl);
  }

  .hero__shapes::before {
    width: 180px;
    height: 180px;
    left: -40px;
  }

  .hero__shapes::after {
    width: 120px;
    height: 120px;
    right: -20px;
  }

}

@media (max-width: 480px) {
  .hero__subtitle {
    font-size: var(--text-base);
  }
}
