/* HERO SECTION STARTS */
/* hero must be relative so we can overlap onto next section */
/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  height: 620px; /* taller for strong visual impact */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -40px; /* lift section upwards */
}

.hero img.mainimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.8s ease, filter 0.8s ease;
  will-change: transform;
}

.hero:hover img.mainimg {
  transform: scale(1.03);
  filter: brightness(0.75);
}

.hero-text {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -40%) translateY(40px);
  animation: heroFadeIn 1.2s ease forwards;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-text p {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

/* ---------- Animation ---------- */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -40%) translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */

/* Tablets */
@media (max-width: 900px) {
  .hero {
    height: 500px;
    margin-top: -20px;
  }

  .hero-text {
    top: 45%;
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .hero {
    height: 600px;
    margin-top: -49px;
  }

  .hero-text {
    max-width: 90%;
    top: 42%;
    padding: 0 10px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero-text p {
    font-size: 1.3rem;
    line-height: 1.4;
    justify-content: center;
  }
}
/* HERO SECTION ENS */




/* section2 style sheet  */
/* 🌟 Modern Section 2 Styling */
.section2 {
  max-width: 1100px;
  margin: 80px auto;
  padding: 60px 30px;
  text-align: center;
  background: linear-gradient(135deg, #0f0f0f, #1e1e1e);
  color: #f5f5f5;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s ease forwards;
}

/* Subtle rotating glow background */
.section2::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 77, 77, 0.15), transparent 70%);
  animation: rotateBg 25s linear infinite;
  z-index: 0;
}

.section2 h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #ff4d4d, #ff9966);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeSlideDown 1.2s ease forwards;
}

/* Center paragraphs with max width for readability */
.section2 p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin: 20px auto;
  color: #e0e0e0;
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s ease forwards;
}

.section2 p:nth-of-type(1) {
  animation-delay: 0.4s;
}
.section2 p:nth-of-type(2) {
  animation-delay: 0.6s;
}
.section2 p:nth-of-type(3) {
  animation-delay: 0.8s;
}

/* ✨ Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 📱 Responsive styles */
@media (max-width: 768px) {
  .section2 {
    margin: 50px 15px;
    padding: 40px 20px;
  }

  .section2 h1 {
    font-size: 1.9rem;
  }

  .section2 p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section2 h1 {
    font-size: 1.6rem;
  }

  .section2 p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}





/* section3 style sheet */
/* 🌟 Section 3 Styling */
.section3 {
  max-width: 900px;
  margin: 80px auto;
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(135deg, #111, #1c1c1c);
  color: #f5f5f5;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s ease forwards;
}

.section3::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 77, 77, 0.1), transparent 70%);
  animation: rotateBg 25s linear infinite;
  z-index: 0;
}

.section3 h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #ff4d4d, #ff9966);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeSlideDown 1s ease forwards;
}

/* Timeline container */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 600px;
}

/* Timeline items */
.timeline-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 77, 77, 0.1);
}

/* Year */
.year {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6666;
  min-width: 65px;
  text-align: left;
}

/* Names */
.timeline-item p {
  margin: 0;
  font-size: 1rem;
  color: #e0e0e0;
  text-align: left;
  flex: 1;
}

.timeline-item .role {
  font-style: italic;
  color: #ff9966;
  font-weight: 500;
}

/* ✨ Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 📱 Responsive Styles */
@media (max-width: 768px) {
  .section3 {
    margin: 50px 15px;
    padding: 40px 15px;
  }

  .section3 h1 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
  }

  .year {
    min-width: auto;
    font-size: 1rem;
  }

  .timeline-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .section3 h1 {
    font-size: 1.7rem;
  }

  .timeline-item p {
    font-size: 0.9rem;
  }
}
