* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: "Georgia", serif;
 
}

/* OVERLAY */
.overlay {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  
}

/* ================= TEXT CONTENT ================= */
.content {
  position: absolute;
  top: 50%;
  left: 6%;                  /* 🔹 keep some gap from left edge */
  transform: translateY(-50%);
  max-width: 45%;             /* 🔹 keep text narrow to avoid touching image */
  color: #fff;
}

.content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.content p {
  font-size: 18px;
  line-height: 1.7;
  color: #e5e5e5;
  margin-bottom: 30px;
}

.content a {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #f6d58f, #d9a441);
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.content a:hover {
  transform: translateY(-2px);
}

/* ================= FOREGROUND IMAGES ================= */
.fade-img {
  position: absolute;
  top: 50%;
  right: 4%;                 /* 🔹 anchor right */
  transform: translateY(-50%) scale(0.95);
  width: min(60vw, 420px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-img.active {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ================= TABLET / LAPTOP ================= */
@media (max-width: 1024px) {
  .content {
    max-width: 42%;          /* keep text narrower */
    left: 5%;
  }
  .fade-img {
    right: 5%;
    width: min(50vw, 380px);
  }
}

@media (max-width: 768px) {
  .hero {
    height: 250svh;
  }

  .content {
    top: 55%;
    left: 5%;
    max-width: 55%;           /* text wider on mobile for readability */
  }

  .content h1 {
    font-size: 32px;
  }

  .content p {
    font-size: 15px;
  }

  .fade-img {
    top: 55%;
    right: 5%;
    width: 38vw;
    max-width: 200px;
  }
}
@media (max-width: 480px) {

  .hero {
    min-height: 180vh;        /* reduce extra bottom gap */
    height: auto;
    padding-bottom: 2px;   /* controlled spacing */
  }

  .overlay {
    height: 100%;
  }

  .content {
    position: absolute;
    top: 48%;               /* pull content upward */
    left: 4%;
    max-width: 56%;
  }

  .content h1 {
    font-size: 10px;
    margin-bottom: 1px;
  }

  .content p {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .content a {
    padding: 7px 12px;
    font-size: 10px;
  }

  .fade-img {
    top: 38%;               /* lift images slightly */
    right: 6%;
    width: 46vw;
    max-width: 140px;
  }
}
