.about-hero {
  height: 100vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('marble/bgabout.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.about-hero-content {
  color: white;
  padding: 30px;
  max-width: 900px;
  margin: auto;
}

.about-hero-title {
  font-size: 52px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  animation: fadeInDown 1s ease-out forwards;
}

.about-hero-subtitle {
  font-size: 20px;
  opacity: 0.85;
  animation: fadeInUp 1.5s ease-out forwards;
}

.scroll-icon-wrapper {
  margin-top: 40px;
  animation: bounce 2s infinite;
}

.scroll-icon {
  font-size: 28px;
  color: #fff;
  opacity: 0.7;
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 5vw;
  gap: 60px;
  flex-wrap: wrap;
  background-color: #fafafa;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 36px;
  color: #ba2323;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  max-width: 600px;
}

.about-image-container {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image-container img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.6s ease;
}

.about-image-container img.fade-zoom-image:hover {
  transform: scale(1.03);
}

/* Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .about-flex-container {
    flex-direction: column;
    padding: 60px 6vw;
    gap: 40px;
  }

  .about-text h2 {
    font-size: 30px;
  }

  .about-text p {
    font-size: 15px;
  }

  .about-image-container img {
    max-width: 90%;
  }
}

.carousel-infra {
  background: #fff;
  padding: 80px 5vw;
}

.infra-heading {
  font-size: 36px;
  text-align: center;
  color: #b51d1d;
  font-family: 'Playfair Display', serif;
  margin-bottom: 40px;
}

.infra-tabs {
  text-align: center;
  margin-bottom: 30px;
}

.infra-tab {
  font-size: 17px;
  padding: 12px 20px;
  margin: 0 10px;
  border: none;
  background: #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s;
}

.infra-tab:hover {
  background: #ddd;
}

.infra-tab.active {
  background: #b51d1d;
  color: #fff;
  transform: scale(1.05);
}

.infra-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.infra-carousel {
  position: relative;
}

.infra-slide {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.infra-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.infra-flex {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.infra-video iframe {
  width: 100%;
  max-width: 500px;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.infra-text {
  flex: 1;
  min-width: 300px;
}

.infra-text h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #222;
}

.infra-text p {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
}

.infra-controls {
  text-align: center;
  margin-top: 30px;
}

.infra-controls button {
  font-size: 24px;
  padding: 8px 20px;
  background: #b51d1d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 10px;
}

.infra-slide {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.infra-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}


@media (max-width: 768px) {
  .infra-flex {
    flex-direction: column;
  }

  .infra-video iframe {
    height: 220px;
  }

  .infra-tab {
    display: inline-block;
    margin-bottom: 10px;
  }
}
/* Responsive adjustments for smaller screens */

@media (max-width: 480px) {
  .about-hero-title {
    font-size: 32px;
  }

  .about-hero-subtitle {
    font-size: 16px;
  }

  .about-hero-content {
    padding: 20px;
  }

  .about-text h2 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 14px;
  }

  .about-flex-container {
    padding: 40px 5vw;
    gap: 30px;
  }

  .about-image-container img {
    max-width: 100%;
  }

  .infra-heading {
    font-size: 28px;
  }

  .infra-tab {
    font-size: 15px;
    padding: 10px 14px;
  }

  .infra-video iframe {
    height: 180px;
  }

  .infra-text h3 {
    font-size: 22px;
  }

  .infra-text p {
    font-size: 15px;
  }

  .infra-controls button {
    font-size: 20px;
    padding: 6px 14px;
  }
}

/* Add any additional styles here */
/* Mobile Optimization for .infra-slide with Image */
@media (max-width: 768px) {
  .infra-slide .infra-flex {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0 4vw;
  }

  .infra-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }

  .infra-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .infra-text p {
    font-size: 14.5px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .infra-text h3 {
    font-size: 18px;
  }

  .infra-text p {
    font-size: 14px;
    padding: 0 2vw;
  }
}
