body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
  }

  header {
    background: #333;
    color: white;
    padding: 1em 0;
    text-align: center;
  }

  nav ul {
    list-style: none;
    padding: 0;
  }

  nav ul li {
    display: inline;
    margin: 0 10px;
  }

  nav ul li a {
    color: white;
    text-decoration: none;
  }

  main {
    padding: 1em;
  }

  section {
    margin-bottom: 2em;
  }

  img {
    display: block;
    margin: 1em auto;
  }

  footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
  }

  form {
    display: flex;
    flex-direction: column;
  }

  form label, form input, form textarea, form button {
    margin-bottom: 0.5em;
  }

  form input, form textarea {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  form button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 5px;
    cursor: pointer;
  }

  form button:hover {
    background: #45a049;
  }

  button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

 button:hover {
    background-color: #999;
    transform: scale(1.05);
  }

  button:focus {
    outline: none;
  }

/* Dark Mode */

body.dark-mode {
    background-color: #2c2c2c;
    color: #eaeaea;
  }

  body.dark-mode header {
    background-color: #3a3a3a;
    color: #ffffff;
  }

  body.dark-mode footer {
    background-color: #3a3a3a;
  }

  body.dark-mode a {
    color: #ffa726;
  }

  body.dark-mode a:hover {
    color: #ffcc80;
  }

  /* Button in Dark Mode */
  body.dark-mode button {
    background-color: #ffa726;
    color: #2c2c2c;
  }

  body.dark-mode button:hover {
    background-color: #ff9800;
  }

  body.dark-mode button:focus {
    outline: none;
  }
  body.dark-mode #projects {
    color: #f4f4f4; /* Light text for dark background */
  }

  body.dark-mode #projects h2,
  body.dark-mode #projects a {
    color: #4CAF50; /* Ensure green color is visible in dark mode */
  }

  body.dark-mode #projects li {
    background-color: #333; /* Dark background for list items in dark mode */
  }

  body.dark-mode #projects a {
    color: #4CAF50;
  }

  body.dark-mode #projects a:hover {
    color: #80e27e; /* Slightly brighter green on hover */
  }
  /* About Me Section Styling */
#about {
    background-color: #f4f4f4; /* Light gray background */
    padding: 30px 50px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-align: center;
  }

  #about h2 {
    font-size: 2em;
    color: #4CAF50; /* Green color for the title */
    margin-bottom: 20px;
  }

  #about p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
  }

  /* Hobby Section Styling */
  #hobby {
    padding: 30px 50px;
    margin-top: 40px;
    text-align: center;
  }

  #hobby h2 {
    font-size: 2em;
    color: #4CAF50;
    margin-bottom: 30px;
  }

  #hobby article {
    background-color: #fff; /* White background for each hobby card */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    transition: transform 0.3s ease; /* Smooth scaling on hover */
  }

  #hobby article:hover {
    transform: translateY(-10px); /* Lift effect on hover */
  }

  #hobby h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
  }

  #hobby p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 15px;
  }

  #hobby img {
    border-radius: 8px;
    width: 100%;
    max-width: 300px; /* Keep images a consistent size */
    margin-top: 10px;
    transition: transform 0.3s ease; /* Smooth image zoom effect */
  }

  #hobby img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
  }


/* Projects Section Styling */
#projects {
    text-align: center; /* Center text and content */
    margin: 30px 0; /* Add space above and below */
  }

  #projects h2 {
    font-size: 2em;
    margin-bottom: 10px;
  }

  #projects p {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  /* Style for the List of Projects */
  #projects ul {
    list-style-type: none; /* Remove default list bullets */
    padding: 0;
  }

  #projects li {
    background-color: #f4f4f4; /* Light background for each project */
    padding: 20px;
    margin: 10px 0; /* Space between items */
    border-radius: 8px; /* Rounded corners for each project card */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for cards */
  }

  /* Style for the links in the projects */
  #projects a {
    color: #4CAF50; /* Green color for links */
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
  }

  #projects a:hover {
    color: #45a049; /* Darker green on hover */
  }

  /* Responsive Design: Stack the projects on smaller screens */
  @media (max-width: 768px) {
    #projects {
      padding: 0 20px; /* Add padding on smaller screens */
    }

    #projects li {
      margin: 15px 0;
      padding: 15px;
    }
  }


/* Container for Contact and Footer */
#contact-footer {
    display: flex;
    justify-content: space-between;
    background-color: #333333;
    padding: 0px 50px;
    color: white;
    flex-wrap: wrap;
    gap: 30px;
  }

  /* Contact Section */
  #contact {
    flex: 1;
    text-align: left;
    min-width: 250px;
  }

  #contact h2 {
    margin-bottom: 10px;
  }

  .contact-info p {
    margin: 10px 0;
  }

  .contact-info i {
    font-size: 1.5em;
    margin-right: 10px;
  }

  .contact-info a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }

  .contact-info a:hover {
    color: #4CAF50;
  }

  /* Footer Styling */
  footer {
    text-align: right;
    flex: 0 0 auto;
  }

  footer p {
    margin: 0;
  }
