/* Codrops Sticky Grid Scroll Adaptation */

:root {
  --grid-width: 736px;
  --grid-gap: 32px;
}

/* ---------------- Block intro ---------------- */

.block--intro {
  position: relative;
  z-index: 1;
}

.media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  padding: 0 24px;
}

.media__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0.7;
}

.media__caption {
    position: relative;
    width: 221px;
    font-size: 14px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
    background: #000;
    color: #fff;
    padding: 10px;
}
/* ---------------- Block main ---------------- */

.block.block--main {
  height: 425vh; /* Same as demo */
  background-color: var(--bg-primary);
}

.block__wrapper {
  position: sticky;
  top: 0;
  padding: 0 24px;
  will-change: transform;
  overflow: hidden;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  text-align: center;
  z-index: 10; /* Elevated z-index */
  pointer-events: none;
}

.block--main .content__title {
    width: 100%;
    max-width: 924px;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #000000 !important; /* Force Black */
    margin: 0;
    /* Subtle white glow for readability over dark images */
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}


.hero-branding-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  pointer-events: auto;
}

.infinity-logo-hero {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.powered-by-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.powered-by-main span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  font-weight: 500;
}

.tekbay-logo-hero {
  height: 1.5rem;
  width: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.tekbay-logo-hero:hover {
  opacity: 1;
  transform: scale(1.05);
}

.btn-register-wrap {
  margin-top: 32px;
  pointer-events: auto;
  position: relative;
  z-index: 20;
}

.btn-register {
  pointer-events: auto !important;
}

/* ---------------- Gallery ---------------- */

.gallery {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: var(--grid-width);
  max-width: 90vw;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 40px;
  will-change: transform;
  list-style: none;
  padding: 0;
}

.gallery__item {
  width: 100%;
  aspect-ratio: 1;
  will-change: transform;
}

.gallery__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0.8;
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --grid-width: 90vw;
    --grid-gap: 16px;
  }

  .gallery__grid {
    column-gap: 16px;
    row-gap: 20px;
  }
}
