/*buton get started*/
.btnpri {
  text-decoration: none;
  background: linear-gradient(90deg, #6f7cff, #8f6bff);
  color: #fff;
  padding: 14px 32px;
  border-radius: 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btnpri:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(111, 124, 255, 0.4);
}

/*Uzman kadro kısmı*/

.team {
  padding: 100px 60px;
  text-align: center;
  color: #fff;
}
/*vizyon kısmı*/
.vizyon {
  max-width: 600px;
  margin: 20px auto 60px;
  color: #b7bbd8;
}
/*kart conteniar*/
.team-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Kart kapsayıcı */
.team-card {
  width: 260px;
  height: 400px;
  perspective: 1000px; /* 3D derinlik */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* Kart içi dönüş */
.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease-in-out;
  transform-style: preserve-3d;
}
/* Mouse gelince kart döner */
.team-card:hover .card-inner {
  transform: rotateY(180deg); /* Flip efekti */
}

/* Ön & arka yüz */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #2a2f5a, #0b0f1a);
  padding: 20px;
  text-align: center;
}
.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 🔥 */
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}

/*profil foto*/
.card-front img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(111, 124, 255, 0.6);
  margin: 0 auto 20px auto;
  display: block;
  box-shadow:
    0 0 0 4px rgba(111, 124, 255, 0.15),
    0 10px 30px rgba(111, 124, 255, 0.35);
  transition: transform 0.3s ease;
}
.team-card:hover .card-front img {
  transform: scale(1.08); /* Mouse gelince %8 büyür */
}
/*personel title*/
.card-front h3 {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #f9fafb;
  text-shadow: 0 0 8px rgba(111, 124, 255, 0.35); /* hafif neon vurgu */
  letter-spacing: 0.4px;
}
.card-front span {
  position: relative;
  background: rgba(111, 124, 255, 0.12);
  padding: 10px 25px;
  margin-top: 20px;
  border-radius: 20px;
  display: inline-block;
}

.card-front span::after {
  content: "";
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, #6f7cff, transparent);
  display: block;
  margin: 6px auto 0;
  border-radius: 10px;
}

/* Arka yüz */
.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* Sertifika  */
/* Sertifika başlangıçta gizli */
.certificate {
  margin-top: 10px;
  text-align: center;
  opacity: 1 !important;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s ease;
}

/* Kart hover olunca sertifika görünür */
.team-card:hover .certificate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Sertifika görseli */
.certificate img {
  width: 140px;
  border-radius: 12px;
  margin-bottom: 6px;

  box-shadow:
    0 0 20px rgba(111, 124, 255, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.certificate img:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(111, 124, 255, 0.6),
    0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Sertifika yazısı */
.certificate span {
  display: block;
  font-size: 12px;
  color: #9fa4ff;
  letter-spacing: 0.8px;
}
/*skill kısmı */

.skill {
  text-align: center;
  margin: 0 -6px;
}

.skill-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 8px 16px;
  color: white;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  margin: 6px;
  letter-spacing: 0.5px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(111, 124, 255, 0.6),
    0 15px 40px rgba(0, 0, 0, 0.5);
}

/*Light version*/

body.light .team {
  color: #0f172a;
}

body.light .vizyon {
  color: #475569;
}

body.light .team-card {
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

body.light .card-front,
body.light .card-back {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  color: #0f172a;
}

body.light .card-front h3 {
  color: #0f172a;
  text-shadow: none;
}

body.light .card-front span {
  background: rgba(59, 130, 246, 0.12);
  color: #1e3a8a;
}

body.light .card-front span::after {
  background: linear-gradient(90deg, #3b82f6, transparent);
}

body.light .card-front img {
  border: 2px solid rgba(59, 130, 246, 0.5);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 10px 25px rgba(0, 0, 0, 0.15);
}


body.light .certificate span {
  color: #1e40af;
}

body.light .certificate img {
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.35),
    0 10px 25px rgba(0, 0, 0, 0.2);
}

body.light .skill-tag {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #ffffff;
}

body.light .skill-tag:hover {
  box-shadow:
    0 0 25px rgba(59, 130, 246, 0.5),
    0 10px 25px rgba(0, 0, 0, 0.25);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
}
/*  RESPONSIVE */

@media (max-width: 992px) {
  .nav-bar {
    padding: 16px 30px;
  }

  .team {
    padding: 80px 30px;
  }

  .team-grid {
    gap: 30px;
  }

  .team-card {
    width: 240px;
    height: 380px;
  }
}

/*Mobil responsive*/
@media (max-width: 800px) {

  /* Team alanı */
  .team {
    padding: 60px 20px;
  }

  .team h1 {
    font-size: 28px;
  }

  .vizyon {
    font-size: 14px;
  }

  /* Kartlar */
  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    width: 90%;
    max-width: 320px;
    height: 400px;
  }

  /* Hover yerine tıklama hissi */
  .team-card:hover .card-inner {
    transform: none;
  }

  .team-card.active .card-inner {
    transform: rotateY(180deg);
  }
}
