/* Homepage-specific styles */
.homepage-body {
  background: linear-gradient(135deg, #1a2e1a 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  padding: 0;
  display: block;
  align-items: unset;
  justify-content: unset;
}

.homepage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header Styles */
.homepage-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.logo-link {
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
}

.logo-link:hover {
  transform: translateY(-5px);
}

.header-logo {
  width: 180px;
  height: auto;
  filter: brightness(1.2) drop-shadow(0 8px 25px rgba(255, 255, 255, 0.15));
  transition: all 0.3s ease;
}

.logo-link:hover .header-logo {
  filter: brightness(1.3) drop-shadow(0 12px 35px rgba(255, 255, 255, 0.25));
  transform: scale(1.05);
}

.header-text {
  margin-bottom: 16px;
}

.main-title {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.header-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.header-description p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
  align-items: stretch;
}

/* For larger screens with 3 columns, center the 7th card in the middle column */
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* For medium screens with 2 columns, center the 7th card */
@media (min-width: 768px) and (max-width: 1023px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.team-card:nth-child(1) {
  animation-delay: 0.1s;
}
.team-card:nth-child(2) {
  animation-delay: 0.2s;
}
.team-card:nth-child(3) {
  animation-delay: 0.3s;
}
.team-card:nth-child(4) {
  animation-delay: 0.4s;
}
.team-card:nth-child(5) {
  animation-delay: 0.5s;
}
.team-card:nth-child(6) {
  animation-delay: 0.6s;
}
.team-card:nth-child(7) {
  animation-delay: 0.7s;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, #1e3d32 0%, #2d5a27 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(144, 238, 144, 0.15) 0%,
      transparent 50%
    );
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.team-card:hover .member-photo {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.card-content {
  background: white;
  padding: 32px 28px 40px 28px;
  text-align: center;
  flex-grow: 1;
}

.member-name {
  font-size: 24px;
  font-weight: 700;
  color: #2d5a27;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.member-title {
  font-size: 16px;
  color: #5a6c57;
  font-weight: 500;
  margin: 0;
}

/* Footer */
.homepage-footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.footer-text a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: white;
}

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

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .homepage-container {
    padding: 20px 15px;
  }

  .homepage-header {
    margin-bottom: 50px;
  }

  .header-text {
    margin-bottom: 12px;
  }

  .main-title {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .header-description p {
    font-size: 16px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .header-text {
    margin-bottom: 10px;
  }

  .main-title {
    font-size: 32px;
  }

  .header-description p {
    font-size: 15px;
  }

  .card-content {
    padding: 24px 20px 32px 20px;
  }

  .member-name {
    font-size: 20px;
  }
}
