
.carousel {
    position: relative  ;
    margin: 100px auto;
    width: 90%;
    border: 5px solid #ad1c1d;
    display: flex;
    overflow: hidden;
}

.carousel::-webkit-scrollbar{
    display: none;
}

/* Left fade */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Left side gradient */
.carousel::before {
  left: 0;
  background: linear-gradient(to right, #230717 0%, transparent 100%);
}

/* Right side gradient */
.carousel::after {
  right: 0;
  background: linear-gradient(to left, #230717 0%, transparent 100%);
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 15s linear infinite;
    padding-right: 1em;
}

/* Cards underneath the image */
.card {
    position: relative;
    flex: 0 0 5em;
    height: 5em;
    padding:0;
    background: #ad1c1d;
    font-size: 3rem;
    border-radius: .2em;
    text-align: center;
    align-content: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.1);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image on hover */
.card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 8px #ad1c1d, 0 0 20px #ad1c1d, 0 0 40px #ad1c1d;

  /* Animation */
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(2px);
  animation: glowPulse 2.5s infinite ease-in-out;
}

.card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* About us section */

.about {
  margin: 100px auto;
  width: 70%;
  text-align: center;
  background: rgba(35, 7, 23, 0.6);
  border: 2px solid #ad1c1d;
  border-radius: 20px;
  padding: 40px 60px;
  box-shadow: 0 0 20px rgba(173, 28, 29, 0.4);
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(118, 10, 164, 0.6);
}

/* Title */
.about h2 {
  font-family: 'Orbitron', sans-serif;
  color: #dc4848;
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 25px;
  text-shadow: 0 0 10px #ad1c1d, 0 0 20px #760aa4;
  text-transform: uppercase;
}

/* Paragraph text */
.about p {
  font-family: 'Lexend', sans-serif;
  color: #f1e4f8;
  font-size: 1.1rem;  
  line-height: 1.8;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

@keyframes spin{
    from {translate: 0;}
    to {translate: -100%;}
}

@keyframes glowPulse {
  0% {
    text-shadow:
      0 0 8px #ad1c1d,
      0 0 20px #ad1c1d,
      0 0 40px #ad1c1d;
  }

  50% {
    text-shadow:
      0 0 10px #760aa4,
      0 0 25px #760aa4,
      0 0 60px #760aa4;
  }

  100% {
    text-shadow:
      0 0 8px #ad1c1d,
      0 0 20px #ad1c1d,
      0 0 40px #ad1c1d;
  }   
}