/* Opening Animation */
.opening-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  background: #0a0a0a;
  overflow: hidden;
}

.split-section {
  width: 50%;
  height: 50%;
  background: #181a19;
  transition: all 1.5s ease-in-out;
}

.top-left {
  transform-origin: top left;
}

.top-right {
  transform-origin: top right;
}

.bottom-left {
  transform-origin: bottom left;
}

.bottom-right {
  transform-origin: bottom right;
}

/* Hero Section */
.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;
}

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

.hero-background {
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/background/stfx_bg_1.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);
  }
}

/* Feature Card Hover Animations */
.card {
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

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

/* Platform Overview Section */
.overview {
  padding: 4rem 2rem;
  text-align: center;
  background: #1a1a1a;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.overview.animate {
  opacity: 1;
  transform: translateY(0);
}

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

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #f0f8ff;
}

.overview-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Card Container */
.overview-card {
  width: 31%;
  perspective: 1000px; /* Enable 3D space for flipping */
  height: 350px;
}

.card-front,
.card-back {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2a2a2a;
  border-radius: 15px;
  padding: 1rem;
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.card-front {
  flex-direction: column;
  text-align: center;
}

.card-front i {
  font-size: 3rem;
  color: #00ff88;
  margin-bottom: 1rem;
}

.card-front h3 {
  font-size: 1.5rem;
  color: #f0f8ff;
  margin-bottom: 1rem;
}

.card-front p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.card-back {
  flex-direction: column;
  padding: 1.5rem;
  background-color: #1a1a1a;
  border-radius: 15px;
  color: #f0f8ff;
  transform: rotateY(180deg);
  text-align: left;
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.learn-more {
  padding: 0.8rem 1.5rem;
  background: #00ff88;
  color: #0a0a0a;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: 2rem;
}

.learn-more:hover {
  cursor: pointer;
  background: #00cc66;
}

/* Flip effect on hover */
.overview-card:hover .card-front {
  transform: rotateY(180deg);
  cursor: pointer;
}

.overview-card:hover .card-back {
  transform: rotateY(0deg);
  cursor: pointer;
}

/* Key Features Section */
.features {
  padding: 4rem 2rem;
  text-align: center;
  background: #0a0a0a;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.features.animate {
  opacity: 1;
  transform: translateY(0);
}

.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: transform 0.3s ease;
  height: 240px;
  scroll-snap-align: start; /* Snap cards to the start of the container */
}

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

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

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

/* Feature Card Hover Animations */
.card {
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

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

/* Responsive adjustments */
@media screen and (max-width: 1040px) {
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

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

  .feature-cards {
    /* flex-direction: column; */
    align-items: center;
  }

  .card {
    width: 80%;
  }

  .overview-card {
    width: 45%;
  }

  .feature-item {
    width: 45%;
  }
}

@media screen and (max-width: 430px) {
  .overview-card {
    width: 100%;
  }

  .feature-item {
    width: 100%;
  }
}
