/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #d0f0c0, #7bb661);
  color: #2e4d25;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header.sticky {
  position: sticky;
  top: 0;
  background: #4a772f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation: slideDown 0.8s ease forwards;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  color: #eaf4db;
  font-size: 1.5rem;
}

nav a {
  color: #eaf4db;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  padding-bottom: 3px;
  position: relative;
}

nav a:hover,
nav a.active {
  color: #f7e9a0;
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #f7e9a0;
  border-radius: 2px;
}

/* Main Section */
main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease forwards;
}

.team-section h2 {
  text-align: center;
  font-family: 'Georgia', serif;
  color: #4a772f;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px #8a9b64;
}

.profiles {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.profile {
  background: #eaf4db;
  border-radius: 15px;
  width: 260px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

.profile:nth-child(1) {
  animation-delay: 0.2s;
}
.profile:nth-child(2) {
  animation-delay: 0.4s;
}
.profile:nth-child(3) {
  animation-delay: 0.6s;
}

.profile:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #4a772f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.profile h3 {
  color: #4a772f;
  margin-bottom: 0.5rem;
}

.profile .role {
  font-style: italic;
  color: #6aa84f;
  margin-bottom: 0.7rem;
}

.profile p a {
  color: #4a772f;
  text-decoration: none;
  font-weight: bold;
}

.profile p a:hover {
  color: #6aa84f;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #4a772f;
  color: #eaf4db;
  padding: 2rem 1rem;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.footer-columns div {
  max-width: 280px;
}

footer h4 {
  margin-bottom: 0.8rem;
  color: #f7e9a0;
}

footer a {
  color: #f7e9a0;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #eaf4db;
  text-decoration: underline;
}

footer p.copyright {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Animations */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
