/* Contact Page Specific Styles */
#contact {
  padding: 50px 20px;
  text-align: center;
}

#contact h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  color: #00ffcc;
}

body:not(.dark-mode) #contact h1 {
  color: #1a1a1a; /* Light mode heading color */
}

#contact p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Connect with Me Section */
.connect-with-me {
  margin-bottom: 40px;
}

.connect-with-me h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00ffcc;
}

body:not(.dark-mode) .connect-with-me h2 {
  color: #1a1a1a; /* Light mode heading color */
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-icons a {
  color: #00ffcc;
  font-size: 2.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #00ccff;
}

body:not(.dark-mode) .social-icons a {
  color: #1a1a1a; /* Light mode icon color */
}

body:not(.dark-mode) .social-icons a:hover {
  color: #0077cc; /* Light mode hover color */
}

/* Contact Form */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns for name and email */
  gap: 20px; /* Space between name and email fields */
  margin-bottom: 20px; /* Space between the grid and the message field */
}

.form-grid textarea {
  grid-column: 1 / -1; /* Make the message field span both columns */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #1a1a1a; /* Light mode border */
  border-radius: 5px;
  background-color: #ffffff; /* Light mode background */
  color: #1a1a1a; /* Light mode text */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #1a1a1a; /* Dark mode background */
  color: #ffffff; /* Dark mode text */
  border-color: #00ffcc; /* Dark mode border */
}

.contact-form textarea {
  height: 150px;
}

.contact-form button {
  padding: 15px 30px;
  background-color: #00ffcc;
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #00ccaa;
}

.loading-spinner {
  display: none;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00ffcc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.message {
  margin-top: 20px;
  font-size: 1.2rem;
}

.message.success {
  color: #00ffcc;
}

.message.error {
  color: #ff4444;
}