/* ===================================================
   ABOUT.CSS — About Us Page
   E25 Batch — UoP English Club, Faculty of Engineering
   =================================================== */

/* ─── About Hero ─────────────────────────────────── */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 4.5rem) 2rem 5rem;
  background: var(--gradient-hero);
  isolation: isolate;
}

[data-theme="dark"] .about-hero {
  background: var(--bg-primary);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin: 1.5rem 0 1.25rem;
}

.about-hero-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.emoji-inline {
  -webkit-text-fill-color: initial !important;
  background: none !important;
  display: inline-block;
}

.about-hero-tagline {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.about-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Drifting emoji ambience — quiet, slow, decorative */
.emoji-drift {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.emoji-drift span {
  position: absolute;
  bottom: -10%;
  font-size: 1.4rem;
  opacity: 0;
  animation: driftUp linear infinite;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

@keyframes driftUp {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.55;
  }
  90% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(-115vh) translateX(var(--drift-x, 30px)) rotate(20deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emoji-drift span {
    animation: none;
    display: none;
  }
}

/* ─── Group Photo Showcase ───────────────────────── */
.photo-showcase-section {
  position: relative;
}

.photo-frame-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.big-photo-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: none;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  background: var(--gradient-pink);
}

.photo-zoom-hint {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.55);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.big-photo-frame:hover .photo-zoom-hint,
.big-photo-frame:focus-visible .photo-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Lightbox ────────────────────────────────────── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 8, 9, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lightboxFade 0.25s ease;
}

.photo-lightbox[hidden] {
  display: none;
}

@keyframes lightboxFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-stage {
  width: min(92vw, 1400px);
  height: min(80vh, 1000px);
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.lightbox-stage.is-zoomed {
  cursor: grab;
}

.lightbox-stage.is-panning {
  cursor: grabbing;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.lightbox-hint {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-family: var(--font-ui);
}

/* ─── Our Journey ─────────────────────────────────── */
.journey-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.journey-body {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.journey-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin: 0 auto;
}

.journey-emoji-cluster {
  position: relative;
  width: 100%;
  height: 100%;
}

.j-emoji {
  position: absolute;
  font-size: 2.4rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12));
  animation: emojiFloat 6s ease-in-out infinite;
}

.j-1 { top: 6%;  left: 12%; animation-delay: 0s; }
.j-2 { top: 2%;  left: 58%; animation-delay: .8s; font-size: 2.9rem; }
.j-3 { top: 40%; left: 4%;  animation-delay: 1.6s; }
.j-4 { top: 46%; left: 62%; animation-delay: .4s; font-size: 3.2rem; }
.j-5 { top: 74%; left: 22%; animation-delay: 2s; }
.j-6 { top: 70%; left: 68%; animation-delay: 1.2s; font-size: 2.6rem; }

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-6deg); }
}

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

/* ─── What We Do ──────────────────────────────────── */
.what-we-do-section {
  background: var(--bg-secondary);
}

.do-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 880px;
  margin: 0 auto;
  padding: 2.75rem;
  border-radius: 24px;
  position: relative;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(214, 51, 132, 0.06));
  border: 1px solid rgba(201, 168, 76, 0.2);
  overflow: hidden;
}

.do-card-number {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  color: rgba(201, 168, 76, 0.12);
  line-height: 1;
  pointer-events: none;
}

.do-card-icon {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.2);
}

.do-card-body {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 0.5rem;
}

/* ─── What We Improve ─────────────────────────────── */
.improve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.improve-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.improve-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.improve-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.improve-icon.gold-bg { background: rgba(201, 168, 76, 0.14); }
.improve-icon.pink-bg { background: rgba(214, 51, 132, 0.12); }
.improve-icon.maroon-bg { background: rgba(123, 29, 46, 0.12); }

.improve-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

/* ─── Our Goal ────────────────────────────────────── */
.goal-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.goal-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-maroon);
  opacity: 0.94;
  z-index: -1;
}

.goal-content .section-eyebrow {
  color: var(--gold-light);
}

.goal-content .section-title {
  color: #fff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.goal-quote {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.6;
  color: #fdf6e8;
  position: relative;
  padding: 0 1.5rem;
}

.quote-mark {
  font-size: 2.5rem;
  color: var(--gold-light);
  vertical-align: -0.5rem;
  font-family: Georgia, serif;
  margin-right: 0.15rem;
}

.quote-mark-end {
  margin-left: 0.15rem;
  margin-right: 0;
}

/* ─── Closing Section ─────────────────────────────── */
.closing-section {
  text-align: center;
}

.closing-content {
  max-width: 680px;
}

.closing-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.closing-signoff {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.closing-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.closing-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.heart-burst-btn {
  position: relative;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: var(--gradient-pink);
  box-shadow: 0 8px 28px rgba(214, 51, 132, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

.heart-burst-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 40px rgba(214, 51, 132, 0.45);
}

.heart-burst-btn span {
  display: inline-block;
}

/* Flying hearts spawned by JS */
.flying-heart {
  position: fixed;
  z-index: 1200;
  pointer-events: none;
  font-size: 1.3rem;
  animation: heartFly 1.4s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes heartFly {
  0% {
    transform: translate(0, 0) scale(0.6) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--heart-x, 0px), -180px) scale(1.15) rotate(var(--heart-r, 15deg));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flying-heart { animation: heartFadeOnly 0.6s ease-out forwards; }
}

@keyframes heartFadeOnly {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .journey-visual { order: -1; }
  .improve-grid { grid-template-columns: repeat(2, 1fr); }
  .do-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .improve-grid { grid-template-columns: 1fr; }
  .about-hero { padding: calc(var(--nav-height) + 2.5rem) 1.25rem 3.5rem; }
  .lightbox-stage { height: min(70vh, 700px); }
}
