body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #E4E8EB;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.nav-bar {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 10px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 100;
}
.logo{
  font-size: 1.5rem;
  width: 40px; 
  /* height: 60px; */
  padding: 40px 40px 0;
}
/* <!-- on the class bellow for the menu(<i class="fab fa-bars"></i>) i want it to disappear on large screens --> */
#menu{
  display: none;
}
nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px 0px 20px; 
}
nav img{
  width: 100px;
}
nav ul{
  display: flex;
  font-size: 18px;
  list-style: none;
  gap: 10px;
}
nav ul li a{
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
nav ul li a:hover{
  background-color: #333;
  color: #fff;
}
nav ul li a.active{
  background-color: #333;
  color: #fff;
}

/* The new css */

/* the intro div will always be there on top of the page
and will be followed by the about section */
.intro{
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between ;
  height: 100vh;
  width: 100%;
  margin-top: 15vh;
  background-color: #fff;
  background-position: center;
}
.intro .intro-text{
  min-width: 50%;
  justify-content: center;
  text-align: center;
}
.intro .content h1{
    font-size: 50px;
}
/* I want a styled border around the image
and I want the image to be in the center of the page */

.intro .intro-image{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  min-width: 50%;
  padding: 50px;
  justify-content: center;
  text-align: center;
}
img {
  width: 50%;
  height: 50%;
  border-radius: 5%;
}
/* I want the about section to be in the center of the page
and I want the image to be in the center of the page */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-between ;
    height: 100vh;
    width: 100%;
    margin-top: 8%;
    background-color: #fff;
    background-position: center;
}
.about .about-text{
    min-width: 50%;
    justify-content: center;
    text-align: center;
}
.about .content h1{
    font-size: 50px;
}
.about .about-image{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    min-width: 50%;
    padding: 50px;
    justify-content: center;
    text-align: center;
}
.about .about-image img{
    width: 50%;
    height: 50%;
    border-radius: 5%;
}
.experiments {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.experiments-text {
  text-align: center;
  margin-bottom: 40px;
}

.experiments-text h2 {
  margin-top: 0;
}

.section-proj {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: 80vh;
}
.section-proj h3{
  font-weight: 800;
}
.section-proj .proj{
    width: 30%;
    margin: 20px;
    padding: 20px;
    border: 1px solid #171ab6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: #f7f7f7;
}
.section-proj p{
  font-weight: 400;
}
.experiments-img {
  width: 48%; /* adjust the width to your liking */
  margin: 10px;
  background-size: cover;
  background-position: center;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.experiments-image h3 {
  margin-top: 0;
  color: #000000;
}

.experiments-image p {
  font-size: 16px;
  color: #000000;
  margin-bottom: 20px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: #f7f7f7;
}

.contact-text {
  flex-basis: 50%;
  margin-right: 20px;
}

.contact-text h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-text p {
  font-size: 18px;
  color: #666;
}

.contact-image {
  flex-basis: 30%;
  margin-left: 20px;
}

.contact-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.contact-icon {
  flex-basis: 20%;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.contact-icon a {
  color: #337ab7;
  transition: color 0.2s ease;
}

.contact-icon a:hover {
  color: #23527c;
}

.contact-icon i {
  font-size: 24px;
  margin: 0 10px;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
  clear: both;
}

.footer-text p {
  margin: 0;
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
  #menu {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
  }
  nav ul{
    display: flex;
    font-size: 18px;
    align-items: center;
    list-style: none;
    gap: 10px;
    flex-direction: column; /* added to stack menu items vertically */
    position: absolute; /* added to position menu absolutely */
    top: 90%; /* added to position menu below nav */
    left: 0; /* added to position menu at left edge */
    width: 100%; /* added to make menu full width */
    background-color: #fff; /* added to set menu background color */
    padding: 20px; /* added to add padding to menu */
    border-radius: 0 0 10px 10px; /* added to add border radius to menu */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* added to add box shadow to menu */
    transform: translateY(-10px); /* added to hide menu initially */
    opacity: 0; /* added to hide menu initially */
    transition: all 0.3s ease; /* added to animate menu opening and closing */
  }
  .show-menu nav ul {
    opacity: 1;
    background-color: rgb(255, 255, 255, 0.9);
    transform: translateY(0);
  }
  .intro{
    height:90vh;
  }
  .intro .intro-image{
    display: none;
  }
  .section-proj {
    flex-direction: column;
    align-items: center;
  }
  .experiments-image {
    width: 80%;
    margin: 20px auto;
  }
  
}
/* The about me page css starts. */
.skills {
  background-color: #f7f7f7;
  padding: 20px;
}

.skills-text {
  text-align: center;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.experience {
  background-color: #fff;
  padding: 20px;
}

.experience-text {
  text-align: center;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.education {
  background-color: #f7f7f7;
  padding: 20px;
}

.education-text {
  text-align: center;
}

.education-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education-list li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.certifications {
  background-color: #fff;
  padding: 20px;
}

.certifications-text {
  text-align: center;
}

.certifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certifications-list li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

/* Now next up it's the projects section. */
.projects {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

.project {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.project h3 {
  margin-top: 0;
  font-weight: bold;
  font-size: 18px;
}

.project p {
  margin-bottom: 20px;
}

.project a {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 0 0 10px 10px;
  background-color: #337ab7;
  color: #fff;
  text-decoration: none;
}

.project a:hover {
  background-color: #23527c;
}

/* And now for the finisher....aka the contact page. */
