.team-section,
.team-section * {
  box-sizing: border-box;
}

.team-section h2,
.team-section p {
  margin: 0;
  padding: 0;
}

.team-section {
  padding: 100px 20px 60px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Raleway", system-ui, sans-serif;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

.team-header {
  margin-bottom: 60px;
  text-align: center;
}

.team-header h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  text-transform: uppercase;
}

.team-orange {
  color: #ff5a1f;
  font-weight: 700;
}

.team-header p {
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.5;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 60px;
  gap: 40px 30px;
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 400ms ease;
}

.team-card:hover {
  border-color: rgba(255, 90, 31, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.team-photo-wrap {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #111;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter 600ms ease;
}

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

.team-name {
  margin-bottom: 5px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.team-role {
  min-height: 32px;
  margin-bottom: 15px;
  color: #ff5a1f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-line {
  width: 40px;
  height: 2px;
  margin-bottom: 20px;
  background: #ff5a1f;
  transition: width 400ms ease;
}

.team-card:hover .team-line {
  width: 80px;
}

.team-desc {
  flex-grow: 1;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.team-langs {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
}

.team-langs span {
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.5);
}

.team-footer {
  display: flex;
  width: 100%;
  justify-content: center;
}

.team-btn {
  display: inline-block;
  padding: 18px 45px;
  border: 0;
  border-radius: 12px;
  background: #ff5a1f;
  box-shadow: 0 10px 25px rgba(255, 90, 31, 0.3);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 300ms ease;
}

.team-btn:hover {
  background: #ff7847;
  box-shadow: 0 15px 30px rgba(255, 90, 31, 0.5);
  transform: translateY(-3px);
}

.team-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: team-fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.team-delay-1 { animation-delay: 100ms; }
.team-delay-2 { animation-delay: 200ms; }
.team-delay-3 { animation-delay: 300ms; }
.team-delay-4 { animation-delay: 400ms; }

@keyframes team-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .team-header p { font-size: 16.356px; }
}

@media (max-width: 650px) {
  .team-section { padding: 60px 20px 40px; }
  .team-grid { grid-template-columns: 1fr; gap: 30px; }
  .team-btn { width: 100%; }
}
