/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Light Mode (default) */
body {
  background-color: #ffffff;
  color: #333333;
}

/* Dark Mode */
body.dark-mode {
  background-color: #1a1a2e;
  color: #eaeaea;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
}

#themeBtn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background-color: #333333;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode #themeBtn {
  background-color: #ffffff;
  color: #333333;
}

#themeBtn:hover {
  transform: scale(1.05);
}

/* Main content */
h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

button:not(#themeBtn) {
  padding: 12px 24px;
  font-size: 16px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

button:not(#themeBtn):not(.submit-btn):hover {
  background-color: rgba(128, 128, 128, 0.2);
}

/* Contact Form */
.contact-section {
  margin-top: 40px;
  width: 100%;
  max-width: 500px;
}

.contact-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  transition: border-color 0.2s, background-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background-color: #2a2a4a;
  border-color: #444;
  color: #eaeaea;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #5c9aff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
  background-color: #0056b3;
}

.submit-btn:active {
  transform: scale(0.98);
}

body.dark-mode .submit-btn {
  background-color: #5c9aff;
}

body.dark-mode .submit-btn:hover {
  background-color: #4080e0;
}
