/* HERO SECTION */
.hero {
  position: relative;
  background: url("../images/hero-image.jpg") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Overlay Gradient */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 239, 193, 0.95) 30%,
    rgba(255, 252, 234, 0.7) 55%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 100%
  );
  display: flex;
  align-items: center;
}

/* CONTENT WRAPPER */
.hero-content {
  max-width: 650px;
  padding: 0 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInUp 1s ease forwards;
}

/* TEXT */
.hero-content h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555;
}

.hero-content h1,
.hero-content h2 {
  white-space: nowrap;
  font-size: clamp(20px, 4vw, 48px);
}


/* BUTTON */
.btn {
  width: fit-content;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 8px 20px rgba(93, 79, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(93, 79, 232, 0.4);
}

/* ANIMATION */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE HERO SECTION ========== */

/* Tablet Styles */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 90%;
    padding: 0 2rem;
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .hero-content h2 {
    font-size: clamp(1rem, 3vw, 1.25rem);
  }
  
  .hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
    background-position: center right;
  }
  
  .hero-gradient {
    background: linear-gradient(
      180deg,
      rgba(250, 239, 193, 0.95) 0%,
      rgba(255, 252, 234, 0.85) 50%,
      rgba(255, 255, 255, 0.7) 100%
    );
  }
  
  .hero-content {
    max-width: 100%;
    padding: 0 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    white-space: normal;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .hero-content h2 {
    font-size: clamp(0.875rem, 4vw, 1.125rem);
    margin-bottom: 0.75rem;
  }
  
  .hero-content p {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 90%;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 44px;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
    padding: 1.5rem 0;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: clamp(1.5rem, 9vw, 2rem);
    margin-bottom: 0.75rem;
  }
  
  .hero-content h2 {
    font-size: clamp(0.8125rem, 4.5vw, 1rem);
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    font-size: clamp(0.8125rem, 4vw, 0.9375rem);
    margin-bottom: 1.5rem;
    max-width: 95%;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    max-width: 260px;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content {
    padding: 0 2rem;
  }
  
  .hero-content h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .hero-content p {
    margin-bottom: 1.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-image: url("../images/hero-image.jpg");
  }
}

/* Improved animation for mobile */
@media (max-width: 768px) {
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero-content {
    animation-duration: 0.8s;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }
  
  .btn {
    transition: none;
  }
}

/* Dark mode adjustments for hero */
@media (prefers-color-scheme: dark) {
  .hero-gradient {
    background: linear-gradient(
      90deg,
      rgba(28, 71, 45, 0.9) 30%,
      rgba(25, 63, 2, 0.7) 55%,
      rgba(0, 0, 0, 0.3) 75%,
      transparent 100%
    );
  }
}
