
.features-hero {
  text-align: center;
  padding: 5rem 5% 2rem;
}

.features-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 100px;
}

.features-subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.9;
}

.feature-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-icon-container {
  text-align: center;
  width: 150px;
}

.feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.3s ease;
}

.feature-icon:hover .icon-glow,
.feature-icon.active .icon-glow {
  opacity: 1;
  transform: scale(1.2);
}

.feature-icon:hover,
.feature-icon.active {
  transform: translateY(-5px);
}

.quests-icon {
  background-image: url("../images/quests-icon.png");
}

.items-icon {
  background-image: url("../images/items-icon.png");
}

.magic-icon {
  background-image: url("../images/magic-icon.png");
}

.coop-icon {
  background-image: url("../images/coop-icon.png");
}

.castle-icon {
  background-image: url("../images/castle-icon.png");
}

.feature-icon-container h3 {
  font-size: 1.1rem;
  color: var(--text-light);
}


.feature-details {
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.feature-panel.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.feature-content {
  padding: 2rem;
  background: rgba(36, 0, 70, 0.3);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-content h2 {
  color: var(--yellow-accent);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.feature-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--teal-accent);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--teal-accent);
}

.feature-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.feature-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.3) 0%, transparent 50%);
}

.quests-image {
  background-image: url("../images/quests-feature.jpg");
}

.items-image {
  background-image: url("../images/items-feature.jpg");
}

.magic-image {
  background-image: url("../images/magic-feature.jpg");
}

.coop-image {
  background-image: url("../images/coop-feature.jpg");
}

.castle-image {
  background-image: url("../images/castle-feature.jpg");
}


.cross-platform {
  padding: 5rem 5%;
  position: relative;
}

.platform-slider {
  max-width: 1000px;
  margin: 3rem auto 1rem;
  overflow: hidden;
  position: relative;
}

.platform-slide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  opacity: 0;
  position: absolute;
  width: 100%;
  transition: all 0.5s ease;
  transform: translateX(100%);
}

.platform-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.device-mockup {
  flex: 1;
  min-width: 300px;
  height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}


.device-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.platform-info {
  flex: 1;
  min-width: 300px;
}

.platform-info h3 {
  color: var(--yellow-accent);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.platform-info p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.platform-info ul {
  list-style: none;
}

.platform-info li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.platform-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--teal-accent);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--teal-accent);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-arrow {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(157, 78, 221, 0.3);
  box-shadow: 0 0 10px var(--purple-accent);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--teal-accent);
  box-shadow: 0 0 5px var(--teal-accent);
}


.unique-mechanics {
  padding: 5rem 5%;
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.mechanic-card {
  background: rgba(36, 0, 70, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.mechanic-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--purple-accent);
}

.mechanic-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.spell-merge-icon {
  background-image: url("../images/mechanics/spell-merge.png");
}

.goblin-bank-icon {
  background-image: url("../images/mechanics/goblin-bank.png");
}

.rune-door-icon {
  background-image: url("../images/mechanics/rune-door.png");
}

.time-shift-icon {
  background-image: url("../images/mechanics/time-shift.png");
}

.mechanic-card h3 {
  color: var(--yellow-accent);
  margin-bottom: 1rem;
}


.cta-section {
  text-align: center;
  padding: 5rem 5%;
  background: rgba(36, 0, 70, 0.2);
}

.cta-section h2 {
  margin-bottom: 2rem;
}


@media (max-width: 992px) {
  .features-hero h1 {
    font-size: 2.5rem;
  }

  .feature-panel {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 300px;
    order: -1;
  }

  .platform-slide {
    flex-direction: column;
    gap: 2rem;
  }

  .device-mockup {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .features-hero h1 {
    font-size: 2rem;
  }

  .features-subtitle {
    font-size: 1rem;
  }

  .feature-icons {
    gap: 1.5rem;
  }

  .feature-icon-container {
    width: 120px;
  }

  .feature-icon {
    width: 80px;
    height: 80px;
  }

  .feature-content h2 {
    font-size: 1.8rem;
  }

  .feature-image {
    height: 250px;
  }

  .device-mockup {
    height: 300px;
  }

  .platform-info h3 {
    font-size: 1.5rem;
  }
}

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

  .feature-icon-container {
    width: 100px;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
  }

  .feature-content {
    padding: 1.5rem;
  }

  .feature-content h2 {
    font-size: 1.5rem;
  }

  .feature-image {
    height: 200px;
  }

  .device-mockup {
    height: 250px;
  }

  .mechanic-icon {
    width: 60px;
    height: 60px;
  }
}
