/* General Styles */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header and Footer Styles (constant theme for both modes) */
header, footer {
  background-color: #1a3c5b;  /* Dark Blue for both modes */
  color: white;
  text-align: center;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-bottom: 4px solid #1f5b75; /* Light Blue Border for visual appeal */
  transition: background-color 0.3s ease, color 0.3s ease;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
}

header p {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 300;
}

footer {
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Navigation Styles */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  padding: 0;
  justify-content: center;
  background-color: #34495e;  /* Dark Gray for both modes */
  border-radius: 25px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

nav ul li {
  margin: 0 15px;
  list-style: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  text-transform: uppercase;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #16a085;
  border-radius: 5px;
}

/* Move menu toggle to the left */
.menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px; /* Changed from right to left */
    cursor: pointer;
    font-size: 24px;
    color: white;
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        background: #222;
        width: 100%;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* Section Styles */
section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #1a3c5b;  /* Dark Blue Border */
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

section p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 10px;
}

/* Social Media Icons */
.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-icon {
  font-size: 2rem;
  color: #2980b9;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #16a085;
}

/* Contact Form Styles */
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 30px;
  border-radius: 10px;
  background-color: #ecf0f1; /* Light Gray Background for light mode */
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

form label {
  margin-bottom: 5px;
  font-weight: bold;
}

form input, form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

form button {
  padding: 12px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

form button:hover {
  background-color: #16a085;
}

/* Light Mode Colors */
body.light-mode {
  background-color: #f7f9fc;
  color: #2c3e50;
}

header.light-mode, footer.light-mode {
  background-color: #2980b9;  /* Blue color for light mode */
  border-bottom: 4px solid #1c669c;  /* Lighter blue border */
}

nav.light-mode ul {
  background-color: #bdc3c7;  /* Light Gray Navigation Bar */
}

form.light-mode {
  background-color: #ecf0f1;
  color: #333;
}

form.light-mode input,
form.light-mode textarea {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ccc;
}

form.light-mode button {
  background-color: #3498db;
  color: white;
}

.social-links.light-mode .social-icon {
  color: #3498db;
}

.social-links.light-mode .social-icon:hover {
  color: #16a085;
}

/* Dark Mode Colors */
body.dark-mode {
  background-color: #121212;
  color: #e4e4e4;
}

header.dark-mode, footer.dark-mode {
  background-color: #1a3c5b;  /* Dark blue for dark mode */
  border-bottom: 4px solid #1f5b75;  /* Light blue border */
}

nav.dark-mode ul {
  background-color: #2c3e50;  /* Darker Gray Navigation Bar */
}

form.dark-mode {
  background-color: #2c2c2c;
  color: #e4e4e4;
  border: 1px solid #444;
}

form.dark-mode input,
form.dark-mode textarea {
  background-color: #2c2c2c;
  color: #e4e4e4;
  border: 1px solid #444;
}

form.dark-mode button {
  background-color: #1abc9c;
  color: white;
}

.social-links.dark-mode .social-icon {
  color: #e4e4e4;
}

.social-links.dark-mode .social-icon:hover {
  color: #1abc9c;
}

/* Toggle Button for Dark/Light Mode */
#mode-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #3498db;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#mode-toggle:hover {
  background-color: #16a085;
}
