/*
 * Kraut & Rüben Studio – Home / Startseite Styles
 * Nur fuer index.html:
 * Hero, Services Marquee, Fitness, Portfolio, About, Team Gallery, Process
 */


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(30, 181, 156, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Split layout */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-badge {
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: var(--font-weight-black);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--line-height-relaxed);
  max-width: 80%;
  margin-bottom: var(--spacing-xl);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-2xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.hero-stat-number {
  display: block;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

/* Hero Video / Visual Right Column */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 25, 27, 0.35);
  transition: background 0.4s ease;
  cursor: pointer;
}

.hero-video-overlay:hover {
  background: rgba(3, 25, 27, 0.2);
}

.hero-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.hero-play-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 87, 72, 0.4);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}


/* ============================================================
   SERVICES – Marquee (Two-Row Carousel)
   ============================================================ */

/* Audience Tags (unter Headline) */
.services-audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.services-audience-tag {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.services-audience-divider {
  color: rgba(255, 255, 255, 0.65);
}

/* Marquee Container */
.services-marquee {
  width: 100%;
  overflow: hidden;
  padding: var(--spacing-sm) 0;
}

.services-marquee-track {
  display: flex;
  gap: var(--spacing-md);
  animation: servicesScrollLeft 50s linear infinite;
  width: max-content;
}

/* Gegenrichtung fuer Reihe 1 */
.services-marquee--reverse .services-marquee-track {
  animation-name: servicesScrollRight;
}

/* Pause on hover */
.services-marquee:hover .services-marquee-track {
  animation-play-state: paused;
}

/* Einzelne Kachel */
.services-marquee-card {
  flex-shrink: 0;
  width: 340px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.services-marquee-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.services-marquee-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.services-marquee-card:hover .services-marquee-img {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.services-marquee-card:hover .services-marquee-img img {
  transform: scale(1.05);
}

/* Label als Overlay im Bild */
.services-marquee-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-sm);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 55%, transparent 100%);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

/* Keyframes – 3x Sets: verschiebt um 1/3 (ein Originalsatz) */
@keyframes servicesScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

@keyframes servicesScrollRight {
  0% { transform: translateX(-33.333%); }
  100% { transform: translateX(0); }
}


/* ============================================================
   FITNESS SPEZIALISIERUNG
   ============================================================ */

.split-layout {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: var(--spacing-2xl);
  align-items: stretch;
}

.split-content {
  max-width: 100%;
}

.fitness-points {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.fitness-point {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.fitness-point-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.fitness-point-icon svg {
  width: 100%;
  height: 100%;
}

.fitness-point strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

/* Split visual: stretch to match text height */
.split-visual {
  display: flex;
  align-items: stretch;
}

/* Fitness image stack */
.fitness-image-stack {
  position: relative;
  width: 100%;
}

.fitness-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.fitness-img-float {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  width: 35%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--color-bg-dark);
}

/* Behind the Scenes – Fitness mini gallery */
.fitness-behind-scenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.fitness-bts-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fitness-bts-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.fitness-bts-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.fitness-bts-item:hover img {
  transform: scale(1.05);
}


/* ============================================================
   PROJEKTE / PORTFOLIO – Horizontal Scroll
   ============================================================ */

/* Outer wrapper: tall enough to give scroll room */
.projects-wrapper {
  position: relative;
  height: 300vh;
  background: var(--color-bg-dark);
}

/* Sticky inner section: pins to viewport while scrolling */
.projects-section {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header inside sticky */
.projects-header {
  padding-top: clamp(3rem, 10vh, 8rem);
  padding-bottom: clamp(1rem, 3vh, 3rem);
}

/* Track container – full width, no overflow clip */
.projects-track-container {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* The sliding track */
.projects-track {
  display: flex;
  gap: var(--spacing-lg);
  padding-left: var(--spacing-md);
  padding-right: 10vw;
  will-change: transform;
}

/* Each project slide */
.project-slide {
  position: relative;
  flex-shrink: 0;
  width: 44vw;
  aspect-ratio: 16 / 10;
  max-height: 70vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.project-slide-image {
  position: absolute;
  inset: 0;
}

.project-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-slide:hover .project-slide-image img {
  transform: scale(1.05);
}

.project-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-xl);
  transition: background 0.4s ease;
}

.project-slide:hover .project-slide-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.project-slide-tag {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.project-slide-name {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  margin-bottom: 4px;
  line-height: 1.15;
}

.project-slide-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
}

/* Progress bar */
.projects-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: var(--spacing-xl);
  border-radius: 1px;
  overflow: hidden;
}

.projects-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.05s linear;
}


/* ============================================================
   ÜBER MICH / ABOUT (Index-Sektion)
   ============================================================ */

.about-layout {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  grid-template-rows: 1fr;
  gap: var(--spacing-3xl);
}

.about-image-col {
  position: relative;
  min-height: 0;
}

.about-image-wrapper {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Badge overlay on image */
.about-badge {
  position: absolute;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  background: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: 0 8px 32px rgba(255, 87, 72, 0.35);
}

.about-badge-number {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.about-badge-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

/* Feature boxes 2x2 grid */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.about-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 87, 72, 0.12);
  color: var(--color-primary);
}

.about-feature-icon svg {
  width: 18px;
  height: 18px;
}

.about-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-feature-text strong {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
}

.about-feature-text span {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.4;
}


/* ============================================================
   TEAM GALLERY – Parallax Style (Webnique-inspired)
   ============================================================ */

.team-gallery-section {
  position: relative;
  background: var(--color-bg-dark);
  padding: var(--spacing-3xl) 0;
  overflow: hidden;
}

.team-gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 clamp(1rem, 3vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
}

.team-gallery-item {
  flex: 0 0 auto;
  width: clamp(160px, 18vw, 280px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  will-change: transform;
  transition: box-shadow 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.team-gallery-item:nth-child(odd) {
  margin-top: 4vh;
}

.team-gallery-item:nth-child(even) {
  margin-top: 10vh;
}

.team-gallery-item--tall .team-gallery-img {
  aspect-ratio: 3 / 4.2;
}

.team-gallery-item--featured {
  width: clamp(200px, 22vw, 340px);
  margin-top: 0 !important;
}

.team-gallery-item--featured .team-gallery-img {
  aspect-ratio: 3 / 3.8;
}

.team-gallery-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.team-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-gallery-item:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.team-gallery-item:hover .team-gallery-img img {
  transform: scale(1.05);
}

.team-swipe-indicator {
  display: none;
}


/* ============================================================
   PROCESS / SO ARBEITEN WIR
   ============================================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  position: relative;
  margin-top: var(--spacing-3xl);
  text-align: center;
}

/* Horizontal connecting line */
.process-line {
  position: absolute;
  top: 24px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* Filled progress over the line */
.process-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 1px;
}

/* The traveling ball */
.process-ball {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255, 87, 72, 0.6);
  opacity: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.process-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  background: var(--color-bg-dark);
  margin-bottom: var(--spacing-lg);
  transition: background 0.3s ease, color 0.3s ease;
}

.process-step:hover .process-circle {
  background: var(--color-primary);
  color: var(--color-text-light);
}

/* Filled state (set by JS animation) */
.process-circle.filled {
  background: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: 0 0 20px rgba(255, 87, 72, 0.4);
}

.process-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}

.process-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 280px;
}


/* ============================================================
   RESPONSIVE – Home
   ============================================================ */

@media (max-width: 1024px) {
  /* Hero split → stacked */
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .hero-visual {
    order: -1;
  }

  .hero-video-wrapper {
    max-width: 100%;
  }

  /* Smaller buttons on tablet */
  .hero-actions .btn {
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-base);
  }

  .services-marquee-card {
    width: 280px;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .split-content {
    max-width: 100%;
  }

  /* Projects: disable scroll effect, show as 2-column grid on tablet */
  .projects-wrapper {
    height: auto !important;
  }

  .projects-section {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  .projects-track-container {
    overflow: visible !important;
    display: block !important;
    flex: none !important;
  }

  .projects-track {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    padding-left: var(--spacing-sm) !important;
    padding-right: var(--spacing-sm) !important;
    gap: var(--spacing-md) !important;
    transform: none !important;
    will-change: auto !important;
  }

  .project-slide {
    width: 100% !important;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .project-slide-overlay {
    padding: var(--spacing-md) !important;
  }

  .project-slide-name {
    font-size: var(--font-size-xl);
  }

  .project-slide-tag {
    font-size: var(--font-size-xs);
  }

  .project-slide-desc {
    font-size: var(--font-size-xs);
  }

  .projects-progress {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .about-image-col {
    position: relative;
  }

  .about-image-wrapper {
    position: relative;
    inset: auto;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
  }

  /* Team gallery: slightly smaller on tablet */
  .team-gallery-item {
    width: clamp(140px, 20vw, 220px);
  }

  .team-gallery-item--featured {
    width: clamp(170px, 24vw, 270px);
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .hero-visual {
    order: -1;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    margin-bottom: var(--spacing-sm);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
  }

  /* Even smaller buttons on mobile */
  .hero-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
  }

  .hero-actions .btn .btn-arrow {
    width: 0.9em;
    height: 0.9em;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
  }

  .hero-stat-number {
    font-size: var(--font-size-2xl);
  }

  .hero-stat-divider {
    width: 1px;
    height: 32px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Services Marquee mobile */
  .services-marquee-card {
    width: 240px;
  }

  /* Projects: disable horizontal scroll on mobile */
  .projects-wrapper {
    height: auto !important;
  }

  .projects-section {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  .projects-track-container {
    overflow: visible !important;
    display: block !important;
    flex: none !important;
  }

  .projects-track {
    display: flex !important;
    flex-direction: column !important;
    padding-left: var(--spacing-sm) !important;
    padding-right: var(--spacing-sm) !important;
    gap: var(--spacing-md) !important;
    transform: none !important;
    will-change: auto !important;
  }

  .project-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1;
    min-height: 280px;
    position: relative;
    display: block;
  }

  .project-slide-image {
    position: absolute;
    inset: 0;
  }

  .project-slide-overlay {
    position: absolute;
    inset: 0;
    padding: var(--spacing-md);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.4) 45%,
      transparent 100%
    ) !important;
  }

  .project-slide-name {
    font-size: var(--font-size-xl);
  }

  .projects-progress {
    display: none;
  }

  /* About */
  .about-features {
    grid-template-columns: 1fr 1fr;
  }

  .about-badge {
    bottom: var(--spacing-md);
    left: var(--spacing-md);
  }

  /* Process steps */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .process-line {
    display: none;
  }

  /* Team Gallery on mobile – Card Stack */
  .team-gallery-section {
    padding: var(--spacing-2xl) 0;
  }

  .team-gallery {
    position: relative;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height: 460px;
    padding: 0 var(--spacing-md);
    overflow: visible;
    touch-action: pan-y;
  }

  .team-gallery-item {
    position: absolute !important;
    width: 280px !important;
    margin-top: 0 !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }

  .team-gallery-item:active {
    cursor: grabbing;
  }

  .team-gallery-item--featured {
    width: 280px !important;
  }

  .team-gallery-item:nth-child(odd),
  .team-gallery-item:nth-child(even) {
    margin-top: 0 !important;
  }

  /* Stack layering: cards behind get smaller and offset */
  .team-gallery-item[data-stack="0"] {
    z-index: 5;
    transform: translateX(0) scale(1) !important;
    opacity: 1;
  }

  .team-gallery-item[data-stack="1"] {
    z-index: 4;
    transform: translateX(0) scale(0.93) translateY(24px) !important;
    opacity: 0.7;
  }

  .team-gallery-item[data-stack="2"] {
    z-index: 3;
    transform: translateX(0) scale(0.86) translateY(48px) !important;
    opacity: 0.5;
  }

  .team-gallery-item[data-stack="3"],
  .team-gallery-item[data-stack="4"] {
    z-index: 1;
    transform: translateX(0) scale(0.79) translateY(72px) !important;
    opacity: 0;
    pointer-events: none;
  }

  /* When swiping, disable transition for immediate feedback */
  .team-gallery-item.swiping {
    transition: none !important;
  }

  /* Swipe indicator */
  .team-swipe-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
  }

  .team-swipe-dots {
    display: flex;
    gap: 8px;
  }

  .team-swipe-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .team-swipe-dots .dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
  }

  .team-swipe-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
    animation: teamSwipeHintPulse 2s ease-in-out infinite;
  }

  .team-swipe-hint.hidden {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  @keyframes teamSwipeHintPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    25% { opacity: 1; transform: translateX(4px); }
    75% { opacity: 1; transform: translateX(-4px); }
  }

  /* Fitness BTS gallery on mobile */
  .fitness-behind-scenes {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.7rem 1.25rem;
    font-size: var(--font-size-sm);
    justify-content: center;
  }

  .hero-stats {
    gap: var(--spacing-md);
    justify-content: space-between;
    width: 100%;
  }

  .hero-stat-number {
    font-size: var(--font-size-xl);
  }

  .hero-stat-label {
    font-size: var(--font-size-xs);
  }

  .hero-stat-divider {
    height: 24px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .team-gallery-item {
    width: 100% !important;
  }

  .team-gallery-item--featured {
    width: 100% !important;
  }
}
