.feature-card-img:hover + .glow-border {
  opacity: 1;
  animation: borderGlow 3s linear infinite;
  transform: translateY(-10px);
}

.feature-card-img:hover ~ .feature-card {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(210, 95, 120, 0.15);
  border: 1px solid rgba(169, 76, 96, 0.5);
  transform: translateY(-10px);
}

.feature-card-img:hover ~ .feature-card .feature-card-shine {
  opacity: 1;
  animation: shine 1.5s infinite ease-in-out;
}

.feature-card-img:hover {
  transform: translateX(-50%) scale(1.08) translateY(-8px);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
  z-index: 10;
  cursor: pointer;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 300% 0%;
  }
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.glow-border {
  position: absolute;
  top: 60px; 
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 27px;
  padding: 5px;
  border: 3px solid transparent;
  background: linear-gradient(90deg, 
    rgba(255, 170, 150, 0.3), 
    rgba(255, 170, 150, 0.8),
    rgba(255, 170, 150, 0.9),
    rgba(255, 170, 150, 0.8),
    rgba(255, 170, 150, 0.3)) border-box;
  background-size: 300% 100%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  box-shadow: 0 0 15px rgba(255, 170, 150, 0.3);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
}

.feature-card-wrapper:hover .glow-border {
  opacity: 1;
  animation: borderGlow 3s linear infinite;
  transform: translateY(-10px);
}

@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .glow-border {
    -webkit-mask: none;
    mask: none;
    border: 3px solid transparent;
    background: linear-gradient(90deg, 
      rgba(255, 170, 150, 0.3), 
      rgba(255, 170, 150, 0.8),
      rgba(255, 170, 150, 0.9),
      rgba(255, 170, 150, 0.8),
      rgba(255, 170, 150, 0.3)) border-box;
    border-radius: 27px;
    top: 60px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: 1;
  }
}

.features-cards-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 100px;
  margin-top: 100px;
  position: relative;
  z-index: 5;
  max-width: 100%;
  padding: 0 50px;
}

.features-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  margin-bottom: 80px;
  position: relative;
}

.row-side {
  width: 50%;
  display: flex;
  justify-content: center;
}

.left-side {
  display: flex;
  justify-content: flex-end;
  padding-right: 10%;
}

.right-side {
  display: flex;
  justify-content: flex-start;
  padding-left: 10%;
}

.feature-card-wrapper {
  position: relative;
  width: 500px;
  padding-top: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
  transform: translateY(0);
}

.feature-card-wrapper:hover {
  transform: translateY(-10px);
}

.feature-card-wrapper:hover .feature-card {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(210, 95, 120, 0.15);
  border: 1px solid rgba(169, 76, 96, 0.5);
}

.feature-card-wrapper:hover .feature-card-img {
  transform: translateX(-50%) scale(1.08) translateY(-8px);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
  z-index: 10;
}



.feature-card {
  position: relative;
  width: 100%;
  height: 420px;
  background: linear-gradient(145deg, rgba(26, 15, 12, 0.98), rgba(21, 12, 10, 0.98));
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(169, 76, 96, 0.2);
  padding: 40px 30px 20px;
  z-index: 2;
}

.feature-card:before {
  content: "";
  position: absolute;
  top: -20px;
  width: 100%;
  height: 135px;
  background: rgba(169, 76, 96, 0.15);
  filter: blur(10px);
  border-radius: 50%;
  z-index: -1;
}

.feature-card-img {
  width: auto;
  height: 200px;
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  z-index: 10;
  object-fit: contain;
}

.feature-card-wrapper:hover .feature-card-img {
  transform: translateX(-50%) scale(1.08) translateY(-8px);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
  z-index: 10;
}

.feature-card-content {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card-wrapper:hover .feature-card {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(210, 95, 120, 0.15);
  border: 1px solid rgba(169, 76, 96, 0.5);
}

.feature-card-title {
  color: #F4DAC1;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

.feature-card-title:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(210, 95, 120, 0.8), transparent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.feature-card-text {
  color: #bcaa9c;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

.feature-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0.05) 100%
  );
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-card-shine {
  opacity: 1;
  animation: shine 1.5s infinite ease-in-out;
}

#dungeons-img {
  top: -105px;
}

#worldboss-img {
  top: -110px;
}

@media (max-width: 1600px) {
  .feature-card-wrapper {
    width: 480px;
  }
  
  .feature-card-img {
    height: 180px;
  }
  
  .left-side {
    padding-right: 6%;
  }
  
  .right-side {
    padding-left: 6%;
  }
}

@media (max-width: 1400px) {
  .feature-card-wrapper {
    width: 450px;
  }
  
  .left-side {
    padding-right: 4%;
  }
  
  .right-side {
    padding-left: 4%;
  }
  
  .feature-card-img {
    height: 170px;
  }
}

@media (max-width: 1200px) {
  .features-cards-container {
    padding: 0 30px;
  }
  
  .feature-card-wrapper {
    width: 420px;
  }
  
  .left-side {
    padding-right: 2%;
  }
  
  .right-side {
    padding-left: 2%;
  }
  
  .feature-card-img {
    height: 160px;
  }
}

@media (max-width: 992px) {
  .features-row {
    flex-direction: column;
    align-items: center;
    gap: 120px;
  }
  
  .row-side {
    width: 100%;
    padding: 0;
  }
  
  .left-side, .right-side {
    justify-content: center;
    padding: 0;
  }
  
  .feature-card-wrapper {
    width: 500px;
  }
  
  .feature-card-img {
    height: 180px;
  }
  
  .feature-card-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 880px) {
  .features-cards-container {
    gap: 80px;
  }
  
  .feature-card-wrapper {
    width: 480px;
  }
  
  .features-row {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .features-cards-container {
    padding: 0 20px;
  }
  
  .feature-card-wrapper {
    width: 100%;
    max-width: 400px;
    padding-top: 60px;
  }
  
  .feature-card {
    height: 440px;
  }
  
  .feature-card-title {
    font-size: 1.4rem;
  }
  
  .feature-card-text {
    font-size: 0.9rem;
  }
  
  .feature-card-img {
    height: 150px;
    top: -85px;
  }
  
  #dungeons-img {
    top: -100px;
  }
  
  #worldboss-img {
    top: -105px;
  }
}