/* Home Page Specific Styles */

.header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hero-section {
  position: relative;
  /* Background moved to .hero-background to avoid moving content on scroll */
  background: none;
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

/* Parallax background layer for hero */
.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ec4899, #a855f7);
  z-index: 1;
  will-change: transform;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* keep content above parallax background */
}

.hero-images-left,
.hero-images-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-image-container {
  width: 128px;
  height: 192px;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  animation: tilt 0.5s ease-in-out;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes tilt {
  from {
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    transform: rotate(0) scale(1);
  }
}

.hero-center {
  flex: 1;
  padding: 0 2rem;
}

.hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.6s ease-in-out;
}

.heart-icon {
  width: 64px;
  height: 64px;
  color: white;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-in-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInDelay 0.6s ease-in-out 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDelay {
  to {
    opacity: 1;
  }
}

.hero-button {
  background-color: white;
  color: #ec4899;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.hero-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.hero-button:active {
  transform: scale(0.95);
}

/* Templates Section */
.templates-section {
  background-color: #f9fafb;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: #1f2937;
}

.template-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.2s;
}

.template-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.template-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Features Section */
.feature-card {
  padding: 1.5rem;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: scale(1.05);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background-color: #fce7f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s;
}

.feature-card:hover .feature-icon {
  transform: rotate(360deg);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: #ec4899;
}

.feature-title {
  color: #1f2937;
}

.feature-description {
  color: #6b7280;
}

/* FAQ Section */
.faq-item {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.faq-item:hover {
  transform: scale(1.02);
}

.faq-question {
  display: flex;
  align-items: center;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: #ec4899;
  margin-right: 0.75rem;
}

.faq-answer {
  padding-left: 2rem;
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
}

.footer-icon {
  display: flex;
  justify-content: center;
}

.heart-icon-footer {
  width: 32px;
  height: 32px;
  color: #ec4899;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  color: white;
  transition: color 0.2s;
}

.social-link:hover {
  color: #ec4899;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ec4899;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-images-left,
  .hero-images-right {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Make the template preview grid 2 columns on mobile */
  .templates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
}
