/* ======================
   HERO SLIDER
   ====================== */
.hero-slider {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}

.parallax-bg {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, #064579, #021e36, #000);
  animation: parallaxMove 25s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes parallaxMove {
  from { transform: translate(-10%, -10%) scale(1.1); }
  to   { transform: translate(-30%, -30%) scale(1.2); }
}

.slider-container {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  align-items: center;
  gap: 40px;
  animation: fadeSlide 1s ease forwards;
}

.slide.active { display: grid; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Text animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}
.fade-up.delay1 { animation-delay: 0.3s; }
.fade-up.delay2 { animation-delay: 0.6s; }
.fade-up.delay3 { animation-delay: 0.9s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Image fade */
.fade-in {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeIn 1s ease forwards 0.5s;
}
@keyframes fadeIn {
  to { opacity: 1; transform: scale(1); }
}

/* Text */
.slide-text {
  color: #fff;
  padding: 20px;
  margin-left: 60px;
}

.slide-text h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 25px; letter-spacing: 1px; }
.slide-text h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 20px; line-height: 1.5; }
.slide-text p  { font-size: 1.05rem; line-height: 1.7; margin-bottom: 30px; color: #e0e0e0; }

.buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.buttons a {
  text-decoration: none;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-light { background: #fff; color: #000; }
.btn-dark  { background: #111; color: #fff; }
.buttons a:hover { transform: translateY(-3px) scale(1.05); }

/* Image */
.slide-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide-image img {
  height: 650px;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  object-fit: cover;
}

/* Floating card */
.floating-card {
  position: absolute;
  bottom: 15%;
  left: 5%;
  background: rgba(20,20,20,0.9);
  padding: 18px;
  border-radius: 10px;
  width: 300px;
  color: #fff;
  box-shadow: 0 6px 25px rgba(0,0,0,0.5);
  transform: translateY(30px);
  opacity: 0;
  animation: cardFade 1.2s ease forwards 1s;
}
@keyframes cardFade { to { opacity: 1; transform: translateY(0); } }
.floating-card h3 { background: #fff; color: #000; padding: 6px; margin-bottom: 12px; text-align: center; border-radius: 6px; font-size: 1.2rem; }
.floating-card p  { font-size: 0.9rem; line-height: 1.5; }

/* Nav Arrows */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.hero-slider:hover .nav-btn { opacity: 0.9; pointer-events: all; }
.nav-btn:hover { color: #00f7ff; transform: translateY(-50%) scale(1.2); }
.prev { left: 10px; }
.next { right: 10px; }

/* Pagination dots */
.pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.pagination span {
  width: 12px; height: 12px; background: #bbb; border-radius: 50%; display: inline-block;
  cursor: pointer; transition: all 0.3s ease;
}
.pagination span.active { background: #00f7ff; transform: scale(1.2); }

/* Progress bar */
.progress-bar { position: absolute; bottom: 0; left: 0; height: 4px; width: 0%; background: #00f7ff; animation: progress 7s linear infinite; }
@keyframes progress { from { width: 0%; } to { width: 100%; } }


/* ======================
   OPPORTUNITIES CARDS
   ====================== */
.opportunities-container { display: flex; flex-wrap: wrap; width: 100%; }
.opportunity-card { position: relative; flex: 1 1 33%; min-height: 50vh; overflow: hidden; cursor: pointer; }
.opportunity-card .bg { position: absolute; width: 100%; height: 100%; object-fit: cover; top: 0; left: 0; z-index: 1; }
.overlay { position: absolute; inset: 0; background-color: rgba(0,0,0,0.6); z-index: 2; display: flex; justify-content: center; align-items: center; padding: 20px; text-align: center; transition: background-color 0.3s ease; }
.overlay:hover { background-color: rgba(0,0,0,0.42); }
.overlay .content { color: #fff; z-index: 3; }
.overlay h2 { font-size: 1.8rem; margin-bottom: 10px; }
.overlay p  { font-size: 1rem; }
.read-more { color: #00aced; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 10px; }
.read-more:hover { text-decoration: underline; }

/* FULLSCREEN OVERLAY */
.fullscreen-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 9999; animation: fadeIn 0.3s ease; }
.fullscreen-overlay.active { display: flex; }
.overlay-inner { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; padding: 20px; }
.overlay-inner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.overlay-text { position: relative; max-width: 700px; text-align: center; color: #fff; z-index: 2; }
.overlay-text h2 { font-size: 2rem; margin-bottom: 10px; }
.overlay-text p  { font-size: 1rem; }
.more-content { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease; }
.more-content.active { max-height: 300px; opacity: 1; margin-top: 15px; }
.expand-btn { background: none; border: 1px solid #fff; color: #fff; padding: 8px 16px; margin-top: 15px; cursor: pointer; }
.expand-btn:hover { background: rgba(255,255,255,0.1); }
.close-btn { position: absolute; top: 25px; right: 30px; font-size: 40px; background: none; border: none; color: #fff; cursor: pointer; z-index: 3; }

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 1200px) {
  .slide-image img { max-width: 350px; height: auto; }
}
@media (max-width: 992px) {
  .slide { grid-template-columns: 1fr; text-align: center; }
  .slide-text { margin-left: 0; }
  .floating-card { position: static; margin-top: 15px; width: auto; animation-delay: 0.6s; }
  .slide-image img { max-width: 80%; height: auto; }
  .opportunity-card { flex: 1 1 48%; min-height: 40vh; }
  .overlay-text h2 { font-size: 1.6rem; }
  .overlay-text p, .expand-btn { font-size: 0.9rem; }
}
@media (max-width: 600px) {
  .slide-text h1 { font-size: 2rem; }
  .slide-text h2 { font-size: 1.1rem; }
  .slide-text p { font-size: 0.95rem; }
  .buttons { flex-direction: column; gap: 10px; }
  .slide-image img { max-width: 100%; height: 250px; }
  .opportunity-card { flex: 1 1 100%; min-height: 30vh; }
  .overlay-text h2 { font-size: 1.4rem; }
  .overlay-text p, .expand-btn { font-size: 0.85rem; }
  .slide-image { display: flex; flex-direction: column; }
  .hero-slider {height: fit-content;}

}


.animated-image {
  transition: opacity 0.8s ease-in-out;
  opacity: 1;
}

.animated-image.fade-out {
  opacity: 0;
}



/* Cards container */
.opportunities-container {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px 0 0;
  width: 100%;
  min-height: 100vh;
}

/* Each card */
.opportunity-card {
  position: relative;
  flex: 1 1 33.33%;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}

/* Card background image */
.opportunity-card .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Card overlay layer */
.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.overlay:hover{
  background-color: rgba(0, 0, 0, 0.422);
  transition: background-color 0.3s ease;
}

/* Overlay content */
.overlay .content {
  color: #fff;
  z-index: 3;
}

.overlay h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 16px;
}

.read-more {
  color: #00aced;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  margin-top: 10px;
}

.read-more:hover {
  text-decoration: underline;
}

/* ======================
   FULLSCREEN OVERLAY
   ====================== */

.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.fullscreen-overlay.active {
  display: flex;
}

/* Inner content with background image */
.overlay-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Optional dark overlay on the image */
.overlay-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

/* Overlay visible text */
.overlay-text {
  position: relative;
  max-width: 700px;
  text-align: center;
  color: white;
  z-index: 2;
}

.overlay-text h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.overlay-text p {
  font-size: 18px;
}

/* Hidden extended content */
.more-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.more-content.active {
  max-height: 300px;
  opacity: 1;
  margin-top: 15px;
}

/* Button to reveal content */
.expand-btn {
  background: none;
  border: 1px solid #fff;
  color: white;
  padding: 8px 16px;
  margin-top: 15px;
  cursor: pointer;
  font-size: 16px;
}

.expand-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 40px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 3;
}

/* ======================
   ANIMATIONS
   ====================== */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 992px) {
  .opportunity-card {
    flex: 1 1 50%;
    height: 60vh;
  }

  .overlay-text h2 {
    font-size: 26px;
  }

  .overlay-text p,
  .expand-btn {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .opportunity-card {
    flex: 1 1 100%;
    height: 50vh;
  }

  .overlay-text h2 {
    font-size: 22px;
  }

  .overlay-text p,
  .expand-btn {
    font-size: 14px;
  }
}
