* {
  margin: 0;
  padding: 0;
  
}
  :root{
    --pxspecial-main-font: "Outfit", sans-serif;
    --pxspecial-heading-font:  "Kavoon", serif;
    --pxspecial-subtitle-font: "Roboto Condensed", sans-serif;
    --pxspecial-letter-space: 1px;
    --pxspecial-heading-font-size:30px;
    --pxspecial-subtitle-font-size:28px;
    --pxspecial-main-font-size:18px;
  }
/* .pxspecial-section {
 padding-bottom: 30px;
  background: #2AA198;
} */

.pxspecial-section {
  padding-bottom: 30px;
  /* background: linear-gradient(135deg, #1B3C73, #0D1B2A, #1B3C73); */
  background:#e1c0e0;;
  background-size: 300% 300%;
  animation: sectionGradient 15s ease infinite;
}

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

.pxspecial-team-title{
  text-align: center;
  padding: 20px 0 0 0;
  color: #fff;
  font-weight: 600;
  font-family: var(--heading-font);
  text-transform:capitalize; 
  font-size: 40px;
}
.pxspecial-team-subtitle{
  text-align: center;
  padding: 0px 0 10px 0;
  color: #fff;
  font-weight: 400;
  font-family: var(--subtitle-font);
  text-transform:capitalize; 
  font-size: var(--subtitle-font-size);
  /* letter-spacing: 0.1em; */
}
.pxspecial-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
 
}

/* .pxspecial-box {
  position: relative;
  width: 400px;
  height: 500px;
  background: #210440;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
} */

.pxspecial-box {
  position: relative;
  width: 250px;       /* slightly smaller width */
  height: 250px;      /* reduced height from 500px to 450px */
  /* background: rgba(0, 0, 0, 0.5); */
  background: white;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* .pxspecial-box::before,
.pxspecial-box::after {
  content: "";
  position: absolute;
  background: linear-gradient(315deg, #00ccff, #d400d4);
  inset: -80px 100px;
  transition: 0.5s;
  filter: hue-rotate(calc(var(--i) * 120deg));
  animation: pxspecial-animate 8s linear infinite;
}

.pxspecial-box::after {
  background: linear-gradient(315deg, #ffeb3b, #e91e63);
  filter: hue-rotate(calc(var(--i) * 120deg));
  animation-delay: -2s;
} */
 .pxspecial-box::before,
.pxspecial-box::after {
  content: "";
  position: absolute;
  /* background: linear-gradient(315deg, #00eaff, #7b2ff7); Cyan + Purple */
  inset: -80px 100px;
  transition: 0.5s;
  filter: hue-rotate(calc(var(--i) * 120deg));
  animation: pxspecial-animate 8s linear infinite;
}

.pxspecial-box::after {
  /* background: linear-gradient(315deg, #ff9a00, #ff1d58); Orange + Pink */
  filter: hue-rotate(calc(var(--i) * 120deg));
  animation-delay: -2s;
}


.pxspecial-box:hover::before,
.pxspecial-box:hover::after {
  animation-play-state: paused;
  inset: -80px 80px;
}

@keyframes pxspecial-animate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pxspecial-box i {
  position: absolute;
  inset: 3px;
  background: #210440 ;
  z-index: 1;
}

.pxspecial-content {
  position: absolute;
  inset: 20px;
  background: #210440 ;
  border: 2px solid white;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  background-size: cover;
}

.pxspecial-content img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: #00eaff;
  width: 242px; */
  /* height: 208px; */
  /* height: 206px; */
  object-fit: contain;
  transition: 0.3s;
  z-index: 3;
  pointer-events: none;
}

.pxspecial-box:hover .pxspecial-content img {
  opacity: 0;
}

.pxspecial-content h2 {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.25em;
  text-transform: uppercase;
     font-family: var(--pxspecial-main-font);
  
    font-size:var(--pxspecial-main-font-size) ;
}

.pxspecial-content h2 span {
  font-weight: 300;
  font-size: 0.75em;
}

.pxspecial-content a {
  position: relative;
  margin-top: 10px;
  padding: 10px 20px;
    font-family: var(--pxspecial-main-font);
  background: #fff;
  color: #210440 ;
  border-radius: 25px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: 0.3s;
}

.pxspecial-content a:hover {
  letter-spacing: 0.2em;
}


/* @media screen and (max-width: 430px) {
  .pxspecial-box {
    width: 250px;
    height: 350px;
  }

  .pxspecial-content h2 {
    font-size: 0.85em;
  }

  .pxspecial-content h2 span {
    font-size: 0.75em;
  }

  .pxspecial-content a {
    font-size: 0.65em;
  }
} */


@media screen and (max-width: 430px) {
  /* .pxspecial-box {
    width: 220px;
    height: 320px;    smaller height for mobile
  } */
.pxspecial-team-title{
  font-size: 32px;
}
.pxspecial-team-subtitle{
  font-size: 23px;
}
  .pxspecial-content h2 {
    font-size: 0.85em;
  }

  .pxspecial-content h2 span {
    font-size: 0.75em;
  }

  .pxspecial-content a {
    font-size: 0.65em;
  }
}


/* .pxspecial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
    position: relative;
}

.pxspecial-box {
  margin-left: 30px;
  margin-right: 30px;
  flex: 1 1 calc(15% - 40px); 
}

@media (max-width: 1399px) {
  .pxspecial-container {
  gap: 40px;
}
  .pxspecial-box {
      margin-left: 40px;
  margin-right: 40px;
    flex: 1 1 calc(40% - 40px);
  }
}

@media (max-width: 700px) {
  .pxspecial-box {
    flex: 1 1 100%;
  }
} */
