:root {
    interpolate-size: allow-keywords;
}

body{
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    overflow-x: hidden; /* allow vertical scrolling */
    position: relative;
    cursor: none;
    font-family: 'Big Shoulders', monospace;
    resize: horizontal;
}

#main_container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}


#nav_board{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95vw;
    height: 80vh;
    margin: auto;
    background-color: #FFFCFB60;
    border-radius: 10px;
    box-shadow: 0 .125rem .25rem 0 rgba(0, 0, 0, .1);
}

.target{
    position: absolute;
    display : flex;
    width: 14rem;
    padding: 10px;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color : black;
    z-index: 1;
}

.target.locked {
  transform: scale(1.15);
  border-radius: 10px;
  background: #6c6c6c;
  border-color: #EB25BA;
  color: #FFFCFB;
  z-index: 2;
}



#nav_top_left{
    top:10%;
    left:5%;

}

#nav_bottom_left{
    top:60%;
    left:5%;

}

#nav_top_right{
    top:10%;
    right:3%;

}

#nav_bottom_right{
    right: 3%;
    top:60%;
}

#centre_screen{
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 45vw;
    height: auto;
    z-index: 10;
    justify-content: space-between;
    background: #f5f5f6;
    border: 2px solid #090907;
    box-shadow: 4px 4px #333;
    cursor: default;
}



#centre_screen:hover{
    cursor:default;
}

.slider{
  height: 86.5vh;
  margin-top: 0px;
  position: relative;
  
}

.slider .list .item{
  position: absolute;
  inset: 0 0 0 0;
  overflow: hidden;
  opacity: 0;
  transition: .5s;
  
}

.slider .list .item img{
 width: 100%;
 height: 100%;
 object-fit: cover;
 
}



.slider .list .item::after{
 content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  left:0;
  bottom:0;
  background-image: linear-gradient(to top,#cbc2c2 5%,transparent);
}

.slider .list .item .content{
  position: absolute;
  left:10%;
  top:20%;
  width:45vw;
  max-width: 80%;
  z-index:1;
  
}

.slider .list .item .content p:nth-child(1){
  text-transform: uppercase;
  letter-spacing: 10px;

}

.slider .list .item .content h2{
  font-size: 100px;
  margin :0;

  background-color: #6C6C6C35;
  color: #FFFCFB;


}

.slider .list .item.active{
  opacity: 1;
  z-index: 10;
}

#keyframes showContent{
  to {
    transform: translate(0);
    filter:blur(0);
    opacity: 1;
  };
}

.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3){
  transform: translateY(30px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .5s .7s ease-in-out 1 forwards;

  background-color: #6C6C6C35;
  color: #FFFCFB;
  
}

.slider .list .item.active h2{
  animation-delay: 1s;
}

.slider .list .item.active p:nth-child(3){
  animation-duration: 1.3s;
}

.crosshair {
  position: fixed;
  background: #EB25BA;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
  transition: top 0.08s ease-out, left 0.08s ease-out;
}

.crosshair.horizontal {
  height: 1px;
  width: 100vw;
  top: 0;
  left: 0;
}

.crosshair.vertical {
  width: 1px;
  height: 100vh;
  top: 0;
  left: 0;
}

details * { 
  margin :0;
  
}

details{
  overflow:hidden;
}

.arrows{
  position: absolute;
  top:30%;
  right:50px;
  z-index: 100;
  
}

.arrows button{
  background-color: #6C6C6C35;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 5px;
  font-size: x-large;
  color:#eee;
  transition: .5s;
  cursor: pointer;
}

.arrows button:hover{
  background-color: #c0bdbd;
  color:black;
}



.thumbnail{
  position: absolute;
  bottom:5px;
  z-index: 11;
  display: flex;
  gap: 10px;
  width:100%;
  height:170px;
  padding: 0 50px;
  box-sizing: border-box;
  overflow: auto;
  justify-content: flex-start;
  cursor: pointer;
}

.thumbnail::-webkit-scrollbar{
  width:0;
}

.thumbnail .item{
  width: 100px;
  height: 150px;
  filter:brightness(.5);
  transition: .5s;
  flex-shrink: 0;
  
   user-select: none; /* Unables text selection */
}

.thumbnail .content{
   background-color: #6C6C6C;
  color: #eee;
  text-align: center;
  border-radius: 5px;
}

.thumbnail .item img{
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 10px;
}

.thumbnail .item.active{
  filter:brightness(1);
}

.thumbnail .item .content{
  position: absolute;
  inset: auto 10px 10px 10px;
}


#thumbnails{
  display:flex;
  justify-content: center;
}
/*details > ul {
  display: flex;
  flex-direction: column;
  padding-block : 1rem;
  border: 5px solid;
  border-image: url("https://www.easyinformatic.com/images/border-lblue.png") 13 stretch;
  opacity: 0.5;
 border-radius: 10px;
align-content: center;

}

details::details-content{
  font-size: 1.125rem;
  block-size:0;
  
  transition: block-size 1s,
    content-visibility 1s;
  
  transition-behavior: allow-discrete; 
}

details[open]::details-content{
  block-size:auto;
}

summary {
  line-height : 1.3;
  margin-inline-start: 1rem;
  list-style-position: outside;
}

summary::maker {
  font-size : 0.75em;
}*/

#horizontal_line {
  display: flex;
  width: 100%;
  margin: 20px auto;
  align-items: center;
}

.line {
  flex-grow: 1;
  height: 1px;
  background: black;
  position: relative;
}

.line.arrow-right::after {
  position: absolute;
  content: '';
  bottom: -10px;
  right: 0;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid black;
}

.line.arrow-left::after {
  position: absolute;
  content: '';
  top: -10px;
  left: 0;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid black;
}

#card_title{
    position: relative;
    display:flex;
    justify-content: space-between;
    margin:0;
    align-items: center;
}

#competences_list, #social_logos ul, #social, .menu {
     text-decoration: none;
     list-style: none;
     padding-inline-start: 10px;
}
#left_bracket{
    color:#EB25BA;
}

#name{
    padding-top:10%;
    padding-bottom:10%;
    font-size: 1.5rem;
    left:1rem;
}

#name:hover{
   transform: scale(1.3);
   transform-origin: left;
  transition: transform 0.4s ease-out;
}

#right_bracket{
    color:#EB25BA;
}

#jobtitle{
    font-size: 1.5rem;
    font-weight: bold;
    padding-left: 0.8rem;
    line-height: 2rem;
}


#photo{
    width: 6.8rem;
    background-color: #A3C4F320;
    border-radius: 10px;
    padding-right: 0.8rem;
}

.pink_square{
    position: absolute;
    width:1rem;
    height:1rem;
    background: #EB25BA;
    
}

#pink1{
    top: 0px;
    left: 0px;
}

#pink2{
    top: 0px;
    right: 0px;
}

#pink3{
    bottom: 0px;
    right: 0px;
}

#pink4{
    top: 33%;
    left: 0px;
}

#pink5{
    bottom: 28%;
    right: 0px;
}

.linkedin_logo,.github_logo{
    width: 2rem;
    
}

.linkedin_logo:hover,.github_logo:hover{
    transform: scale(1.2);
    
}

.github_logo{
    padding-top: 5px;
}

#contact{
    padding-left : 1rem;
    
}

#bottom_section{
    display:flex;
}

#social_logos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left:8%;
    padding-right:8%;
    border-top: 1px solid #6c6c6c25;
    border-bottom: 1px solid #6c6c6c25;
    border-left: 1px solid #6c6c6c25;

}


#social{
  display:flex;
  justify-content: center;
  gap:20px;
  align-items: baseline;
}

#cv_download{
    display: flex;
    align-items: center;
    justify-content: center;
    cursor:pointer;
    position: relative;  
}

#cv_download p{
  position: relative;
}

#cv_download p::after,
#cv_download p::before{
  content:'';
  position:absolute;
  width:100%;
  height:2px;
  background:linear-gradient(to right,#67a2e7, #EB25BA);
  bottom: -5px;
  left:0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

#cv_download p::before{
  top: -5px;
  transform-origin: left;
}

#cv_download p:hover::after,
#cv_download p:hover::before{
  transform: scaleX(1);
}

#cv_download p{
   text-align: center;
   
}

#cv_download p:hover{
   font-weight: bold;
}

#competences_para{
    font-weight:bold;
    font-size: 1rem;
    padding-left: 0.8rem;
}

#competences_list{
    display:flex;
    gap:1.5rem;
    flex-wrap: wrap;
    padding-left: 0.8rem;
    font-size: 0.9rem;
    line-height: 0.1rem;

}

#competences_section{
    width: 70%;
    padding-right: 8%;
    line-height: 1rem;
    border-top: 1px solid #6c6c6c25;
    border-bottom: 1px solid #6c6c6c25;
    cursor: pointer;
}

#list_competences{
    font-size: 0.8rem;
}

.title-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
  border-bottom: 2px solid #090907;
  background: #dedddd;
  color: #090907;
}

/* This deals with the look of the central screen*/

.left-lines,
.right-lines {
  display: flex;
  flex-direction: column;
  width: 30%;
  padding : 3px;
}

#main-title {
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
  white-space: nowrap;
  pointer-events: none; /* Unables mouse clicks */
  user-select: none; /* Unables text selection */
  width:30%;
  margin-left: auto;
  margin-right: auto;

}

.header-line hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #090907;
  margin: 4px;

}

.minimise_btn_img {
  width: 2rem;
  margin: 0;
  padding: 0;
}

.window-content {
  padding: 1rem;
  background: #f5f4f5;
  color: #090907;
}

/* Below is for the side options */
.side-title-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0.4rem;
  padding-right:0.4rem;
  border-bottom: 2px solid #090907;
  background: #dedddd;
  color: #090907;
  width:100%;
}

.side-title {
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
  pointer-events: none; /* Unables mouse clicks */
  user-select: none; /* Unables text selection */
  padding : 0.4rem;
  margin-left: auto;
  margin-right: auto;

}

.side-left-lines,
.side-right-lines {
  display: flex;
  flex-direction: column;
  width: 20%;
  padding : 0.5px;
}

.side-header-line hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #090907;
  margin: 2px;

}

.side-minimise-btn-img {
  width: 1.2rem;
  margin: 0;
  padding: 0;
}

/* End of side options */

/*Below is the Contact form and About Contact button*/
input[type=text], select, textarea{
  width :100%;
  padding: 1rem;
  border: 1px solid #6C6C6C;
  border-radius: 5px;
  box-sizing: border-box;
  margin-top: 1rem;
  margin-bottom: 2rem;
  resize: horizontal;
  cursor: default;
}

textarea{
  height:25%;
}

input[type=submit],#contactBtn{
  background-color: #1080EE;
  color: #FFF;
  padding:8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
   margin-bottom: 2rem;
}



input[type=submit]:hover, #contactBtn:hover{
    background-color: #339CFF;
}

input[type=submit]:active, #contactBtn:active{
    background-color: #005FCC;
}

 #contactBtn{
  width:fit-content;
 }

#contact-screen-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
 
}


#form-container{
  margin-top: 1rem;
  display:flex;
  flex-direction: column;
  width: 70%;
 justify-self: center;
 align-items: center;
}

.click_effect{
  position: absolute;
  width: 80px;
  height: 80px;
  border: 5px solid #EB25BA;
  pointer-events: none;
  margin-top: -45px;
  margin-left: -45px;
  opacity: 0;;
  border-radius: 50%;
  animation-name: click_animation;
  animation-duration: 0.6s;
  animation-timing-function: linear;
  z-index: 1;
}

@keyframes click_animation{

  from{
      opacity: 1;
      transform: scale(0);
  }
  to{
       opacity: 0;
      transform: scale(1);
  }
}

/** Competence Time line **/

#timeline{
  position: absolute;
  max-width: 100%;
  margin: 2% auto;
}

#timeline::after{
  content:'';
  position: absolute;
  width: 3px;
  height: 100%;
  background: #EB25BA;
  top:0;
  left: 50%;
  /*margin-left: -3px;*/
  z-index: -1;
  animation: moveline 6s linear forwards;
}

@keyframes moveline {
  0%{
    height : 0;
  }
  100%{
    height:100%
  }
}

#timeline-layout{
  display:flex;
  justify-content: center;
}

.timeline-container{
  padding : 5px 30px;
  position: relative;
  width: 40%;
  user-select: none; /* Unables text selection */
  animation: movedown 1s linear forwards;
  opacity: 0;
}

@keyframes movedown {
  0%{
    opacity: 1;
    transform: translateY(-30px);
  }
   100%{
    opacity: 1;
    transform: translateY(0px);
  }
  
}

/*Timeline icons */
.timeline-container.left-container img, .timeline-container.right-container img{
  width:40px;
  height: 40px;
}
/*.timeline-container.left-container img{
  position: absolute;
  width:40px; 
  top:6rem;
  z-index:20;
   right: 0;
  
}
.timeline-container.right-container img{
  position: absolute;
  width:40px; 
 left: -8px;
  top:6rem;
  z-index:20;
  
}*/

.timeline-container:nth-child(1){
  animation-delay: 0s;
}

.timeline-container:nth-child(2){
  animation-delay: 1s;
}

.timeline-container:nth-child(3){
  animation-delay: 2s;
}

.timeline-container:nth-child(4){
  animation-delay: 3s;
}

.timeline-container:nth-child(5){
  animation-delay: 4s;
}

.timeline-container:nth-child(6){
  animation-delay: 5s;
}

.timeline-container:nth-child(7){
  animation-delay: 6s;
}

.timeline-container:nth-child(8){
  animation-delay: 7s;
}

.timeline-container:nth-child(9){
  animation-delay: 8s;
}

.timeline-container:nth-child(10){
  animation-delay: 9s;
}

.timeline-container:nth-child(11){
  animation-delay: 10s;
}

.timeline-container:nth-child(12){
  animation-delay: 11s;
}

.timeline-container:nth-child(13){
  animation-delay: 12s;
}

.timeline-container:nth-child(14){
  animation-delay: 13s;
}



.right-container img{
  left:-10px;
}

.left-container-arrow{
  height: 0;
  width: 0;
  position: absolute;
  top:28px;
  z-index:1;
  border-top: 15px solid transparent;
   border-bottom: 15px solid transparent;
   border-left:15px solid #9BC09C;
   right: -15px;
}

.right-container-arrow{
  height: 0;
  width: 0;
  position: absolute;
  top:28px;
  z-index:1;
  border-top: 15px solid transparent;
   border-bottom: 15px solid transparent;
   border-right:15px solid #9BC09C;
   left: -15px;
}


.text-box{
  padding:0.5rem 1rem;
  background: #fff;
  position: relative;
  border-radius: 5px;
  font-size:1rem;
}

.text-box h2{
  font-weight: 600;
}

.bsc h2{
  text-align: center;
}

.text-box small {
   display:inline-block;
   margin-bottom: 0.5rem;
}

.text-box ul{
  display:flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.left-container{
  left : 2%;
}

.right-container{
  left:50%;
}

#competences-screen-content {
  overflow-y: auto;
  padding: 1rem;
  display: none; /* or block/flex when active */
  position: relative;
  height: 80vh;
}


.educationHeader{
background-color: #98D8EF;
}

.education{
background-color: #AEE0F2;
}
.workHeader{
  background-color: #ADA991;
}

.education-arrow-right {
    border-right:15px solid #AEE0F2;
}
.education-arrow-left {
    border-left:15px solid #AEE0F2;
}

.bilingue-arrow-left {
 border-left:15px solid #7ADAA5;
;
}

.bilingue h2{
  text-align: center;
}

.bsc-arrow-right{
  border-right:15px solid #fb5a5a;
}


.work-arrow-right {
    border-right:15px solid #C3C0AE;
}
.work-arrow-left {
    border-left:15px solid #C3C0AE;
}
.work{
  background-color: #C3C0AE;
}

.bilingue{
  background-color: #7ADAA5;
}

.bsc{
  background-color:#fb5a5a;
;
}

#complang{
  display:flex;
  align-items: center;
  
}

.minimise_btn_img:hover{
  background-color: #c6C6C6;
  border-radius: 10px;
}

.fadeUp{
  animation: fadeUp both;
  animation-timeline: view();

}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.5);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timeline-container:nth-child(1){
  animation-range: entry 20% cover 40%;
}

.timeline-container:nth-child(2){
  animation-range: entry 40% cover 60%;
}

.timeline-container:nth-child(3){
  animation-range: entry 60% cover 80%;
}

.timeline-container:nth-child(4){
  animation-range: entry 80% cover 1000%;
}

.timeline-container:nth-child(5){
  animation-range: entry 20% cover 40%;
}

.timeline-container:nth-child(6){
 animation-range: entry 40% cover 60%;
}

.timeline-container:nth-child(7){
  animation-range: entry 80% cover 100%;
}

.timeline-container:nth-child(8){
  animation-range: entry 20% cover 40%;
}

.timeline-container:nth-child(9){
  animation-range: entry 40% cover 60%;
}

.timeline-container:nth-child(10){
  animation-range: entry 60% cover 80%;
}

.timeline-container:nth-child(11){
  animation-range: entry 80% cover 100%;
}

.timeline-container:nth-child(12){
  animation-range: entry 20% cover 40%;
}

.timeline-container:nth-child(13){
  animation-range: entry 40% cover 60%;
}

.timeline-container:nth-child(14){
  animation-range: entry 60% cover 80%;
}

/*Below is for the changes in screen size*/

@media screen and (max-width: 1180px){
  .side-minimise-btn-img,
  .side-left-lines,
  .side-right-lines{
      display:none;
    }

   .side-title-bar{
    width:max-content;
   } 

}  



@media screen and (max-width: 880px){
  .target{
      display:none;
    }

    .right-lines, .left-lines, .minimise_btn_img{
      display : none;
    }

    #centre_screen{
      width: 100%;
      max-height:90vh;
    }

}  



@media screen and (max-width: 678px){
  .thumbnail{
    justify-content: start;
  }

  .slider .list .item .content h2{
    font-size : 60px;
    background-color: #6C6C6C35;
  color: #FFFCFB;
  }

  .arrows{
    top: 10%;
  }

}

@media screen and (max-width: 600px){
  .timeline{
    margin: 50px auto;
  }
  .timeline::after{
    left:31px;
  }

  .timeline-container{
    width:100%;
    padding-left: 80px;
    padding-right: 25px;
  }

  .text-box{
    font-size:13px;
  }

  .text-box small{
    margin-bottom: 10px;
  }
  .right-container{
    left:0;
  }

  .left-container img, .right-container img{
    left: 0px;
  }

  .left-container-arrow, .right-container-arrow {
    border-right:15px solid #f5f5f6;
    border-left:0;
    left: -15px;
  }
}

#burger-menu{
  cursor: pointer;
  font-size: 1.8rem;
  color:#090907;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Rotate icon on toggle (optional animation) */
#menu-toggle-checkbox:checked + #burger-menu{
  transform: rotate(90deg);
}

.navbar {
  position: relative;
}

.menu {
  display: none;
  position: absolute;
  top: 100%; /* places it below the burger icon */
  left: 0;
  color: #090907;

  border: 2px solid #090907;
  box-shadow: 4px 4px #333;
  
  background-color: #dedddd;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 100vw;
  text-align: left;

  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  width:max-content;

}

.menu li {
  margin: 10px 0;
  color: #090907;
}

.menu a {
  color:#000;
  text-decoration: none;
  font-size: 1.2rem;
}

.menu a:hover{
  color:#dedddd ;
  background-color: #090907;
}

/* When the menu is toggled on */
#menu-toggle-checkbox:checked + #burger-menu + .menu {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#menu-toggle-checkbox{
  display:none;
}


@media screen and (max-width: 880px) {
  #burger-menu {
    display: block; /* or flex, or inline-block */
  }
}

@media screen and (min-width: 881px) {
  #burger-menu {
    display: none;
  }
}

/* Starting state of window */
.window {
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform-origin: top right; /* pivot point */
}
