/* ==========================================================================
   Homepage Styles
   ========================================================================== */

/* Hero Section
   ========================================================================== */
.hero {
  min-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  overflow-x: hidden;
}

.intro {
  margin-top: -4rem;
}

.intro h1 {
  margin: 0 0 5px 0;
  font-size: 2.5rem;
}

.intro .subtitle {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

.intro .social-links {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

.intro .social-links a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Scroll Arrow
   ========================================================================== */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  border: none;
  text-decoration: none;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
  display: block;
  min-width: 2rem;
  min-height: 2rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Posts Section
   ========================================================================== */
.posts-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  scroll-margin-top: 4rem;
}

.posts-heading a {
  color: inherit;
  text-decoration: none;
  border: none;
}

.posts-heading a:hover {
  background: none;
  color: var(--color-primary);
}

/* Tools Sidebar
   ========================================================================== */
.tools-sidebar {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 50;
}

.tool-pill {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--color-bg-dark);
  text-align: right;
  font-size: 1rem;
  line-height: 1;
}

/* Mobile Styles
   ========================================================================== */
@media screen and (max-width: 768px) {
  .tools-sidebar {
    position: absolute;
    top: auto;
    bottom: 10rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 2rem);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .tools-sidebar .posts-heading {
    width: 100%;
  }

  .tool-pill {
    text-decoration: none;
  }
}
