/* --------------- */
/* Variables -     */
/* --------------- */
:root {
  --clr-main-first: #6ec0de;
  --clr-blur: #b1a3a30f;
  --clr-main-second: #152310;
  --clr-neutral-first: #0c0d08;
  --clr-neutral-second: #1a1a1a;
  --clr-text-first: #fff;

  /* Fonts */
  --font-first: "Inter", sans-serif;
  --font-second: "Work Sans", sans-serif;
  --font-thin: 300;
  --font-normal: 400;
  --font-bold: 700;
  --font-extra-bold: 800;
}

/* --------------- */
/* Reset styles -  */
/* --------------- */
*, *::after, *::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  &:visited {
    color: var(--clr-text-first);
  }
}
button {
  outline: none;
  border: none;
  cursor: pointer;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* setting quran font */
@font-face {
  font-family: 'QuranFont';
  src: url('./fonts/quran.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--clr-neutral-second);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-blur);
  border-radius: 4px;
  transition: .3s;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-main-first);
}
::-webkit-scrollbar-button {
  display: none;
}


/* body */
body {
  font-family: var(--font-first);
  background-color: var(--clr-neutral-first);
  color: var(--clr-text-first);
  position: relative;
  overflow-x: hidden;
}
/* container */
.container {
  margin: 0 auto;
  position: relative;
}
@media (max-width: 600px) {
  .container {
    width: calc(100vw - 48px);
  }
}
@media (min-width: 600px) {
  .container {
    width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    width: 690px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 860px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 980px;
  }
}
@media (min-width: 1440px) {
  .container {
    width: 1100px;
  }
}

/* header start */
header {
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 99;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 10vw);
  max-width: 1240px;
  background-color: var(--clr-blur);
  backdrop-filter: blur(20px);

  animation: appear-from-top .3s forwards;
}
.logo {
  flex: 1;
  cursor: pointer;

  p {
    width: fit-content;
    color: var(--clr-text-first);
    font-family: var(--font-second);
    font-weight: var(--font-bold);
    text-transform: capitalize;
    line-height: .9;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;

    &::after {
      content: "";
      background-color: var(--clr-main-first);
      position: absolute;
      border-radius: 50%;
      aspect-ratio: 1;
      transition: .3s;
    }

    span {
      position: relative;
      line-height: 0;
    }
  }
}
nav {
  display: flex;
  align-items: center;

  a {
    color: var(--clr-text-first);
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: .3s;
    cursor: pointer;

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      background-color: var(--clr-main-first);
      transition: width 0.3s ease-in-out;
    }

    &:hover::after {
      width: 100%;
    }
    
    &:hover {
      color: var(--clr-main-first);
    }
  }

  
}

@media (max-width: 600px) {
  header {
    width: calc(100vw - 30px);
    top: 16px;
    padding: 14px;
    border-radius: 6px;
  }
  .logo {
    p {
      font-size: 16px;

      &::after {
        width: 5px;
        bottom: 39%;
        left: 14.3%;
        outline: 3px solid var(--clr-main-second);
      }
  
      span {
        left: -6px;
        font-size: 23px;
        display: none;
      }
    }
  }
  nav {
    gap: 4px;
  
    a {
      padding: 8px 6px;
      font-size: 8px;
      letter-spacing: 1.4px;
  
      &::after {
        height: 2px;
      }
      &:hover {
        transform: translateY(-2px);
      }
    }
  
    
  }
}
@media (min-width: 600px) {
  header {
    top: 16px;
    padding: 14px 2vw;
    border-radius: 6px;
  }
  .logo {
    p {
      font-size: 18px;

      &::after {
        width: 5px;
        bottom: 39%;
        left: 14.3%;
        outline: 3px solid var(--clr-main-second);
      }
  
      span {
        left: -6px;
        font-size: 23px;
        display: none;
      }
    }
  }
  nav {
    gap: 8px;
  
    a {
      padding: 10px 8px;
      font-size: 10px;
      letter-spacing: 1.4px;
  
      &::after {
        height: 2px;
      }
      &:hover {
        transform: translateY(-2px);
      }
    }
  
    
  }
}
@media (min-width: 768px) {
  header {
    top: 20px;
    padding: 16px 3vw;
    border-radius: 8px;
  }
  .logo {
    p {
      font-size: 20px;

      &::after {
        width: 7px;
        bottom: 39%;
        left: 14.3%;
        outline: 4px solid var(--clr-main-second);
      }
  
      span {
        left: -6px;
        font-size: 23px;
      }
    }
  }
  nav {
    gap: 10px;
  
    a {
      padding: 12px;
      font-size: 12px;
      letter-spacing: 2px;
  
      &::after {
        height: 2px;
      }
      &:hover {
        transform: translateY(-2px);
      }
    }
  
    
  }
}
@media (min-width: 1200px) {
  header {
    top: 24px;
    padding: 16px 4vw;
    border-radius: 8px;
  }
  .logo {
    p {
      font-size: 22px;

      &::after {
        width: 8px;
        bottom: 35%;
        left: 14.3%;
      }
  
      span {
        left: -6px;
        font-size: 28px;
      }
    }
  }
  nav {
    gap: 12px;
  
    a {
      padding: 14px;
      font-size: 13px;
      letter-spacing: 2px;
  
      &::after {
        height: 2px;
      }
      &:hover {
        transform: translateY(-2px);
      }
    }
  
    
  }
}
/* header end */

/* hero start */
#hero .container {
  display: flex;
  align-items: center;
  min-height: 600px;
  height: 100vh;
}
#hero .info {
  flex: 1;
  opacity: 0;
  animation: appear-from-left .3s .3s forwards;

  p:first-child {
    /* Use both -webkit-text-stroke and the standard text-stroke for better browser support */
    -webkit-text-stroke: 2px var(--clr-main-first);
    text-stroke: 2px var(--clr-main-first); /* Not yet supported in Firefox as of 2024 */
    color: transparent;
    font-weight: var(--font-extra-bold);
    line-height: 1;
    /* For Firefox fallback, use text-shadow to simulate stroke */
    @supports not (-webkit-text-stroke: 2px var(--clr-main-first)) {
      color: var(--clr-text-first);
      text-shadow:
        -2px 0 var(--clr-main-first),
        0 2px var(--clr-main-first),
        2px 0 var(--clr-main-first),
        0 -2px var(--clr-main-first);
      /* You may want to adjust the shadow for a better effect */
    }
  }
  h1 {
    color: var(--clr-text-first);
    line-height: 1;
  }
  p:last-child {
    font-weight: 500;
    font-weight: 300;
    font-family: var(--font-second);
    color: var(--clr-text-first);
    opacity: .8;
    
    strong {
      color: var(--clr-text-first);
      font-weight: 500;
      border-bottom: 1px solid var(--clr-main-first);
    }
  }
}
#hero .image-box {
  position: relative;
  opacity: 0;
  animation: appear-from-right .3s .6s forwards;

  &::after {
    content: "";
    background-color: var(--clr-blur);
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    display: none;
  }

  &::before {
    content: "";
    background: transparent;
    position: absolute;
    z-index: 2;
    border: 3px solid var(--clr-text-first);
    width: 100%;
    height: 80%;
    border-radius: 8px;
    left: 4%;
    bottom: 4%;
    display: none;
  }

  span.shape {
    position: absolute;
    z-index: -1;
    border-radius: 6px;
    aspect-ratio: 1;
    width: 160px;
    background-color: var(--clr-main-first);
    top: 20%;
    right: 0;
    transform: translate(20%, -30%);
  }

  img {
    max-width: 100%;
    position: relative;
    z-index: 3;
    /* opacity: 0; */
    border-radius: 8%;
    transform: translateY(5px);
    background-color: white;
    border: 4px solid rgb(45, 43, 43);
  }
}


@media (max-width: 600px) {
  body {
    padding-top: 40px;
  }
  #hero .container {
    gap: 12px;
    height: 100vh;
    max-height: 660px;
    flex-direction: column;
    justify-content: center;
  }
  #hero .info {
    flex: 0;
    text-align: center;

    p:first-child {
      font-size: 28px;
      -webkit-text-stroke: 1px var(--clr-main-first);
    }
    h1 {
      font-size: 32px;
      margin: 0px 0px 16px;
    }
    p:last-child {
      font-size: 12px;
    }
  }
  #hero .image-box {
    width: 70%;
    max-width: 300px;
    margin-top: 18px;
    padding: 0 28px;
  
    /* &::after {
      width: 100%;
      height: 80%;
      border-radius: 8px;
    }
  
    &::before {
      border: 3px solid var(--clr-text-first);
      width: 100%;
      height: 80%;
      border-radius: 8px;
      left: 4%;
      bottom: 4%;
    } */
  
    span.shape {
      border-radius: 6px;
      width: 50%;
      top: 20%;
      transform: translate(20%, -30%);
    }
  }
}
@media (min-width: 600px) {
  #hero .container {
    gap: 26px;
  }
  #hero .info {
    p:first-child {
      font-size: 30px;
    }
    h1 {
      font-size: 36px;
      margin: 0px 0px 16px;
    }
    p:last-child {
      font-size: 13px;
    }
  }
  #hero .image-box {
    width: 38%;
    padding: 0 28px;
/*   
    &::after {
      width: 100%;
      height: 80%;
      border-radius: 8px;
    }
  
    &::before {
      border: 3px solid var(--clr-text-first);
      width: 100%;
      height: 80%;
      border-radius: 8px;
      left: 4%;
      bottom: 4%;
    } */
  
    span.shape {
      border-radius: 6px;
      width: 160px;
      top: 20%;
      transform: translate(20%, -30%);
    }
  }
}
@media (min-width: 768px) {
  #hero .container {
    gap: 32px;
  }
  #hero .info {
    p:first-child {
      font-size: 35px;
    }
    h1 {
      font-size: 40px;
      margin: 0px 0px 18px;
    }
    p:last-child {
      font-size: 15px;
    }
  }
  #hero .image-box {
    width: 38%;
    padding: 0 28px;
  
    /* &::after {
      width: 100%;
      height: 80%;
      border-radius: 8px;
    }
  
    &::before {
      border: 3px solid var(--clr-text-first);
      width: 100%;
      height: 80%;
      border-radius: 8px;
      left: 4%;
      bottom: 4%;
    } */
  
    span.shape {
      border-radius: 6px;
      width: 160px;
      top: 20%;
      transform: translate(20%, -30%);
    }
  }
}
@media (min-width: 992px) {
  #hero .container {
    gap: 32px;
  }
  #hero .info {
    p:first-child {
      font-size: 42px;
    }
    h1 {
      font-size: 46px;
      margin: 0px 0px 20px;
    }
    p:last-child {
      font-size: 16px;
    }
  }
  #hero .image-box {
    width: 38%;
    padding: 0 28px;
  
    /* &::after {
      width: 100%;
      height: 80%;
      border-radius: 8px;
    }
  
    &::before {
      border: 3px solid var(--clr-text-first);
      width: 100%;
      height: 80%;
      border-radius: 8px;
      left: 4%;
      bottom: 4%;
    } */
  
    span.shape {
      border-radius: 6px;
      width: 160px;
      top: 20%;
      transform: translate(20%, -30%);
    }
  }
}
@media (min-width: 1200px) {
  #hero .container {
    gap: 32px;
    max-height: 740px;
  }
  #hero .info {
    p:first-child {
      font-size: 50px;
    }
    h1 {
      font-size: 60px;
      margin: 0px 0px 24px;
    }
    p:last-child {
      font-size: 18px;
    }
  }
  #hero .image-box {
    width: 36%;
    padding: 0 28px 0;
  
    /* &::after {
      width: 100%;
      height: 80%;
      border-radius: 8px;
    }
  
    &::before {
      border: 3px solid var(--clr-text-first);
      width: 100%;
      height: 80%;
      border-radius: 8px;
      left: 4%;
      bottom: 4%;
    } */
  
    span.shape {
      border-radius: 6px;
      width: 160px;
      top: 20%;
      transform: translate(20%, -30%);
    }
  }
}
/* hero end */

/* about start */
#about {
  position: relative;

  .shape {
    width: 36vw;
    height: 100%;
    top: -2%;
    background-color: transparent;
    z-index: -1;
    position: absolute;
    border-bottom: none !important;
    border-right: none !important;
    overflow: hidden;
    mask: linear-gradient(to top, transparent 0%, white);

    span {
      width: 100%;
      height: 100%;
      position: absolute;
      background-color: inherit;
      border: inherit;
      border-radius: inherit;
      display: block;
    }
  }
  /* .shape-2 {
    transform: rotateX(180deg) rotateZ(90deg);
    left: unset !important;
    top: unset !important;
    height: 100%;
    right: 49%;
    bottom: -34%;
  } */
}
#about h2 {
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
  width: fit-content;
  color: var(--clr-text-first);
  position: relative;
  overflow: hidden;

  span {
    width: fit-content;

    &::after {
      content: "";
      display: none;
      top: 50%;
      border-radius: 60px;
      background-color: var(--clr-main-first);
      position: absolute;
      transition: .3s;
      z-index: -1;
    }

  }

  &:hover {
    span {
      &::after {
        width: 100%;
        height: 100%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }
}
#about .description {
  width: 80%;
  min-width: 280px;
  margin: auto;
  background-color: var(--clr-blur);
  backdrop-filter: blur(16px);
  position: relative;
  opacity: 1;

  p {
    color: #ddd;
    font-weight: 300;
  }

  span {
    color: var(--clr-main-first);
    color: var(--clr-text-first);
    border-bottom: 1px solid var(--clr-main-first);
    font-weight: 500;
  }
}

@media (max-width: 600px) {
  #about {
    & .shape {
      /* display: none; */
      left: 70vw;
      border-top-left-radius: 54px;
      border: 8px solid var(--clr-main-first);
      span {
        top: 13px;
        left: 13px;
      }
    }
  }
  #about .container {
    padding: 40px 0;
  }
  #about h2 {
    letter-spacing: 4px;
    font-size: 28px;
    margin: 0 auto 20px;
    padding: 0px 0px;
    span {
      &::after {
        width: 7px;
        height: 9px;
        left: 31%;
        transform: translate(-37%, -50%); 
      }
    }
  
    &:hover {
      span {
        &::after {
          border-radius: 8px;
        }
      }
    }
  }
  #about .description {
    border-radius: 8px;
    padding: 30px 28px;
    p {
      margin-bottom: 10px;
      line-height: 1.6;
      max-width: 94%;
      font-size: 12px;
    }
  }
}
@media (min-width: 600px) {
  #about {
    & .shape {
      left: 70vw;
      border-top-left-radius: 54px;
      border: 8px solid var(--clr-main-first);
      span {
        top: 13px;
        left: 13px;
      }
    }
  }
  #about .container {
    padding: 60px 0;
  }
  #about h2 {
    letter-spacing: 4px;
    font-size: 32px;
    margin: 0 auto 28px;
    padding: 16px 28px;
    span {
      &::after {
        width: 8px;
        height: 10px;
        left: 35%;
        transform: translate(-29%, -50%);
      }
    }
  
    &:hover {
      span {
        &::after {
          border-radius: 8px;
        }
      }
    }
  }
  #about .description {
    border-radius: 8px;
    padding: 30px 28px;
    p {
      margin-bottom: 12px;
      line-height: 1.6;
      max-width: 94%;
      font-size: 14px;
    }
  }
}
@media (min-width: 992px) {
  #about {
    & .shape {
      left: 66vw;
      border-top-left-radius: 60px;
      border: 8px solid var(--clr-main-first);
      span {
        top: 16px;
        left: 16px;
      }
    }
  }
  #about .container {
    padding: 60px 0 90px;
  }
  #about h2 {
    letter-spacing: 4px;
    font-size: 36px;
    margin: 0 auto 38px;
    padding: 16px 28px;
    span {
      &::after {
        width: 9px;
        height: 12px;
        left: 35%;
        transform: translate(-38%, -50%);
      }
    }
  
    &:hover {
      span {
        &::after {
          border-radius: 8px;
        }
      }
    }
  }
  #about .description {
    border-radius: 10px;
    padding: 34px 30px;
    p {
      margin-bottom: 14px;
      line-height: 1.6;
      max-width: 94%;
      font-size: 16px;
    }
  }
}
@media (min-width: 1200px) {
  #about h2 {
    font-size: 40px;
    span {
      &::after {
        width: 11px;
        height: 14px;
        left: 35%;
        transform: translate(-39%, -50%);
      }
    }
  }
}
/* about end */

/* qualities star */
.qualities-container {
  h3 {
    text-align: center;
    text-transform: capitalize;
    font-weight: 600;
    color: var(--clr-text-first);
  }
}
.qualities {
  display: grid;

  .qual {
    background-color: var(--clr-blur);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: start;
    color: var(--clr-text-first);

    h4 {
      font-weight: 500;
      letter-spacing: .4px;
      border-bottom: 1px solid var(--clr-main-first);
      width: fit-content;
    }

    p {
      color: #ddd;
      font-weight: 300;
    }
  }
}

@media (max-width: 600px) {
  .qualities-container {  
    margin-top: 40px;
  
    h3 {
      margin-bottom: 22px;
      font-size: 17px;
    }
  }
  .qualities {
    grid-template-columns: 1fr;
    gap: 16px;
  
    .qual {
      gap: 14px;
      padding: 22px;
      border-radius: 8px;
      flex-direction: column;
  
      .icon {
        width: fit-content;
        margin: auto;
      }

      h4 {
        font-size: 16px;
        margin: 0 auto 14px;
      }
  
      p {
        line-height: 1.6;
        text-align: center;
        font-size: 14px;
      }
    }
  }
}
@media (min-width: 600px) {
  .qualities-container {  
    margin-top: 40px;
  
    h3 {
      margin-bottom: 26px;
      font-size: 18px;
    }
  }
  .qualities {
    grid-template-columns: 1fr;
    gap: 20px;
  
    .qual {
      gap: 16px;
      padding: 22px;
      border-radius: 8px;
  
      h4 {
        margin-bottom: 14px;
        font-size: 16px;
      }
  
      p {
        line-height: 1.6;
        font-size: 14px;
      }
    }
  }
}
@media (min-width: 768px) {
  .qualities-container {  
    margin-top: 60px;
  
    h3 {
      margin-bottom: 30px;
      font-size: 20px;
    }
  }
  .qualities {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  
    .qual {
      gap: 16px;
      padding: 22px;
      border-radius: 8px;
  
      h4 {
        margin-bottom: 14px;
        font-size: 17px;
      }
  
      p {
        line-height: 1.6;
        font-size: 15px;
      }
    }
  }
}
@media (min-width: 992px) {
  .qualities-container {
    margin-top: 80px;
  
    h3 {
      margin-bottom: 40px;
      font-size: 24px;
    }
  }
  .qualities {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  
    .qual {
      gap: 20px;
      padding: 26px;
      border-radius: 8px;
  
      h4 {
        margin-bottom: 16px;
        font-size: 18px;
      }
  
      p {
        line-height: 1.6;
        font-size: 16px;
      }
    }
  }
}
/* qualities end */

/* projects start */
#projects {
  position: relative;

  h2 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--clr-text-first);
  }

  .shape {
    width: 45vw;
    height: 62%;
    top: 38%;
    background-color: transparent;
    z-index: -1;
    position: absolute;
    border-bottom: none !important;
    border-left: none !important;
    overflow: hidden;
    mask: linear-gradient(to top, transparent 0%, white);

    span {
      width: 100%;
      height: 100%;
      position: absolute;
      background-color: inherit;
      border: inherit;
      border-radius: inherit;
      display: block;
    }
  }

}
#projects .projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) {
  #projects .projects-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  #projects .projects-container {
    grid-template-columns: 1fr;
  }
}
#projects .project {
  background-color: var(--clr-blur);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
#projects .project-cover {
  display: flex;
  align-items: end;
  padding: 16px;
  aspect-ratio: 5 / 3;
  border-radius: 6px;
  overflow: hidden;
  background-size: cover;
  background-position: top;
  margin-bottom: 18px;
  position: relative;

  &:hover::after {
    opacity: .7;
  }

  &::after {
    content: "";
    background-image: linear-gradient(rgba(0, 0, 0, .1) 10%, rgba(0, 0, 0, 0.8));
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: .3s;
  }

  h5 {
    font-weight: 400;
    text-transform: capitalize;
    font-size: 16px;
    font-family: var(--font-second);
    color: #ddd;
    position: relative;
    z-index: 1;
  }
}
#projects .project > p {
  color: #ddd;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 300;
  opacity: .7;
  margin-bottom: 20px;
}
#projects .project .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(121, 110, 110, 0.276);
  margin-top: auto;

  .repo {
    cursor: pointer;
    font-size: 12px;
    color: var(--clr-text-first);
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(121, 110, 110, 0.276);
    border-radius: 100px;
    padding: 6px 10px;
    transition: .3s;

    &:hover {
      border-color: rgba(121, 110, 110, 0.6);
    }

    i {
      font-size: 14px;
    }
  }

  .live-site {
    font-size: 12px;
    text-transform: capitalize;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--clr-main-first);
    cursor: pointer;
    transition: .3s;
    color: var(--clr-text-first);
    padding: 6px;

    i {
      transition: .3s;
    }

    &:hover i {
      transform: translateX(6px);
    }
  }
}
@media (max-width: 600px) {
  #projects {
    & .shape {
      /* display: none; */
      left: 0;
      border-top-right-radius: 54px;
      border: 8px solid var(--clr-main-first);
      height: 96%;
      top: 6%;
      span {
        top: 13px;
        right: 13px;
      }
    }
    .container {
      padding: 40px 0;
    }
    h2 {
      letter-spacing: 4px;
      font-size: 28px;
      margin: 0 auto 20px;
      padding: 0px 0px;
    }
  }
}
@media (min-width: 600px) {
  #projects {
    & .shape {
      left: 0;
      border-top-right-radius: 54px;
      border: 8px solid var(--clr-main-first);
      span {
        top: 13px;
        right: 13px;
      }
    }
    .container {
      padding: 60px 0;
    }
    h2 {
      letter-spacing: 4px;
      font-size: 32px;
      margin: 0 auto 28px;
      padding: 16px 28px;
    }
  }
}
@media (min-width: 992px) {
  #projects {
    & .shape {
      left: 0vw;
      border-top-right-radius: 60px;
      border: 8px solid var(--clr-main-first);
      span {
        top: 16px;
        right: 16px;
      }
    }
    .container {
      padding: 90px 0;
    }
    h2 {
      letter-spacing: 4px;
      font-size: 36px;
      margin: 0 auto 38px;
    }
  }
}
@media (min-width: 1200px) {
  #projects {
    h2 {
      font-size: 40px;
    }
  }
}
/* projects end */

/* contact start */
#contact h2 {
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
  width: fit-content;
  color: var(--clr-text-first);
  position: relative;
  overflow: hidden;
}
#contact .links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;

  a {
    color: var(--clr-text-first);
    border: 1px solid rgba(121, 110, 110, 0.276);
    background-color: var(--clr-blur);
    border-radius: 1000px;
    width: 200px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: .3s;

    &:hover {
      border-color: var(--clr-text-first);
    }

    &:last-child:hover {
      color: var(--clr-main-first);
      border-color: var(--clr-main-first);
    }
  }
}
#contact .personal-info {
  background-color: var(--clr-blur);
  backdrop-filter: blur(16px);
  width: 80%;
  min-width: 280px;
  border: 1px solid rgba(121, 110, 110, 0.276);
  margin-left: auto;
  margin-right: auto;
  
  p {
    display: grid;
    grid-template-columns: 40px auto;
    align-items: center;
    margin-bottom: 16px;
    color: var(--clr-text-first);
    
    i {
      color: #ddd;
    }

    span {
      position: relative;
      width: fit-content;
    }

    .copy {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: -45px;
      cursor: pointer;
      border-radius: 4px;
      border: 1px solid rgba(121, 110, 110, 0.276);
      padding: 8px;
      /* transition: .3s; */

      &::after {
        content: attr(data-message);
        position: absolute;
        top: 50%;
        right: -8px;
        font-size: 14px;
        color: #ddd;
        transform: translate(100%, -50%);
      }

      &:hover {
        border-color: var(--clr-text-first);
      }

      &.copied {
        background-color: var(--clr-text-first);
        border-color: var(--clr-neutral-first);
        color: var(--clr-neutral-first);
      }
    }
  }
}
#contact .social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;

  a {
    color: var(--clr-text-first);
    transition: .3s;
    font-size: 24px;
    position: relative;

    &:after {
      content: "";
      height: 2px;
      background-color: var(--clr-main-first);
      width: 0%;
      border-radius: 2px;
      position: absolute;
      left: 50%;
      top: 100%;
      transform: translate(-50%, 4px);
      transition: .3s;
    }

    &:hover::after {
      width: 100%;
    }

    &:hover {
      color: var(--clr-main-first);
    }
  }
}
#contact .copyright {
  color: #ddd;
  text-align: center;
  margin: 24px 0 32px;
  font-size: 15px;

  i {
    color: var(--clr-main-first);
    transition: .3s;
    margin: 0 8px;

    &:hover {
      scale: 1.2;
    }
  }
}
#contact .quran {
  margin: 0 auto;
  width: fit-content;
  border-radius: 6px;
  color: var(--clr-text-first);
  direction: rtl;
  font-family: 'QuranFont', serif;
  font-size: 22px;
  position: relative;
  overflow: hidden;
  --val: -13%;
  
  p {
    position: relative;
    height: 100%;
    padding: 18px 24px;
    width: 100%;
    z-index: 1;
    background-color: var(--clr-blur);
    backdrop-filter: blur(16px);
    border-radius: 6px;
    border: 1px solid rgba(121, 110, 110, 0.276);
    overflow: hidden;
  }

  span {
    bottom: 23%;
    width: 15%;
    height: 30%;
    background-image: linear-gradient(0deg, white, var(--clr-main-first));
    opacity: 0.5;
    z-index: -1;
    position: absolute;
  }

  span:first-of-type {
    left: var(--val);
  }

  span:last-of-type {
    right: var(--val);
  }
}
@media (max-width: 600px) {
  #contact .quran {
    font-size: 16px;
    --val: -13%;
    border-radius: 3px;

    p {
      border-radius: 3px;
      padding: 14px 20px;
    }
  
    span {
      bottom: 23%;
      width: 15%;
      height: 30%;
      background-color: transparent;
      background-image: linear-gradient(0deg, white, var(--clr-main-first));
      opacity: 0.5;
      z-index: -1;
      position: absolute;
    }
  
    span:first-of-type {
      left: var(--val);
    }
  
    span:last-of-type {
      right: var(--val);
    }
  }
}

@media (max-width: 600px) { 

  #contact .container {
    padding: 40px 0;
  }
  #contact h2 {
    letter-spacing: 4px;
    font-size: 28px;
    margin: 0 auto 20px;
    padding: 0px 0px;
  }
  #contact .links {
    gap: 14px;
    font-size: 14px;
    padding: 10px;
  }
  #contact .personal-info {
    border-radius: 8px;
    padding: 26px 20px;
    margin: 30px auto 44px;

    p {
      font-size: 12px;
      grid-template-columns: 26px auto;

      .copy {
        padding: 6px;
        border-color: white;
        font-size: 9px;
        right: -29px ;
      }
    }


  }
}
@media (min-width: 600px) {
  #contact .container {
    padding: 60px 0;
  }
  #contact h2 {
    letter-spacing: 4px;
    font-size: 32px;
    margin: 0 auto 28px;
    padding: 16px 28px;
  }
  #contact .personal-info {
    border-radius: 8px;
    padding: 30px 28px;
    margin: 30px auto 44px;
  }
}
@media (min-width: 992px) {
  #contact .container {
    padding: 60px 0 90px;
  }
  #contact h2 {
    letter-spacing: 4px;
    font-size: 36px;
    margin: 0 auto 38px;
    padding: 16px 28px;
  }
  #contact .personal-info {
    border-radius: 10px;
    padding: 34px 30px;
    margin: 40px auto 60px;
  }
}
@media (min-width: 1200px) {
  #contact h2 {
    font-size: 40px;
  }
}
/* contact end */




/* --------------- */
/* Animations -    */
/* --------------- */

@keyframes appear-from-top {
  from {
    opacity: 0;
    transform: translate(-50%, -40px);
  } 
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes appear-from-bottom {
  from {
    opacity: 0;
    transform: translateY(60px);
  } 
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes appear-from-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  } 
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes appear-from-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  } 
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes appear-scaling {
  from {
    opacity: 0;
    transform: scale(.8);
  } 
  to {
    opacity: 1;
    transform: scale(1);
  }
}
