/* Sub Page Scroll Journey Styles */

/* Scroll Container */
.subpage-scroll-container {
  min-height: 100vh;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.subpage-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Gallery Item as Scroll Section */
.subpage-scroll-section {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 40px;
  box-sizing: border-box;
}

/* Alternating backgrounds */
.subpage-scroll-section:nth-child(odd) {
  background-color: var(--bg, #0b0b0c);
}

.subpage-scroll-section:nth-child(even) {
  background-color: var(--surface, #141417);
}

/* Section Content - Split Layout */
.subpage-section-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.subpage-scroll-section.in-view .subpage-section-content {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating image/text positions */
.subpage-scroll-section:nth-child(odd) .subpage-section-content {
  grid-template-columns: 1fr 1fr;
}

.subpage-scroll-section:nth-child(even) .subpage-section-content {
  grid-template-columns: 1fr 1fr;
}

/* Image/Video Side */
.subpage-section-visual {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpage-section-visual img,
.subpage-section-visual video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.subpage-section-visual video {
  object-fit: contain;
}

/* Text/Context Side */
.subpage-section-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.subpage-item-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand, #6cf0c2);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.subpage-item-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--text, #e7e7ea);
}

.subpage-item-description {
  font-size: 1.1rem;
  color: var(--muted, #a7a7b0);
  line-height: 1.6;
  margin: 0;
}

.subpage-item-software {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted, #a7a7b0);
  padding-top: 16px;
  border-top: 1px solid var(--border, #2a2a31);
  margin-top: 8px;
}

.subpage-software-label {
  font-weight: 600;
  color: var(--brand, #6cf0c2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .subpage-section-content {
    grid-template-columns: 1fr !important;
    gap: 40px;
    text-align: center;
  }

  .subpage-section-text {
    align-items: center;
    order: -1;
  }

  .subpage-item-title {
    font-size: 2rem;
  }

  .subpage-section-visual {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .subpage-scroll-section {
    padding: 80px 20px;
  }

  .subpage-section-content {
    gap: 30px;
  }

  .subpage-item-title {
    font-size: 1.75rem;
  }

  .subpage-item-description {
    font-size: 1rem;
  }

  .subpage-section-visual {
    height: 300px;
  }
}

/* Hero Section (Page Title) */
.subpage-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg, #0b0b0c);
  scroll-snap-align: start;
}

.subpage-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text, #e7e7ea);
}

.subpage-hero-content p {
  font-size: 1rem;
  color: var(--muted, #a7a7b0);
  margin: 0;
}

@media (max-width: 768px) {
  .subpage-hero {
    min-height: 40vh;
    padding: 40px 20px;
  }

  .subpage-hero-content h1 {
    font-size: 2rem;
  }

  .subpage-hero-content p {
    font-size: 0.9rem;
  }
}

/* Footer adjustments for scroll journey */
.subpage-scroll-container + .site-footer {
  position: relative;
  z-index: 10;
}


