#contact {
  background: linear-gradient(135deg, #0d1321 0%, #1a2338 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.contact-container {
  max-width: 100%;
  padding: 0;
  text-align: center;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 1;
}

.contact-container h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  color: #2dd4bf;
  animation: fadeIn 1s ease-out;
}

.section-description {
  color: #d1d5db;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.36px;
  max-width: 800px;
  margin: 0 auto 20px;
  background: rgba(34, 166, 153, 0.03);
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
  animation: fadeIn 1s ease-out 0.2s forwards;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 90vw;
  margin: 0 auto;
  padding: 0 3vw;
}

#contact-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.contact-form {
  flex: 1;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 1.1rem;
  color: #2dd4bf;
  margin-bottom: 8px;
  font-weight: 700;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: slideFadeIn 0.8s ease-out forwards;
}

.form-group label:nth-of-type(1) { animation-delay: 0.7s; }
.form-group label:nth-of-type(2) { animation-delay: 0.8s; }
.form-group label:nth-of-type(3) { animation-delay: 0.9s; }

.form-group label:hover {
  transform: translateX(4px);
  color: #22a699;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation: slideFadeIn 0.8s ease-out forwards;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
  outline: none;
}

.contact-form input:nth-of-type(1) { animation-delay: 0.7s; }
.contact-form input:nth-of-type(2) { animation-delay: 0.8s; }
.contact-form textarea { animation-delay: 0.9s; }

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-form button {
  padding: 14px 32px;
  background: linear-gradient(45deg, #2dd4bf, #22d3ee);
  color: #000;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  animation: slideFadeIn 0.8s ease-out forwards;
  animation-delay: 1s;
}

.contact-form button:hover {
  background: #22a699;
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.5);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 90vw;
  margin: 20px auto 0;
  padding: 0 3vw;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2dd4bf;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
  animation: slideFadeIn 0.8s ease-out forwards;
  flex: 1;
  min-width: 290px;
  max-width: 350px;
}

.social-link:nth-child(1) { animation-delay: 0.3s; }
.social-link:nth-child(2) { animation-delay: 0.4s; }
.social-link:nth-child(3) { animation-delay: 0.5s; }
.social-link:nth-child(4) { animation-delay: 0.6s; }

.social-link:hover {
  color: #22a699;
  transform: translateY(-3px);
  background: rgba(45, 212, 191, 0.15);
}

.social-link i {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link .fa-envelope { color: #d14836; }
.social-link .fa-linkedin-in { color: #0077b5; }
.social-link .fa-whatsapp { color: #25d366; }
.social-link .fa-github { color: #e2e8f0 ; }

.social-link:hover i {
  color: #22a699;
}

.social-link span {
  font-size: 1rem;
  font-weight: 700;
  word-break: break-all;
  transition: transform 0.3s ease;
}

.social-link:hover span {
  transform: translateX(4px);
}

.footer {
  padding: 20px 0 0 0;
  margin-bottom: 0 !important;
  text-align: center;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.footer p {
  font-size: 0.9rem;
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-social-link {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social-link i {
  font-size: 1.2rem;
}

.footer-social-link .fa-envelope { color: #d14836; }
.footer-social-link .fa-linkedin-in { color: #0077b5; }
.footer-social-link .fa-whatsapp { color: #25d366; }
.footer-social-link .fa-github { color: #e2e8f0 ; }

.footer-social-link:hover i {
  color: #2dd4bf;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #2dd4bf;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-message.show {
  opacity: 1;
}

.form-message.error {
  color: #ff6b6b;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .social-link {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    padding: 10px 15px;
  }
  .social-link span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-container h2 {
    font-size: 1.75rem;
  }
  .section-description {
    font-size: 0.85rem;
    padding: 4px 8px;
  }
  .contact-form {
    max-width: 100%;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 12px;
  }
  .contact-form button {
    font-size: 0.95rem;
    padding: 12px 28px;
  }
  .social-link {
    min-width: 150px;
    max-width: 200px;
  }
  .social-link i {
    font-size: 1.3rem;
  }
  .footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 320px) {
  .contact-container h2 {
    font-size: 1.5rem;
  }
  .section-description {
    font-size: 0.8rem;
    padding: 3px 6px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
    padding: 10px;
  }
  .contact-form button {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
  .social-links {
    gap: 10px;
  }
  .social-link {
    min-width: 120px;
    max-width: 160px;
    padding: 8px 12px;
  }
  .social-link span {
    font-size: 0.85rem;
  }
  .social-link i {
    font-size: 1.2rem;
  }
  .footer p {
    font-size: 0.8rem;
  }
  .footer-social-link i {
    font-size: 1rem;
  }
}