/* TEAM SECTION STYLES */

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.team-card {
  background: rgba(26, 71, 49, 0.4);
  border: 1px solid rgba(76, 175, 125, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  width: 300px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(76, 175, 125, 0.2);
}

.team-photo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(45deg, #1a4731, #4caf7d);
  box-shadow: 0 0 20px rgba(76, 175, 125, 0.5), inset 0 0 10px rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease;
}

.team-card:hover .team-photo-wrap {
  box-shadow: 0 0 40px rgba(76, 175, 125, 0.8), inset 0 0 15px rgba(255,255,255,0.4);
}

.team-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #2d7a4f;
  border: 3px solid #000; /* Separator between gradient and photo */
  z-index: 2;
  position: relative;
}

.photo-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.team-photo-wrap:hover .photo-upload-overlay {
  opacity: 1;
}

.upload-btn {
  color: white;
  background: #4caf7d;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.upload-btn:hover {
  background: #3e8e41;
  transform: scale(1.05);
}

.photo-input {
  display: none;
}

/* Rotating Icons */
.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  animation: orbit 15s linear infinite;
  transform-origin: center center;
}

.orbit-icon:nth-of-type(1) { animation-delay: 0s; }
.orbit-icon:nth-of-type(2) { animation-delay: -2.5s; }
.orbit-icon:nth-of-type(3) { animation-delay: -5s; }
.orbit-icon:nth-of-type(4) { animation-delay: -7.5s; }
.orbit-icon:nth-of-type(5) { animation-delay: -10s; }
.orbit-icon:nth-of-type(6) { animation-delay: -12.5s; }

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.team-name {
  font-size: 1.4rem;
  color: white;
  margin: 0.5rem 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.team-role {
  font-size: 1rem;
  color: #aed581;
  line-height: 1.6;
  margin: 0;
}

.team-actions {
  text-align: center;
  margin-top: 3rem;
}

.save-message {
  margin-top: 1rem;
  font-weight: bold;
  color: #4caf7d;
  font-size: 1.1rem;
  animation: fade-up 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
  }
}
