body,
html {
  width: 100vw;
  height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
@font-face {
  font-family: gv;
  src: url(./Fonts/AbrilFatface-Regular.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(./Fonts/Poppins-Medium.woff2) format("woff2"),
    url(https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2)
      format("woff2");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Poppins";
}
main {
  width: 100%;
}
:root {
  --main-color: #111;
  --primary-color: #7843e9;
  --secondary-color: #a2a2a2;
  --secondary-color-light: #fcfaf8;
  --accents-2: #e0dddd;
}
*::selection {
  background-color: var(--primary-color);
  color: var(--secondary-color-light);
}
.c-scrollbar_thumb {
  background-color: var(--primary-color);
  opacity: 0.7;
}
.c-scrollbar {
  z-index: 3;
}
.loader {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  z-index: 251;
  position: absolute;
  background-color: var(--main-color);
}
.purple {
  width: 100%;
  position: absolute;
  z-index: 251;
  top: 100%;
  background-color: var(--primary-color);
}
.loader .top h5 {
  text-align: center;
  text-transform: uppercase;
  color: var(--secondary-color-light);
  font-weight: 300;
  font-size: 0.7vw;
  line-height: 0.9vw;
}
.loader .top {
  margin-top: 3vw;
}
.loader .center h1 {
  display: flex;
  justify-content: center;
  position: absolute;
  gap: 1.5vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-size: 4.5vw;
  font-weight: 500;
  color: var(--secondary-color-light);
}
.loader h1 .parent .child span {
  font-family: gv;
  font-weight: 100;
  color: var(--primary-color);
  font-style: italic;
}
.loader h1 #h {
  font-family: poppins;
  font-weight: 500;
  color: var(--secondary-color-light);
}
#end {
  display: flex;
  justify-content: center;
  margin-bottom: 3vw;
  overflow: hidden;
}
#loaderspinner {
  --dim: 2rem;
  width: var(--dim);
  height: var(--dim);
  border: 2px solid var(--secondary-color-light);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: spin_51 1.5s infinite linear;
}

@keyframes spin_51 {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}
.reveal .parent {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-y: hidden;
}
.reveal .parent .child {
  display: block;
}
.parent .child span {
  display: inline-block;
}
.parent .child span::selection {
  background-color: var(--main-color);
}

/* Navbar */
header {
  width: 100%;
  color: var(--main-color);
  position: fixed;
  z-index: 3;
  box-shadow: inset 0 -0.5px 0 0 var(--accents-2);
  transform: translateZ(0);
  -webkit-backdrop-filter: saturate(180%) blur(5px);
  backdrop-filter: saturate(180%) blur(5px);
  background: hsla(0, 2, 100%, 0.359);
}
nav {
  width: 100%;
  padding: 1.2vw 4vw 1.2vw;
}
.textnav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.8vw;
  font-weight: 500;
  text-transform: uppercase;
}
.textnav a {
  color: var(--main-color);
  position: relative;
  display: block;
  transition: all 0.3s ease;
}
.textnav a .line {
  position: absolute;
  bottom: 0;
  height: 0.5px;
  background-color: var(--main-color);
  display: inline-block;
}
#line1 {
  left: 0;
  width: 0;
  transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;
  transition-delay: 0.1s;
}
#line2 {
  right: 0;
  width: 100%;
  transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;
}
.textnav a:hover #line2 {
  width: 0;
}
.textnav a:hover #line1 {
  width: 100%;
}
.phonenav {
  display: none;
}
/* navbar */

/* hero section */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5vw 0;
  overflow-y: hidden;
}
.heroname {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1vw;
  padding: 1vw 2vw;
  margin-top: -3.5vw;
  margin-bottom: -3.5vw;
}
.heroname h1 {
  font-size: 10vw;
  font-weight: 600;
  letter-spacing: -0.5vw;
  color: var(--main-color);
}
.Greet {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12vw 10vw 1vw;
  letter-spacing: -0.2vw;
}
.Greet h2 {
  font-size: 5vw;
  color: var(--main-color);
}
.para {
  width: 52%;
  color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  gap: 5vw;
  padding: 2vw 4vw 6vw;
  font-size: 0.8vw;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1vw;
  white-space: nowrap;
  line-height: 0.9vw;
}
.para .parent .child span {
  color: var(--secondary-color);
  font-weight: 100;
  font-family: gv;
  font-style: italic;
}
.ocup {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5vw 8vw;
  font-size: 3.5vw;
  letter-spacing: -0.2vw;
  color: var(--primary-color);
}
.ocup .parent .child span {
  color: var(--primary-color);
  padding: 0 0.5vw;
  letter-spacing: 0.1vw;
  font-weight: 100;
  font-style: italic;
  font-family: gv;
}
.ocup h2 {
  color: var(--main-color);
}
/* hero section */

/* about section */
.about {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 12vw;
  background: linear-gradient(
      to right,
      rgba(245, 245, 245, 0.8),
      rgba(245, 245, 245, 0.8)
    ),
    url(./svg/common-bg.svg);
  background-size: cover;
  background-position: center;
  padding: 2vw 0;
}
.about-text {
  width: 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
  padding: 0 0 0 4vw;
}
.about-text h4 {
  font-size: 1.7vw;
  font-weight: 450;
  color: var(--secondary-color);
  text-transform: uppercase;
}
.about-text p {
  line-height: 3vw;
  letter-spacing: -0.1vw;
  font-size: 2.5vw;
  font-weight: 500;
  color: var(--main-color);
  width: 70%;
  white-space: inherit;
}
.about-text p .parent .child span {
  font-family: gv;
  color: var(--primary-color);
  font-weight: 100;
  font-style: italic;
  letter-spacing: 0.1vh;
}
.about-text h3 .parent .child {
  font-size: 3.2vw;
  font-weight: 100;
  color: var(--primary-color);
  font-family: gv;
  font-style: italic;
  padding-right: 25px;
}
.tech {
  width: 60%;
  display: flex;
  justify-content: space-evenly;
  gap: 2vw;
  flex-wrap: wrap;
}
.tech img {
  width: 5vw;
}
.about-img {
  display: flex;
  flex-wrap: wrap;
  width: 45%;
  gap: 1vw;
  align-items: baseline;
  justify-content: center;
}
.about-img img {
  width: 13vw;
  border-radius: 4vw;
}
.about-img #img {
  width: fit-content;
  height: fit-content;
  border-radius: 4vw;
}
.about-img .img3 {
  width: 39vw;
  border-radius: 4vw;
}
.about-img .img2 {
  width: 18vw;
  border-radius: 4vw;
}
.about-img .img1 {
  width: 20vw;
  border-radius: 4vw;
}
/* about section */

/* projects section */
.work {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 10%;
  margin-bottom: 10%;
  padding: 2vw 4vw 2vw;
}
.work-text {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
}
.work-text h3 .parent .child {
  font-size: 3.2vw;
  font-weight: 100;
  color: var(--primary-color);
  margin-bottom: 1%;
  font-family: gv;
  font-style: italic;
}
.work-text p {
  line-height: 3vw;
  letter-spacing: -0.1vw;
  font-size: 2.5vw;
  font-weight: 500;
  color: var(--main-color);
  text-transform: capitalize;
  margin-bottom: 5%;
}
.work-text p .parent .child span {
  font-family: gv;
  color: var(--primary-color);
  font-weight: 100;
  font-style: italic;
  letter-spacing: 0.1vh;
  margin-bottom: 1%;
}
.work :where(a) {
  display: flex;
  align-items: center;
  padding: 0.6vw 2.8vw;
  border: none;
  background-color: var(--secondary-color-light);
  border-radius: 0.5vw;
  color: var(--main-color);
  text-transform: uppercase;
  font-size: 1vw;
  font-weight: 500;
  margin-left: 0.3vw;
  width: fit-content;
  margin-top: 2.5vw;
  white-space: nowrap;
  letter-spacing: 1px;
  transition: transform 0.3s;
}
.work :where(a > i) {
  font-size: 1.5vw;
  font-weight: 100;
}
.work a:hover {
  transform: translateY(-3px);
  transition: all ease-in-out 0.3s;
}

.projects {
  width: 100%;
}
/* prject 1 */
.project {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-img .distortion {
  width: 580px;
  height: 580px;
  border-radius: 3vw;
  overflow: hidden;
  position: relative;
}
.distortion canvas {
  object-fit: cover;
}
.project-text {
  width: calc(100% - 580px);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 10px;
  padding: 0 0 0 4vw;
}
.project-text h4 .parent .child {
  font-size: 1.7vw;
  font-weight: 450;
  color: var(--secondary-color);
  text-transform: uppercase;
}
.project-text p .parent .child {
  line-height: 3vw;
  letter-spacing: -0.1vw;
  font-size: 2.5vw;
  font-weight: 500;
  color: var(--main-color);
  padding: 0 4vw 0 0;
  width: 100%;
}
.project-text p .parent .child span {
  font-family: gv;
  color: var(--primary-color);
  font-weight: 100;
  font-style: italic;
  letter-spacing: 0.1vh;
}
.project-text a {
  display: flex;
  align-items: center;
  padding: 0.6vw 2.8vw;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 1.5vw;
  color: var(--main-color);
  text-transform: uppercase;
  font-size: 1vw;
  font-weight: 500;
  margin-left: 0.3vw;
  width: fit-content;
  margin-top: 2.5vw;
  white-space: nowrap;
  letter-spacing: 1px;
  transition: transform 0.3s;
}
.project-text a:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color-light);
  transform: translateY(-3px);
  transition: all ease-in-out 0.3s;
}
/* project-2  */
.project-2 {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
}
/* project-3  */
.project-3 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* project-4  */
.project-4 {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
}
/* projects section */

/* footer */
footer {
  background-color: var(--main-color);
  width: 100vw;
  padding: 3vw 5vw 2vw;
  border-top-left-radius: 5vw;
  border-top-right-radius: 5vw;
  position: relative;
  z-index: 300;
}
.f-uper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3vw;
}
.f-uper .contact a {
  display: flex;
  align-items: center;
  padding: 0.6vw 2.8vw;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 1.5vw;
  color: var(--secondary-color-light);
  text-transform: uppercase;
  font-size: 1vw;
  font-weight: 500;
  margin-left: 0.3vw;
  width: fit-content;
  margin-top: 0.5vw;
  white-space: nowrap;
  letter-spacing: 1px;
  transition: transform 0.3s;
}
.f-uper .contact a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  transition: all ease-in-out 0.3s;
}
.f-uper .contact p .parent .child {
  margin-bottom: 3vw;
  font-weight: 550;
}
.social h2 .parent .child {
  font-size: 2.5vw;
  padding: 10px;
  width: 100%;
}
.f-uper .social a > i {
  margin: 0.4vw;
  color: var(--secondary-color-light);
  font-size: 2.5vw;
  transition: color 0.3s;
}
.f-uper .social a > i:hover {
  color: var(--primary-color);
  transition: all ease-in-out 0.3s;
}
.f-uper p .parent .child span {
  font-family: gv;
  color: var(--primary-color);
  font-style: italic;
  font-weight: 100;
  padding: 0 1vw 0 0;
}
.footer p {
  font-size: 5vw;
  letter-spacing: -0.2vw;
  line-height: 5vw;
  color: var(--secondary-color-light);
}
.f-lower {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5vw 0 0;
  border-top: 1px solid var(--secondary-color);
  font-size: 0.8vw;
  color: var(--secondary-color-light);
}
.f-uper .social h2 {
  color: var(--secondary-color-light);
  text-transform: uppercase;
}
.f-lower a {
  color: var(--secondary-color-light);
  text-decoration: underline;
  font-weight: bold;
  margin-left: 2px;
}
/* footer */

/* media quaries */
/* cursor */
@media (max-width: 768px) {
  body {
    cursor: default;
  }
}
/* loader media */
@media (max-width: 768px) {
  .loader .top h5 {
    font-size: 1vh;
    line-height: 1.2vh;
  }
  .loader .top {
    margin-top: 3vh;
  }
  .loader .center h1 {
    font-size: 3.5vh;
    gap: 6px;
  }
  #end {
    margin-bottom: 13vh;
  }
  .reveal .parent {
    overflow: hidden;
  }
}
/* loader media */

/* nav-media */
@media (max-width: 768px) {
  header {
    width: 100%;
    background: hsla(0, 2, 5%, 0.349);
  }
  nav {
    width: 100%;
    padding: 2vh 4vh 2vh;
  }
  .textnav {
    display: none;
  }
  .phonenav a {
    color: var(--secondary-color-light);
    position: relative;
    font-size: 1vh;
  }
  .phonenav a .line {
    position: absolute;
    bottom: 0;
    height: 0.5px;
    background-color: var(--secondary-color-light);
    display: inline-block;
  }
  .phonenav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8vh;
    font-weight: 500;
    text-transform: uppercase;
  }
}
/* nav-media */

/* hero media */
@media (max-width: 768px) {
  body {
    background-color: var(--main-color);
    color: var(--secondary-color-light);
  }
  .hero::after {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 15.6315L20.9679 10.8838L20.0321 9.11619L12 13.3685L3.96788 9.11619L3.0321 10.8838L12 15.6315Z'%3E%3C/path%3E%3C/svg%3E");
  }
  .Greet {
    flex-direction: column;
    padding: 20vh 5vh 0;
  }
  .Greet h2 > span {
    font-size: 4vh;
    display: inline-block;
    color: var(--secondary-color-light);
  }
  .para {
    display: none;
  }
  .heroname {
    width: 100%;
    flex-direction: column;
    padding: 5vh 0.5vh;
  }
  .heroname h1 {
    font-size: 9vh;
    font-weight: 600;
    line-height: 8vh;
    color: var(--secondary-color-light);
  }
  .ocup {
    justify-content: center;
    padding: 2.5vh 5vh;
    font-size: 3vh;
    white-space: nowrap;
  }
  .ocup .parent .child span {
    padding: 0 0.5vh;
    color: var(--primary-color);
    font-style: italic;
  }
  .ocup .parent .child span::before {
    content: "–";
  }
  .ocup h2 {
    color: var(--secondary-color-light);
    padding: 0 2.5vh;
  }
}
/* hero media */

/* about media */
@media (max-width: 768px) {
  .about {
    align-items: center;
    margin-top: 15vh;
    flex-direction: column;
    gap: 5vh;
    padding: 1vh 3vh 0;
    background-image: url(#);
  }
  .about-text {
    width: 100%;
    margin-top: 7vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
  }
  .about-text h4 {
    font-size: 2.8vh;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 9%;
    text-transform: uppercase;
  }
  .about-text p {
    width: 100%;
    line-height: 3.9vh;
    font-size: 3.5vh;
    font-weight: 400;
    margin-bottom: 9%;
    color: var(--secondary-color-light);
  }
  .about-text p .parent .child span {
    letter-spacing: -0.05vh;
    font-weight: 100;
    font-family: gv;
    color: var(--primary-color);
  }
  .about-text h3 .parent .child {
    font-size: 5vh;
    font-weight: 100;
    margin-bottom: 9%;
    color: var(--primary-color);
  }
  .tech {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    gap: 2vh;
    flex-wrap: wrap;
  }
  .tech img {
    width: 7.5vh;
    background-color: var(--secondary-color-light);
    border-radius: 1vh;
    padding: 0.7vh;
  }
  .about-img {
    width: 100%;
    gap: 1vh;
  }
  .about-img img {
    width: 13vh;
    border-radius: 4vh;
  }
  .about-img .img3 {
    width: 39vh;
    border-radius: 4vh;
    margin-top: 0;
  }
  .about-img .img2 {
    width: 18vh;
    border-radius: 4vh;
  }
  .about-img .img1 {
    width: 20vh;
    border-radius: 4vh;
  }
}
/* about media */

/* projects media */
@media (max-width: 768px) {
  .work {
    width: 100%;
    margin-top: 10%;
    padding: 1vh 3vh 0;
  }
  .work-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
  }
  .work-text h3 .parent .child {
    font-size: 5vh;
    font-weight: 100;
    color: var(--primary-color);
    margin-bottom: 9%;
  }
  .work-text p {
    line-height: 2.3vh;
    color: var(--secondary-color-light);
    margin-bottom: 9%;
    letter-spacing: -0.05vh;
    line-height: 3.5vh;
    font-size: 3.5vh;
    font-weight: 500;
  }
  .work-text p .parent .child span {
    font-family: gv;
    font-weight: 100;
    font-style: italic;
    color: var(--primary-color);
  }
  .projects {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 9%;
    margin-top: 9%;
  }
  /* prject 1 */
  .project {
    flex-direction: column;
    align-items: center;
    margin: 10% 0;
  }
  .project-img {
    width: 100%;
    height: 100%;
  }
  .project-img .distortion {
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: center;
    border-radius: 3vh;
  }
  .project-text {
    width: 100%;
    padding: 1vh 0.5vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .project-text h4 .parent .child {
    font-size: 2.8vh;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    padding: 0 0 0 1vh;
  }
  .project-text p .parent .child {
    display: none;
    color: var(--secondary-color-light);
    letter-spacing: -0.05vh;
    line-height: 3.5vh;
    font-size: 3.5vh;
    width: 100%;
    text-align: center;
    padding: 0 0 1vh 0;
  }
  .project-text a {
    padding: 0.8vh 2.8vh;
    border-radius: 2vh;
    margin-top: 3vh;
    font-size: 1.5vh;
    font-weight: 500;
    color: var(--secondary-color-light);
    text-align: center;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .project-text a > i {
    display: none;
  }
  /* project-2  */
  .project-2 {
    flex-direction: column;
    align-items: center;
    margin: 10% 0;
  }
  /* project-3  */
  .project-3 {
    flex-direction: column;
    align-items: center;
    margin: 10% 0;
  }
  /* project-4  */
  .project-4 {
    flex-direction: column;
    align-items: center;
    margin: 10% 0;
  }
}
/* projects media */

/* footer media */
@media (max-width: 768px) {
  .footer {
    background-color: var(--main-color);
    padding: 1vh 3vh 0;
  }
  .f-uper {
    flex-direction: column-reverse;
    gap: 5vh;
    margin-bottom: 3vh;
  }
  .f-uper .contact {
    width: 100%;
  }
  .f-uper .contact a {
    padding: 0.8vh 2.8vh;
    border-radius: 2vh;
    margin-top: 3vh;
    font-size: 1.5vh;
    font-weight: 500;
  }

  .f-uper .contact p .parent .child {
    width: 100%;
    font-size: 5vh;
    font-weight: 550;
    line-height: 5vh;
  }
  .f-uper .social {
    text-align: start;
    font-size: 2.5vh;
    width: 100%;
  }
  .social h2 .parent .child {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: start;
    margin-bottom: 4%;
    font-size: 4vh;
  }
  .f-uper .social a > i {
    font-size: larger;
  }
  .f-lower {
    padding: 1.5vh 0 2.5vh;
    font-size: 0.8vh;
  }
}
/* footer media */

/* media quaries */

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

@media (max-width: 768px) {
  .loader {
    animation: none;
  }
  .reveal {
    transition: none;
  }
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

@media (max-width: 768px) {
  .loader {
    animation: none;
  }
  .reveal {
    transition: none;
  }
  .work a {
    transform: scale(1);
    transition: all 0.2s ease;
  }
  img[loading="lazy"] {
    display: block;
    width: 100%;
  }
}
