/* Diversification Page Styles */
.diversification-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;
}

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

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

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

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

/* Intro Cards */
.diversification-intro {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cccccc;
  text-align: center;
}

.section-outro {
  max-width: 800px;
  margin: 40px auto 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cccccc;
  text-align: center;
}

.intro-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1rem;
  margin-top: 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: center;
}

.intro-cards::-webkit-scrollbar {
  display: none;
}

.intro-cards .card {
  flex: 0 0 auto;
  width: 300px;
  padding: 1.5rem;
  background: #2a2a2a;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 280px;
  scroll-snap-align: start;
}

.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;
  text-align: center;
}

.card-description {
  font-size: 0.9rem;
  color: #cccccc;
  text-align: center;
}

/* Asset Classes Section */
.asset-classes {
  padding: 80px 20px;
  background-color: #2f2d2d;
}

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

.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;
  text-align: center;
}

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

.cards-container::-webkit-scrollbar {
  display: none;
}

/* 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.6s;
  transform-style: preserve-3d;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tab-card:hover .card-inner {
  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 {
  background-color: #1a1a1a;
  color: #f0f8ff;
  transform: rotateY(180deg);
  text-align: left;
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
  padding: 1.5rem;
}

/* Strategy Cards */
.diversification-strategies {
  padding: 80px 20px;
  background-color: #1a1a1a;
}

.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 {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
}

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

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

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

/* Portfolio Examples Section */
.portfolio-examples {
  padding: 80px 20px;
  background-color: #2f2d2d;
}

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

.portfolio-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.portfolio-description {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  color: #f0f8ff;
}

.portfolio-stats {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ff88;
}

.stat-label {
  font-size: 0.9rem;
  color: #cccccc;
}

.portfolio-allocation {
  display: flex;
  gap: 30px;
  align-items: center;
}

.allocation-chart {
  width: 200px;
  height: 200px;
}

.allocation-details {
  flex: 1;
}

.allocation-details ul {
  list-style: none;
  padding: 0;
}

.allocation-details li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #f0f8ff;
}

.asset-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Tools Section */
.diversification-tools {
  padding: 80px 20px;
  background-color: #1a1a1a;
}

.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.6s;
  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;
}

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

/* Success Stories Section */
.success-stories {
  padding: 80px 20px;
  background-color: #1a1a1a;
}

.stories-carousel-container {
  margin: 40px 0;
  min-height: 400px;
  position: relative;
}

.story-card {
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.story-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.story-content {
  padding: 20px;
}

.story-content h3 {
  color: #00ff88;
  margin-top: 0;
}

.story-content p {
  color: #cccccc;
  line-height: 1.6;
}

.story-stat {
  color: #00ff88;
  font-weight: bold;
  margin: 15px 0;
}

.learn-more {
  color: #00ff88;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.learn-more:hover {
  text-decoration: underline;
}

/* CTA Section */
.cta {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00ff88;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #cccccc;
  line-height: 1.6;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f8ff;
}

.feature i {
  color: #00ff88;
}

.cta-button i {
  margin-left: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1040px) {
  .intro-cards {
    justify-content: flex-start;
  }

  .tab-card {
    width: 35%;
  }

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

  .portfolio-allocation {
    flex-direction: column;
  }
}

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

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

  .tab-card {
    width: 100%;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1rem;
  }

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

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

  .tab-buttons {
    flex-direction: column;
  }

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

  .portfolio-stats {
    flex-direction: column;
    gap: 10px;
  }
}

/* Animation Styles */
@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);
  }
}
