/* ChromaGrid Effect for Team Members */
.chroma-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 320px);
  grid-auto-rows: auto;
  justify-content: center;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;

  --x: 50%;
  --y: 50%;
  --r: 220px;
}

@media (max-width: 1124px) {
  .chroma-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
    gap: 0.5rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .chroma-grid {
    grid-template-columns: 320px;
    gap: 0.75rem;
    padding: 1rem;
  }
}

.chroma-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 320px;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #333;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--card-gradient);
  aspect-ratio: 2/3;
  cursor: pointer;

  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.3);
}

.chroma-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-color: var(--card-border);
}

.chroma-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y),
      var(--spotlight-color),
      transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

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

.chroma-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  padding: 10px;
  box-sizing: border-box;
  background: transparent;
  transition: background 0.3s ease;
}

.chroma-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: block;
  transition: transform 0.4s ease;
}

.chroma-card:hover .chroma-img-wrapper img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.chroma-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--card-border, #7B61FF) 0%, var(--card-border, #7B61FF) 25%, rgba(123, 97, 255, 0.9) 40%, rgba(123, 97, 255, 0.6) 60%, rgba(123, 97, 255, 0.3) 80%, transparent 100%);
  color: white;
  padding: 1.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 35%;
}

.chroma-card:hover .chroma-info {
  background: rgba(123, 97, 255, 0.85);
  height: 100%;
  justify-content: flex-start;
  top: 0;
  left: 0;
  right: 0;
  text-align: left;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.chroma-info .name {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  order: 3;
  position: absolute;
  bottom: 3.5rem;
  left: 2rem;
  right: 2rem;
}

.chroma-info .role {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 1rem 0;
  opacity: 0.9;
  color: white;
  order: 4;
  position: absolute;
  bottom: 1rem;
  left: 2rem;
  right: 2rem;
}

.chroma-info .bio {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.1s;
  max-height: 0;
  overflow: hidden;
  color: white;
}

.chroma-card:hover .chroma-info .bio {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
  margin-bottom: 2rem;
  order: 1;
}

.chroma-info .handle {
  color: #aaa;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.2s;
  order: 2;
}

.chroma-card:hover .chroma-info .handle {
  opacity: 1;
  transform: translateY(0);
}

.chroma-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  backdrop-filter: grayscale(1) brightness(0.78);
  -webkit-backdrop-filter: grayscale(1) brightness(0.78);
  background: rgba(0, 0, 0, 0.001);

  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
      transparent 0%,
      transparent 15%,
      rgba(0, 0, 0, 0.10) 30%,
      rgba(0, 0, 0, 0.22) 45%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.50) 75%,
      rgba(0, 0, 0, 0.68) 88%,
      white 100%);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
      transparent 0%,
      transparent 15%,
      rgba(0, 0, 0, 0.10) 30%,
      rgba(0, 0, 0, 0.22) 45%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.50) 75%,
      rgba(0, 0, 0, 0.68) 88%,
      white 100%);
}

.chroma-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  backdrop-filter: grayscale(1) brightness(0.78);
  -webkit-backdrop-filter: grayscale(1) brightness(0.78);
  background: rgba(0, 0, 0, 0.001);

  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
      white 0%,
      white 15%,
      rgba(255, 255, 255, 0.90) 30%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(255, 255, 255, 0.65) 60%,
      rgba(255, 255, 255, 0.50) 75%,
      rgba(255, 255, 255, 0.32) 88%,
      transparent 100%);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
      white 0%,
      white 15%,
      rgba(255, 255, 255, 0.90) 30%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(255, 255, 255, 0.65) 60%,
      rgba(255, 255, 255, 0.50) 75%,
      rgba(255, 255, 255, 0.32) 88%,
      transparent 100%);

  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Placeholder content styling */
.chroma-img-wrapper .placeholder-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  color: white;
  text-align: center;
}

.chroma-img-wrapper .placeholder-bio {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

/* Dog member special effects for ChromaGrid */
.chroma-card.dog-member {
  position: relative;
  overflow: visible;
}

.chroma-card.dog-member::after {
  content: 'Hop Hop! 🐾';
  position: absolute;
  top: -50px;
  right: -25px;
  background: linear-gradient(45deg, #FF6B6B, #FFE66D, #FF8E53);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(30px) scale(0.7) rotate(-5deg);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4), 0 2px 8px rgba(255, 230, 109, 0.3);
  animation: hopHopAppear 3s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.chroma-card.dog-member:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1.1) rotate(0deg);
  animation: hopHopBounce 0.6s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5), 0 4px 12px rgba(255, 230, 109, 0.4);
}

/* Responsive adjustments for team member cards */
@media (max-width: 1024px) {
  .chroma-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
  }
  
  .chroma-card {
    width: 280px;
  }
  
  .chroma-info {
    padding: 1.25rem 1.5rem;
  }
  
  .chroma-info .name {
    font-size: 1.125rem;
    bottom: 3rem;
    left: 1.5rem;
    right: 1.5rem;
  }
  
  .chroma-info .role {
    font-size: 0.875rem;
    bottom: 0.75rem;
    left: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .chroma-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
  }
  
  .chroma-card {
    width: 250px;
  }
  
  .chroma-info {
    padding: 1rem 1.25rem;
  }
  
  .chroma-info .name {
    font-size: 1rem;
    bottom: 2.5rem;
    left: 1.25rem;
    right: 1.25rem;
  }
  
  .chroma-info .role {
    font-size: 0.8125rem;
    bottom: 0.5rem;
    left: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .chroma-grid {
    grid-template-columns: 280px;
  }
  
  .chroma-card {
    width: 280px;
  }
  
  .chroma-info {
    padding: 1.25rem;
  }
  
  .chroma-info .name {
    font-size: 1rem;
    bottom: 3rem;
    left: 1.25rem;
    right: 1.25rem;
  }
  
  .chroma-info .role {
    font-size: 0.875rem;
    bottom: 1rem;
    left: 1.25rem;
    right: 1.25rem;
  }
} 