/* Digital Markets Page Styles */
.digital-markets-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;
}

.digital-markets-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

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

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

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

/* Intro Cards */
.crypto-marketing-intro {
  padding: 40px 0;
}

.intro-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 */
  justify-content: center;
}

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

.intro-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: 280px;
  scroll-snap-align: start; /* Snap cards to the start of the container */
}

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

.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: #ccc;
}

/* Marketing Channels Tabs */
/* Marketing Channels Tabs */
.marketing-channels {
  padding: 20px 15px;
  background: #2f2d2d;
}

.channel-tabs {
  margin-top: 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  background: #1d3220;
  border-bottom: 1px solid #f0f8ff;
}

.tab-button {
  padding: 15px 25px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #c4c4c4;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 0 !important;
}

.tab-button:hover {
  cursor: pointer;
  color: #1fd50a;
}

.tab-button.active {
  color: #f0f8ff;
  background: #2f6a27;
}

.tab-button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1fd50a;
}

.tab-content {
  display: none;
  padding: 30px;
  background: #40473f;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.tab-content h3 {
  margin-bottom: 20px;
  color: #f0f8ff;
}

/* Cards Container */
.cards-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.cards-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Card Styles */
.tab-card {
  min-width: 25%;
  height: 250px;
  perspective: 1000px;
  flex-shrink: 0;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-inner {
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

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

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

.card:hover .card-inner {
  cursor: pointer;
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}

.card-front {
  background: #263623;
  color: white;
}

.card-front i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #1fd50a;
}

.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);
}

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

/* Strategy Cards */
.marketing-strategies {
  padding: 20px 0;
  background-color: transparent;
}

.strategy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding: 0 2rem;
}

.strategy-card {
  background: #0e3a22;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.strategy-card:hover {
  cursor: pointer;
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.strategy-icon {
  font-size: 2.5rem;
  color: #00ff88;
  margin-bottom: 20px;
}

.strategy-card h3 {
  margin-bottom: 15px;
}

.strategy-card p {
  color: #f0f8ff;
  line-height: 1.6;
}

/* Tools Section */
.marketing-tools {
  padding: 20px 0;
  background-color: #2f2d2d;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.tool-card {
  perspective: 1000px;
  height: 300px;
}

.tool-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.tool-card:hover .card-inner {
  transform: rotateY(180deg);
}

.tool-card .card-front,
.tool-card .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tool-card .card-front {
  background: #263623;
  color: white;
}

.tool-card .card-back {
  background-color: #1a1a1a;
  color: #f0f8ff;
  transform: rotateY(180deg);
  text-align: left;
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.tool-icon {
  font-size: 2.5rem;
  color: #00ff88;
  margin-bottom: 20px;
}

.tool-card h3 {
  color: #00ff88;
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.tool-card .card-front p {
  color: #b8f1d5;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.card-cta {
  color: #d0e2ce;
  font-size: 0.9rem;
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  justify-content: center;
}

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

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

.tool-card .card:hover .card-inner {
  cursor: pointer;
  transform: rotateY(180deg);
}

.cta-span {
  display: flex;
  align-items: center;
}

.cta-icon i {
  font-size: 0.9rem;
}

.card-back ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.card-back ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.card-back li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: white;
  text-align: left;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.card-back li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.card-back li i {
  color: #00ff88;
  font-size: 1.1rem;
  min-width: 25px;
}

/* Mobile tap behavior */
@media (hover: none) {
  .tool-card:hover .card-inner {
    transform: none;
  }

  .tool-card.active .card-inner {
    transform: rotateY(180deg);
  }
}

/* Case Studies */
.case-studies {
  padding: 20px 0;
}

.case-study-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.case-study {
  background: #f0f8ff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.case-header {
  padding: 20px;
  background: linear-gradient(135deg, #3a7bd5, #00d2ff);
  color: #f0f8ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-header h3 {
  margin: 0;
}

.case-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.case-content {
  padding: 25px;
}

.case-content p {
  color: #f0f8ff;
  margin-bottom: 20px;
  line-height: 1.6;
}

.case-content ul {
  list-style-type: none;
  padding: 0;
}

.case-content ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 25px;
}

.case-content ul li:before {
  content: "✓";
  color: #3a7bd5;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.feature i {
  font-size: 1.3rem;
}

/* Reveal animation */
.crypto-marketing-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .intro-cards {
    justify-content: normal !important;
  }

  .tab-card {
    width: 35%;
  }

  .strategy-cards {
    padding: 0 1rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .tab-card {
    width: 100%;
  }

  .digital-markets-tagline {
    font-size: 1.2rem;
  }

  .consultation-cta h2 {
    font-size: 2rem;
  }

  .consultation-cta p {
    font-size: 1rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .tab-buttons {
    flex-direction: column;
  }

  .tab-button {
    width: 100%;
    text-align: left;
  }
}

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

/* Ensure case studies are properly displayed */
.case-study-carousel {
  position: relative;
  min-height: 400px; /* Adjust based on your content */
}

.case-study {
  display: block !important;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Fix for tab content display */
.tab-content {
  display: none;
  animation: fadeInUp 0.5s ease forwards;
}

.tab-content.active {
  display: block;
}
 