/* Urban Sports page-specific styles */
.navbar {
  background: rgba(0, 0, 0, 0.5) !important;
}

html {
  scroll-behavior: smooth;
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3.25rem;
  color: #b18bff;
  cursor: pointer;
  text-decoration: none;
  z-index: 5;
  filter: drop-shadow(0 0 6px #7f5af0) drop-shadow(0 0 16px #7f5af0);
  animation: bounceDown 1.4s infinite ease-out, pulseGlow 2.4s infinite ease-in-out;
  transition: opacity .3s ease;
}

h1 {
  text-align: center;
  font-size: 3em !important;
}

section h1 {
  color: #6E07F3;
}

section h3 {
  color: white;
  font-weight: bold;
  font-size: 2rem !important;
}

h3 {
  text-align: left;
  color: #6E07F3 !important;
}

section {
  margin-bottom: 10em;
  font-size: 17px;
  clear: both;
  overflow: hidden;
}

section p {
  font-size: 2vh;
  line-height: 1.5;
  margin-bottom: 1em;
  color: #fff;
}

.pdf-page-num {
  background: transparent;
  color: white;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 5px 8px;
  transition: color 0.2s;
}

.pdf-container {
  max-height: 72vh;
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 11;
  background: transparent;
  border-radius: 0;
}

.pdf-canvas {
  display: block;
  height: 72vh;
  object-fit: contain;
}

.pdf-page-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(110, 7, 243, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pdf-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 20;
}

.pdf-container:hover .pdf-page-indicator {
  opacity: 0;
}

.pdf-container:hover .pdf-controls {
  opacity: 1;
  bottom: 50px;
}

.pdf-controls button {
  background: transparent;
  color: white;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 5px 8px;
  transition: color 0.2s;
}

.pdf-controls button:hover {
  color: #6E07F3;
}

.pdf-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6E07F3;
  font-weight: bold;
}

.parallax-1 {
  background: url("https://static01.nyt.com/images/2013/10/06/nyregion/SKATEBOARDss-slide-P1FG/SKATEBOARDss-slide-P1FG-superJumbo.jpg") center/cover fixed no-repeat;
}

.github-corner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.github-corner svg {
  width: 60px;
  height: 60px;
  fill: #6E07F3;
  transition: transform 0.3s ease-in-out;
}

.github-corner:hover svg {
  transform: scale(1.1);
}

.reveal.active:not(section) {
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  gap: 0;
}

.media-column,
.text-column {
  flex: 1 1 45%;
  max-width: 50%;
  min-width: 280px;
  float: none;
  margin: 10px;
  box-sizing: border-box;
}

#cmj-research,
#gorilla-testing,
#ai-research,
#low-fidelity-wireframe,
#high-fidelity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 10vh auto;
  padding: 0 2rem;
}

#low-fidelity-wireframe,
#high-fidelity {
  flex-wrap: nowrap;
}

#cmj-research .pdf-container,
#gorilla-testing .pdf-container,
#ai-research .pdf-container,
#low-fidelity-wireframe .media-column,
#high-fidelity .media-column {
  flex: 0 1 48%;
  max-width: 48%;
}

#cmj-research .text-column,
#gorilla-testing .text-column,
#ai-research .text-column,
#low-fidelity-wireframe .text-column,
#high-fidelity .text-column {
  flex: 0 1 48%;
  max-width: 48%;
}

#cmj-research .media-column,
#gorilla-testing .media-column,
#ai-research .media-column,
#cmj-research .text-column,
#gorilla-testing .text-column,
#ai-research .text-column,
#low-fidelity-wireframe .media-column,
#high-fidelity .media-column,
#low-fidelity-wireframe .text-column,
#high-fidelity .text-column {
  margin: 0;
}

#cmj-research .text-column h3,
#gorilla-testing .text-column h3,
#ai-research .text-column h3,
#low-fidelity-wireframe .text-column h3,
#high-fidelity .text-column h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
}

#cmj-research .text-column p,
#gorilla-testing .text-column p,
#ai-research .text-column p,
#low-fidelity-wireframe .text-column p,
#high-fidelity .text-column p {
  margin-bottom: 1.25rem;
}

.phone-frame {
  width: 360px;
  height: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.phone-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.Overview {
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  gap: 0;
  flex-direction: column;
  margin: 10vh;
}

.intro-summary-left {
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  gap: 0;
  flex-direction: column;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-text {
  color: #6E07F3;
  font-size: 1.5rem;
  animation: pulse 1.5s infinite;
}

.snippet {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.snippet h3 {
  color: #6E07F3;
  margin-bottom: 0.5rem;
}

.card-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.section-stack-narrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 3rem;
  padding: 2rem;
}

.section-centered-lg {
  text-align: center;
  padding: 4rem 2rem;
  background: #000;
}

.stack-center-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
}

.content-max-700 {
  max-width: 700px;
  width: 100%;
}

.caption-muted {
  color: #bbb;
  margin-top: 1rem;
}

.title-center-lg {
  color: #6E07F3;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.title-tight {
  margin-bottom: 1rem;
}

.disc-list-lg {
  font-size: 1rem;
  line-height: 1.6;
  list-style: disc;
  padding-left: 1.5rem;
}

.copy-md {
  font-size: 1rem;
  line-height: 1.6;
}

.copy-lead {
  font-size: 1.125rem;
  line-height: 1.6;
}

.mt-2 {
  margin-top: 2rem;
}

.section-intro {
  padding: 4rem 1rem;
  background: #000;
  color: #fff;
  flex-direction: column;
}

.intro-summary-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-title {
  color: #6E07F3;
  margin-bottom: 1rem;
  font-weight: 400;
}

.intro-lead {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.intro-summary-right {
  line-height: 1.6;
}

.intro-summary-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-summary-right li {
  margin-bottom: .5rem;
}

.intro-summary-right span {
  font-weight: 400;
}

.intro-image-wrap {
  margin-top: 3rem;
  text-align: center;
}

.intro-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.white-text {
  color: white;
}

.final-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.final-col {
  flex: 1;
  min-width: 300px;
}

.final-col--border {
  border-left: 3px solid #6E07F3;
  padding-left: 2rem;
}

.final-title {
  font-size: 2em;
  color: #6E07F3;
  text-align: left;
}

.final-items {
  margin-top: 1.5rem;
}

.final-item-title {
  color: #6E07F3;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.final-item-copy {
  color: white;
  font-size: 0.95rem;
}

.final-item-copy--spaced {
  margin-bottom: 1.5rem;
}

.component-section {
  background: #000;
  color: #bbb;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.component-wrap {
  width: 100%;
  max-width: 1100px;
}

.component-heading {
  color: #6E07F3;
  margin-bottom: 0.75rem;
}

.component-lead {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 2rem;
  color: #bbb;
}

.persona-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.persona-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.persona-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.persona-top {
  display: flex;
}

.persona-photo {
  width: 140px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.persona-meta {
  padding: 1rem;
  background: #1a1a2e;
  flex: 1;
}

.mini-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.25rem;
}

.persona-goal {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.persona-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #aaa;
}

.persona-fact-key {
  color: #888;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.persona-fact-val {
  color: #ddd;
}

.persona-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #222;
}

.persona-col-split {
  padding: 1rem;
}

.persona-col-split.left {
  border-right: 1px solid #222;
}

.accent-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6E07F3;
  margin-bottom: 0.5rem;
}

.persona-list {
  list-style: disc inside;
  font-size: 0.82rem;
  color: #bbb;
  margin: 0;
  padding: 0;
}

.persona-quote {
  padding: 0.75rem 1rem;
  background: #0d0d1a;
  border-top: 1px solid #222;
  font-style: italic;
  font-size: 0.82rem;
  color: #888;
}

.persona-caption-title {
  color: #6E07F3;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.persona-caption-copy {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.pov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pov-card {
  background: #111;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pov-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6E07F3;
  margin-bottom: 0.75rem;
}

.pov-subtitle {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.pov-copy,
.pov-list {
  color: #bbb;
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0;
}

.pov-list {
  padding-left: 1.25rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -12px) scale(1.1); }
  60% { transform: translate(-50%, -6px); }
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 6px #7f5af0) drop-shadow(0 0 16px #7f5af0); }
  50% { filter: drop-shadow(0 0 12px #a78bff) drop-shadow(0 0 28px #a78bff); }
}

@media (max-width: 768px) {
  .pdf-container {
    width: 100%;
    height: 62vh;
    max-height: 62vh;
  }

  .pdf-canvas {
    height: 62vh;
  }

  #cmj-research,
  #gorilla-testing,
  #ai-research,
  #low-fidelity-wireframe,
  #high-fidelity {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  #cmj-research .pdf-container,
  #gorilla-testing .pdf-container,
  #ai-research .pdf-container,
  #low-fidelity-wireframe .media-column,
  #high-fidelity .media-column,
  #cmj-research .text-column,
  #gorilla-testing .text-column,
  #ai-research .text-column,
  #low-fidelity-wireframe .text-column,
  #high-fidelity .text-column {
    max-width: 100%;
    width: 100%;
  }

  .pdf-page-indicator {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .pdf-controls button {
    font-size: 0.8rem;
  }

  .reveal.active:not(section) {
    display: block;
    padding: 0;
  }

  .reveal.active:not(section) .media-column,
  .reveal.active:not(section) .text-column {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .intro-summary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro-summary-left,
  .final-col--border {
    padding: 0;
    border-left: none;
  }

  .final-section {
    flex-direction: column;
  }

  .pov-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .scroll-down {
    font-size: 2.5rem;
  }
}
