/**
 * home.css - Styles specific to the home page
 */

body.home-page .page-content {
  text-align: center;
  max-width: 100%;
  padding: 20px;
}

h1 {
  font-size: 4rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
  z-index: 1;
  color: #2f2f2f;
}

p {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
  z-index: 1;
  color: #444;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  animation: fadeInUp 1s ease-out forwards, pulse 4s ease-in-out infinite;
  animation-delay: 0.9s;
  opacity: 0;
  z-index: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.btn:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  background-color: var(--secondary-color);
}

.btn:active {
  background-color: var(--secondary-dark);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: shine 2.5s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  z-index: 1;
}

@media (max-width: 600px) {
  body.home-page .page-content {
    padding: 10px;
    max-height: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  h1 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    width: 100%;
  }

  p {
    font-size: 0.95rem;
    margin-bottom: 3rem;
    padding: 0 10px;
    width: 100%;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1rem;
    margin-bottom: 20px;
  }
}
