:root {
  --textcolor: #0e1926;
  --lkcolor: #2c7bdf;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", 'Segoe UI', sans-serif;
  background-image: url(bgportfolio.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
}

a {
  text-decoration: none;
  color: var(--textcolor);
}

nav {
  background-color: white;
  height: 70px;
  width: 95vw;
  margin: 1.25rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 100px 100px / 120px;
  opacity: 0.85;
}

.headerName {
  padding: 1rem 2rem;
}

.headerPages ul, .navHeaderPages ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.headerIcons {
  display: flex;
  font-size: 1.25rem;
  gap: 10px;
  align-items: center;
  margin-right: 30px;
}

.headerMenu {
  display: none;
  margin: 0 15px;
  flex-direction: column;
  cursor: pointer;
  gap: 7px;
  color: black;
}
.navHeaderPages{
    display: none;
}

.headerPages li a, .navHeaderPages li a {
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  font-weight: bold;
  background: url(gradientPages.png) center;
  background-size: cover;
  background-clip: text;
  -webkit-background-clip: text;
  cursor: pointer;
  color: transparent;
  animation: gadient 6s linear infinite;
}
@keyframes gadient {
  to {
    background-position-x: -200px;
  }
}
.headerPages li a:active, .navHeaderPages li a:active {
  background-color: var(--textcolor);
  text-decoration: underline;
}

.headerIcons a {
  padding: 0.25rem 0.75rem;
  background-color: rgba(23, 22, 24, 0.496);
  color: rgba(20, 21, 22, 0.834);
  border-radius: 9px;
  position: relative;
  border: none;
  cursor: pointer;
  overflow: hidden;
}
.headerIcons a:before {
  position: absolute;
  content: '';
  left: -55%; top: 0%;
  height: 100%;
  width: 50%;
  background: rgba(225, 225, 225, 0.2);
  transform: skewX(-30deg);
  transition: left 0.5s;
}
.headerIcons a:hover::before {
  left: 120%;
}

@media(max-width: 900px) {
  .headerPages {
    display: none;
  }
  .navHeaderPages {
    position: fixed;
  top: 90px;
  right: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(255,255,255,0.72);
  transform: translateX(100%);   
  transition: transform 0.3s ease-in-out; 
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50% 0%;
  font-size: 2rem;
  box-sizing: border-box;
  z-index: 9999;
  }
  .navHeaderPages.active{
    transform: translateX(0);
  }
  .headerMenu {
    display: flex;
  }
  .headerMenu label {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .headerMenu #menuToggle {
    display: none;
  }
  .headerMenu span {
    display: block;
    height: 4px;
    width: 30px;
    z-index: 100;
    border-radius: 2px;
    background-color: black;
    transition: all 0.3s ease;
  }
  #menuToggle:checked + label span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
  }
  #menuToggle:checked + label span:nth-child(2) {
    opacity: 0;
  }
  #menuToggle:checked + label span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
  }
  .navHeaderPages, .navHeaderPages ul {
    flex-direction: column;
  }

  @keyframes gradientVertical {
    to {
      background-position-y: -200px;
    }
  }
  .navHeaderPages li a {
    background: linear-gradient(to bottom, #ec1ec0, #3183e8, rgb(230, 35, 35));
    background-size: 100% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientVertical 6s linear infinite;
    
  }
}
@media(max-width:768px){
    .headerIcons .iconsSpan{
        display: none;
    }
    
}
