body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9; /* light shade of gray*/
}

header {
  background-color: #3498db; /* Sky Blue */
  color: white;
  padding: 10px;
  text-align: center;
  position: relative;
}

@media only screen and (max-width: 767px) {
  header {
    padding: 10px;
  }
}

h1 {
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 36px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 26px;
    margin-bottom: 3px;
  }
}

.last-updated-header {
  font-weight: bold;
  margin-top: -12px;
  font-style: italic;
}

@media only screen and (max-width: 767px) {
  .last-updated-header {
    font-weight: bold;
    margin-top: -13px;
    font-size: 12px;
  }
}

.contact-info {
  font-weight: bold;
  margin-top: -5px;
}

@media screen and (max-width: 767px) {
  .contact-info {
    font-size: 14px;
    margin-top: -7px;
  }
}

.contact-info img {
  vertical-align: middle;
  margin-right: 1px;
}

.navbar {
  display: flex;
  justify-content: center;
  position: relative;
}

.menu-btn {
  background-color: #3498db;
  color: white;
  border: 1px solid;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 5px;
  margin-top: 5px;
}

@media only screen and (max-width: 767px) {
  .menu-btn {
    font-size: 16px;
    padding: 4px 8px;
  }
}

.menu-btn:hover {
  background-color: #2980b9; /* Belize Hole" (a shade of blue) */
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  background-color: #2ecc71; /* Emerald Green */
  border-radius: 5px;
  top: 50px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 355px;
  box-shadow: 0 9px 9px rgba(0, 0, 0, 0.2);
  text-align: left;
  counter-reset: nav-counter;
}

.nav-list li {
  border-bottom: 1px solid white;
  position: relative; /* Position relative to allow absolute positioning of the link */
  display: flex;
  align-items: center;
}

@media only screen and (max-width: 767px) {
  .nav-list li {
    font-size: 14px;
  }
}

.nav-list li:last-child {
  border-bottom: none;
}

.nav-list li::before {
  counter-increment: nav-counter;
  content: counter(nav-counter) ". ";
  font-weight: bold;
  color: white;
  margin-right: -7px;
  padding: 5px;
}

.nav-list li a {
  display: block;
  padding: 5px;
  color: white;
  text-decoration: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 15px;
}

.nav-list li:hover {
  background-color: #2980b9; /* Highlight the whole line on hover */
}

.nav-list li:hover a {
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-list li:hover::before {
  color: white; /* Ensure the number remains visible on hover */
}

.welcome {
  padding: 10px;
  margin-left: 100px;
  margin-right: 100px;
  margin-bottom: 20px;
  margin-top: 30px;
  border: 1px solid #3498db;
  border-radius: 10px;
}

@media only screen and (max-width: 767px) {
  .welcome {
    padding: 1px 10px;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 30px;
  }
}

.welcome h2 {
  font-size: 28px;
  color: #2ecc71;
  margin-bottom: 0px;
}

@media only screen and (max-width: 767px) {
  .welcome h2 {
    font-size: 22px;
  }
}

.welcome p {
  text-indent: 2em;
  font-family: sans-serif; /* Arial, Helvetica, or similar */
  font-size: 18px;
  text-align: justify;
  margin-top: 10px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .welcome p {
    font-size: 14px;
  }
}

.projects-details {
  counter-reset: project-counter; /* Set up the counter for the project headings */
}

.project {
  margin-bottom: 20px;
  margin-left: 40px;
  margin-right: 40px;
  border: 1px solid #3498db;
  padding: 15px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Double border effect */
  outline: 1px solid #2ecc71; /* Outer border */
  outline-offset: 4px; /* spacing between borders */
}

@media screen and (max-width: 768px) {
  .project {
    padding: 5px;
    margin-left: 10px;
    margin-right: 10px;
  }
}

.project h2 {
  font-size: 28px;
  color: #3498db;
  margin-top: 0;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3); /* shadow */
}

@media screen and (max-width: 768px) {
  .project h2 {
    font-size: 22px;
    margin-bottom: 0px;
  }
}

/* Set up the counter for the project headings */
.project h2::before {
  counter-increment: project-counter;
  content: counter(project-counter) ". ";
  font-weight: bold;
  margin-right: 1px;
  color: #3498db;
  display: inline; /* Ensure the counter is inline with the text */
}

/* Style for each section within the project */
.skills,
.job,
.role,
.overview,
.links,
.duration,
.challenges,
.client-team,
.previews {
  margin-top: 15px; /* Space above each section */
}

@media screen and (max-width: 767px) {
  .skills {
    margin-bottom: 0px;
    margin-top: 15px;
  }
}

/* Style for section titles within the project */
.skills h3,
.job h3,
.role h3,
.overview h3,
.links h3,
.duration h3,
.challenges h3,
.client-team h3,
.preview h3,
.achievements h3 {
  margin-bottom: 15px; /* Space below section titles */
  color: #2ecc71; /* Red color for section titles */
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2); /* shadow */
  font-size: 24px;
}

@media screen and (max-width: 767px) {
  .skills h3,
  .job h3,
  .role h3,
  .overview h3,
  .links h3,
  .duration h3,
  .challenges h3,
  .client-team h3,
  .preview h3,
  .achievements h3 {
    margin-bottom: 5px; /* Space below section titles */
    font-size: 18px;
    margin-top: 0px;
  }
}

.skills-list li,
.job p,
.role p,
.overview li,
.links li,
.duration p,
.client-team p,
.achievements li {
  font-size: 18px;
}

@media screen and (max-width: 767px) {
  .skills-list {
    margin-top: 5px;
  }
}

/* Style for section text paragraphs */

.role p,
.client-team p,
.duration p {
  font-weight: bold;
}

.overview ul,
.links ul,
.achievements ul {
  list-style-type: none; /* Removes default bullet points */
  padding: 1;
}

@media screen and (max-width: 767px) {
  .overview ul,
  .links ul {
    margin-top: 0px;
  }
}

.overview ul li,
.links ul li,
.achievements ul li {
  margin: 5px 0; /* Adds space between each list item */
}
@media screen and (max-width: 767px) {
  .overview ul li,
  .links ul li .achievements ul li {
    margin: 3px 5px;
  }
}

/* Style for the skills list */
.skills-list {
  list-style-type: none; /* Removes default list bullets */
  padding: 0; /* Removes default padding */
}

/* Style for each skill item */
.skills-list li {
  background-color: #f4f4f9; /* Light blue background */
  display: inline-block; /* Inline display with wrapping */
  margin: 5px; /* Space between items */
  padding: 5px 10px; /* Padding inside each item */
  border-radius: 15px; /* Rounded corners */
  color: #e67e22; /* Carrot Orange */
  font-weight: bold; /* Bold text */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 767px) {
  .skills-list li,
  .job p,
  .role p,
  .overview li,
  .duration p,
  .client-team p,
  .achievements li {
    padding: 1px 1px; /* Reduced padding */
    margin-top: 5px;
    margin-bottom: 0px;
  }
}

@media screen and (max-width: 767px) {
  .client-team p {
    margin-bottom: 10px;
  }
}
.overview ul li::before {
  content: "\27A4"; /* bullet point symbol */
  font-size: 18px; /* Increase the size of the bullet */
  color: #3498db; /* Custom bullet color */
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em; /* Positions bullet point */
}

.links ul li::before {
  content: "\2192"; /* bullet point symbol */
  font-size: 18px; /* size of the bullet */
  color: #3498db; /* Custom bullet color */
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em; /* Positions bullet point */
}

.achievements ul li::before {
  content: "\2713"; /* bullet point symbol */
  font-size: 18px; /* size of the bullet */
  color: #3498db; /* Custom bullet color */
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1.5em; /* Positions bullet point */
}

@media screen and (max-width: 767px) {
  .links li,
  .skills-list li,
  .job p,
  .overview li,
  .duration p,
  .client-team p,
  .achievements li,
  .thanks p {
    font-size: 14px;
  }
}

.challenges table {
  width: 100%;
  max-width: 1200px;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.challenges th,
.challenges td {
  border: 1.5px solid #7f8c8d; /* Gray */
  padding: 8px;
  text-align: left;
}

.challenges th {
  background-color: #f4f4f9;
}

/* Responsive styling for smaller screens */
@media (max-width: 600px) {
  .challenges table {
    width: 100%; /* table fits within the viewport */
  }
  .challenges th,
  .challenges td {
    padding: 4px; /* Reduce padding */
  }
  .challenges th {
    font-size: 0.9em; /* Reduce header font size */
  }
  .challenges td {
    font-size: 0.8em; /* Reduce cell font size */
  }
}

/* Style for project previews */
.previews {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 45%; /* Two items per row */
  gap: 20px; /* space between images */
  justify-content: center; /* center-align rows */
}

.previews figure {
  flex: 1 1 calc(50% - 20px); /* two per row */
  max-width: 600px;
  box-sizing: border-box;
}

.previews img {
  width: 100%; /* fill the figure box */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  border: 1px solid black;
}

figure {
  margin: 0;
  padding: 0;
}

figcaption {
  font-size: 18px; /* Slightly smaller than body text */
  font-weight: bold;
  color: #555; /* Soft gray text */
  margin-top: 4px; /* Space above the caption */
  margin-bottom: 10px;
  font-style: italic; /* Optional: italic text */
  line-height: 1.4; /* Good readability */
}

@media screen and (max-width: 767px) {
  figcaption {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .previews {
    flex: 1 1 100%; /* Full width for each item */
    margin: 5px 0;
    flex-direction: column; /* Stack items vertically */
  }
}

.thanks {
  margin-top: 15px;
  margin-left: 35px;
}

@media screen and (max-width: 767px) {
  .thanks {
    margin-top: 5px;
    margin-left: 20px;
    max-width: 400px;
  }
}

.thanks p {
  font-weight: bold;
}

/* Responsive adjustments */

/* Footer styles */
.footer {
  background-color: #2f4f4f; /* Dark Slate Gray */
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  color: #f2f2f2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-content p {
  margin: 0;
}

/* Link styles */
.footer-content a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Adjustments for the screens smaller than 768px (usually mobile devices) */
@media screen and (max-width: 768px) {
  .footer {
    padding: 10px 0;
    font-size: 12px;
  }
}

/* Scroll to Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 37px;
  right: 10px;
  height: 35px;
  padding: 10px 8px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #3498db;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
}

@media only screen and (max-width: 767px) {
  #scrollToTopBtn {
    bottom: 35px;
    right: 5px;
    height: 30px;
    padding: 10px 7px;
    font-size: 12px;
  }
}

#scrollToTopBtn:hover {
  background-color: #2980b9;
}
