/* Using the same color variables as footer */
:host {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #f9fafb;
  --text-color: #111827;
  --muted-text-color: #6b7280;
  --border-color: #e5e7eb;
}

.hero-section {
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.promo-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  font-weight: 500;
}

.heading {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.subheading {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted-text-color);
  margin-bottom: 2rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.primary-btn:hover {
  background-color: var(--primary-hover);
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.outline-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.arrow-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.outline-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Background Elements */
.background-elements {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-blob-1 {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70%;
  height: 80%;
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.bg-blob-2 {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

/* Book Display */
.book-display {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 300px;
  opacity: 0.6;
  display: block;
}

.book-container {
  position: relative;
  width: 100%;
  height: 280px;
}

.book {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 200px;
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
}

.book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-1 {
  transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 2;
  animation-delay: 0.2s;
}

.book-2 {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 1;
  animation-delay: 0s;
}

.book-3 {
  transform: translate(-50%, -50%) rotate(3deg);
  z-index: 3;
  animation-delay: 0.4s;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translate(-50%, -53%) rotate(var(--rotation));
  }
  50% {
    transform: translate(-50%, -47%) rotate(var(--rotation));
  }
  100% {
    transform: translate(-50%, -53%) rotate(var(--rotation));
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

.animate-fade-in:nth-child(1) {
  animation-delay: 0s;
}
.animate-fade-in:nth-child(2) {
  animation-delay: 0.1s;
}
.animate-fade-in:nth-child(3) {
  animation-delay: 0.2s;
}
.animate-fade-in:nth-child(4) {
  animation-delay: 0.3s;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.book-1 {
  --rotation: -3deg;
}
.book-2 {
  --rotation: 0deg;
}
.book-3 {
  --rotation: 3deg;
}

/* Media Queries */
@media (min-width: 480px) {
  .hero-section {
    padding: 7rem 0 6rem;
  }

  .book-display {
    top: 90%;
    max-width: 340px;
  }

  .book {
    width: 180px;
    height: 240px;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding: 10rem 0 7rem;
  }

  .hero-content {
    text-align: left;
    margin: 0;
  }

  .button-group {
    flex-direction: row;
    justify-content: flex-start;
  }

  .book-display {
    top: 75%;
    right: 0;
    left: auto;
    transform: translateY(-50%);
    max-width: 350px;
    opacity: 0.8;
  }

  .book {
    width: 180px;
    height: 250px;
  }
}

@media (min-width: 992px) {
  .hero-section {
    padding: 12rem 0 8rem;
  }

  .book-display {
    top: 50%;
    right: 5%;
    max-width: 380px;
    opacity: 1;
  }

  .book-container {
    height: 350px;
  }

  .book {
    width: 200px;
    height: 280px;
  }
}

@media (min-width: 1156px) {
  .book-display {
    max-width: 400px;
  }

  .book-container {
    height: 400px;
  }

  .book {
    width: 220px;
    height: 300px;
  }
}
