@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Rancho&family=Water+Brush&display=swap');

body, html{
    font-size: 62.5%;
    margin: 0;
    font-family: sans-serif;
    height: 100%;
    background-color: rgb(171, 201, 201);
}
:root {
    --menu-icon-color: #887f7f;
    --menu-color: rgba(0,0,0,0.6);
    --menu-line-color: #000000;
  }
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: poppins;
}
/* Menu page */

  .desktop{
    display: none;
  }
  .desktop-menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(0,0,0,0.6);
  }
  
  .desktop-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 12px;   
  }
  
  .desktop-menu ul li a {
    text-decoration: none;
    color: aliceblue;
    padding: 12px 20px;
    font-size: medium;
    background-color: rgba(0, 0, 0, 0.1);
    border:#ffffff;
  }
  
  
  
  .mobile{
    display: none;
  }
  
  #ham-menu {
    display: none;
  }

  .invisible{
    visibility: hidden;
  }
  label[for="ham-menu"] {
    display: block;
    position: fixed;
    cursor: pointer;
    top: 24px;
    left: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 15px;
    border: 2px solid var(--menu-icon-color);
  }
  .ham-menu {
    position: fixed;
    width: 100%;
    visibility: hidden;
    transform: translateY(-110%);
    z-index: 998;
    background-color: var(--menu-color);
    transition: 0.75s;
    display: flex;
    justify-content: left;
    align-items: center;
  }
  .ham-menu > ul {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-around;
    padding: 20px;
    height: 50%;
  }
  .ham-menu > ul > li {
    font-size: 5rem;
    white-space: nowrap;
    letter-spacing: 0.15em;
    cursor: pointer;
    color: rgb(183, 177, 177);
  }
  #ham-menu:checked + label {
    background-color: transparent;
    --menu-icon-color: var(--menu-line-color);
  }
  #ham-menu:checked ~ div.ham-menu {
    transform: translate(0px);
    visibility: visible;
  }

  [for="ham-menu"] > div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column wrap;
    align-content: center;
    align-items: center;
  }
  .menu-line {
    display: block;
    width: 17px;
    height: 2px;
    margin: 10px 0 5px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    background-color: var(--menu-icon-color);
    transition: 500ms;
    transform-origin: right center;
  }
  [for="ham-menu"] > div > span:nth-child(4),
  [for="ham-menu"] > div > span:nth-child(5),
  [for="ham-menu"] > div > span:nth-child(6) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    transform-origin: left center;
  }
  #ham-menu:checked + label span {
    background-color: var(--menu-line-color);
  }
  #ham-menu:checked + label span:nth-child(2),
  #ham-menu:checked + label span:nth-child(5) {
    transform: scale(0);
  }
  #ham-menu:checked + label span:nth-child(1) {
    transform: translateY(17px) rotate(45deg);
  }
  #ham-menu:checked + label span:nth-child(4) {
    transform: translateY(17px) rotate(-45deg);
  }
  #ham-menu:checked + label span:nth-child(3) {
    transform: translateY(-17px) rotate(-45deg);
  }
  #ham-menu:checked + label span:nth-child(6) {
    transform: translateY(-17px) rotate(45deg);
  }

  .bold-text {
    font-weight: bold;
  }

/* Front page image and text */
.hero-image{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
    background-image: url("images/mountain_background.jpeg");
    margin: 0px;
    /* border: 10px solid black;
    opacity: 0.5; */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;

    position: relative;
    top: 0;
    left: 0;
}

.main-title{
  position: absolute;
  color: rgb(240, 248, 255);
  text-align: center;
  border: 2px solid;
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 10%;
  margin-top: 10%;
  padding: 5%;
  font-size: 2rem;
}
.slogan{
    font-size: 2rem;
    color: aliceblue;
    padding: 5%;
}

.space-bars{
    padding: 5%;
    margin: 5%;
}
/* Article container */
.articles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    background-color: rgba(0,0,0,0.2);
    width: 100%;
    height: 75%;
  }
  
  .article {
    position: relative;
    flex: 1;
    margin: 10px;
    padding: 20px;
    border: 1px solid #ffffff;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background-size: cover;
    background-position: center;
  }
  
  .article img {
    display: none;
  }
  
  .article h3{
    position: absolute;
    width: 100%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-size: medium;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.3);
  }
  .article p{
    position: absolute;
    width: 100%;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-size: small;
    padding: 6px;
    background-color: rgba(0, 0, 0, 0.3);
  }

  .article1font{
    color:#ffffff;
  }
  .button-click{
    text-align: center;
  }

  .about-section {
    display: flex;
    align-items: center;
  }
  /* About me section */
  .text-description {
    flex: 1;
    padding: 0 20px; /* Adjust padding as needed */
  }
  .image-container {
    flex: 1;
    text-align: center;
  }
  
  .image-container img {
    max-width: 100%;
    height: auto;
  }
/* Pyramid Container */
  .pyramid{
    width: 100%;
    height: 100vh;
    padding: 0px 13%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 2rem;
  }

  .rectangle-container {
    position: relative;
  }
  
  .rectangle {
    width: 20vw;
    height: 8vw; /* Height of the rectangle */
    background-color: lightblue;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
  }
  .xs-rectangle {
    width: 20vw;
    background-color: rgba(98, 21, 21, 0.5);
    color: white;
  }
  .s-rectangle{
    width: 40vw;
    background-color: rgba(22, 98, 21, 0.5);
    color: white;
  }
  .m-rectangle{
    width: 60vw;
    background-color: rgba(21, 88, 98, 0.5);
    color: white;
  }
  .l-rectangle{
    width: 80vw;
    background-color: rgba(44, 21, 98, 0.5);
    color: white;
  }
  .content {
    display: none;
    position: absolute;
    top: 8vw; /* Height of .rectangle */
    width: 90vw;
    background-color: #3459df;
    padding: 10px;
    z-index: 0;
    align-items: center;
  }
  .xs-content {
    position: absolute;
    left: -35vw;
    background-color: rgba(98, 21, 21, 0.7);
    color: white;
  }
  .s-content {
    position: absolute;
    left: -25vw;
    background-color: rgba(22, 98, 21, 0.7);
    color: white;
  }
  .m-content {
    position: absolute;
    left: -15vw;
    background-color: rgba(21, 88, 98, 0.7);
    color: white;
  }
  .l-content {
    position: absolute;
    left: -5vw;
    background-color: rgba(44, 21, 98, 0.7);
    color: white;
  }
/* Skill section */
/* .skills_section{
    width: 100%;
    height: 100vh;
    padding: 0px 13%;
    background-color: rgba(0, 0, 0, 0.082);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
} */

.skills_main{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 30px;
    grid-column-gap: 50px;
}
.skills_main .skill_bar .info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:  0 10px;
}
.skill_bar .info p:nth-child(2){
    font-weight: 500;
}
.skill_bar .bar{
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.144);
    border-radius: 25px;
    margin-top: 5px;
    position: relative;
}
.skill_bar .bar span{
    width: 49%;
    height: 100%;
    position: absolute;
    background-color: #3459df;
    border-radius: 25px;
}

.skills_tabs {
  display: flex;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.144);
  margin-bottom: 20px;
}

.tab-button {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  font-size: 2rem;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: blue;
}
  /* .tab {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #ccc;
    border: none;
    cursor: pointer;
  } */
  
  .tab.active {
    background-color: #3459df;
    color: white;
  }
  .skills_main{
    font-size: 2rem;
  }

  .space-skills{
    margin-bottom: 20px;
  }
  .soft{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* adjust as needed */
  }
@keyframes fillbar-communication {
    0%{
        width: 0%;
    }
    100% {
        width: 95%; /* Fill up to the actual percentage value */
    }
}
  .bar span.communication {
    width: unset; /* Start with 0% width */
    animation: fillbar-communication 2s forwards; /* Use forwards to keep the final animation state */
}
@keyframes fillbar-openness {
  0%{
      width: 0%;
  }
  100% {
      width: 80%; /* Fill up to the actual percentage value */
  }
}
.bar span.openness {
  width: unset; /* Start with 0% width */
  animation: fillbar-openness 2s forwards; /* Use forwards to keep the final animation state */
}
@keyframes fillbar-adaptation {
  0%{
      width: 0%;
  }
  100% {
      width: 95%; /* Fill up to the actual percentage value */
  }
}
.bar span.adaptation {
  width: unset; /* Start with 0% width */
  animation: fillbar-adaptation 2s forwards; /* Use forwards to keep the final animation state */
}
@keyframes fillbar-data {
    0%{
        width: 0%;
    }
    100% {
        width: 85%; /* Fill up to the actual percentage value */
    }
}
  .bar span.data {
    width: unset; /* Start with 0% width */
    animation: fillbar-data 2s forwards; /* Use forwards to keep the final animation state */
}

@keyframes fillbar-java {
    0%{
        width: 0%;
    }
    100% {
        width: 20%; /* Fill up to the actual percentage value */
    }
}
  .bar span.java {
    width: unset; /* Start with 0% width */
    animation: fillbar-java 2s forwards; /* Use forwards to keep the final animation state */
}

@keyframes fillbar-maths {
    0%{
        width: 0%;
    }
    100% {
        width: 75%; /* Fill up to the actual percentage value */
    }
}
  .bar span.maths {
    width: unset; /* Start with 0% width */
    animation: fillbar-maths 2s forwards; /* Use forwards to keep the final animation state */
}
@keyframes fillbar-ressourcefulness {
    0%{
        width: 0%;
    }
    100% {
        width: 90%; /* Fill up to the actual percentage value */
    }
}
  .bar span.ressourcefulness {
    width: unset; /* Start with 0% width */
    animation: fillbar-ressourcefulness 2s forwards; /* Use forwards to keep the final animation state */
}
/* Contact section */
form{
  background: rgba(0,0,0,0.40);
  width: 100%;
  height: 100%;
  padding: 40px;
}

form .title h2{
  letter-spacing: 3px;
  font-size: 2.5rem;
  border-bottom: 1px solid white;
  padding-bottom: 8px;
  margin-bottom: 20px;
  text-align: center;
}

form .half{
  display: flex;
  justify-content: space-between;
}

form .half .item{
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  width: 48%;
}

form label{
  display: block;
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

form .half .item input{
  border-radius: 10px;
  border: 1px solid white;
  padding: 16px;
  width: 100%;
  height: 40px;
  background: transparent;
  font-size: 1.5rem;
}

form .full{
  margin-bottom: 25px;
}

form .full textarea{
  border-radius: 10px;
  border: 1px solid white;
  padding: 12px 16px;
  width: 100%;
  height: 200px;
  background: transparent;    
  font-size: 1.5rem;
}

form .action{
  margin-bottom: 20px;
}

form .action input{
  background: transparent;
  border-radius: 10px;
  border: 1px solid white;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;

  letter-spacing: 1px;
  outline: 0;
  padding: 10px;
  margin-right: 10px;
}

form .action input[type="submit"]{
  background: white;
  color: black;
}
form .half .item input:focus, form .full textarea:focus, form .action input[type="reset"]:hover, form .action input[type="attach"]:hover{
  background: rgba(0,0,0,0.1);
}

form .action input[type="attach"]{
  width: 130px;
  text-align: center;
}

@media (max-width: 480px){
  form .half{
    flex-direction: column;
  }
  form .half .item{
    width: 100%;
  }
  form .action{
    display: flex;
    flex-direction: column;
  }
  form .action input{
    margin-bottom: 10px;
    width: 100%;
  }
  form .action input[type="attach"]{
      margin-bottom: 10px;
      width: 100%;
    }
}

/* Media screens */

@media screen and (max-width: 768px) {
  .mobile{
    display: block;
  }
}
@media screen and (min-width: 768px) {
  .desktop{
    display: block;
  }
}