/* --- Power Description Section --- */  
.power-description {
  position: relative;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;     /* Centers horizontally */
  justify-content: flex-start; /* Aligns at top vertically */
  text-align: center;
  padding: 50px 20px;
  background-image: url("../image/Bg-power-flex.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  gap: 25px;
  overflow: hidden;
}


/* --- Overlay for opacity --- */
.power-description::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top, right, bottom, left: 0; */
  /*background-color: rgba(255, 255, 255, 0.25); /* 25% white overlay → makes bg appear 75% visible */
  z-index: 0;
}

/* --- Make sure content stays above overlay --- */
/* .power-description > * {
  position: relative;
  z-index: 1;
} */

/* --- Text Container --- */
.flex-text {
  max-width: 800px;
}

.flex-text p {
  font-size: 1.5em;
  line-height: 1.8;
  color: #f5f7fa; /* base text color */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.flex-text strong {
  color: #ffd54f; /* highlight keywords */
}

.flex-text em {
  color: #00e5ff; /* optional secondary accent */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .power-description {
    padding: 30px 15px;
    gap: 20px;
  }

  .flex-image img {
    max-width: 100%;
  }

  .flex-text p {
    font-size: 1em;
    line-height: 1.6;
  }
}

.text-center {
  margin-top: 50px;
   margin-bottom: 20px;
}
/* --- Horizontal Section Layout --- */
.section {
  display: flex;
  align-items: center;
  /* border: 1px solid black; */
  justify-content: center;
  gap: 40px;
  height: 80vh;
  padding: 50px 20px;
  background: linear-gradient(to right, #b2deef, #ffffff, #b2deef);
  /* margin: 40px 0; */
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
  transition: all 0.4s ease;
}

/* --- Video Container --- */
.video-container {
  position: relative;
  flex: 1 1 55%;
  border: 3px solid #000;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

/* --- Ensure both video & thumbnail (poster) fill container --- */
.video-container video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;       /* ✅ ensures thumbnail & video fill without distortion */
  object-position: center; /* ✅ centers thumbnail/video properly */
  border-radius: 16px;
  background-color: #000;
  transition: transform 0.3s ease;
}

.video-container:hover video {
  transform: scale(1.02);
}


/* --- Play Button --- */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5em;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 10px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.play-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

/* --- Description --- */
.description {
  flex: 1 1 40%;
 background: linear-gradient(to right, #b2deef, #eaf9ff);
    /* border: 1px solid black; */
    height: 100%  ;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  color: #333;
  font-size: 1.1em;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease;
}
.description h1 {
  color: #5daace;
  font-size: 1.8em;
  margin-bottom: 10px;
}

/* --- Title and Image --- */
.title-with-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}
.title-with-image h1 {
  font-size: 1.8em;
  text-transform: uppercase;
  color: #094830;
}
.title-with-image h1::after {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background-color: #00c6ff;
  margin: 8px auto 0;
  border-radius: 2px;
}
.title-with-image img.section-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* --- Animation --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {
  .section {
    flex-direction: column;
    gap: 25px;
  }
  .description {
    width: 90%;
    text-align: center;
  }
  .title-with-image {
    flex-direction: column;
    align-items: center;
  }
  .title-with-image img.section-image {
    width: 80px;
    height: 80px;
  }
}
