/* ========================
   Modern About Page Styles
   ======================== */

/* ==================== HERO SECTION ==================== */
.about-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 6rem 2rem;
  overflow: hidden;
  will-change: transform;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(16, 9, 97, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(16, 9, 97, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.about-hero .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.5rem;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out;
}

.title-line {
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out, gradientShift 3s ease infinite;
}

.title-line.highlight {
  background: linear-gradient(135deg, #100961 0%, #2d2da3 50%, #100961 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.2s both, gradientShift 3s ease infinite 0.2s;
  position: relative;
}

.title-line.highlight::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #100961, transparent);
  border-radius: 2px;
  animation: underlineExpand 1s ease-out 0.5s both;
}

@keyframes underlineExpand {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #b0b0b0;
  margin-bottom: 3.5rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #100961;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.about-hero .btn-primary {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #100961 0%, #2d2da3 100%);
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out 0.8s both;
  box-shadow: 0 4px 16px rgba(16, 9, 97, 0.3);
  position: relative;
  overflow: hidden;
}

.about-hero .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.about-hero .btn-primary:hover::before {
  left: 100%;
}

.about-hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 9, 97, 0.4);
}

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

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ==================== TEAM SECTION ==================== */
.team-section {
  background: #000;
  color: #fff;
  padding: 6rem 2rem;
}

.team-section .container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.team-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-section .lead {
  max-width: 800px;
  margin: 0 auto 4rem;
  color: #b0b0b0;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ==================== TEAM GRID ==================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* ==================== TEAM CARDS ==================== */
.team-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 9, 97, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(16, 9, 97, 0.15);
}

.team-card .arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  font-size: 1.5rem;
  color: #ffffff;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.team-card:hover .arrow {
  transform: translateY(-50%) translateX(8px);
  opacity: 1;
}

/* Team Card Image */
.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  border: 3px solid rgba(16, 9, 97, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.team-card:hover img {
  transform: scale(1.1);
  border-color: rgba(16, 9, 97, 0.5);
  box-shadow: 0 8px 24px rgba(16, 9, 97, 0.3);
}

/* Team Card Info */
.team-card .info {
  position: relative;
  z-index: 1;
}

.team-card .info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.team-card .info p {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Contact Info (if available) */
.team-card .contact-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover .contact-info {
  opacity: 1;
  max-height: 200px;
}

.team-card .contact-info a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.team-card .contact-info a:hover {
  color: #100961;
}

/* Empty State */
.no-team {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  font-size: 1.25rem;
  padding: 4rem 0;
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
  opacity: 1;
  pointer-events: all;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: #1a1a1a;
  color: #fff;
  border-radius: 1.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  text-align: center;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal:not(.hidden) .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(16, 9, 97, 0.2);
  border-color: rgba(16, 9, 97, 0.5);
  color: #100961;
  transform: rotate(90deg);
}

.modal-img {
  display: block;
  margin: 0 auto 1.5rem;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(16, 9, 97, 0.3);
  box-shadow: 0 8px 24px rgba(16, 9, 97, 0.2);
}

.modal-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: #fff;
}

.modal-role {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.modal-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: #b0b0b0;
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 50vh;
    padding: 4rem 1.5rem;
  }

  .hero-title {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .title-line {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-stats {
    gap: 3rem;
    margin-bottom: 2.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .about-hero .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

  .team-section {
    padding: 4rem 1.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-card {
    padding: 2rem 1.5rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .about-hero {
    min-height: 45vh;
    padding: 3rem 1rem;
  }

  .hero-title {
    gap: 0.5rem;
  }

  .title-line {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-stats {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .about-hero .btn-primary {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  .team-section {
    padding: 3rem 1rem;
  }

  .team-section h2 {
    font-size: 2rem;
  }

  .team-card img {
    width: 120px;
    height: 120px;
  }

  .modal-img {
    width: 140px;
    height: 140px;
  }
}
