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

body {
  font-family: Arial, sans-serif;
  color: #3F7D58;
  line-height: 1.6;
}
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
}

.logo img {
  height: 200px;
  margin-bottom: -20px;
  transition: transform 0.5s ease;
  animation: tiltLogo 4s ease-in-out infinite;
}

.logo img:hover {
  transform: scale(1.05) rotate(-2deg);
}

@keyframes tiltLogo {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(2deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #3f7d58;
  font-weight: 500;
  padding: 0.4rem 1.5rem;
  font-size: 17px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  font-weight: bold;
}

.nav-links a.active {
  border: 1px solid #3f7d58;
}

#notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #3f7d58;
  color: #fff;
  padding: 13px 24px;
  border-radius: 8px;
  display: none;
  z-index: 1100;
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.image-footer {
  background: url("img/contact.jpg") no-repeat center 80% / cover;
  height: 250px;
  background-attachment: fixed;
}

.container {
  max-width: 600px;
  margin: 32px auto; 
  padding: 0 16px;
  text-align: center;
  animation: fadeUp 1.5s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  font-size: 43px; 
  font-family: 'Source Serif Pro', serif;
  color: #3f7d58;
  margin-bottom: -10px;
}

.intro {
  margin-bottom: 24px; 
  color: #3f7d58;
  font-size: 15px;
  animation: fadeUp 1.8s ease;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px; 
  animation: fadeUp 2s ease;
}

label {
  text-align: left;
  margin-bottom: -10px;
  color: #3f7d58;
  margin-inline: 40px;
}

input, textarea {
  padding: 10px 16px; 
  width: 80%;
  margin: 0 auto;
  border: 1.5px solid #3f7d58;
  border-radius: 20px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}
input:focus, textarea:focus {
  border-color: #2ecc71;
  box-shadow: 0 0 8px rgba(63, 125, 88, 0.5);
  transform: scale(1.02);
}
textarea {
  border-radius: 12px;
}

button {
  padding: 11px 24px;
  background: none;
  color: #3f7d58;
  font-weight: bold;
  border: 1px solid #3f7d58;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  width: 20%;
  margin: 0 auto;
  transition: all 0.3s ease, transform 0.3s ease;
}

button:hover {
  background: #3f7d58;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 12px rgba(63, 125, 88, 0.4);
  
}

/* Footer */
.footer {
  background-color: #3F7D58;
  color: #fff;
  text-align: center;
  padding: 5px 5px;
  margin-top: 50px;
}

.footer-logo {
  width: 150px;
  margin-top: -20px;
  margin-bottom: -50px;
}

.footer-text {
  margin: 1px 0;
  font-size: 1rem;
}

.footer-rights {
  margin-top: 2px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #ffffff;
}

@media (max-width: 768px) {
  h2 {
    font-size: 32px;
  }
  .container {
    padding: 0 12px;
  }
  label{
    margin-inline: 10px;
  }
  input, textarea {
    width: 95%;
  }
  button {
    width: 40%;
  }
  .image-footer {
    height: 200px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 0;
  }
  .logo img {
    height: 120px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    padding: 5px 15px;
    font-size: 14px;
  }
  
  .footer-logo {
    width: 90px;
    margin-bottom: -15px;
    margin-top: 3px;
  }
  .footer-text {
    margin-top: -5px;
    margin-bottom: 5px;
    font-size: 14px;
  }
  .footer-rights {
    font-size: 12px;
    margin-top: 1px;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 26px;
  }
  .intro {
    font-size: 14px;
  }
  input, textarea {
    width: 100%;
  }
  button {
    width: 60%;
    font-size: 12px;
  }
  .logo img {
    height: 120px;
  }
  .image-footer {
    height: 180px;
    background-position: center 85%;
  }
}
