.hero {
  position: relative;
}

.hero-bg {
  width: 100%;
  height: 70vh;
  position: relative;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}

.hero-right-text {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  text-align: right;
  padding-right: 20px;
  width: auto;
}



.heading-text-h1 {
  font-size: 66px !important;
}

@media (max-width: 768px) {
  .hero-bg {
    height: 33vh !important;
  }

  .heading-text-h1 {
    font-size: 30px !important;
  }

  .heading-text-h2 {
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  .hero-bg {
    height: 24vh !important;
  }

  .heading-text-h1 {
    font-size: 22px !important;
  }

  .heading-text-h2 {
    font-size: 16px !important;
  }
}


/* Profile Card Hover Effects */
.profile-card-hover {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

/* Center image and maintain equal spacing */
.profile-card-hover img {
  display: block;
  margin: 0 auto;
  height: 460px;
  width: 100% !important;
  object-fit: cover;
  border-radius: 12px;
}

/* Add consistent spacing for overlay */
.profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  /* ✅ even spacing around content */
  box-sizing: border-box;
}

/* Hover effects */
.profile-card-hover:hover {
  transform: translateY(-5px);
}

.profile-card-hover:hover .profile-overlay {
  opacity: 1;
}

.profile-content {
  transform: translateY(50px);
  transition: transform 0.4s ease;
}

.profile-card-hover:hover .profile-content {
  transform: translateY(0);
}

/* Typography */
.profile-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
}

.profile-content p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Animation on page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-card-hover {
  animation: fadeInUp 0.6s ease forwards;
}

.profile-card-hover:nth-child(1) {
  animation-delay: 0.1s;
}

.profile-card-hover:nth-child(2) {
  animation-delay: 0.3s;
}

.profile-card-hover:nth-child(3) {
  animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-card-hover img {
    width: 100%;
    height: auto;
  }

  .profile-content h2 {
    font-size: 1.3rem;
  }

  .profile-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .profile-card-hover {
    height: auto !important;
  }
}