/* Team Page Styles */

.team-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 10, 46, 0.95), rgba(20, 20, 60, 0.9));
  padding-top: 80px;
  position: relative;
}

.team-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/image2.png') center/cover;
  opacity: 0.2;
  z-index: 0;
}

.team-hero-content {
  text-align: center;
  z-index: 1;
  padding: 2rem;
}

.team-hero-content h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 4rem;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.team-hero-subtitle {
  font-size: 1.3rem;
  color: #cccccc;
  max-width: 600px;
  margin: 1.5rem auto 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.team-section {
  background: linear-gradient(180deg, rgba(10, 10, 46, 0.95), rgba(5, 5, 30, 0.98));
  padding: 4rem 0 6rem;
  min-height: 60vh;
}

.team-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.team-card-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.team-card:hover .team-card-image img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.team-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.team-member-name {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.team-member-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #4a90e2;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.team-member-description {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 0.4rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.team-member-description:last-child {
  margin-bottom: 0;
}

/* Classified card styling - Military stamp look */
.team-card.classified {
  border-color: rgba(60, 60, 60, 0.5);
  background: linear-gradient(145deg, #1c1c1c 0%, #0f0f0f 100%);
  min-height: 350px;
  position: relative;
  overflow: hidden;
}

.team-card.classified::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.1) 2px,
      rgba(0, 0, 0, 0.1) 4px
    );
  pointer-events: none;
}

.team-card.classified:hover {
  border-color: rgba(180, 40, 40, 0.5);
  box-shadow: 0 15px 40px rgba(180, 40, 40, 0.15);
}

.classified-stamp {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

.stamp-text {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #b22222;
  letter-spacing: 6px;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 4px solid #b22222;
  border-radius: 4px;
  position: relative;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
  box-shadow:
    inset 0 0 0 2px transparent,
    0 0 20px rgba(178, 34, 34, 0.2);
}

.stamp-text::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #b22222;
  border-radius: 6px;
  opacity: 0.5;
}

.team-card.classified:hover .stamp-text {
  color: #cc2a2a;
  border-color: #cc2a2a;
  box-shadow:
    inset 0 0 0 2px transparent,
    0 0 30px rgba(204, 42, 42, 0.3);
}

/* Responsive Design */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 1.5rem;
  }

  .team-card-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .team-hero {
    min-height: 30vh;
    padding-top: 70px;
  }

  .team-hero-content h1 {
    font-size: 2.5rem;
  }

  .team-hero-subtitle {
    font-size: 1rem;
  }

  .team-section {
    padding: 2rem 0 4rem;
  }

  .team-container {
    padding: 0 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
  }

  .team-card {
    flex-direction: column;
    height: auto;
  }

  .team-card-image {
    width: 100%;
    height: 300px;
  }

  .team-card-content {
    padding: 1.25rem;
  }

  .team-member-name {
    font-size: 1.3rem;
  }

  .team-member-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .team-member-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .team-card.classified {
    min-height: 250px;
  }

  .stamp-text {
    font-size: 1.5rem;
    padding: 0.6rem 1.5rem;
    letter-spacing: 4px;
  }
}

@media (max-width: 480px) {
  .team-hero {
    min-height: 25vh;
  }

  .team-hero-content h1 {
    font-size: 2rem;
  }

  .team-hero-subtitle {
    font-size: 0.9rem;
  }

  .team-card-image {
    height: 250px;
  }

  .team-card-content {
    padding: 1rem;
  }

  .team-member-name {
    font-size: 1.2rem;
  }

  .team-member-title {
    font-size: 0.75rem;
  }

  .team-member-description {
    font-size: 0.85rem;
  }

  .team-card.classified {
    min-height: 200px;
  }

  .stamp-text {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    letter-spacing: 3px;
  }
}
