@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.hero {
  background: url('/images/Hero\ bg.png') center center/cover no-repeat;
  color: white;
  padding: 10rem 2rem;
  text-align: center;
  position: relative;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(15, 30, 61, 0.7),
    rgba(15, 30, 61, 0.4)
  ); /* smoother gradient overlay */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  animation: fadeInUp 1s ease-in-out;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); /* responsive typography */
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
  color: #e0e0e0;
}

.consult-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
  background-color: transparent;
  transition: color 0.4s ease;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.12);
  user-select: none;
}

.consult-button i {
  color: white;
  font-size: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.consult-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  background-color: white;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.consult-button:hover::before {
  transform: scaleX(1);
}

.consult-button:hover {
  color: #1e3a8a;
}

.consult-button:hover i {
  transform: scale(1.15);
  color: #1e3a8a;
}


/* Entrance animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 1.5rem;
  }

  .hero .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

