.contact-section {
  background: var(--skills-bg-light);
  transition: background-color 0.25s ease;
}

.dark-mode .contact-section {
  background: var(--skills-bg-dark);
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

textarea {
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  font-size: 1.1em;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #f9f9f9;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
  box-shadow: 0 0 0 1px var(--primary);
  color: var(--title-light);
  width: 100%;
}

.contact-form textarea {
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(26, 129, 226, 0.4);
}

.form-row input {
  width: 400px;
  flex: 1;
}

.send-btn {
  padding: 16px 32px;
  background-color: var(--primary);
  color: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 8px;
  margin-bottom: 64px;
  font-size: 1.1em;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.send-btn:hover {
  cursor: pointer;
  background-color: #ffffff;
  color: var(--primary);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: var(--section-light);
  background-size: 400% 400%;
  animation: gradientFlow 25s ease infinite;

  padding: 32px 0;
  color: #ffffff;
}
.developer {
  font-size: 1.1em;
  line-height: 1.6;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.developer strong {
  color: var(--primary-hover);
  font-weight: 600;
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
  background-color: var(--skills-bg-dark);
  color: #e2e8f0;
  box-shadow: 0 0 0 2px rgba(26, 129, 226, 0.34);
  border-color: rgba(255, 255, 255, 0.125);
}

.dark-mode .contact-form input:focus,
.dark-mode .contact-form textarea:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 10px rgba(62, 166, 255, 0.25);
}

.dark-mode .send-btn:hover {
  background-color: transparent;
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.dark-mode footer {
  background: var(--section-dark);
  background-size: 400% 400%;
  animation: gradientFlow 25s ease infinite;
}

.dark-mode .developer strong {
  color: var(--primary-hover);
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    padding: 0 6%;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row input {
    width: 90vw;
  }

  .send-btn {
    width: 100%;
    margin-bottom: 80px;
  }

  footer {
    flex-direction: column;
    padding: 24px 0;
  }

  .developer {
    font-size: 1em;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 0 3%;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1em;
    padding: 8px 14px;
  }

  .send-btn {
    padding: 12px 20px;
    font-size: 0.95em;
    margin-bottom: 64px;
  }

  footer {
    padding: 20px 0;
  }

  .developer {
    font-size: 0.65em;
  }
}
