/* About Page Styles */

/* Enable scrolling for main container */
body:has(.about-page) #main-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: auto;
}

.about-page {
  min-height: 100vh;
  background: var(--lm-page-bg-color);
}

.about-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.about-hero {
  padding: 60px 0 40px;
}

.about-hero .about-container {
  max-width: 900px;
}

.about-hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-hero-text {
  flex: 1;
}

.about-hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.about-hero-subtitle {
  font-size: 1.5rem;
  color: var(--lm-text-muted-color);
  margin: 0 0 28px;
  line-height: 1.5;
}

.about-hero-illustration {
  flex-shrink: 0;
  width: 140px;
}

.about-hero-svg {
  width: 100%;
  height: auto;
}

/* Bottle float animation */
@keyframes bottleFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-2px) rotate(1deg); }
}

.about-bottle {
  animation: bottleFloat 3s ease-in-out infinite;
  transform-origin: 38px 30px;
}

/* Sun pulse */
@keyframes aboutSunPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.about-sun {
  animation: aboutSunPulse 4s ease-in-out infinite;
  transform-origin: 76px 8px;
}

/* Wave animations */
@keyframes aboutWave1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

@keyframes aboutWave2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}

.about-wave-1 { animation: aboutWave1 2s ease-in-out infinite; }
.about-wave-2 { animation: aboutWave2 2.5s ease-in-out infinite; }

@media (max-width: 700px) {
  .about-hero {
    padding-top: 80px;
  }

  .about-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .about-hero-title {
    font-size: 2.8rem;
  }

  .about-hero-illustration {
    width: 110px;
    order: -1;
  }
}

/* Sections */
.about-section {
  padding: 60px 0 70px;
}

.about-note-section {
  position: relative;
  overflow: hidden;
}

.about-note-decor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 55px;
  opacity: 0.1;
  color: var(--lm-text-color);
}

.about-note-decor-left {
  left: 5%;
}

.about-note-decor-right {
  right: 5%;
}

.about-decor-boat {
  width: 70px;
  height: auto;
  transform: rotate(-8deg);
}

.about-decor-bottle {
  width: 42px;
  height: auto;
  transform: translateX(20px) rotate(12deg);
}

.about-decor-chest {
  width: 60px;
  height: auto;
  transform: translateX(-15px) rotate(-5deg);
}

.about-decor-waves {
  width: 70px;
  height: auto;
  transform: translateX(25px) rotate(3deg);
}

.about-decor-lighthouse {
  width: 45px;
  height: auto;
  transform: rotate(6deg);
}

.about-decor-anchor {
  width: 40px;
  height: auto;
  transform: translateX(-18px) rotate(-10deg);
}

/* Zig-zag on right side */
.about-note-decor-right .about-decor-boat {
  transform: translateX(15px) rotate(10deg);
}

.about-note-decor-right .about-decor-waves {
  transform: translateX(-25px) rotate(-4deg);
}

.about-note-decor-right .about-decor-lighthouse {
  transform: rotate(-7deg);
}

.about-note-decor-right .about-decor-anchor {
  transform: translateX(-18px) rotate(8deg);
}

@media (max-width: 900px) {
  .about-note-decor {
    display: none;
  }
}

.about-section-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 24px;
  text-align: center;
}

/* Prose */
.about-prose {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--lm-text-color);
}

.about-prose p {
  margin: 0 0 16px;
}

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

.about-letter {
  max-width: 600px;
  margin: 0 auto;
}

.about-signature {
  margin-top: 24px;
  font-style: italic;
}

/* Dark Mode */
body[data-theme="dark"] .about-page {
  background: var(--dm-page-bg-color);
}

body[data-theme="dark"] .about-hero-subtitle {
  color: var(--dm-text-muted-color);
}

body[data-theme="dark"] .about-note-decor {
  color: var(--dm-text-color);
}

body[data-theme="dark"] .about-prose {
  color: var(--dm-text-color);
}
