/* Trade Smarter Page Styling */
.how-it-works-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  opacity: 0;
  animation: fadeIn 1s ease-in-out 1.5s forwards;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-in-out 2s forwards;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInDown 1s ease-in-out 2.5s forwards;
}

.how-it-works-tagline {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-in-out 3s forwards;
}

.hero-background {
  position: absolute;
  top: 0rem;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/background/stfx_bg_2.jpg") no-repeat center
    center/cover;
  z-index: -1;
  opacity: 0.5;
  background-attachment: fixed;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal animation */
.how-it-works-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.platform-features {
  margin: 2rem auto;
}

/* Platform Features Section */
.feature-cards {
  display: flex;
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory; /* Snap cards into place */
  gap: 1.5rem;
  padding-bottom: 1rem; /* Add space for scrollbar (hidden) */
  margin-top: 2rem;
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.feature-cards::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.feature-cards .card {
  flex: 0 0 auto; /* Prevent cards from shrinking */
  width: 300px; /* Fixed width for each card */
  padding: 1.5rem;
  background: #2a2a2a;
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 280px;
  scroll-snap-align: start; /* Snap cards to the start of the container */
}

.feature-cards .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
  cursor: pointer;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00ff88;
  text-align: center;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #f0f8ff;
}

.card-description {
  font-size: 0.9rem;
  color: #f0f8ff;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.additional-info {
  margin: 2rem auto;
}

/* Responsive Design */
@media screen and (max-width: 1040px) {
  .hero-background {
    top: 0rem;
  }
}

@media (max-width: 768px) {
  .how-it-works-hero h1 {
    font-size: 2.5rem;
  }

  .how-it-works-hero .how-it-works-tagline {
    font-size: 1.2rem;
  }

  .how-it-works-step {
    width: 100%;
  }

  .how-it-works-feature {
    width: 100%;
  }
}
