/* ==========================================================================
   SECTION 6: ABOUT AD ASTRA
   Aesthetic: Spray-Painted Red Burnt Card on Grunge Screen Backdrop
   ========================================================================== */

.about-aa-section {
  position: relative;
  /* background-color: #9C6F6F; */
  min-height: 860px;
  padding: 6.5rem 1.5rem 7.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  border-bottom: 4px solid var(--c-black);
}

/* Background Texture: aboutAA-bg.webp with screen blend mode on #9C6F6F */
.about-bg-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

/* Corner & Edge Stickers with Screen Blend & SPU-Style Jitter */
.about-sticker {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.92;
  will-change: transform;
}

/* Jitter Keyframes from SPU Associates Section */
@keyframes spu-jitter-star-left {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(-0.8px, 0.6px) rotate(-0.7deg);
  }

  40% {
    transform: translate(0.9px, -0.6px) rotate(0.6deg);
  }

  60% {
    transform: translate(-0.6px, -0.8px) rotate(-0.5deg);
  }

  80% {
    transform: translate(0.7px, 0.6px) rotate(0.6deg);
  }
}

@keyframes spu-jitter-star-top-right {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(0.7px, -0.8px) rotate(0.7deg);
  }

  40% {
    transform: translate(-0.8px, 0.6px) rotate(-0.6deg);
  }

  60% {
    transform: translate(0.6px, 0.8px) rotate(0.5deg);
  }

  80% {
    transform: translate(-0.7px, -0.6px) rotate(-0.6deg);
  }
}

@keyframes spu-jitter-star-outline {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(-0.9px, -0.5px) rotate(-0.5deg);
  }

  40% {
    transform: translate(0.7px, 0.8px) rotate(0.4deg);
  }

  60% {
    transform: translate(-0.6px, 0.7px) rotate(-0.4deg);
  }

  80% {
    transform: translate(0.8px, -0.6px) rotate(0.5deg);
  }
}

@keyframes spu-jitter-dark-burst {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(-0.8px, 0.7px) rotate(0.6deg);
  }

  40% {
    transform: translate(0.7px, -0.6px) rotate(-0.5deg);
  }

  60% {
    transform: translate(-0.6px, -0.8px) rotate(0.4deg);
  }

  80% {
    transform: translate(0.8px, 0.6px) rotate(-0.5deg);
  }
}

.about-sticker-top-left {
  top: -2px;
  left: -2px;
  width: clamp(140px, 17vw, 260px);
  height: auto;
  animation: spu-jitter-dark-burst 1.45s ease-in-out infinite;
}

.about-sticker-top-right {
  top: 2%;
  right: 4%;
  width: clamp(140px, 18vw, 270px);
  height: auto;
  animation: spu-jitter-star-top-right 1.35s ease-in-out infinite;
}

.about-sticker-mid-left {
  top: 40%;
  left: -10px;
  width: clamp(160px, 22vw, 320px);
  height: auto;
  animation: spu-jitter-star-left 1.25s ease-in-out infinite;
}

.about-sticker-mid-right {
  top: 36%;
  right: 1%;
  width: clamp(110px, 14vw, 210px);
  height: auto;
  animation: spu-jitter-star-outline 1.55s ease-in-out infinite;
}

/* Center Red Burnt Card Container */
.about-card-wrapper {
  position: relative;
  width: clamp(340px, 70vw, 980px);
  max-width: 1160px;
  margin: 0 auto clamp(0.75rem, 1.4vw, 1.5rem);
  z-index: 3;
  container: about-card / inline-size;
  touch-action: pan-y;
  background-image: url('../../assets/images/aboutAA-slider.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  aspect-ratio: 1286 / 858;
  padding: clamp(3.8rem, 8.5cqw, 6rem) clamp(2.5rem, 8cqw, 6.5rem) clamp(2.2rem, 6.5cqw, 4.8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  box-sizing: border-box;
}

/* Title Badge: Mint Green Tape SVG (Big & Bold) */
.about-title-wrap {
  width: 100%;
  max-width: clamp(360px, 70cqw, 520px);
  margin: 0 auto clamp(0.8rem, 2cqw, 1.75rem);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.about-title-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.about-title-img:hover {
  transform: scale(1.02);
}

/* Content Slides: All slides share a single grid cell, so the card never bounces between slides */
.about-slides-container {
  width: 100%;
  height: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  flex-grow: 0;
}

.about-slide-item {
  grid-area: 1 / 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(6px);
}

.about-slide-item.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.about-text-p {
  font-family: var(--f-inter), -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.75rem, 2.3cqw, 1.05rem);
  font-weight: 500;
  line-height: 1.55;
  color: #FFFFFF;
  text-align: center;
  margin: 0 auto clamp(0.35rem, 1cqw, 0.65rem);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  max-width: 760px;
  text-wrap: pretty;
}

.about-slide-item p:last-child {
  margin-bottom: 0;
}

.about-pub-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.15rem, 0.5cqw, 0.35rem);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.about-pub-list p {
  font-family: var(--f-inter), -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.75rem, 2.3cqw, 1.05rem);
  font-weight: 500;
  line-height: 1.55;
  color: #FFFFFF;
  text-align: center;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  text-wrap: pretty;
}

/* Container query for narrow card widths */
@container about-card (max-width: 520px) {
  .about-title-wrap {
    max-width: clamp(190px, 48cqw, 250px);
    margin: 0 auto clamp(0.3rem, 1.2cqw, 0.55rem);
  }

  .about-text-p {
    font-size: clamp(0.66rem, 2.5cqw, 0.74rem);
    line-height: 1.32;
    margin: 0 auto clamp(0.18rem, 0.8cqw, 0.32rem);
    max-width: 100%;
  }

  .about-pub-list {
    gap: 0.15rem;
    max-width: 100%;
  }

  .about-pub-list p {
    font-size: clamp(0.66rem, 2.5cqw, 0.74rem);
    line-height: 1.3;
    margin: 0;
  }
}

@container about-card (max-width: 360px) {
  .about-title-wrap {
    max-width: 180px;
    margin-bottom: 0.25rem;
  }

  .about-text-p {
    font-size: 0.62rem;
    line-height: 1.28;
    margin-bottom: 0.18rem;
  }

  .about-pub-list {
    gap: 0.1rem;
  }

  .about-pub-list p {
    font-size: 0.62rem;
    line-height: 1.25;
  }
}

/* Navigation Controls (Prev / Next Buttons - Closer Together) */
.about-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 1.6vw, 1.5rem);
  z-index: 4;
  position: relative;
}

.about-nav-btn {
  flex: 0 0 auto;
  width: clamp(44px, 4vw, 62px);
  height: clamp(44px, 4vw, 62px);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.about-nav-btn:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.about-nav-btn:active {
  transform: scale(0.94);
}

.about-nav-btn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive Breakpoints & Device-Specific Assets */

/* Tablet Portrait (601px to 992px) - Using Desktop Slider Asset */
@media (max-width: 992px) and (min-width: 601px) {
  .about-aa-section {
    padding: 3.5rem 1rem 4.5rem;
    min-height: auto;
  }

  .about-card-wrapper {
    background-image: url('../../assets/images/aboutAA-slider.webp');
    width: min(94%, 860px);
    max-width: 860px;
    aspect-ratio: 1286 / 858;
    padding: clamp(3.2rem, 8cqw, 5rem) clamp(2rem, 8cqw, 5rem) clamp(2rem, 6.5cqw, 4rem);
    margin-bottom: 1.2rem;
  }

  .about-nav-controls {
    gap: 1rem;
  }

  .about-nav-btn {
    width: clamp(44px, 5vw, 56px);
    height: clamp(44px, 5vw, 56px);
  }

  .about-sticker-top-left {
    width: 140px;
  }

  .about-sticker-top-right {
    width: 160px;
    right: 2%;
  }

  .about-sticker-mid-left {
    width: 160px;
  }

  .about-sticker-mid-right {
    width: 110px;
  }
}

/* Mobile Screens (<= 600px) */
@media (max-width: 600px) {
  .about-aa-section {
    padding: 2.25rem 0.5rem 2.75rem;
    min-height: auto;
  }

  .about-card-wrapper {
    background-image: url('../../assets/images/aboutAA-sliderMobile.webp');
    width: 100%;
    max-width: clamp(288px, 86vw, 460px);
    aspect-ratio: 390 / 580;
    padding: clamp(2.2rem, 11cqw, 3.2rem) clamp(1.4rem, 14cqw, 2.5rem) clamp(4.5rem, 24cqw, 6.5rem);
    margin-bottom: 0.85rem;
    justify-content: flex-start;
  }

  .about-nav-controls {
    gap: 0.75rem;
  }

  .about-nav-btn {
    width: clamp(44px, 12vw, 56px);
    height: clamp(44px, 12vw, 56px);
  }

  .about-sticker-top-left {
    width: 95px;
  }

  .about-sticker-top-right {
    width: 105px;
    right: 1%;
  }

  .about-sticker-mid-left {
    width: 105px;
    opacity: 0.6;
  }

  .about-sticker-mid-right {
    width: 75px;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-sticker {
    animation: none;
  }
}