:root{
  --color-accent:#987218e0;
  --background-accent: rgba(45, 212, 191, .1);
  --color-hightlight:#e2e8fa;
}

html{
  scroll-behavior: smooth;
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'inter', sans-serif;
}

body{
  background-color:#b1b4b1;
  color:  #172114;
  padding:4rem  2rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap:6rem;
}
p{
  font-size: 1.1rem;
  line-height: 1.5rem;
  text-align: justify;
}

p::selection, h1::selection, h2::selection, h3::selection, h4::selection, h5::selection, h6::selection{
  background-color:  var(--color-accent);
  color: #172114;

}
.under-lay{
  position: fixed;
  background-color:#172114;
  inset: 0;
  opacity: 0.15;
}

a{
  color: #835e07;
  text-decoration: underline;
}


header,
main,
footer{
  position: relative;
  z-index: 10;
}
header{
  gap: 1.5rem;
  background-color: black;
  color: var(--color-hightlight);
}
nav a{
 font-size: 1.4rem;
}

nav .anchor-text{
  color: aliceblue;
}

nav{
  display: none;
}

.social-link-container{
  display: flex;
  align-items: center ;
  gap: 1rem;
  padding-top: 15px;
  padding-left: 5px;
  padding-bottom: 8px;
}

.social-link{
  font-size: 1.2rem;
  color: inherit;
  text-decoration: none;
  transition-duration: 200ms;
}

.social-link:hover{
  color: var(--color-accent);
}

header a{
  text-decoration: none;
}

header h1,
header h4,
.lighttext{
  color:var(--color-hightlight);
}
header h1{
  font-weight: 600;
  padding-bottom: 8px;
}



header h4{
  font-weight: 500;
  padding: 2px 5px 8px 5px;
  text-align: justify;
  font-style: italic;
  font-weight: bold;
}

header p{
  padding: 0.8rem 0.7rem 1rem 0.7rem;
}

main{
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

section{
  display: flex;
  flex-direction: column;
  gap:3rem ;
}
section h2,
.experience-card h3,
.project-card h3{
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
}

.stick-header{
  position: sticky;
  top: 0;
  padding: 1rem 0;
}

.stick-header h2{
  color: aliceblue;
  position: relative;
  z-index: 2;
}
.stick-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #7a5a0e;
  opacity: 0.8;
}


.about-content{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content p{
  font-size: 1.1rem;
}

.anchor-text{
  color: black;
  text-decoration: none;
}
.anchor-text:hover{
  color:var(--color-accent) ;
  transition-duration: 2ms;
}

.experience-content,
.project-content {
   display: flex;
   flex-direction: column;
   gap: 10px;
}

.experience-card,
.project-card{
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  }

  .experience-card{
    gap: 0.5rem;
  }

  .project-card{
    gap: 1rem;
    padding-bottom: 15px;
  }

.card-colume{
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.tenure{
  opacity: 0.7;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.experience-card p{
  font-size: 0.9rem;
}

.card-header{
  font-weight: 500;
  font-size: 1.2rem;
}

.card-colume .anchor-lnk{
  display: none;
}

.card-colume:hover .anchor-lnk{
  display: inline-flex;  
  transform: skewY(-20deg);
  transition: 2ms;
  color: var(--color-accent);   
}

.tag-continer{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--color-accent); 
  padding-bottom: 0.3rem; 
}

.tag{
padding: 0.25rem;
border-radius: 0.5rem;
background: #956f17;
}
.tag p{
  font-size: 0.9rem;
  color: white;
}

.project-image-conta{
  max-width: 300px;
  overflow: hidden;
  display:grid;
  place-items: center;
  aspect-ratio: 15 / 8;
  order: 2;
  border-radius: 0.3rem;
}

.project-image-conta img{
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.project-image-conta img:hover{
  transform:scale(3);
  transition-duration: 200ms;
}

.project-star-lnk{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.project-archive{
  position: relative;
 color: var(--color-accent);
  text-decoration: none;
  transition: 2ms;
  margin-right: auto;
}
.project-archive span{
  transition-duration: 200ms;
}

.project-archive:hover span{
  padding-left: 0.25rem;
  color: black;
}

.project-archive::after{
  content: "" ;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px ;
  background-color: transparent;
}

.project-archive:hover::after{
  background-color: black;
}

footer{
  display: flex;
  flex-direction: row;
  gap:5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}

.scroll-to-top{
  text-decoration: none;
  color: var(--color-accent);
  background: var(--background-accent);
  padding: 0 0.5rem;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  border-radius: 100%;
  overflow: hidden;
  transition-duration: 200ms;
}

.scroll-to-top:hover{
  opacity: 0.6;
}

@media (min-width: 780px){
.experience-card,
.project-card{
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.card-colume{
  grid-column: span 3/ span 3;
}
.project-image-conta{
  order: 0;
}

header h1{
    font-size: 2.5rem;
  }

  header h4{
    font-size: 1.3rem;
  }

  header p{
    max-width: unset;
  }

  .social-link-container i{
    font-size: 1.5rem;
    gap:2rem ;
    padding: 15px 5px;
  }
 
   header, main{
    padding-top: 6rem;
    max-width: auto;
    width: 100%;
    margin-right: auto;
    padding-bottom: 6rem ;
  }
  footer p{
  font-size: 1rem;
}

}

@media (max-width: 800px){
  body{
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 1rem;
    padding: 0 15px;
  }
  header{
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 45%;
  max-width: 300px;
  background-color: black;
  color: var(--color-hightlight);
   position: sticky;
    top: 0;
    left: 70px;  
    margin-left:auto; 
    height:100% 
   padding-left:9px ;
}

  
  header h1{
    font-size: 3rem;
  }

  header h4{
    font-size: 1.4rem;
  }
  
  header{
    padding-top: 6rem;
    max-width: 300px;
    width: 50%;
    margin-right: auto;
    padding-bottom: 6rem ;
  }

   main{
    padding-top: 6rem;
    max-width: 500px;
    width: 70%;
    margin-left: 100%;
    padding-left: 3rem;
    padding-bottom: 6rem ;
  }
  
  
  .social-link-container{
  display: flex;
  align-items: center ;
  gap: 1rem;
  padding-top: 15px;
  padding-left: 5px;
  padding-bottom: 8px;
}
  
  .social-link-container i{
    font-size: 2rem;
    gap:1.5rem ;
  }

  nav{
    display: flex;
   flex-direction: column;
   gap: 1.5rem;
   font-size: 1.7rem;
   flex: 1; 
  }

  .stick-header{
    display: none;
  }  
footer{
  grid-column: span 2 / span 2;
  flex-direction: row;
  width: 100%;
  margin: auto;
  max-width: 1000px;
  color:var(--color-accent);
  padding-bottom: 2rem ;
   
}
footer p{
  font-size: 1.0rem;
  font-style: italic;
}
}

