@import "https://fonts.googleapis.com/css?family=Poppins";

* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #1a2b3c;
  color: #f4f7f9;
}

button {
  border-style: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 10px;
  background-color: #3a94c0;
  color: #ffffff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

button:hover {
  background-color: #0594ec;
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:focus {
  background-color: #0594ec;
  outline: none;
}

nav {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #1f4068;
  color: #e6eaf0;
}

nav p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 1.2rem;
}

.burger {
  display: none;
  background-color: transparent;
  color: #0594ec;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: none;
  z-index: 101;
}

.burger:focus {
  outline: none;
}

nav ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-bottom: 5px;
  font-weight: 500;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #3a94c0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.toggle-bar {
  padding: 5px 20px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
}

.toggle-bar button {
  margin: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3a94c0;
  color: white;
  transition: all 0.3s ease;
}

.toggle-bar button:hover {
  transform: rotate(20deg);
}

.toggle-bar button i {
  font-size: 1.2rem;
}

.profile {
  display: flex; /* Arrange the image and text side by side */
  align-items: center; /* Center them vertically */
  justify-content: flex-start; /* Align to the left */
  gap: 20px; /* Add space between the image and the bio text */
  padding: 20px; /* Add some padding around the section */
  max-width: 800px; /* Limit the width of the profile section */
  margin: 0 auto; /* Center the profile section on the page */
  
}

.profile > img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile .bio-text {
  flex: 1; /* Allow the bio text to take up remaining space */
  text-align: left; /* Align text to the left */
}

.profile .bio-text h2 {
  margin: 0; /* Remove default margin */
  font-size: 1.8rem; /* Adjust font size for the name */
}

.profile .bio-text p {
  margin: 10px 0 0 0; /* Add some spacing after the name */
  line-height: 1.5; /* Improve readability */
}

.profile .bio-text .social-media {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 15px;
}

.profile .bio-text .social-media .social-link {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.profile .bio-text .social-media .social-link:hover {
  transform: translateY(-3px);
}

.profile .bio-text .social-media .social-link i {
  margin-right: 8px;
  font-size: 1.2rem;
  color: #3a94c0;
}

.profile .bio-text .social-media .social-link a {
  text-decoration: none;
  color: inherit;
  font-family: "Poppins", sans-serif;
}

.profile .bio-text .social-media .social-link:hover a {
  color: #3a94c0;
}

.tech-stack,
.education,
.experience,
.projects {
  padding: 20px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}

.tech-stack {
  text-align: center; /* Center-align the text */
}

.tech-stack .stack-imgs {
  display: none;
}

.tech-stack .stack-imgs > img {
  display: none;
}

.stack-images {
  display: flex;              /* Use flexbox to align items horizontally */
  justify-content: center;    /* Center the images horizontally within the container */
  gap: 30px;                  /* Add space between images */
  flex-wrap: wrap;            /* Allow images to wrap to the next line if needed */
  margin-top: 20px;
}

.stack-images img {
  width: 60px;                /* Set a fixed width for the images */
  height: auto;               /* Maintain the aspect ratio of the images */
  transition: transform 0.3s ease;  /* Optional: smooth zoom effect on hover */
}

.stack-images img:hover {
  transform: scale(1.2);      /* Optional: enlarge images on hover */
}

.experience .exp {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
  font-size: 1rem;
  background-color: #1f4068;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.experience .exp:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.experience .exp .role,
.experience .exp .company,
.experience .exp .date {
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.experience .exp .role {
  font-size: 1.2rem;
  color: #f4f7f9;
}

.experience .exp .company {
  font-size: 1.1rem;
  color: #e6eaf0;
}

.experience .exp .date {
  font-size: 0.9rem;
  color: #e6eaf0;
  opacity: 0.7;
  margin-bottom: 15px;
}

.experience .exp .description {
  line-height: 1.6;
  margin-top: 5px;
}

.experience .exp .role i,
.experience .exp .company i,
.experience .exp .date i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #3a94c0;
}

.education .edu {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 15px;
  text-align: left;
  font-size: 1rem;
  margin: 0.75em 0;
  background-color: #1f4068;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.education .edu:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.education .edu .course,
.education .edu .school,
.education .edu .date {
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.education .edu .course {
  font-size: 1.2rem;
  color: #f4f7f9;
}

.education .edu .school {
  font-size: 1.1rem;
  color: #e6eaf0;
}

.education .edu .date {
  font-size: 0.9rem;
  color: #e6eaf0;
  opacity: 0.7;
}

.education .edu .course i,
.education .edu .school i,
.education .edu .date i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #3a94c0;
}

.projects {
  padding: 20px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.projects .project-section {
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  align-self: center;
  justify-content: space-between;
}

.projects .project-section .content {
  width: 400px;
  margin: 10px;
}

.projects .project-section .content .footer {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 5px 5px;
  background-color: #1f4068;
}

.projects .project-section .content .footer > h3 {
  margin: 0;
  color: #f4f7f9;
}

.projects .project-section .content .footer > p {
  font-size: 12px;
  color: #e6eaf0;
}

.projects .project-section .content .footer > a {
  align-self: flex-end;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  color: white;
  font-size: 12px;
  width: 40%;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 5px;
  background-color: #3a94c0;
  transition: all 0.3s ease;
}

.projects .project-section .content .footer > a:hover {
  background-color: #0594ec;
  transform: scale(1.05);
}

.projects .project-section .content .top {
  height: 207px;
  width: 100%;
  padding: 10px;
  background: url("../assets/img/redginger.png");
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
}

.projects .project-section .content .fourth {
  height: 207px;
  width: 100%;
  padding: 10px;
  background: url("../assets/img/larsfood.png");
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
}

.projects .project-section .content .sixth {
  height: 207px;
  width: 100%;
  padding: 10px;
  background: url("../assets/img/junubin.png");
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
}

.projects .project-section .content .seventh {
  height: 207px;
  width: 100%;
  padding: 10px;
  background: url("../assets/img/BrunoSafaris.png");
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
}

.projects .project-section .content .eighth {
  height: 207px;
  width: 100%;
  padding: 10px;
  background: url("../assets/img/bigfish.png");
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
}

footer.footer {
  background-color: #1f4068;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 0 0;
  padding: 15px 0;
  width: 100%;
}

footer.footer .footer_desc {
  opacity: 0.8;
  font-size: 0.9rem;
}

footer.footer .git_link {
  color: #3a94c0;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer.footer .git_link:hover {
  color: #0594ec;
  text-decoration: underline;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Section Headers Styling */
.tech-stack h2,
.education h2,
.experience h2,
.projects h2 {
  position: relative;
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  color: #f4f7f9;
}

.tech-stack h2:after,
.education h2:after,
.experience h2:after,
.projects h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #3a94c0;
  border-radius: 3px;
}

.tech-stack span,
.education span,
.experience span,
.projects span {
  display: none;
}

/* Responsiveness */
@media (max-width: 1100px) {
  .profile {
    max-width: 90%;
    gap: 10px;
  }
  
  .projects .project-section .content {
    width: 45%;
  }
}

@media (max-width: 900px) {
  .profile {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .profile > img {
    margin-right: 0;
    margin-bottom: 20px;
    width: 250px;
    height: 250px;
  }
  
  .profile .bio-text .social-media {
    justify-content: center;
  }
  
  .projects .project-section {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }
  
  .burger {
    display: block;
    z-index: 101;
  }

  nav ul {
    background-color: #1f4068;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    text-align: center;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 100;
    padding: 80px 0 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }

  nav ul.show {
    transform: translateX(0);
  }

  nav ul li {
    margin: 20px 0;
  }
  
  nav ul li a {
    font-size: 1.2rem;
    display: block;
    padding: 10px;
  }
  
  .projects .project-section .content {
    width: 80%;
  }
  
  .experience .exp .role,
  .experience .exp .company,
  .experience .exp .date {
    font-size: 0.9rem;
  }
  
  .education .edu .course,
  .education .edu .school,
  .education .edu .date {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 12px 15px;
  }
  
  nav p {
    font-size: 1rem;
  }

  .toggle-bar {
    padding: 5px 10px;
  }
  
  .profile > img {
    width: 200px;
    height: 200px;
  }

  .stack-images img {
    width: 45px;
    margin: 10px 5px;
  }

  .projects .project-section .content {
    width: 100%;
    margin: 10px 0;
  }
  
  .projects .project-section .content .footer > a {
    width: 100%;
  }
  
  .experience .exp,
  .education .edu {
    padding: 12px;
  }
  
  main {
    padding: 20px 15px;
  }
  
  section {
    margin: 30px 0;
  }
}