/* Reset */
@import '/css/global.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #ffffff;
  color: #222;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
  min-height: 100vh;
}

/* About Section */
.about {
  width: 100%;
  padding: 100px 6% 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
}

/* Text Side */
.about-content {
  flex: 1 1 500px;
  animation: fadeInRight 1s ease forwards;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #222;
}

.about-content h2 span {
  color: var(--accent-pink);
}

.about-content p {
  line-height: 1.7;
  color: #555;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

/* Stats */
.about-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: #f5f8ff;
  border-radius: 15px;
  padding: 20px;
  flex: 1 1 120px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  background: #eaf1ff;
}

.stat h3 {
  font-size: 1.8rem;
  color: var(--accent-pink);
}

.stat p {
  font-size: 0.9rem;
  color: #333;
}

/* Button */
.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--accent-pink);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0056d4;
}

/* Animations */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .about-content {
    order: 2;
  }

  .about-stats {
    justify-content: center;
  }
}

/* teams Section */
.team-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
  font-weight: 700;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.team-member {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: #fff;
}

.team-section {
  flex: 1 1 420px;
  text-align: center;
  animation: fadeInLeft 1s ease forwards;
}

.team-member img {
  width: 100%;
  max-width: 420px;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  text-align: left;
}

.team-member:hover .team-info {
  transform: translateY(0);
}

.team-info h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.team-info .role {
  font-size: 0.9rem;
  color: #f9c851;
  margin-bottom: 10px;
}

.team-info .description {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(249, 200, 81, 0);
}

.social-links a:hover {
  background: #f9c851;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(249, 200, 81, 0.6);
  animation: pulse 1s ease infinite alternate;
}

@keyframes pulse {
  from {
    box-shadow: 0 0 10px rgba(249, 200, 81, 0.4);
  }
  to {
    box-shadow: 0 0 20px rgba(249, 200, 81, 0.8);
  }
}

@media (max-width: 768px) {
  .social-links {
    justify-content: center;
  }
  
  .team-section {
    order: 1;
  }
}

@media (min-width: 769px) and (max-width: 994px) {
  .team-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-section {
    order: 2;
  }

  .team-member img {
  height: 450px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
}