/**
 * Jaunt Studio - Homepage Styles
 * WebGL hero, 3D gallery, homepage-specific sections
 */

/* WebGL Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  will-change: opacity;
  transition: opacity 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  z-index: 10;
}

.hero-content {
  text-align: center;
  max-width: 1200px;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(72px, 16vw, 192px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 24px 0;
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.hero-tagline {
  font-family: var(--font-primary);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Scroll Button */
.scroll-button {
  position: absolute;
  bottom: 60px;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s var(--ease-smooth);
  z-index: 10;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 0.8;
  animation-play-state: paused;
}

.scroll-button:active {
  transform: scale(0.95);
}

.scroll-button svg {
  width: 18px;
  height: 18px;
}

.scroll-button-dark {
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.scroll-button-dark:hover {
  background: transparent;
  border: none;
  opacity: 0.6;
}

.scroll-button-gallery {
  bottom: 100px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Gradient Transition Zone */
.gradient-transition {
  position: relative;
  height: 25vh;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  z-index: 9;
}

/* Studio Introduction Section */
.studio-intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
  background: #fff;
  z-index: 2;
}

.studio-intro-content {
  max-width: 1000px;
  text-align: center;
}

.studio-intro-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4.5vw, 70px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 40px 0;
  color: #000;
}

.studio-intro-text {
  font-family: var(--font-primary);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  opacity: 0.8;
}

/* 3D Gallery Section */
.gallery-3d {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #f7f7f5;
  overflow: hidden;
  z-index: 2;
}

.gallery-header {
  display: none;
}

.gallery-section-title {
  font-family: var(--font-primary);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: #000;
}

#gallery-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#gallery-ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gallery-bg-left {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  z-index: 1;
  pointer-events: none;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  mask-image: linear-gradient(to right, black 0%, black 50%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.5) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 50%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.5) 85%, transparent 100%);
}

.gallery-slide-content {
  position: absolute;
  top: 20%;
  left: 8%;
  width: 32%;
  max-width: 450px;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: auto;
  z-index: 3;
}

.gallery-slide-content.active {
  opacity: 1;
}

.gallery-catalogue-number {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-orange);
  margin-bottom: 1.5rem;
  display: inline-block;
  border-bottom: 1px solid rgba(240, 90, 34, 0.3);
  padding-bottom: 5px;
  font-weight: 400;
}

.gallery-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 3.5rem;
  margin: 0 0 1.5rem 0;
  line-height: 1;
  color: #0d0d0d;
}

.gallery-title-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.gallery-title-link:hover {
  opacity: 0.6;
}

.gallery-slide-image {
  transition: opacity 0.3s ease;
}

.gallery-slide-content a:hover .gallery-slide-image {
  opacity: 0.85;
}

.gallery-description {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: #444;
  margin-bottom: 3rem;
}

.gallery-meta-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 0.8rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
}

.gallery-meta-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  align-self: center;
}

.gallery-meta-value {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: #222;
}

.gallery-slide-image {
  display: none;
  content-visibility: auto;
}

.gallery-description-mobile {
  display: none;
}

.gallery-description-desktop {
  display: inline;
}

/* Problem/Solution Section */
.problem-solution {
  position: relative;
  padding: 100px 40px;
  background: var(--color-offwhite);
  z-index: 2;
}

.problem-solution-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

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

.problem-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 8px;
  display: block;
}

.problem-text {
  font-family: var(--font-primary);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #000;
  margin: 0;
}

.solution-text {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #000;
  margin: 0;
}

/* Homepage Services Section */
.services-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 160px;
  background: #fff;
  color: #000;
  z-index: 2;
}

.services-content {
  max-width: 1400px;
  text-align: center;
  width: 100%;
}

.services-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4.5vw, 70px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 24px 0;
  color: #000;
}

.services-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  max-width: 900px;
  margin: 0 auto 80px;
}

.services-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 40px;
  margin-bottom: 80px;
  text-align: left;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.service-text-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-text-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000;
  margin: 0;
  position: relative;
  padding-left: 16px;
}

.service-text-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--color-orange);
  border-radius: 2px;
}

.service-text-description {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
}

/* Services CTA */
.services-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 100px;
  margin-bottom: 40px;
}

/* ===========================
   RESPONSIVE - HOMEPAGE
   =========================== */

@media (max-width: 1024px) {
  .hero {
    padding: 100px 32px 60px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    height: 100dvh;
    padding: 0 24px;
    min-height: 600px;
    align-items: center;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: clamp(80px, 20vw, 144px);
    margin-bottom: 20px;
  }

  .hero-tagline {
    font-size: clamp(18px, 4vw, 24px);
    padding: 0 20px;
  }

  .scroll-button {
    bottom: 140px;
  }

  .gradient-transition {
    height: 15vh;
  }

  .studio-intro {
    padding: 140px 24px 120px;
    min-height: auto;
  }

  .studio-intro-title {
    font-size: clamp(21px, 4.5vw, 32px);
    margin-bottom: 32px;
  }

  .studio-intro-text {
    font-size: clamp(16px, 3.5vw, 20px);
    line-height: 1.7;
  }

  /* Problem/Solution */
  .problem-solution {
    padding: 80px 24px;
  }

  .problem-solution-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Gallery Mobile Carousel */
  .gallery-3d {
    height: auto;
    min-height: auto;
    padding: 120px 0 80px;
    background-color: #fafaf8;
  }

  #gallery-canvas-container { display: none; }
  .gallery-bg-left { display: none; }
  .gallery-title br { display: none; }

  .gallery-header {
    display: block;
    position: relative;
    padding: 0 24px 40px;
    margin-top: -80px;
    text-align: center;
  }

  .gallery-section-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  #gallery-ui-layer {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #gallery-ui-layer::-webkit-scrollbar { display: none; }

  .gallery-slide-content {
    position: relative;
    opacity: 1;
    top: auto;
    left: auto;
    width: 85%;
    min-width: 85%;
    max-width: 85%;
    flex-shrink: 0;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    scroll-snap-align: center;
    padding: 0 20px;
  }

  .gallery-slide-content:first-child { margin-left: 7.5%; }
  .gallery-slide-content:last-child { margin-right: 7.5%; }
  .gallery-slide-content.active { opacity: 1; }

  .gallery-slide-image {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    user-select: none;
    -webkit-user-drag: none;
  }

  .gallery-catalogue-number {
    font-size: 0.6rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border: none;
  }

  .gallery-title {
    font-size: 2rem;
    line-height: 0.95;
    margin: 0 0 16px 0;
  }

  .gallery-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .gallery-description-desktop { display: none; }
  .gallery-description-mobile { display: inline; }
  .gallery-meta-grid { display: none; }

  /* Services Section */
  .services-section {
    padding: 140px 24px 80px;
    height: auto;
    min-height: auto;
  }

  .services-title {
    font-size: clamp(36px, 8vw, 56px);
    margin-bottom: 20px;
  }

  .services-subtitle {
    margin-bottom: 60px;
    font-size: 16px;
  }

  .services-text-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .services-cta {
    margin-top: 60px;
  }

  .studio-intro .scroll-button,
  .gallery-3d .scroll-button,
  .services-section .scroll-button {
    display: none;
  }

  .hero .scroll-button {
    bottom: 40px;
    width: 50px;
    height: 50px;
    margin-left: -25px;
  }

  .scroll-button svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 550px;
    padding-bottom: 100px;
  }

  .hero-title {
    font-size: clamp(56px, 14vw, 80px);
  }

  .scroll-button {
    bottom: 160px;
  }

  .studio-intro {
    padding: 170px 20px 140px;
  }

  .studio-intro-title {
    font-size: clamp(18px, 5vw, 28px);
  }

  .gallery-3d {
    padding: 140px 0 60px;
  }

  .gallery-header {
    padding: 0 20px 40px;
    margin-top: -100px;
    text-align: center;
  }

  .gallery-section-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .gallery-slide-content {
    width: 90%;
    min-width: 90%;
    max-width: 90%;
    padding: 0 15px;
  }

  .gallery-slide-content:first-child { margin-left: 5%; }
  .gallery-slide-content:last-child { margin-right: 5%; }

  .gallery-slide-image { height: 350px; }
  .gallery-title { font-size: 1.75rem; }
  .gallery-description { font-size: 0.9rem; }

  .services-section {
    padding: 60px 20px;
  }

  .services-title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .services-section {
    min-height: auto;
    padding: 100px 24px 120px;
  }

  .hero-cta-row {
    flex-direction: column;
    gap: 12px;
  }

  .social-proof-logos {
    flex-direction: column;
    gap: 8px;
  }

  .social-proof-divider {
    display: none;
  }

  .social-proof-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ===========================
   HERO CTA ROW
   =========================== */

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.hero-cta-button {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
}

.hero-cta-button:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ===========================
   SOCIAL PROOF SECTION
   =========================== */

.social-proof-section {
  position: relative;
  z-index: 10;
  background: #fff;
  padding: 80px 40px;
  text-align: center;
}

.social-proof-content {
  max-width: 1000px;
  margin: 0 auto;
}

.social-proof-label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(0, 0, 0, 0.4);
  margin: 0 0 24px 0;
}

.social-proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.social-proof-name {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.social-proof-divider {
  color: rgba(0, 0, 0, 0.2);
  font-size: 14px;
}

.social-proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.social-proof-stat-value {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #0d0d0d;
  line-height: 1;
  margin-bottom: 8px;
}

.social-proof-stat-label {
  display: block;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
}
