/* ----------------- ABOUT SECTION ----------------- */
.about-section {
  min-height: 90vh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: 4rem 2rem;            /* default padding */
  flex-wrap: wrap;               /* allow wrapping on smaller screens */
}

/* INITIAL (hidden/off‐screen) STATE */
.about-line-1,
.about-subtitle,
.about-title,
.about-text,
.about-cta,
.about-img,
.about-line-2 {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transform: translateY(20px);   /* text starts 20px down */
}

p.about-text {
  font-size: 1.6em;
  max-width: 600px;
  line-height: 1.5;
}

/* image starts off to the right */
.about-img {
  opacity: 0;
  transform: translateX(100%) rotate(0deg);
  border-radius: 25px;
  transform-origin: center;
  transition: transform 0.8s ease-out 1s, opacity 0.8s ease-out 1s;
  border: 15px solid #fff;
  max-width: 500px;
  width: 100%;
  margin-left: 2rem;             /* spacing from text */
}

/* IN-VIEW STATE ANIMATIONS */
.about-section.in-view .about-line-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.about-section.in-view .about-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.about-section.in-view .about-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}
.about-section.in-view .about-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}
.about-section.in-view .about-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}
.about-section.in-view .about-line-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}
.about-section.in-view .about-img {
  opacity: 1;
  transform: translateX(0) rotate(2.5deg);
}

/* ----------------- BUTTON STYLE ----------------- */
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  border: 2px solid #fff;
  background-color: transparent;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.about-btn:hover {
  background-color: #fff;
  color: #a6160e;
}
.about-btn .arrow-icon {
  width: 1.25rem;
  height: auto;
  transition: transform 0.3s ease;
}
.about-btn:hover .arrow-icon {
  transform: translateX(5px);
}

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

/* Tablet (≤ 991px) */
@media (max-width: 991px) {
  .about-section {
    padding: 3rem 1.5rem;
  }
  p.about-text {
    font-size: 1.4em;
  }
  .about-img {
    border-width: 12px;
    max-width: 400px;
    margin-left: 1.5rem;
  }
}

/* Mobile Large (≤ 767px) */
@media (max-width: 767px) {
  .about-section {
    flex-direction: column;      /* stack text & image */
    padding: 2.5rem 1rem;
  }
  .about-line-1,
  .about-subtitle,
  .about-title,
  .about-text,
  .about-cta,
  .about-line-2 {
    text-align: center;
  }
  p.about-text {
    font-size: 1.3em;
    margin: 1rem auto;
  }
  .about-img {
    margin: 2rem auto 0;
    width: 90%;
    max-width: 350px;
    border-width: 10px;
  }
  .about-btn {
    margin: 1.5rem auto 0;      /* center the CTA button */
  }
}

/* Mobile Small (≤ 575px) */
@media (max-width: 575px) {
  .about-section {
    padding: 2rem 0.75rem;
  }
  p.about-text {
    font-size: 1.2em;
  }
  .about-img {
    display: none;              /* hide image entirely */
  }
  .about-btn {
    margin: 1.5rem auto 0;      /* keep button centered */
    width: auto;                /* let it size to its content */
    max-width: 280px;
    justify-content: center;
  }
}
