@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");

:root {
  --primary-background: rgb(14, 20, 31);
  --primary-light-background: rgb(36, 47, 66);
  --secondary-background: rgb(16, 22, 47);
  --secondary-dark-background: rgb(7, 17, 59);
  --primary-color: rgb(255, 203, 54);
  --secondary-color: rgb(41, 81, 105);
  --text-color: #c7c7c7;
  --text-color-secondary: #9c9c9c;
  --primary-fontfamily: "Roboto", sans-serif;
  --secondary-fontfamily: "Rajdhani", sans-serif;
  --text-fontfamily: "Inter", sans-serif;
}

::-webkit-scrollbar {
  background-color: var(--primary-background);
  scroll-padding: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

::-webkit-scrollbar-track {
  scroll-padding: 10px;
  scroll-margin: 10px;
  padding: 10px;
  padding: 10px;
}
::-webkit-scrollbar-corner {
  scroll-padding: 10px;
  scroll-margin: 10px;
  padding: 10px;
  padding: 10px;
}
::-webkit-scrollbar-track {
  scroll-padding: 10px;
  scroll-margin: 10px;
  padding: 10px;
  padding: 10px;
}


* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

.close {
  display: none;
}

body {
  margin: 0;
  font-family: var(--text-fontfamily);
  scroll-behavior: smooth;
}

.side {
  position: fixed;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 100%;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
  z-index: 20;
}

.side a {
  text-decoration: none;
  color: var(--text-color);
  padding: 15px 17.5px;
  background: var(--primary-light-background);
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -moz-transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -ms-transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -o-transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.side a.active {
  background: var(--secondary-color);
}

.side a:first-child {
  padding: 15px 16px;
}

.side a:hover {
  background-color: var(--secondary-color);
}

.color-text {
  color: var(--primary-color);
}

header {
  /* background: linear-gradient(70deg, var(--secondary-background)30%, var(--primary-background)30%); */
  background-color: var(--primary-background);
  height: 100vh;
  width: 100%;
  display: flex;
  gap: 50px;
  padding: 80px 100px;
  transition: 0.3s ease-in;
  -webkit-transition: 0.3s ease-in;
  -moz-transition: 0.3s ease-in;
  -ms-transition: 0.3s ease-in;
  -o-transition: 0.3s ease-in;
}

header .img {
  width: 35%;
  overflow: hidden;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  background: var(--primary-light-background);
}

header .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header .info {
  width: 60%;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 50px;
  gap: 20px;
  overflow: hidden;
}

.line {
  height: 10px;
  transform-origin: left;
  background: var(--primary-color);
  scale: .3;
}

.info p {
  color: var(--text-color);
  line-height: 1.5;
  font-size: 18px;
  font-family: var(--secondary-fontfamily);
  margin: 0;
  min-height: 100px;
}

.info h2 {
  font-size: 45px;
  font-weight: 500;
  margin: 0;
}

.info h4 {
  margin: 0;
  color: var(--text-color);
}

.link {
  border: 1px solid var(--primary-color);
  font-size: 15px;
  padding: 3px 3px 3px 20px;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  display: flex;
  align-items: center;
  text-align: center;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -moz-transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -ms-transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -o-transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  width: fit-content;
  color: var(--text-color);
}

.link i {
  right: 0;
  bottom: 0;
  font-size: 1.1rem;
  top: 0;
  padding: 10px;
  text-align: center;
  background-color: var(--primary-color);
  transition: 0.2s ease-in-out;
  color: var(--primary-background);
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  margin-left: 25px;
  float: right;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -ms-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
}

.link:hover {
  border: 1px solid var(--secondary-color);
  transform: scale(1.02);
  -webkit-transform: scale(1.02);
  -moz-transform: scale(1.02);
  -ms-transform: scale(1.02);
  -o-transform: scale(1.02);
}

.link:hover i {
  background: var(--secondary-color);
}

.about {
  background: var(--primary-background);
  min-height: 100vh;
  padding: 50px 30px;
  color: var(--text-color);
  overflow-x: hidden;
}

.label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  position: relative;
}

.label .fade {
  font-size: 45px;
  font-weight: 700;
  color: var(--primary-light-background);
  letter-spacing: 5px;
}

.label .main {
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  width: fit-content;
  position: absolute;
}

.colour {
  color: #888;
}

.details {
  display: grid;
  grid-template-columns: 50% 45%;
  gap: 10px;
  width: 100%;
  padding: 50px 10px;
}

.personal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.personal h3 {
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.cv {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 10px;
  width: 100%;
  font-family: var(--text-fontfamily);
}

.cv ul {
  list-style: none;
  padding-left: 0;
  gap: 10px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.ratings {
  display: grid;
  grid-template-columns: 50% 50%;
  padding: 20px 150px 20px 20px;
  gap: 20px;
}

.rate {
  padding: 15px;
  border: 1px solid var(--primary-light-background);
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  transition: 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  -webkit-transition: 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  -moz-transition: 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  -ms-transition: 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  -o-transition: 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.rate:hover {
  border: 1px solid var(--secondary-color);
}

.rate .color-text {
  font-size: 35px;
  font-weight: bolder;
}

.rate .desc {
  display: flex;
  align-items: center;
  font-size: 15px;
  padding-right: 20px;
}

.line2 {
  width: 25px;
  height: 3px;
  margin-right: 10px;
  background: var(--primary-light-background);
}

.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
}

.range-container {
  display: grid;
  width: 100%;
  grid-template-columns: auto auto auto auto;
  padding: 20px 100px;
  align-items: center;
  justify-content: space-evenly;
  gap: 30px;
}

.range {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}


circle {
  cx: 100;
  cy: 100;
  r: 80;
  fill: none;
  stroke-width: 8;
  stroke-miterlimit: 10;
}

.loader {
  position: relative;
  margin: 0px auto;
  width: fit-content;
  height: fit-content;
  zoom: 1;
}

.percent {
  position: absolute;
  top: 40%;
  left: 40%;
  font-size: 30px;
}

.circular {
  animation: rotate 1s linear;
  height: 200px;
  position: relative;
  width: 200px;
  transition: all 0.5s ease-in;
}

.path {
  stroke: var(--primary-color);
  stroke-dashoffset: 0;
  stroke-linecap: round;
  transition: 2s ease-in;
  -webkit-transition: 2s ease-in;
  -moz-transition: 2s ease-in;
  -ms-transition: 2s ease-in;
  -o-transition: 2s ease-in;
  transform-origin: center;
}

.animate {
  animation: dash 1s ease-in-out 2, rotate 1s ease-in-out;
  -webkit-animation: dash 1s ease-in-out 2, rotate 1s ease-in-out;
}

.eighty {
  stroke-dasharray: 300, 75, 500;
}

.seventy {
  stroke-dasharray: 240, 135, 500;
}

.fifty {
  stroke-dasharray: 160, 215, 500;
}

.sixty {
  stroke-dasharray: 220, 155, 500;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 0, 500;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 500, 500;
  }

  100% {
    stroke-dasharray: 500, 500;
    stroke-dashoffset: -500;
  }
}

.learn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.learn i {
  font-size: 5rem;
  color: var(--primary-color);
}

.portfolio {
  background: var(--primary-background);
  color: var(--text-color);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: 0.2s ease-in-out;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -ms-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
}

.portfolio a:hover {
  color: var(--text-color);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav ul {
  display: flex;
  list-style: none;
  padding-left: 0;
  gap: 30px;
  font-size: 15px;
  color: #ddd;
  transition: 0.2s ease-in-out;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -ms-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  cursor: pointer;
}

.nav ul li:hover {
  color: var(--text-color);
}

.works {
  display: flex;
  padding: 30px 100px;
  gap: 70px;
  flex-wrap: wrap;
  justify-content: center;
}

.work {
  width: 25%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--primary-light-background);
  transition: 0.5s ease-in-out;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -ms-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transform-origin: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work .desc {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 18px;
  top: 0;
  opacity: 0;
  transition: 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -webkit-transition: 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -moz-transition: 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -ms-transition: 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -o-transition: 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.work:hover {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
}

.work:hover .desc {
  opacity: 1;
}

.work .desc span {
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px 20px;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  cursor: pointer;
}

footer {
  background-color: var(--primary-background);
  padding: 30px;
  color: var(--text-color);
  min-height: 50vh;
}

.foot {
  display: flex;
  gap: 100px;
  width: 100%;
  align-items: center;
}

.foot .contact {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 70px;
  padding-right: 0;
}

.foot .contact h3,
.foot .contact h4,
.foot .contact p {
  margin: 0;
  font-weight: 400;
}

.foot .contact h3 {
  font-size: 30px;
  text-transform: uppercase;
}

.gg {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  padding: 10px 12px;
  background: var(--primary-light-background);
  text-decoration: none;
  color: var(--text-color);
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -moz-transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -ms-transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -o-transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.socials a:hover {
  background: var(--secondary-color);
}

footer .form {
  width: 100%;
  overflow: hidden;
}

footer form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  padding: 100px 150px 100px 50px;
}

form .first-line {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: space-between;
}

form .first-line input {
  width: 100%;
}

footer form input,
footer form textarea {
  background: var(--primary-light-background);
  border: none;
  max-width: 100%;
  padding: 15px 25px;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  color: #888;
}

footer form input:focus,
footer form textarea:focus {
  outline: none;
}

footer form textarea {
  min-width: 100%;
  size-adjust: unset;
}

@media (max-width: 500px) {
  .sid {
    scale: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  .scale {
    scale: 1;
  }
  .close {
    display: initial;
    position: fixed;
    right: 0;
    top: 0;
    background-color: var(--primary-light-background);
    padding: 15px 17px;
    color: var(--primary-color);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    margin: 20px;
    z-index: 999;
    box-shadow: -2px -1px 48px 14px rgba(0, 0, 0, 0.61);
    -webkit-box-shadow: -2px -1px 48px 14px rgba(0, 0, 0, 0.61);
    -moz-box-shadow: -2px -1px 48px 14px rgba(0, 0, 0, 0.61);
  }
  header {
    /* background: linear-gradient(40deg, var(--secondary-color) 15%, var(--primary-background)15%); */
    padding: 20px;
    display: flex;
    flex-direction: column-reverse;
    height: max-content;
  }

  header .img {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

  header .info {
    width: 100%;
    padding: 5px;
    /* padding-top: 100px; */
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .info h2 {
    font-size: 25px;
    margin: 0;
  }

  .info p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color-secondary);
    min-height: 120px;
  }

  .about {
    padding: 50px 10px;
  }

  .details {
    gap: 10px;
    width: 100%;
    padding: 50px 15px;
    display: flex;
    flex-direction: column;
  }

  .personal {
    gap: 10px;
  }

  .cv {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ratings {
    display: grid;
    padding: 20px;
    padding-left: 0;
    gap: 20px;
  }

  .range-container {
    display: grid;
    grid-template-columns: auto auto;
    padding: 20px;
    gap: 40px;
  }

  .loader {
    position: relative;
    margin: 0px auto;
    width: fit-content;
    height: fit-content;
    zoom: 1;
  }

  circle {
    cx: 50;
    cy: 50;
    r: 40;
    fill: none;
    stroke-width: 5;
  }

  .eighty {
    stroke-dasharray: 150, 37, 250;
  }

  .seventy {
    stroke-dasharray: 120, 67, 250;
  }

  .fifty {
    stroke-dasharray: 80, 107, 250;
  }

  .sixty {
    stroke-dasharray: 110, 77, 250;
  }

  .percent {
    position: absolute;
    top: 40%;
    left: 40%;
    font-size: 15px;
  }

  .circular {
    height: 100px;
    position: relative;
    width: 100px;
    transition: all 0.5s ease-in;
  }

  .path {
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: 2s ease-in;
    -webkit-transition: 2s ease-in;
    -moz-transition: 2s ease-in;
    -ms-transition: 2s ease-in;
    -o-transition: 2s ease-in;
    transform-origin: center;
  }

  .animate {
    animation: dash 1.5s ease-in-out 2, rotate 1.5s ease-in-out 2;
    -webkit-animation: dash 1.5s ease-in-out 2, rotate 1.5s ease-in-out 2;
  }

  .learn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .learn i {
    font-size: 2rem;
  }

  .portfolio {
    padding: 10px;
  }

  .works {
    display: flex;
    padding: 50px;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .work {
    width: 100%;
  }

  footer {
    padding: 30px 10px;
    min-height: 100vh;
  }

  .foot {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: flex-start;
  }

  .foot .contact {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 50px 20px;
    padding-right: 0;
  }

  .gg {
    gap: 20px;
  }

  footer .form {
    width: 100%;
    overflow: hidden;
  }

  footer form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 20px;
  }

  form .first-line {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
  }

  form .first-line input {
    width: 100%;
  }

  footer form input,
  footer form textarea {
    max-width: 100%;
    padding: 15px 25px;
    color: #888;
  }

  footer form input:focus,
  footer form textarea:focus {
    outline: none;
  }

  footer form textarea {
    min-width: 100%;
    size-adjust: unset;
  }
}
