*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #d16400;
  --orange-rgb: 209, 100, 0;
  --blue: #007a8a;
  --blue-rgb: 0, 122, 138;
  --light-gray: #d9d9d9;
  --dark-bg: #1a1a1a;
  --play-button-orange: #f26513;
}

::-webkit-scrollbar {
  inline-size: 30px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background-color: black;
  border-radius: 15px;
  border: 5px solid #1a1a1a;
}
* {
  scrollbar-width: auto;
  scrollbar-color: #138bac #00e5ff11;
}

body {
  font-family: "Tajawal", sans-serif;
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #ddd;
  text-align: center;
  overflow-x: hidden;
}

.title {
  margin: 40px 0 30px;
  font-size: 32px;
  font-weight: bold;
  color: #00c8ff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.card {
  background: #111;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  padding: 25px 20px;
  text-align: right;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 200, 255, 0.3);

  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 0.8s ease forwards;
}

.card:nth-child(1) {
  animation-delay: 0.2s;
}
.card:nth-child(2) {
  animation-delay: 0.4s;
}
.card:nth-child(3) {
  animation-delay: 0.6s;
}
.card:nth-child(4) {
  animation-delay: 0.8s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 200, 255, 0.25);
}

.card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 15px;
  border: 3px solid #00c8ff;
}

.card h2 {
  font-size: 22px;
  margin: 10px 0 18px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.info p {
  font-size: 16px;
  margin: 8px 0;
  color: #ddd;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #222;
  padding-bottom: 6px;
  align-items: center;
}

.info span {
  font-weight: bold;
  color: #00c8ff;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  width: 55px;
  height: 55px;
  border: 5px solid #333;
  border-top: 5px solid #00c8ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: #fff;
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}

.back-btn-container {
  text-align: center;
  margin: 40px 0;
}

.back-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #00c8ff;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.back-btn:hover {
  background: #009ac7;
  transform: translateY(-3px);
}

.back-btn i {
  margin-left: 8px;
  font-size: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
