body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #3E3D3D;
  color: #FFFFFF;
  line-height: 1.6;
}

header {
  background-color: #3E3D3D;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF; /* White text */
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
  text-align: center;
  flex: 1; /* Take up available space to ensure centering */
  position: relative; /* Relative positioning */
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  color: #FFFFFF; /* White links */
  text-decoration: none;
  font-size: 1.25em;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #EFEFEE; /* Slightly off-white on hover */
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: absolute; /* Allows independent placement */
  right: 20px; /* Align to the right */
  top: 20px;
}

.hamburger div {
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 2px;
}

.icons {
  display: flex;
  gap: 10px;
}

.icons a {
  color: #FFFFFF; /* White icons */
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s ease;
}

.icons a:hover {
  color: #EFEFEE; /* Slightly off-white on hover */
}

main {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.about-section, .projects-section, .contact-section {
  margin-bottom: 40px;
}

.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.about-section img {
  flex: 1;
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.about-section .text {
  flex: 2;
}

.about-section h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #A3826C; /* Muted tan for section title */
}

.about-section p {
  margin: 10px 0;
  font-size: 1.1em;
  color: #EFEFEE;
}

.about-section .tech {
  display: flex;
  flex-wrap: wrap; /* Allow multiple SVGs to wrap to the next line */
  gap: 20px; /* Space between SVGs */
  justify-content: center; /* Center SVGs horizontally */
  align-items: center; /* Center SVGs vertically */
}

.about-section .tech svg {
  margin: 10px;
  fill: #A3826C; /* Light color for SVGs */
  stroke: #A3826C; /* Match stroke color for consistency */
  width: 50px; /* Set uniform width */
  height: 50px; /* Set uniform height */
  transition: transform 0.3s ease, fill 0.3s ease; /* Add hover effect */
}

.about-section .tech svg:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
  fill: #EFEFEE; /* Tan color on hover */
  stroke: #EFEFEE; /* Match stroke color on hover */
}

.about-section .tech p {
  text-align: center;
}

.projects-section h2, .contact-section h2 {
  font-size: 2em;
  margin-bottom: 10px;
  text-align: center;
  color: #A3826C; /* Muted tan for section headers */
}

.projects-section {
  text-align: center; /* Center-align the heading and content */
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-container {
  display: flex; /* Use Flexbox for layout */
  flex-wrap: wrap; /* Allow items to wrap when needed */
  justify-content: space-evenly; /* Evenly space items horizontally */
  gap: 20px; /* Add space between items */
  padding: 20px; /* Add padding around the container */
  width: 100%;
  box-sizing: border-box;
}

.project-card {
  flex: 1 1 300px; /* Flex-grow, flex-shrink, and base width */
  max-width: 500px; /* Limit the maximum width of each card */
  background-color: #A3826C; /* Background color for the card */
  color: #FFFFFF; /* Text color */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
  padding: 20px; /* Internal padding for the card */
  text-align: center; /* Center-align text inside the card */
  display: flex; /* Flexbox layout for the card */
  flex-direction: column; /* Stack content vertically inside the card */
  justify-content: space-between; /* Space out the content */
  transition: transform 0.3s ease; /* Add smooth hover effect */
}

.recruiter-hook {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  color: #222;
  border: 2px solid #FF8C00;
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.2);
  position: relative;
}
.recruiter-hook b {
  font-size: 1.5em;
  color: #FF8C00;
}
.recruiter-hook .contact-btn {
  background-color: #FF8C00;
  color: #fff;
  border: none;
  font-size: 1.1em;
  padding: 12px 24px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.15);
  transition: background 0.3s, color 0.3s;
}
.recruiter-hook .contact-btn:hover {
  background: #FFD700;
  color: #FF8C00;
}

.project-card:hover {
  transform: translateY(-5px); /* Slight hover effect */
}

.project-card img {
  width: 100%; /* Image takes full width of card */
  height: auto; /* Maintain aspect ratio */
  border-radius: 5px; /* Rounded image corners */
  margin-bottom: 15px; /* Space below the image */
}

.project-buttons {
  display: flex; /* Use Flexbox for the buttons */
  justify-content: center; /* Center the buttons */
  gap: 10px; /* Space between the buttons */
}

.project-buttons a {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none; /* Remove underline */
  background-color: #3E3D3D;  /* Button background color */
  color: #FFFFFF; /* Text color */
  border-radius: 5px; /* Rounded corners for buttons */
  font-weight: bold;
  transition: background-color 0.3s ease; /* Add hover effect */
}

.project-buttons a:hover {
  background-color: #FFFFFF; /* Change background color on hover */
  color: #A3826C;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-section form input, .contact-section form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #A3826C; /* Tan border */
  border-radius: 5px;
  font-size: 1em;
}

.contact-section form button {
  padding: 10px;
  background-color: #A3826C; /* Tan button */
  color: #FFFFFF; /* White text */
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-section form button:hover {
  background-color: #3E3D3D; /* Dark gray on hover */
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #EFEFEE; /* Light gray footer */
  border-top: 1px solid #A3826C; /* Tan border at the top */
}

footer p {
  margin: 0;
  font-size: 0.9em;
  color: #3E3D3D; /* Dark gray text */
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    justify-content: center; /* Keep items horizontally centered */
  }

  header h1 {
    position: relative;
    left: 50%; /* Move to the horizontal center */
    transform: translateX(-50%); /* Center the h1 horizontally */
    margin-top: 20px; /* Add top margin to prevent overlap */
    font-size: 1.5em; /* Slightly smaller font size on small screens */
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #3E3D3D;
    padding: 15px;
    border-radius: 5px;
    gap: 10px;
    z-index: 1000;
  }

  nav.show {
    display: flex;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px; /* Move the hamburger menu to the right */
  }

  .about-section {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .about-section img {
    max-width: 300px;
  }

  .projects-container {
    flex-direction: column; /* Stack cards vertically on smaller screens */
    align-items: center; /* Center cards */
  }

  .project-card {
    flex: 1 1 100%;
    width: 90%; /* Reduce card width for smaller screens */
    max-width: 100%;
  }

  .contact-section form {
    gap: 10px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.2em;
  }

  nav {
    gap: 5px;
  }

  nav a {
    font-size: 0.9em;
  }

  .about-section img {
    max-width: 250px;
  }

  .about-section h2 {
    font-size: 1.5em;
  }

  .projects-section {
    padding: 15px;
  }

  .projects-container {
    padding: 10px;
  }

  .project-card {
    width: 100%; /* Ensure cards take full width on very small screens */
    max-width: 100%;
  }

  .project-buttons a {
    padding: 8px 12px; /* Adjust button size for smaller screens */
  }

  .contact-section form input,
  .contact-section form textarea {
    font-size: 0.9em;
  }

  .contact-section form button {
    font-size: 0.9em;
    padding: 8px;
  }

  footer p {
    font-size: 0.8em;
  }
}
