/* ===================================
   HOW TO GET STARTED SECTION
   Editorial Title + Smaller Buttons
   =================================== */

.how-to-section {
  background-color: var(--color-open-tab);
  padding: 5rem 2rem;
  border-top: 1px solid var(--color-night-shift);
}

.how-to-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4rem;
  align-items: start;
}

.how-to-left {
  grid-column: 1 / span 5;
  padding-right: 2rem;
}

/* ✅ EDITORIAL STYLE TITLE - BIGGER */
.section-title {
  font-family: var(--font-primary);
  font-size: clamp(56px, 7vw, 84px); /* ✅ Increased from clamp(2.5rem, 5vw, 4rem) */
  font-weight: 900; /* ✅ Changed from 400 to 900 */
  text-transform: uppercase;
  letter-spacing: -3px; /* ✅ Increased negative spacing from -0.02em */
  color: var(--color-global-thread);
  margin-bottom: 2rem; /* ✅ Increased from 1.5rem */
  line-height: 0.9; /* ✅ Tighter line height */
}

.section-description {
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--color-night-shift);
}

/* ✅ SMALLER BUTTONS */
.steps-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* ✅ Reduced from 1rem */
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* ✅ Reduced from 1rem */
  padding: 0.85rem 1.15rem; /* ✅ Reduced from 1.25rem 1.5rem */
  background-color: transparent;
  border: 2px solid var(--color-night-shift);
  color: var(--color-night-shift);
  font-family: var(--font-primary);
  font-size: 0.875rem; /* ✅ Reduced from 1rem */
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-global-thread);
  transition: width 0.3s ease;
  z-index: 0;
}

.step-btn:hover::before,
.step-btn.active::before {
  width: 100%;
}

.step-btn:hover {
  color: var(--color-open-tab); /* Light color on hover */
}

.step-btn.active {
  border-color: var(--color-global-thread);
  color: var(--color-open-tab);
}

.step-number,
.step-label {
  position: relative;
  z-index: 1;
}

.step-label {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.step-btn:hover .step-label {
  opacity: 0.9;
}

.step-btn.active .step-label {
  opacity: 1;
}

.step-number {
  font-weight: 700;
  font-size: 1.15rem; /* ✅ Reduced from 1.5rem */
}

/* ========== 3D ROTATING CYLINDER ========== */
.how-to-right {
  grid-column: 6 / -1;
  position: relative;
  height: 380px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cylinder-container {
  width: 100%;
  max-width: 550px;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.cylinder-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F5F1E8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  overflow-y: auto;
  box-sizing: border-box;
}

.step-content[data-step-content="1"] {
  transform: rotateY(0deg) translateZ(240px);
}

.step-content[data-step-content="2"] {
  transform: rotateY(120deg) translateZ(240px);
}

.step-content[data-step-content="3"] {
  transform: rotateY(240deg) translateZ(240px);
}

.cylinder-wrapper[data-rotation="1"] {
  transform: rotateY(0deg);
}

.cylinder-wrapper[data-rotation="2"] {
  transform: rotateY(-120deg);
}

.cylinder-wrapper[data-rotation="3"] {
  transform: rotateY(-240deg);
}

/* Step Card Header */
.step-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-task-force);
}

.step-number-badge {
  flex-shrink: 0;
}

.step-number-badge svg {
  width: 40px;
  height: 28px;
}

.step-text-header {
  flex-grow: 1;
}

.step-number-text {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-task-force);
  line-height: 1;
  display: block;
  margin-bottom: 0.15rem;
}

.step-title-main {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-global-thread);
  margin: 0;
}

/* Step Card Body */
.step-card-body {
  margin-bottom: 0;
}

.step-subtitle {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-global-thread);
  margin-bottom: 0.6rem;
}

.step-description {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-night-shift);
  margin-bottom: 0.85rem;
}

.step-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.step-list li {
  font-family: var(--font-secondary);
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--color-night-shift);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.step-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-task-force);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 968px) {
  .how-to-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .how-to-left,
  .how-to-right {
    grid-column: 1 / -1;
  }

  .section-title {
    font-size: clamp(48px, 6vw, 72px);
  }

  .how-to-right {
    height: 350px;
    perspective: 900px;
  }

  .cylinder-container {
    max-width: 480px;
  }

  .step-content[data-step-content="1"],
  .step-content[data-step-content="2"],
  .step-content[data-step-content="3"] {
    transform: rotateY(calc(var(--step-index, 0) * 120deg)) translateZ(200px);
  }
}


/* ========== MOBILE SMALL SCREENS - 768px AND BELOW ========== */
@media (max-width: 768px) {
  .section-title {
    font-size: 3rem;
  }

  .section-description {
    font-size: 1rem;
    margin-top: -2rem;
  }

  /* ========== STEP BUTTONS - HORIZONTAL ACCORDION ========== */
  
  .steps-navigation {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }

  .step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--color-night-shift);
    color: var(--color-night-shift);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
  }

  .step-btn.active {
    width: auto;
    min-width: 180px;
    padding: 0.75rem 1.25rem;
    border-color: var(--color-global-thread);
    color: var(--color-open-tab);
    justify-content: flex-start;
  }

  .step-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-global-thread);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
  }

  .step-btn.active::before {
    width: 100%;
  }

  .step-number {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 1rem;
    opacity: 1;
    transition: all 0.3s ease;
  }

  .step-label {
    position: relative;
    z-index: 1;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
  }

  .step-btn.active .step-label {
    opacity: 1;
    max-width: 200px;
    margin-left: 0.5rem;
  }

  .step-btn:hover:not(.active) {
    transform: scale(1.05);
    border-color: var(--color-global-thread);
  }

  .step-btn.active:hover {
    transform: scale(1.02);
  }

  /* ========== CONTENT AREA - HORIZONTAL SLIDER ========== */
  
  .how-to-right {
    height: auto;
    perspective: none;
    overflow: hidden; /* ✅ Critical: Hide overflow */
    width: 100%;
    position: relative;
  }

  .cylinder-container {
    width: 100%;
    height: auto;
    overflow: hidden; /* ✅ Critical: Hide overflow */
    position: relative;
  }

  /* ✅ WRAPPER - HOLDS ALL 3 STEPS HORIZONTALLY */
  .cylinder-wrapper {
    position: relative;
    display: flex; /* ✅ Horizontal flex container */
    width: 300%; /* ✅ 3 steps × 100% each */
    height: auto;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: flat; /* ✅ Disable 3D */
  }

  /* ✅ SLIDE POSITIONS - MOVE THE ENTIRE WRAPPER */
  .cylinder-wrapper[data-rotation="1"] {
    transform: translateX(0%);
  }

  .cylinder-wrapper[data-rotation="2"] {
    transform: translateX(-33.333%);
  }

  .cylinder-wrapper[data-rotation="3"] {
    transform: translateX(-66.666%);
  }

  /* ✅ EACH STEP CONTENT - TAKES 1/3 OF WRAPPER */
  .step-content {
    position: relative !important; /* ✅ Override absolute positioning */
    flex: 0 0 33.333%; /* ✅ Each step is exactly 1/3 width */
    width: 33.333%; /* ✅ Explicit width */
    height: auto;
    min-height: 350px;
    transform: none !important; /* ✅ No 3D transforms */
    display: block !important; /* ✅ Always visible */
    padding: 1.25rem;
    background-color: #F5F1E8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    opacity: 1; /* ✅ Always visible */
    overflow-y: auto;
  }

  .how-to-container {
    margin-bottom:-1.5rem;
  }

  /* ✅ REMOVE DEFAULT 3D TRANSFORMS */
  .step-content[data-step-content="1"],
  .step-content[data-step-content="2"],
  .step-content[data-step-content="3"] {
    transform: none !important;
  }

  /* Step Card Adjustments */
  .step-card-header {
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
  }

  .step-number-text {
    font-size: 1.4rem;
  }

  .step-title-main {
    font-size: 1.05rem;
  }

  .step-card-body {
    margin-bottom: 0;
  }

  .step-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }

  .step-description {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
  }

  .step-list li {
    font-size: 0.825rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
  }
}

/* ========== EXTRA SMALL SCREENS - 576px AND BELOW ========== */
@media (max-width: 576px) {
  .steps-navigation {
    margin-top: -1rem;
    margin-bottom: -1rem;
    gap: 0.4rem;
  }

  .step-btn {
    width: 45px;
    height: 45px;
    padding: 0.65rem;
    font-size: 0.8rem;
  }

  .step-btn.active {
    min-width: 150px;
    padding: 0.65rem 1rem;
  }

  .step-number {
    font-size: 0.9rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .step-btn.active .step-label {
    max-width: 150px;
    margin-left: 0.4rem;
  }

  .step-content {
    padding: 1rem;
    min-height: 300px;
  }

  .step-card-header {
    flex-direction: row; /* Keep horizontal */
    align-items: center;
    gap: 0.5rem;
  }
}

/* ========== LOGO CAROUSEL - EDITORIAL STYLE ========== */
.logo-carousel-section {
  margin-top: 0;
  margin-bottom: 0; /* ✅ Removed from 100px */
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  padding: 60px 0 40px 0; /* ✅ Reduced bottom padding from 60px to 40px */
  position: relative;
  overflow: hidden;
  background: #F3F1DE;
  border-top: 2px solid #1C1C1C;
  border-bottom: none; /* ✅ Removed bottom border */
}


.carousel-header {
  text-align: center;
  margin-bottom: 50px;
}

.carousel-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #80B29B;
  margin-bottom: 15px;
  font-family: var(--font-secondary);
}

.carousel-title {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  color: #1C1C1C;
  letter-spacing: -1px;
  font-family: var(--font-primary);
}

.logo-track-container {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.logo-track-container::before,
.logo-track-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-track-container::before {
  left: 0;
  background: linear-gradient(to right, 
    #F3F1DE 0%, 
    rgba(243, 241, 222, 0.5) 50%,
    transparent 100%
  );
}

.logo-track-container::after {
  right: 0;
  background: linear-gradient(to left, 
    #F3F1DE 0%, 
    rgba(243, 241, 222, 0.5) 50%,
    transparent 100%
  );
}

.logo-track {
  display: flex;
  gap: 80px;
  animation: infiniteScroll 50s linear infinite; /* Changed from 40s to 50s */
  width: max-content;
}


@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 5)); /* Changed from / 3 to / 5 */
  }
}


.logo-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-item img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  opacity: 0.85; /* ✅ Slightly faded for elegant look */
  object-fit: contain;
}

.logo-item:hover img {
  transform: translateY(-8px);
  opacity: 1; /* ✅ Full color on hover */
}


.logo-item p {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1C1C1C;
  margin: 0;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
}

.logo-item:hover p {
  color: #DF7A5F;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-carousel-section {
    margin-bottom: 0;
    padding: 50px 0 30px 0;
  }

  .carousel-header {
    margin-bottom: 40px;
  }

  .carousel-title {
    font-size: 28px;
  }

  .logo-track {
    gap: 60px;
  }

  .logo-item img {  /* ✅ CHANGED from svg to img */
    width: 35px;
    height: 35px;
  }

  .logo-item p {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .logo-carousel-section {
    padding: 40px 0 20px 0;
    margin-bottom: 0;
  }

  .carousel-header {
    margin-bottom: 35px;
  }

  .carousel-title {
    font-size: 24px;
  }

  .logo-track {
    gap: 50px;
  }

  .logo-item img {  /* ✅ CHANGED from svg to img */
    width: 32px;
    height: 32px;
  }

  .logo-item p {
    font-size: 12px;
  }
}

