* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f2f2;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.theme-toggle {
  text-align: right;
  padding: 1rem 2rem;
}

.theme-toggle button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.theme-toggle button:hover {
  background-color: #0056b3;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

.left-section {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.right-section {
  flex: 1;
  min-width: 320px;
}

.right-section h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-container input,
.form-container textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.form-container textarea {
  resize: vertical;
  min-height: 100px;
}

.form-container button[type="submit"] {
  padding: 0.75rem;
  background-color: #28a745;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.form-container button:hover {
  background-color: #218838;
}

.info {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.info p {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.2);
}

/* Dark Theme */
body.dark-theme {
  background-color: #121212;
  color: #f2f2f2;
}

body.dark-theme .form-container {
  background-color: #1e1e1e;
  border: 1px solid #444;
}

body.dark-theme input,
body.dark-theme textarea {
  background-color: #2a2a2a;
  color: #f2f2f2;
  border: 1px solid #555;
}

body.dark-theme .form-container button[type="submit"] {
  background-color: #17a2b8;
}

body.dark-theme .form-container button[type="submit"]:hover {
  background-color: #138496;
}

body.dark-theme .social-icons img {
  filter: invert(1);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #333;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}




/* Responsive Fixes */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 1rem;
  }

  .theme-toggle {
    text-align: center;
    padding: 1rem;
  }

  .left-section {
    order: 2; /* Move image below form */
    margin-top: 2rem;
  }

  .right-section {
    order: 1; /* Move form on top */
  }

  .right-section h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .form-container {
    padding: 1.5rem;
  }

  .contact-image {
    width: 100%;
    height: auto !important;
    object-fit: contain;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .info {
    text-align: center;
  }

  .form-container form {
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .theme-toggle button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .right-section h1 {
    font-size: 1.5rem;
  }

  .form-container {
    padding: 1rem;
  }

  .toast {
    bottom: 15px;
    right: 15px;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}











