/* ===== ABOUT PAGE STYLES ===== */

/* Prevent horizontal scroll on mobile */
.about-page {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

.about-page * {
  max-width: 100%;
  box-sizing: border-box;
}

/* ===== ABOUT HERO (TEMPLE SECTION) ===== */
.about-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero__inner {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 163px;
  background: var(--color-black);
  overflow: hidden;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.about-hero__bamboo {
  position: absolute;
  height: 100%;
  bottom: 0;
  z-index: 2;
}

.about-hero__bamboo--left {
  left: 50px;
  bottom: 28px;
  transform: rotate(-15deg);
}

.about-hero__bamboo--right {
  right: 50px;
  bottom: 28px;
  transform: rotate(15deg) scaleX(-1);
}

.about-hero__temple {
  position: relative;
  bottom: -50px;
  z-index: 5;
  width: 100%;
  max-width: 1895px;
  margin: 0 auto;
}

.about-hero__temple img {
  width: 100%;
  height: auto;
}

.about-hero__text {
  position: absolute;
  top: 55%;
  left: 53%;
  transform: translate(-53%, -50%);
  text-align: center;
  z-index: 6;
}

.about-hero__title {
  font-family: var(--font-pixel);
  font-size: 72px;
  color: var(--color-white);
  line-height: 1.2;
  animation: titleColorFlicker 2s ease-in-out infinite;
}

/* Subtle color change animation for title - no glow */
@keyframes titleColorFlicker {

  0%,
  100% {
    color: #ffffff;
  }

  20% {
    color: #ffccff;
    /* Light pink */
  }

  40% {
    color: #ccffff;
    /* Light cyan */
  }

  60% {
    color: #ffffcc;
    /* Light yellow */
  }

  80% {
    color: #ccffcc;
    /* Light green */
  }
}

/* Scrolling text - BEHIND temple (z-index: 3) */
.about-hero__scrolling-text {
  position: absolute;
  white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: 48px;
  opacity: 0.6;
  z-index: 1;
  animation: scrollText 30s linear infinite;
  will-change: transform;
}

.about-hero__scrolling-text--1 {
  top: 22%;
  color: var(--color-lime);
  animation-delay: 0s;
}

.about-hero__scrolling-text--2 {
  top: 38%;
  color: var(--color-magenta);
  animation-direction: reverse;
}

.about-hero__scrolling-text--3 {
  top: 58%;
  color: var(--color-lime);
  animation-delay: -15s;
}

.about-hero__scrolling-text--4 {
  top: 74%;
  color: var(--color-magenta);
  animation-direction: reverse;
  animation-delay: -7s;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Animation for peony flower */
@keyframes peonyFloat {

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

  50% {
    transform: rotate(29deg) translateY(-10px);
  }
}

@keyframes peonyGrow {
  0% {
    transform: rotate(29deg) scale(0.8);
    opacity: 0;
  }

  100% {
    transform: rotate(29deg) scale(1);
    opacity: 1;
  }
}

.about-me__flower {
  animation: peonyGrow 1s ease-out forwards, peonyFloat 4s ease-in-out infinite 1s;
  transition: transform 0.3s ease;
}

.about-me__image-wrapper:hover .about-me__flower {
  transform: rotate(29deg) rotate(5deg);
}

/* ===== ABOUT ME SECTION ===== */
.about-me {
  min-height: 100vh;
  padding: 100px 74px;
  position: relative;
  background: var(--color-black);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* p5 background sketch */
#bg-canvas-about {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#bg-canvas-about canvas {
  display: block;
  opacity: 0.3;
}

.about-me__wrapper {
  max-width: 1920px;
  width: 100%;
  position: relative;
}

.about-me__container {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.about-me__image-wrapper {
  flex: 0 0 525px;
  position: relative;
}

/* Frame decorations at 4 corners of section */
.about-me__frame {
  position: absolute;
  width: 200px;
  height: 200px;
  z-index: 1;
  opacity: 0.9;
}

.about-me__frame--top-left {
  top: 50px;
  left: 20px;
}

.about-me__frame--top-right {
  top: 50px;
  right: 20px;
  transform: scaleX(-1);
}

.about-me__frame--bottom-left {
  bottom: 50px;
  left: 20px;
  transform: scaleY(-1);
}

.about-me__frame--bottom-right {
  bottom: 50px;
  right: 20px;
  transform: scale(-1);
}

.about-me__photo {
  position: relative;
  right: 40px;
  top: 100px;
  z-index: 10;
  border-radius: 50%;
  overflow: hidden;
  width: 525px;
  height: 536px;
}

.about-me__photo img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}

.about-me__flower {
  position: absolute;
  top: 20px;
  right: -20px !important;
  width: 245.4px;

  height: 374.4px;
  transform: rotate(29deg);
  aspect-ratio: 409/624;
  z-index: 7;
}

.about-me__content {
  flex: 1;
}

.about-me__label {
  color: #BAA5FF;
  font-family: Handjet;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding-bottom: 20px;
}

.about-me__name {
  padding-bottom: 20px;
  color: #FFF;
  font-family: Inter;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.about-me__bio {
  width: 722px;
  height: 139px;
  color: #FFF;
  font-family: Inter;
  font-size: 24px;
  font-style: italic;
  font-weight: 200;
  line-height: 1.4;
  padding-bottom: 20px;
}

.about-me__bio .iloveby {
  color: #FFF;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 200;
  line-height: 1.4;
  padding-bottom: 20px;
}

.about-me__tools {
  padding-top: 20px;
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.about-me__tool {
  width: 74px;
  height: 74px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background: #2d2d2d;
  padding: 10px;
}

.about-me__tool:hover {
  transform: scale(1.1);
}

.about-me__tool img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-me__covenant {
  margin-top: 50px;
  width: 722px;
  height: 229px;
}

.about-me__covenant-title {
  color: #BAA5FF;
  font-family: Handjet;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding-bottom: 20px;
}

.about-me__covenant-text {
  color: #FFF;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 200;
  line-height: 1.4;
  padding-bottom: 20px;
}

/* ===== CONTACT SECTION ===== */
.about-contact {
  min-height: 100vh;
  position: relative;
  padding: 163px 0 0;
  overflow: hidden;
}

.about-contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-contact__container {
  display: flex;
  justify-content: center;
  /* Center the card */
  gap: 60px;
  padding: 0 289px;
  position: relative;
  z-index: 2;
}

.about-contact__card {
  flex: 0 0 auto;
  max-width: 800px;
  background: linear-gradient(180deg, rgba(255, 200, 180, 0.95) 0%, rgba(255, 180, 170, 0.95) 100%);
  border-radius: 20px;
  padding: 50px 74px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-contact__title {
  color: #000;
  font-family: Handjet;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding-bottom: 15px;
}

.about-contact__subtitle {
  width: 722px;
  color: #000;
  font-family: Inter;
  font-size: 28px;
  font-style: italic;
  font-weight: 50;
  line-height: normal;
  padding-bottom: 15px;
}

.about-contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;

}

.about-contact__item {
  color: #000;
  font-family: Inter;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;

}


.about-contact__item strong {
  font-weight: 400;
}

.about-contact__item a {
  color: var(--color-purple);
  text-decoration: underline;
}

.about-contact__location {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-black);
}

.about-contact__dragon {
  position: relative;
  right: -900px;
  top: -150px;
  width: 50%;
  max-width: 1554px;
  z-index: 5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
  .about-me__container {
    flex-direction: column;
    align-items: center;
  }

  .about-me__image-wrapper {
    flex: none;
  }

  .about-contact__container {
    padding: 0 74px;
  }

  .about-contact__card {
    flex: 1;
  }
}

/* Tablet uses desktop layout */
@media (max-width: 1024px) and (min-width: 577px) {
  .about-hero {
    padding-top: 120px;
  }

  .about-me {
    padding: 80px 40px;
  }

  .about-contact {
    padding: 60px 40px;
  }
}

/* Mobile only */
@media (max-width: 576px) {

  /* Allow temple to overflow parent containers */
  .about-hero {
    overflow: hidden !important;
  }

  .about-hero__inner {
    overflow: hidden !important;
    /* Override desktop overflow:hidden */
  }

  .about-hero__title {
    font-size: 24px !important;
    padding: 0 15px !important;
    max-width: 200px !important;
  }

  .about-hero__temple img {
    width: 160% !important;
    max-width: none !important;
    height: auto !important;
  }

  .about-hero__temple {
    width: 200% !important;
    /* Increased from 350px */
    max-width: none !important;
    overflow-x: visible !important;
    margin-left: -30% !important;
    position: relative !important;
    left: 45px;
    display: flex !important;
    justify-content: center !important;
  }

  .about-hero__scrolling-text {
    font-size: 18px !important;
  }

  /* Hide bamboo on mobile */
  .about-hero__bamboo {
    display: none !important;
  }

  .about-me {
    padding: 40px 20px !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .about-me__container {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 30px !important;
  }

  .about-me__image-wrapper {
    flex: none !important;
    width: 200px !important;
    max-width: 200px !important;
    margin: 0 auto !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
  }

  .about-me__photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    right: auto !important;
    top: auto !important;
    position: relative !important;
  }

  .about-me__photo img {
    width: 100% !important;
    height: 100% !important;
  }

  .about-me__frame {
    display: none !important;
  }

  .about-me__flower {
    display: block !important;
    /* Show flower on mobile */
    width: 120px !important;
    height: auto !important;
    top: -20px !important;
    right: -30px !important;
  }

  .about-me__content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .about-me__label {
    font-size: 20px !important;
    text-align: center !important;
  }

  .about-me__name {
    font-size: 20px !important;
    text-align: center !important;
  }

  .about-me__bio {
    font-size: 14px !important;
    text-align: center !important;
    line-height: 1.6 !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
    position: relative !important;
    font-style: normal !important;
  }

  .about-me__bio .iloveby {
    font-size: 14px !important;
    text-align: center !important;
    line-height: 1.6 !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
    position: relative !important;
    font-style: italic !important;
  }

  .about-me__tools {
    justify-content: center !important;
    flex-wrap: wrap !important;
    position: relative !important;
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }

  .about-me__tool {
    width: 45px !important;
    height: 45px !important;
  }

  .about-me__covenant {
    text-align: center !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 20px !important;
    position: relative !important;
  }

  .about-me__covenant-title {
    font-size: 22px !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }

  .about-me__covenant-text {
    font-size: 14px !important;
    text-align: center !important;
    line-height: 1.6 !important;
  }

  .about-contact__container {
    padding: 0 20px !important;
    flex-direction: column !important;
  }

  .about-contact__card {
    padding: 30px !important;
  }

  .about-contact__title {
    font-size: 24px !important;
  }

  .about-contact__item {
    font-size: 14px !important;
    flex-direction: column !important;
    gap: 5px !important;
    word-break: break-word !important;
  }

  .about-contact__item a {
    word-break: break-all !important;
  }

  .about-contact__dragon {
    position: relative !important;
    top: 20px !important;
    width: 100% !important;
    right: 0 !important;
    margin-top: 40px !important;
  }
}