:root {
  --bg-dark: var(--bs-body-bg);
  /*--card-bg: rgba(18, 20, 28, 0.95);*/
  --card-hover: var(--card-hover-bg);
  --text-primary: var(--bs-body);
  --text-secondary: var(--bs-body);
  --accent: #2C096C;
  --gradient-1: var(--strong-color);
  --gradient-2: #6610F2;
  --gradient-3: var(--card-hover-bg-hover);
  --shadow-color: rgba(74, 144, 255, 0.1);
}
/* Glassmorphism CSS */
.glass {
    background: rgba(44, 2, 59, 0.09);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    /*border-top-left-radius: 20px;
    border-top-right-radius: 20px;*/
    border: 1px solid rgba(44, 2, 59, 0.11);
    box-shadow: 0 8px 22px rgba(31, 38, 135, 0.37);
}

 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(74, 144, 255, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(111, 66, 193, 0.05) 0%,
      transparent 40%
    );
  /*min-height: 100vh;
  /*display: flex;*/
  /*align-items: center;
  justify-content: center;
  font-family: "Segoe UI", sans-serif;
  padding: 2rem;
  perspective: 1000px;*/
}

/*.container {
  max-width: 1400px;
  margin: 0 auto;
}*/

.spm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(33%, 1fr));
  gap: 6rem;
  padding: 3rem;
  align-items: center;
  justify-content: center;
  align-content: center;
  justify-items: stretch;
  grid-auto-flow: row;
  flex-direction: row;
  flex-wrap: wrap;
}

.spm-card {
  position: relative;
  /*background: var(--card-bg);*/
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.spm-card::before,
.spm-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(74, 144, 255, 0.1),
    rgba(111, 66, 193, 0.1),
    transparent 60%
  );
  border-radius: inherit;
  z-index: -1;
  transition: all 0.5s ease;
  animation: borderGlow 3s linear infinite;
}

.spm-card::after {
  filter: blur(20px);
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: rotate(180deg);
  }
}

.spm-card:hover {
  transform: translateY(-10px) scale(1.02) rotateX(5deg) rotateY(5deg);
  background: var(--card-hover-bg);
  opacity: 0.7;
  box-shadow: 0 20px 40px var(--shadow-color), 0 0 20px rgba(74, 144, 255, 0.1),
    0 0 0 1px rgba(74, 144, 255, 0.1);
}

.spm-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  position: relative;
  z-index: 1;
}

.spm-card-image {
  height: 160px;
  background: linear-gradient(
    45deg,
    var(--gradient-1),
    var(--gradient-2),
    var(--gradient-3)
  );
  background-size: 200% 200%;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spm-card-image i {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateY(0);
  transition: all 0.5s ease;
  z-index: 2;
}

.spm-card:hover .card-image i {
  transform: translateY(-5px) scale(1.1);
  text-shadow: 0 5px 20px rgba(255, 255, 255, 0.8);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: all 0.5s ease;
  mix-blend-mode: overlay;
}

.spm-card:hover .glow {
  opacity: 1;
  animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2 i {
  color: var(--bs-nav-focus-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

h2 i:hover {
  color: var(--bs-nav-focus-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.spm-card:hover h2 {
  transform: translateZ(20px);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.spm-card:hover h2 i {
  transform: rotate(15deg) scale(1.2);
  color: var(--gradient-1);
}

p {
  color: var(--bs-body);
  line-height: 1.6;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.spm-card:hover p {
  transform: translateZ(15px);
  color: var(--bs-body);
}

button {
  background: linear-gradient(
    45deg,
    var(--gradient-1),
    var(--gradient-2),
    var(--gradient-3)
  );
  background-size: 200% 200%;
  border: none;
  padding: 0.8rem 1.5rem;
  color: var(--text-primary);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease infinite;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

button i {
  transition: transform 0.3s ease;
}

button:hover i {
  transform: translateX(3px);
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.spm-card:hover button::before {
  transform: translateX(100%);
}

button:hover {
  transform: translateY(-2px) translateZ(25px);
  box-shadow: 0 5px 15px rgba(74, 144, 255, 0.3),
    0 0 20px rgba(74, 144, 255, 0.2);
  letter-spacing: 0.5px;
}

.spm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spm-card:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .spm-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
  }

  .spm-card-content {
    padding: 1.5rem;
  }

  .spm-card-image {
    height: 140px;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.spm-card:hover .card-content {
  animation: float 3s ease infinite;
}