/* ============================
   Premium Features Section
   ============================ */

.features {
  background: linear-gradient(120deg, #1e96ff, #ff3de2ef, #4bec2fca, #8a2afff8);
  background-size: 300% 300%;
  padding: 5rem 0;
  animation: gradientBG 8s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.features .container {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card Wrapper */
.feature-card-container {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.4s ease;
  position: relative;
}

/* Card Base */
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #333;
  z-index: 0;
}

/* Glow Gradient on Hover */
.feature-card-container:hover .feature-card {
  background: linear-gradient(135deg, rgba(0, 184, 255, 0.95), rgba(255, 0, 200, 0.95));
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(-10px) scale(1.02);
}

/* Shine Effect */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.feature-card-container:hover .feature-card::before {
  left: 130%;
}

/* Icon */
.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7f00ff, #e100ff);
  color: white;
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 10px 30px rgba(127, 0, 255, 0.35);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.feature-card-container:hover .feature-icon {
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 0, 200, 0.5);
}

/* Title */
.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: inherit;
  position: relative;
  z-index: 2;
  transition: color 0.03s ease;
}

/* Description */
.feature-card p {
  color: inherit;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

/* Button/Link */
.feature-more {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  color: blue;
}

.feature-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.feature-card-container:hover .feature-more i {
  transform: translateX(6px);
}

/* Smooth Scroll Animation (AOS recommended) */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.6s;
  transition-timing-function: ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
}

.section-title h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
  letter-spacing: 1px;
  transition: transform 0.3s ease, color 0.3s ease;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #00fff2, #ff00c3);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-title h2:hover {
  transform: translateY(-4px);
  color: #f5f5f5;
}

.section-title h2:hover::after {
  width: 80%;
}

.section-title p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 1.2rem auto 0;
  line-height: 1.7;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 1.6s ease forwards;
  animation-delay: 0.3s;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  0% {
    transform: translateY(24px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
