/* General reset and box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and main background */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f5f8fa; /* Light grayish background for the entire page */
  color: #333; /* Dark gray text for readability */
  line-height: 1.6;
}
/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #34495e;
  padding: 20px;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

/* Basic styling for the button */
#menu-toggle {
  background-color: #007BFF; /* Blue background */
  color: white; /* White icon color */
  border: none; /* Remove border */
  border-radius: 50%; /* Make it circular */
  padding: 10px 15px; /* Add some padding */
  font-size: 20px; /* Icon size */
  cursor: pointer; /* Pointer cursor on hover */
  transition: all 0.3s ease; /* Smooth hover effect */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Hover effect */
#menu-toggle:hover {
  background-color: #0056b3; /* Darker blue on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Slightly larger shadow */
}

/* Focus styling for accessibility */
#menu-toggle:focus {
  outline: 2px solid #0056b3; /* Outline on focus */
  outline-offset: 2px;
}

/* Active state */
#menu-toggle:active {
  transform: scale(0.95); /* Slight shrink on click */
}

/* Optional: Center the icon in a container */
#menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Sidebar Navigation */
nav {
  position: fixed;
  top: 50px;
  left: -250px; /* Initially off-screen */
  width: 250px;
  height: 100%;
  background: white;
  
  padding-top: 60px;
  transition: left 0.3s ease-in-out;
  z-index: 90;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  padding: 15px 20px;
  text-align: left;
}

nav ul li a {
  color: rgb(5, 33, 104);
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  padding: 10px;
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}

nav ul li a:hover {
  background-color: #dce2e7;
  padding-left: 30px; /* Slightly shift the text for a more interactive feel */
}

/* Projects List */
#projectsContainer {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#projectsContainer div {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projectsContainer div:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#projectsContainer button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#projectsContainer button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 30px;
  width: 90%;
  max-width: 400px;
  z-index: 1000;
}

.modal h2 {
  margin: 0 0 20px 0;
  text-align: center;
  color: #4caf50;
  font-size: 1.8rem;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.modal input:focus {
  border-color: #4caf50;
  outline: none;
}

.modal button {
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal .close-btn {
  background-color: #f44336;
  color: white;
}

.modal .close-btn:hover {
  background-color: #d32f2f;
}

.modal button[type="submit"] {
  background-color: #4caf50;
  color: white;
}

.modal button[type="submit"]:hover {
  background-color: #45a049;
}

/* Mobile and Tablet Responsiveness */
@media (max-width: 768px) {
  header h1 {
      font-size: 1.5rem;
  }

  .menu-toggle {
      display: block;
  }

  nav {
      padding-top: 50px;
  }

  nav ul {
      justify-content: center; /* Center the nav links */
  }

  #projectsContainer {
      margin-top: 80px;
  }
}

@media (max-width: 600px) {
  nav {
      left: -250px; /* Initially off-screen */
  }

  nav ul {
      display: flex;
      flex-direction: column;
      padding-top: 20px;
  }

  nav ul li {
      padding: 15px;
      font-size: 1rem;
  }

  nav ul li a {
      font-size: 1.1rem;
      padding: 12px 20px;
  }

  .menu-toggle {
      display: block;
  }
}
/* Table Styling */
table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: left;
}

th {
  background-color: #0066CC;
  color: white;
  font-weight: bold;
}

td {
  background-color: #f4f4f4;
  border-bottom: 1px solid #ddd;
}

td:hover {
  background-color: #e0f7fa; /* Light cyan on hover */
}

/* Section Styling */
section {
  margin: 30px auto;
  max-width: 900px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section h2 {
  color: #388E3C; /* Dark green */
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Footer Styling */
footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
  text-align: center;
}

footer p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #FFEB3B; /* Yellow on hover */
}

.footer-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.footer-link:hover .footer-icon {
  transform: rotate(360deg); /* Icon rotation */
  transition: transform 0.5s ease-in-out;
}

/* Responsive Design (for mobile devices) */
@media (max-width: 768px) {
  nav ul {
      flex-direction: column;
      padding: 10px;
      gap: 15px;
  }

  header h1 {
      font-size: 2rem;
  }

  section {
      padding: 15px;
      margin: 10px;
  }

  footer {
      padding: 20px 0;
  }
}
