/* Feature Section 2.0 Additions */
.feature-section {
  position: relative;
  overflow: hidden;
}
.feature-card {
  backdrop-filter: blur(8px);
}
.feature-card:hover {
  box-shadow: 0 12px 32px rgba(0, 174, 239, 0.25);
}
.feature-card .material-symbols-outlined {
  transition: transform 0.4s ease, color 0.4s ease;
}
.feature-card:hover .material-symbols-outlined {
  transform: rotate(12deg) scale(1.1);
  color: #00AEEF;
}

/* New animation for feature icon */
.feature-icon-wrapper {
  position: relative;
}

.feature-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 174, 239, 0.5));
  transition: transform 0.4s ease;
}

/* Animation */
@keyframes glowRotate {
  0% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 6px rgba(0, 174, 239, 0.3));
  }
  50% {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 174, 239, 0.7));
  }
  100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 6px rgba(0, 174, 239, 0.3));
  }
}

.animate-glow-rotate {
  animation: glowRotate 3.5s ease-in-out infinite;
}

.feature-icon-wrapper:hover .feature-icon-img {
  transform: scale(1.08);
}

/* ===========================================
   FEATURE ICONS โ Clean Rotating Light Ring
   =========================================== */

.feature-icon-wrapper {
  position: relative;
  overflow: hidden;
}

.feature-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.4s ease;
  filter: none; /* ๐งผ No glow or inner lighting */
}

/* --- Light Orbit Ring (default state) --- */
.orbit-ring {
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 174, 239, 0.25);
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}

/* --- Gradient Sweep for Orbit Ring --- */
.orbit-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(0, 174, 239, 0.9);
  border-right-color: rgba(0, 174, 239, 0.6);
  border-bottom-color: rgba(0, 174, 239, 0.3);
  border-left-color: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* --- Rotation Animation --- */
@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- Hover Behavior --- */
.feature-card:hover .orbit-ring {
  opacity: 1;
  border-color: rgba(0, 174, 239, 0.3);
}

.feature-card:hover .orbit-ring::before {
  opacity: 1;
  animation: rotateRing 2.8s linear infinite;
}

.feature-card:hover .feature-icon-img {
  transform: scale(1.06);
}
/* Feature Section Title  centered, forced 2-line layout */
.feature-section h2 {
  max-width: 40ch;          /* forces wrapping after ~32 characters */
  margin-left: auto;
  margin-right: auto;
  text-align: center;       /* center the text itself */
  line-height: 1.2;         /* spacing between title lines */
  margin-bottom: 1.25rem;   /* spacing between title and subtitle */
  white-space: normal;
}

/* Subtitle */
.feature-section p {
  text-align: center;       /* center subtitle too */
  margin-top: 0.25rem;
  line-height: 1.55;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}
/* Fix for invisible 'feature-left' section */
.feature-left {
    opacity: 1 !important;
    transform: none !important;
}

/* Fix for invisible right-side feature cards */
.atlas-feature-boxes .feature-card {
    opacity: 1 !important;
    transform: none !important;
}