* {
    font-family: "SUSE", sans-serif;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
  }

:root {
    --main: #20232C;
    --white: #fff;
    --whitesmoke: #f5f5f5;
    --accent-blue: #739DD1;
  }

body {
    background-color: var(--main);
}

/* Fade in animation homepage */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bg image home screen */
.firstpage {
    height: 100vh;
    background-image: url('/img/mainone.png');
    background-size: cover;
}

.firstpage>.topnav {
    font-family: "SUSE", sans-serif;
}

/* Navbar flex */
.topnav {
  height: 100px;
  overflow: hidden;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  position: relative;       
}
  
  .topnav a {
    float: left;
    display: block;
    color: var(--white);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 20px;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 0.8s forwards;
  }

  @keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
  .topnav a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .topnav a.active {
    color: white;
    text-decoration: underline;
  }
  
  .topnav .icon {
    display: none;
  }
  /* Home page content container */
  .flex-parent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    width: 100vw;
  }
  /* Home page content */
  .welcome h1 {
    font-size: clamp(1.5rem, 3.5vw, 4rem);     
    color:var(--white);
    font-weight: 300;
  }

  .portfolio h1 {
    font-size: clamp(3.2rem, 8vw, 12rem);     
    font-weight: 900;
    color:var(--white);
    margin-bottom: 50px;
  }

  .name p {
    font-size: clamp(1.3rem, 2.5vw, 3rem);     
    color:var(--white);
    font-weight: 300;
  }

  .welcome h1, .portfolio h1, .name p {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 1.2s forwards;
}

@keyframes slideInLeft {
  to {
      opacity: 1;
      transform: translateX(0);
  }
}
  /* Title skills section */
  .title h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30vh;
    font-size: clamp(1.2rem, 2.5vw, 4rem);     
    color:var(--white);
    font-weight: 300;
  }

  .line {
    display: flex;
    justify-content: center;
  }

  hr {
    width: 80%;
    margin-top: 40px;
  }


  .child-element p {
    text-align: center;
    font-size: clamp(1.3rem, 2vw, 6rem);     
    color:var(--white);
    font-weight: 900;
  }

  .child-element {
    display: flex;
    align-items: center;
    justify-content: center;

  }

  .grid-parent {
    margin: 0px 80px 0px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 30px;
  }

  /* Progress Bar Section */
  .progress-bar-section {
    text-align: center;
    margin: 40px auto;
    width: 80%;
}

.progress-container {
  display: flex;
  align-items: center;
  background-color: #0B2545;
  border: #739DD1 solid 1px;
  border-radius: 35px;
  width: 80%;
  height: 20px;
  margin: 25px;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%; 
  background: linear-gradient(0.25turn, #113F78, #739DD1);  
  border-radius: 20px;
  transition: width 1s ease;
}

#progress-text-1,
#progress-text-2,
#progress-text-3,
#progress-text-4,
#progress-text-5,
#progress-text-6 {
    margin: 5px;
    font-family: 'SUSE', sans-serif;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
}
/* Skills section */
.skills {
  margin-bottom: 100px;
}

/* Page under skillspage */
.secondpage {
  background-image: url('/img/maintwo.png');
  background-size: cover;
}

.secondpage {
  display: flex;
  align-items: center;
  flex-direction: column;
}
/* image of the project slider */
.projectslider {
  display: flex;
  justify-content: center;
}


.projectslider img {
  width: 80%;
  height: auto;
  border-radius: 20px;
  margin-top: -40px;
}
/* project slider button */
.projectskider-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border: #fff 1px solid;
  border-radius: 25px;
  padding: 5px 25px 5px 25px;
  margin: 30px;
}

.projectskider-btn a {
  color: #fff;
  text-decoration: none;
  padding: 5px 25px 5px 25px;
}

.projectskider-btn a:hover {
  background-color: #ddd;
  color: black;
}
/* Footer punchline */
.footer .footer-punchline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 40px;
}

.footer .footer-punchline h1 {
  font-size: clamp(2.5rem, 6.5vw, 6rem); 
  font-weight: 900;  
  text-align: center;  

}

.footer .footer-punchline p {
  font-size: clamp(1rem, 2vw, 4rem);
  text-align: center;    
}
/* Footer navigation container */
.footer-nav-parent {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 30px;
  } 
  

.footer-nav-parent a, h1, p {
  text-decoration: none;
  color: #fff;
}

.footer-nav-parent a:hover {
  text-decoration: none;
  background-color: #ddd;
  color: black;
}

.footer-nav-container {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

/* Skills section icons */
.fa-html5, .fa-css3-alt {
  color: var(--whitesmoke);
  font-size: 60px;
}

.fa-js, .fa-clock, .fa-wordpress {
  color: var(--whitesmoke);
  font-size: 50px;
}

.fa-2xl {
  font-size: 3em;
}

.fa-xl {
  font-size: 1.2em;
  margin-right: 8px;
}

.fa-linkedin, .fa-file, .fa-envelope {
  color: var(--whitesmoke);
  font-size: 20px;
  margin-right: 10px;
}

.fa-chevron-down {
  color: var(--whitesmoke);
  font-size: 20px;
  margin-left: 5px;

}

.fa-chevron-down:hover {
  background-color: #ddd;
  color: black;
}

.fa-gitlab, .fa-file-pdf, .fa-play, .fa-trello, .figma i {
  font-size: 25px;
  padding: 5px;
}

.documentation i {
  font-size: 25px;
  padding: 5px;
}

.documentation i:hover {
  background-color: #ddd;
  color: black;
  padding: 5px;
}



.fa-play:hover {
  background-color: #ddd;
  color: black;
  padding: 5px;
}


.documentation:hover {
  background-color: #ddd;
  color: black;
}


.figma:hover {
  background-color: #ddd;
  color: black;
}

.documentation {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  border: #ddd solid;
}

.figma {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  border: #ddd solid;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px; 
  margin-top: 20px;
}
/* Learning outcomes popup */
.modal-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.modal-button:hover {
  background-color: #0056b3; 
}


.button-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  gap: 10px; 
  margin-top: 20px;
}

.modal-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s;
  min-width: 100px; 
  flex-grow: 1; 
  max-width: 150px; 
}

.modal-button:hover {
  background-color: #0056b3; 
}


.modal {
  display: none; 
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  overflow-y: auto; 
}

.modal-content {
  background-color: #20232cd6;
  margin: 5% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 5px;
  max-width: 600px; 
  text-align: center;
  position: relative; 
}
.modal-content h2 {
  color: #fff;
}
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
/* --------------------------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------LO's Page Styling------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------------------- */
/* Header */
.header {
  height: 100vh;
  background-image: url('/img/maintwo.png');
  background-size: cover;
} 
/* return home icon */
.nav-icons-container {
  display: flex;
  justify-content: space-between;
}

.return-home i {
  padding: 10px;
  margin: 30px;
  font-size: 30px;
  color: #fff;
}

.return-home i:hover {
  background-color: #ddd;
  color: black;
  padding: 10px;
}

.return-popup i {
  padding: 10px;
  margin: 30px;
  font-size: 30px;
  color: #fff;
}

.return-popup i:hover {
  background-color: #ddd;
  color: black;
  padding: 10px;
}

/* category */
.category p {
  color: var(--accent-blue);
  font-size: clamp(0.5rem, 3vw, 1.5rem);  
  font-weight: 600;
}
/* category title */
.category-title h1 {
  color: var(--white);
  font-size: clamp(2rem, 11vw, 5rem);   
  font-weight: 900;
}

.title h1 {
  text-align: center;
}

.category-info p {
  color: var(--white);
  font-size: clamp(1rem, 2.5vw, 1.8rem);  
  font-weight: 300;
  margin-bottom: 10%;

}

.category-title-2 h1 {
  color: var(--white);
  font-size: clamp(1rem, 8vw, 4rem);   
  font-weight: 900;
}

.category-info-2 {
  display: flex;
  flex-direction: column;
}

.category-info-2 p {
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.5rem);  
  font-weight: 300;
}

.category-info-2 a {
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.5rem);  
  font-weight: 900;
  margin-top: 10px;

}

.category-info-2 a:hover {
  background-color: #ddd;
  color: black;
  font-size: clamp(1rem, 2vw, 1.5rem);  
  font-weight: 900;

}

.caterory-container {
  display: flex;
  flex-direction: column;
  width: 70vw;
  margin-left: 15%;
  margin-top: 5%;
}
/* The whole section */
.first-img {
  display: flex;
  justify-content: center;
  margin-top: -5%;
}
/* Actual image */
.first-img img {
  width: 80%;
  border-radius: 15px;
}

/* Actual iframe */
.first-img img {
  width: 80%;
  border-radius: 15px;
}
/* Div for the href and img */
.div-href-img-overlay {
  position: relative;
  width: 80%;
  display: flex;
  justify-content: center;
}

.div-href-img-overlay img {
  width: 100%;
  border-radius: 15px;
  transition: 0.3s ease;
}
/* Overlay when hovered */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  opacity: 0;
  transition: 0.3s ease;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* text inside overlay */
.overlay .text {
  color: white;
  font-size: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}
/* image when hovered */
.div-href-img-overlay:hover img {
  filter: blur(2px) brightness(0.7);
}

.div-href-img-overlay:hover .overlay {
  opacity: 1;
}

.div-href-img-overlay:hover .overlay .text {
  opacity: 1;
  transform: translateY(0);
  text-decoration: underline;
}

.dropdown-container {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 20%;
}

.dropdown-button {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  border: #ddd solid;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
}

.last {
  margin-bottom: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 1;
  border-radius: 5px;
  color: black;
}

.dropdown-content p {
  color: black;
  font-size: 18px;
  margin-bottom: 10px;
}

.dropdown-content ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.dropdown-content a {
  color: #007bff;
}

.dropdown-content ul li {
  margin: 5px 0;
}

.dropdown-container:hover .dropdown-content {
  display: block;
}

.dropdown-button:focus + .dropdown-content {
  display: block;
}

.buttons-container {
  display: flex;
}

/* --------------------------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------Media queries----------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------------------- */


  @media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
        display: block;
        position: absolute; 
        right: 0;            
        padding: 14px 16px;  
    }
  }
  
  @media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
      position: absolute;
      right: 0;
    }
    .topnav.responsive a {
      float: none;
      display: block;
      text-align: left;
    }
  }

  @media screen and (max-width: 1240px) {
    .grid-parent {
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: repeat(3, 1fr);
      grid-row-gap: 0px; 
      grid-column-gap: 30px;
      }   
  }

  @media screen and (max-width: 940px) {
    .grid-parent {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 30px;
    }
  }



  @media screen and (max-width: 640px) {
    .child-element {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  
    }
  }

  @media screen and (max-width: 840px) {
    .footer-nav-container {
      display: flex;
      justify-content: center;
    }
  }


  @media screen and (max-width: 640px) {
    .footer-nav-container {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: 100%;
    }
  }

  @media screen and (max-width: 640px) {
    .header {
      height: 80vh;
      background-image: url('/img/maintwo.png');
      background-size: cover;
    } 
  }


