/* Keyframes for transitioning between vibrant color sets without red and pink */
@keyframes get-involved-rotateGradient {
  0% {
    background: linear-gradient(45deg, rgba(255, 75, 0, 0.7), #ffb700);
  }
  10% {
    background: linear-gradient(45deg, #ff4b00, #ffb700);
  }
  20% {
    background: linear-gradient(45deg, #ffb700, #9cff00);
  }
  30% {
    background: linear-gradient(45deg, #9cff00, #00ff80);
  }
  40% {
    background: linear-gradient(45deg, #00ff80, #00bfff);
  }
  50% {
    background: linear-gradient(45deg, #00bfff, rgba(42, 109, 167, 0.5));
  }
  60% {
    background: linear-gradient(45deg, rgba(42, 109, 167, 0.5), #8e44ad);
  }
  70% {
    background: linear-gradient(45deg, #8e44ad, #ff69b4);
  }
  100% {
    background: linear-gradient(45deg, #ff4b00, #ffb700);
  }
}

/* Main container for the text and gradient, centered using transform */
.get-involved {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(0% 0, 100% 0, 88% 100%, 12% 100%);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: 1.75em; /* Updated size */
  text-align: center;
  font-family: Arial, sans-serif;
  overflow: hidden;
  background: linear-gradient(45deg, rgba(255, 75, 0, 0.7), #ffb700);
  animation: get-involved-rotateGradient 40s linear infinite;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Text Layer for both h1 and h2 with balanced contrast */
.get-involved h1,
.get-involved h2 {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 10px;
  margin: 15px 0;
  background-image: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  color: rgba(255, 255, 255, 0.93);
  opacity: 1;
  text-align: center;

  /* Subtle dark outline for edge clarity */
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.5);
  text-stroke: 0.6px rgba(0, 0, 0, 0.5);

  /* Moderate layered text shadows */
  text-shadow:
    0 -0.75px 1.5px rgba(255, 255, 255, 0.7),  /* softer upper rim highlight */
    0 0.75px 1px rgba(0, 0, 0, 0.55),          /* mild dark inner bevel */
    0 2.5px 5px rgba(0, 0, 0, 0.35),           /* gentle base shadow */
    0 6px 15px rgba(0, 80, 150, 0.25),         /* light glass hue shadow */
    0 0 20px rgba(0, 200, 255, 0.15),          /* subtle cool glow */
    0 0 45px rgba(255, 255, 255, 0.07);        /* faint bloom for glass halo */
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
  .get-involved {
    width: 97%;
    max-width: 97%;
    left: calc(50% - 0.3em);
    transform: translateX(-50%);
    clip-path: polygon(4% 0, 96% 0, 89% 100%, 11% 100%);
  }

  .get-involved h1,
  .get-involved h2 {
    font-size: 0.9em;

    -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.55);
    text-stroke: 0.4px rgba(0, 0, 0, 0.55);

    text-shadow:
      0 -0.5px 1px rgba(255, 255, 255, 0.6),
      0 0.5px 1px rgba(0, 0, 0, 0.55),
      0 1.5px 3px rgba(0, 0, 0, 0.3),
      0 0 12px rgba(0, 200, 255, 0.15);
  }
}
