/*-----------------------------------*\
 * #about.css
 * Styles specific to the About Us page
 * NOTE: This file assumes assets/css/style.css is linked first for base styles and variables.
\*-----------------------------------*/

/*-----------------------------------*\
 * #PAGE HERO (Reuses .hero styling)
\*-----------------------------------*/
.page-hero {
  /* This ensures the title banner is high enough below the header */
  min-height: 400px;
  padding-top: 150px;
}

.page-hero .hero-title {
  font-size: var(--fs-2); /* Slightly smaller than main hero title */
}

/*-----------------------------------*\
 * #ABOUT INTRO SECTION
\*-----------------------------------*/

.about-intro {
  padding-block: var(--section-padding);
  background-color: var(--white);
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.about-text-content {
  max-width: 100%;
}

.about-text-content .section-title {
  margin-bottom: 20px;
}

.about-text-content p {
  color: var(--black-coral);
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: var(--fs-5);
}

.about-text-content strong {
    color: var(--gunmetal);
    font-weight: var(--fw-700);
}

.about-image-content {
  border-radius: var(--radius-15);
  overflow: hidden;
  box-shadow: 0 5px 25px hsla(0, 0%, 0%, 0.1); /* Using a similar shadow to var(--shadow-1) */
  max-width: 100%;
}

.about-image-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*-----------------------------------*\
 * #OUR VISION BANNER
\*-----------------------------------*/

.vision-banner {
  background-image: url('../images/floral.jpg'); /* Using a floral image for opulence */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: hsla(0, 0%, 0%, 0.6);
  background-blend-mode: overlay;
  padding-block: 100px;
  text-align: center;
}

.vision-content .section-title,
.vision-content .section-text {
  color: var(--white);
  text-shadow: 0 4px 10px hsla(0, 0%, 0%, 0.6);
}

.vision-content .section-title {
  font-size: var(--fs-1); 
  margin-bottom: 20px;
  animation: fadeInDown 1.2s ease-out;
}

.vision-content .section-text {
  max-width: 800px;
  margin-inline: auto;
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}


/*-----------------------------------*\
 * #SERVICES SECTION (User provided starter + responsiveness)
\*-----------------------------------*/

.services-section {
  background-color: var(--cultured);
  margin-top: 50px;
  padding-block: var(--section-padding);
  text-align: center;
}

.services-section .section-title {
    margin-bottom: 40px;
}

.service-card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--radius-15);
  box-shadow: 0 5px 25px hsla(0, 0%, 0%, 0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.scroll-animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card.scroll-animate:nth-child(2) {
  transition-delay: 0.15s;
}

.service-card .icon-box {
  color: var(--united-nations-blue);
  font-size: 50px;
  margin-bottom: 20px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.service-card .h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--black-coral);
  font-size: var(--fs-5);
  line-height: 1.6;
}


/*-----------------------------------*\
 * #TIMELINE SECTION (User provided starter + responsiveness)
\*-----------------------------------*/

.timeline-section {
  background-color: var(--white);
  margin-top: 50px;
  padding-block: var(--section-padding);
  text-align: center;
}

.timeline-section .section-subtitle {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 15px;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--gainsboro);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: 0;
}

.timeline-item {
  padding: 10px 30px;
  position: relative;
  background-color: inherit;
  width: 50%;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-item.right {
  left: 50%;
  transform: translateX(20px);
}

.timeline-item.scroll-animate,
.timeline-item.right.scroll-animate {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -13px;
  background-color: var(--united-nations-blue);
  border: 3px solid var(--white);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::after {
  left: -13px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--cultured);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 5px 25px hsla(0, 0%, 0%, 0.1);
  text-align: left;
}

.timeline-content h3 {
  color: var(--onyx);
  margin-bottom: 10px;
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
}

.timeline-content p {
  color: var(--black-coral);
  font-size: var(--fs-5);
}

/*-----------------------------------*\
 * #MEDIA QUERIES (Responsiveness)
\*-----------------------------------*/

/* Large devices (Desktop) */
@media (min-width: 992px) {

  /* ABOUT INTRO */
  .about-content-wrapper {
    flex-direction: row;
    gap: 50px;
  }

  .about-text-content,
  .about-image-content {
    width: 50%;
  }

  .about-image-content img {
    height: 100%;
  }
}

/* Small devices (Mobile) */
@media (max-width: 767px) {
  
  /* TIMELINE RESPONSIVENESS */
  .timeline-container::after {
    left: 20px; /* Move vertical line to the left */
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px; /* Make space for the icon/line */
    padding-right: 15px;
  }

  /* Reset positioning for mobile timeline items */
  .timeline-item,
  .timeline-item.right {
    left: 0;
    transform: translateX(0); 
  }

  /* Reposition dots to the left line */
  .timeline-item::after,
  .timeline-item.right::after {
    left: 10px; /* Position dot on the new line */
    right: auto;
  }
}