/* ===========================================
   HAVFUN — about.css
   6-screen app walkthrough page
   =========================================== */

/* ── PAGE WRAPPER ────────────────────────── */
.about-page {
  position: relative;
  z-index: 10;
}

/* ── SCREEN SECTIONS ─────────────────────── */
.about-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
}

.about-screen-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

/* ── PHONE MOCKUP ────────────────────────── */
.phone-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  /* Let the width be defined by the image naturally without background bulk */
  width: clamp(200px, 28vw, 300px);
  /* background, border, and heavy box-shadow removed to fit transparent PNG seamlessly */
  border-radius: 44px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}


/* Notch */
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 26px;
  background: #0a0a12;
  border-radius: 0 0 18px 18px;
  z-index: 3;
}

/* Screen image — drives mockup height naturally */
.phone-screen-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Screen placeholder until image provided */
.phone-screen-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(
    135deg,
    rgba(123,47,255,0.15) 0%,
    rgba(0,200,150,0.08) 100%
  );
}

/* Subtle glass reflection overlay */
.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 44px 0 0 44px;
}

/* ── TEXT COLUMN ─────────────────────────── */
.text-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.screen-number {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-1);
  opacity: 0.7;
}

.screen-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.screen-desc {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--accent-1);
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  border: 1px solid rgba(123, 47, 255, 0.4); /* subtle neon border */
  box-shadow: 
    0 6px 0 rgba(75, 17, 181, 1), /* 3D depth */
    0 8px 20px rgba(123, 47, 255, 0.4), /* Neon outer glow */
    inset 0 1px 1px rgba(255,255,255,0.25); /* inner highlight */
  transform: translateY(0);
  transition: transform 0.2s cubic-bezier(0.3, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.3, 1, 0.3, 1), border-color 0.2s;
}
.btn-next:hover {
  transform: translateY(-2px);
  border: 1px solid rgba(123, 47, 255, 0.8);
  box-shadow: 
    0 8px 0 rgba(75, 17, 181, 1), 
    0 12px 25px rgba(123, 47, 255, 0.5), /* stronger neon glow */
    inset 0 1px 2px rgba(255,255,255,0.3);
}
.btn-next:active {
  transform: translateY(6px) !important;
  border: 1px solid rgba(123, 47, 255, 0.4);
  box-shadow: 
    0 0px 0 rgba(75, 17, 181, 1), 
    0 2px 4px rgba(123, 47, 255, 0.3),
    0 0 10px rgba(123, 47, 255, 0.3),
    inset 0 3px 6px rgba(0,0,0,0.4) !important;
}
.btn-next .arrow {
  transition: transform 0.3s var(--transition-base);
}
.btn-next:hover .arrow { transform: translateX(4px); }

/* ── 3D BLACK BUTTONS (For Screen 1 & 6) ── */
.btn-next.btn-3d-black {
  background: linear-gradient(180deg, #2b2b35 0%, #0f0f15 100%);
  color: #fff;
  border: 1px solid rgba(123, 47, 255, 0.4); /* subtle neon border */
  box-shadow: 
    0 6px 0 #050508,
    0 8px 20px rgba(0,0,0,0.6),
    0 0 15px rgba(123, 47, 255, 0.25), /* light neon outer glow */
    inset 0 1px 1px rgba(255,255,255,0.15);
  transform: translateY(0);
  transition: transform 0.2s cubic-bezier(0.3, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.3, 1, 0.3, 1), border-color 0.2s;
}

.btn-next.btn-3d-black:hover {
  transform: translateY(-2px);
  border: 1px solid rgba(123, 47, 255, 0.8);
  box-shadow: 
    0 8px 0 #050508,
    0 12px 25px rgba(0,0,0,0.8),
    0 0 25px rgba(123, 47, 255, 0.5), /* brighter glow on hover */
    inset 0 1px 2px rgba(255,255,255,0.2);
  background: linear-gradient(180deg, #32323e 0%, #15151c 100%);
}

.btn-next.btn-3d-black:active {
  transform: translateY(6px) !important; /* overrides generic hover */
  border: 1px solid rgba(123, 47, 255, 0.4);
  box-shadow: 
    0 0px 0 #050508,
    0 2px 4px rgba(0,0,0,0.5),
    0 0 10px rgba(123, 47, 255, 0.4),
    inset 0 3px 6px rgba(0,0,0,0.8) !important;
}

/* ── INTRO SEQUENCE TEXT ─────────────────── */
.welcome-text-gaming {
  font-family: 'Rubik Mono One', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
  /* Dark purplish/reddish text shadow */
  text-shadow: 2px 2px 0px #8b0000, 
               4px 4px 0px #4b0082, 
               0 0 20px rgba(139, 0, 0, 0.4);
  position: relative;
}
.welcome-text-gaming span {
  display: block; /* stack vertically */
  position: relative;
  margin-bottom: 0.2em;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.welcome-text-gaming span::before,
.welcome-text-gaming span::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.welcome-text-gaming span::before {
  left: 2px;
  text-shadow: -2px 0 #ff003c;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.welcome-text-gaming span::after {
  left: -2px;
  text-shadow: -2px 0 #4b0082;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
  animation: glitch-anim-3 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { transform: skew(0deg); }
  20% { transform: skew(0deg); }
  21% { transform: skew(2deg); }
  22% { transform: skew(0deg); }
  60% { transform: skew(0deg); }
  61% { transform: skew(-2deg); }
  62% { transform: skew(0deg); }
  100% { transform: skew(0deg); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); transform: translate(0); }
  10% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); transform: translate(-2px, 2px); }
  100% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); transform: translate(0); }
}

@keyframes glitch-anim-3 {
  0% { clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%); transform: translate(0); }
  10% { clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); transform: translate(2px, 2px); }
  100% { clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%); transform: translate(0); }
}

/* ── SCREEN NUMBER ALTERNATION (odd = phone left, even = phone right) ── */
.about-screen:nth-child(even) .about-screen-inner {
  direction: rtl;
}
.about-screen:nth-child(even) .about-screen-inner > * {
  direction: ltr;
}

/* ── CANVAS BACKGROUND (beam + particles) ── */
/* Body background matches the canvas base colour */
body { background: #05070d; }

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;          /* behind nav (1000), main (10), footer */
  pointer-events: none;
  display: block;
}

/* ── HEADER PILL (same as home) ─────────── */
.header-pill-wrap {
  position: fixed;
  top: 24px; left: 0; width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 40px; /* Increased for ample space */
  padding: 8px 12px 8px 24px;
  border-radius: 100px;
  height: 58px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.nav-brand img { height: 24px; width: auto; margin-top: 4px; }
.nav-pill-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 16px; /* Added internal padding for space between links */
  transition: color 0.3s ease;
}
.nav-pill-link:hover, .nav-pill-link.is-active { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.btn-pill-menu {
  background: rgba(255,255,255,0.06);
  padding: 8px 24px;
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase;
}
.btn-pill-cta {
  background: var(--accent-cta);
  color: #fff;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.3s ease;
}
.btn-pill-cta:hover { transform: translateY(-2px); }

/* Countdown in nav */
.nav-countdown {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-primary);
  background: rgba(123,47,255,0.15);
  border: 1px solid rgba(123,47,255,0.35);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-count-label {
  font-size: 0.58rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-right: 6px;
}
.nav-count-group { display: inline-flex; align-items: baseline; gap: 1px; }
.nav-count-unit  { font-size: 0.58rem; color: var(--text-muted); }
.nav-count-sep   { color: var(--text-muted); font-size: 0.7rem; margin: 0 1px; }
.live-badge      { font-size: 0.75rem; font-weight: 800; color: var(--accent-2); }
.pc-only         { display: flex; align-items: center; gap: 8px; }
/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1023px) {
  .about-screen-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  /* Nav — same pill structure as PC, scaled to fit */
  .pc-only        { display: flex; gap: 4px; }
  .nav-countdown  { display: none; }
  .header-pill-wrap { padding: 0 12px; }
  .nav-pill       { gap: 10px; height: 48px; padding: 5px 6px 5px 12px; border-radius: 100px; flex-wrap: nowrap; }
  .nav-actions    { gap: 6px; }
  .nav-brand img  { height: 18px; margin-top: 2px; }
  .nav-pill-link  { font-size: 0.7rem; letter-spacing: 0.04em; padding: 0 4px; white-space: nowrap; }
  .btn-pill-menu  { padding: 5px 10px; font-size: 0.7rem; white-space: nowrap; }
  .btn-pill-cta   { display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px; font-size: 0.68rem; white-space: nowrap; }

  /* Screens: stack phone on top, text below — extra top padding clears the fixed nav */
  .about-screen {
    padding: 130px 0 60px;
  }
  .about-screen-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 24px;
    text-align: center;
  }
  /* Reset RTL alternation on mobile */
  .about-screen:nth-child(even) .about-screen-inner { direction: ltr; }

  .phone-mockup { width: clamp(160px, 55vw, 240px); }

  .screen-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .screen-desc  { font-size: 0.95rem; margin: 0 auto; }
  .btn-next     { margin: 0 auto; }
}
