html {
  overscroll-behavior: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #111;
  --panel: #1a1a1a;
  --text: #f2f2f2;
  --muted: #a0a0a0;
  --border: #2a2a2a;
}

h1 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5em;
  margin-top: 0.1em;
}

h2 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5.4vw, 5rem);
  font-weight: 800;
  margin-bottom: 0.1em;
  margin-top: 0.1em;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  /* height: 100%; */
  overflow: hidden;

  padding-bottom: env(safe-area-inset-bottom);
}

/* @media (orientation: landscape) {
  .hero {
    min-height: 70vw;
    min-height: 200svh;

  }
} */



.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
      rgba(211, 88, 230, 0.7) 0%,
      rgba(255, 195, 204, 0.7) 45%,
      rgba(215, 240, 255, 0.7) 88%);
}

.hero-underlay {
  position: absolute;
  inset: 0;
  background: white;
}

.hero-content {
  position: relative;
  z-index: 2;

  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: #333333;

  width: 100%;
  max-width: 640px;

  padding: 0 20px;
  margin: 0 auto;

  text-align: center;
}

.hero-content img {
  display: block;
  margin: 0 auto;
  /* margin-top: 20px; */

  /* height: 50svh;
  max-height: 200px;
  width: auto; */

  /* width: 100%;
  height: auto; */
  /* max-height: 200px; */
}

.hero-content a {
  display: block;
  margin: 0 auto;
  margin-top: 20px;
}

.hero-content p {
  text-align: center;
  color: #333333;
  margin: 8px 0;
}

.hero-content a img {
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(.22, .61, .36, 1), box-shadow 0.5s ease;
  background: linear-gradient(12deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 251, 226, 0.54) 50%,
      rgba(255, 255, 255, 0) 72%);
  background-size: 400% 400%;
  animation: shine 22s infinite;

  margin-top: 10px;
  width: 72px;
  height: auto;
}

@keyframes shine {
  0% {
    background-position: -200% -200%;
  }

  50% {
    background-position: 200% 200%;
  }

  100% {
    background-position: -200% -200%;
  }
}

.hero-content a img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
}


.projects {
  padding: 1rem 2rem;

  padding-bottom: 4rem;
  max-width: 1200px;
  margin: auto;
}

.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

}

.DaveSapienLogo {
  position: absolute;
  top: 0px;
  height: 70px;
  /* width: 100%; */
  z-index: 2000;
  opacity: 1.0;
}

.DaveSapienLogo img {
  position: relative;
  width: 90%;
  max-width: 300px;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease;

  border-radius: 12px;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  display: block;
}

.project-info {
  padding: 1.5rem;
}

.project-header {

  max-width: 700px;
  margin: 20px auto;
  margin-top: 0px;
  margin-bottom: 30px;
}

.project-tagline {
  opacity: 0.7;
  font-size: 1.1rem;
  margin-top: 0px;
}

.feature-list {
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
  line-height: 1.6;
}

.store-section {
  margin: 30px 0;
  text-align: center;
}

.store-section a {
  display: inline-block;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 24px;
}

.store-section img {
  width: 120px;
  height: auto;
  border-radius: 20px;
  transition: transform 0.2s ease;
  display: block;
}

.store-section img:hover {
  transform: scale(1.05);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.gallery video {
  width: 100%;
  border-radius: 8px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
}

.Small-image-wrapper {
  max-width: 300px;
  margin: 0 auto;
  margin-top: 60px;
}

.Small-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about {
  padding: 6rem 2rem;
  background: #0c0c0c;
}

.about-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  gap: 4rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about img {

  border-radius: 27px;
  width: 100%;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(76, 97, 118, 0.66);
  /* background: rgba(31, 19, 66, 0.5); */
  /* background:  rgba(0, 0, 0, 0.9); */
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9999;

  /* NEW */
  overflow-y: auto;
  padding: 40px 20px;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #111;
  color: white;
  max-width: 900px;
  margin: auto;
  padding: 40px;
  border-radius: 8px;
  text-align: left;
  position: relative;

  /* NEW */
  min-height: fit-content;
}

.modal img,
.modal video {
  width: 100%;
  height: auto;
  margin: 20px 0;
  display: block;

  border-radius: 8px;
}

.modal-header {
  position: sticky;
  top: 0;
  background: #111;
  max-width: 900px;
  margin: auto;
  padding-left: 40px;
  padding-right: 40px;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
}

.close {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 38px;

  padding-left: 0.5rem;
  padding-right: 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  border: none;
  color: white;
  cursor: pointer;
}

.project-description {
  max-width: 700px;
  margin: 20px auto;
  line-height: 1.6;
  opacity: 0.9;
}

.project-description p {
  margin-bottom: 18px;
}


/* .store-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.store-buttons img {
  width: 100px;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.store-buttons img:hover {
  transform: scale(1.05);
}

.store-buttons p {
  text-align: center;
  color: #333333;
  margin: 8px 0;
} */

.App-link {
  margin-top: 1.5rem;
  text-align: center;
}

.App-link p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.0rem;
}

.store-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.store-buttons img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.store-buttons a:hover img {
  transform: scale(1.05);
}

.store-buttons a:hover img {
  transform: translateY(-4px);
}

.store-buttons a:active img {
  transform: scale(0.97);
}

.store-buttons-global {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.store-buttons-global a {
  flex: 0 0 auto;
  /* prevents stretching */
}

.store-buttons-global img {
  max-width: 144px;
  max-height: 40px;

  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.store-buttons-global a:hover img {
  transform: scale(1.05);
}

.store-buttons-global a:hover img {
  transform: translateY(-4px);
}

.store-buttons-global a:active img {
  transform: scale(0.97);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 30px;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.play-button {
  display: inline-block;
  padding: 12px 24px;
  background: #4ca75e;
  color: white;
  text-decoration: none;
  border-radius: 999px;


  outline: 2px solid white;
  /* ← FIX */
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
}

.play-button:hover {
  background: #3a3a3a;
  transform: translateY(-1px);
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;

  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  width: 44px;
  height: 44px;

  background: none;
  border: none;
  cursor: pointer;


  opacity: 1;
  transition: opacity 0.2s linear;
}


.scroll-indicator span {
  display: block;
  width: 22px;
  height: 22px;
  margin: auto;

  border-right: 2px solid white;
  border-bottom: 2px solid white;

  transform: rotate(45deg);
  animation: chevronBounce 2.8s infinite;
}

.scroll-indicator2 {
  width: 100%;
  min-height: 100px;
  background: none;
  border: none;
  cursor: pointer;
}

.scroll-indicator2 span {
  display: block;
  width: 22px;
  height: 22px;
  margin: auto;

  background: none;
  border-right: 2px solid white;
  border-bottom: 2px solid white;

  transform: rotate(45deg);
  animation: chevronBounce 2.8s infinite;
}

footer {
  padding: 60px 20px;
  text-align: center;
  background: #0c0c0c;
  border-top: 1px solid #1f1f1f;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
  color: #888;
  letter-spacing: 0.5px;
}

footer a {
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #f2f2f2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

footer a:hover {
  color: white;
}

footer a:hover::after {
  transform: scaleX(1);
}

.social-x {
  font-size: 1.4rem;
  display: inline-block;
  vertical-align: middle;
  margin: 2 6px;
}


.social-x svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.divider {
  width: 80%;
  /* max-width: 600px; */
  height: 1px;
  background-color: #766868;
  margin: 4rem auto;
  /* centers it horizontally */
}

@keyframes chevronBounce {

  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.5;
  }

  50% {
    transform: rotate(45deg) translate(4px, 4px);
    opacity: 0.75;
  }
}




.feature {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 4rem auto;
}

.feature img {
  border-radius: 8px;
  width: 300px;
  height: auto;
  flex-shrink: 0;
}

.feature .text {
  flex: 1;
}

/* Flip layout */
.feature.reverse {
  flex-direction: row-reverse;
}


@media (pointer: coarse) and (max-height: 500px) {
  .hero {
    min-height: 70vw;
    min-height: 200svh;

  }

  .hero-logo {
    max-width: 60%;
  }

  .hero-content {
    display: initial;
  }

  .hero-content img {
    margin-top: 20px;

    height: 50svh;
    max-height: 200px;
    width: auto;
  }
}


@media (max-width: 768px) {
  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature.reverse {
    flex-direction: column;
  }

  .feature img {

    width: 200px;
  }

  .about {
    padding: 3rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about img {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-text {
    text-align: left;
  }

  .about-text p {
    line-height: 1.6;
  }

  .modal-content {
    padding: 18px;
    border-radius: 0px;
  }

  .modal {
    padding: 0px 0px;
  }

  .project-header {
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(3rem, 8vw, 6rem);
  }
}

@media (min-width: 60px) and (max-width: 900px) {
  .scroll-indicator2 {
    width: 0px;
    height: 0px;
    display: none;
  }

  .scroll-indicator2 span {
    display: none;
    border-right: 0px solid white;
    border-bottom: 0px solid white;
    width: 0px;
    height: 0px;
  }

}