/* ===== HERO2 SECTION ===== */
.dr1042hero2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 10%;
  background: linear-gradient(135deg, #f0f8ff, #ffffff);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

/* ===== HERO IMAGE ===== */
.dr1042hero2 .hero-image {
  flex: 1;
  text-align: center;
}

.dr1042hero2 .hero-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: translateX(50px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

/* ===== HERO CONTENT ===== */
.dr1042hero2 .hero-content {
  flex: 1;
  min-width: 280px;
  transform: translateX(50px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.dr1042hero2 h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1a73e8;
  margin: 0;
  background: linear-gradient(135deg, #ff4b2b, #ff416c, #00c6ff, #8e2de2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dr1042hero2 .tagline {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0b4f6c;
  margin: 10px 0;
}

.dr1042hero2 .intro {
  font-size: 1rem;
  color: #333;
  margin: 12px 0;
  line-height: 1.5;
}

/* ===== HERO BUTTONS ===== */
.dr1042hero2 .hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-btn {
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hero-btn.hire {
  background: linear-gradient(145deg, #1a73e8, #0b4f6c);
  color: #fff;
}

.hero-btn.hire:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.hero-btn.apply {
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: #fff;
}

.hero-btn.apply:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* ===== SCROLL ANIMATION ACTIVE ===== */
.dr1042hero2.active .hero-content,
.dr1042hero2.active .hero-image {
  transform: translateX(0);
  opacity: 1;
}

/* ===== FADE-IN RIGHT-TO-LEFT ANIMATION ===== */
@keyframes fadeInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.dr1042hero2.active .hero-content,
.dr1042hero2.active .hero-image img {
  animation: fadeInRight 0.7s ease forwards;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .dr1042hero2 {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
    gap: 25px;
  }

  .dr1042hero2 h1 {
    font-size: 2.4rem;
  }

  .dr1042hero2 .tagline {
    font-size: 1.2rem;
  }

  .dr1042hero2 .intro {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-btn {
    min-width: 140px;
    text-align: center;
  }

  /* Make hero image larger on mobile */
  .dr1042hero2 .hero-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .dr1042hero2 .hero-image img {
    width: 100%;
    height: auto;
    transform: translateX(0);
    opacity: 1;
  }

  .dr1042hero2 .hero-content {
    transform: translateX(0);
    opacity: 1;
  }
}