@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  scroll-behavior: smooth;
  /* cursor: none; */
  /* border: 2px solid brown; */
}

:root {
  font-size: 62.5%;
}

:root {
  /* Default (Laptop - 1024px) */
  --font-h1: 4.8rem; /* 48px */
  --font-h2: 3.6rem; /* 36px */
  --font-h3: 3rem; /* 30px */
  --font-h4: 2.4rem; /* 24px */
  --font-h5: 2rem; /* 20px */
  --font-body: 1.8rem; /* 18px */
  --font-small: 1.4rem; /* 14px */
  --font-very-small :12px;

  /* color palettes */
  --black: #222831;
  --grey: #393e46;
  --teal: #00adb5;
  --white: #f7f7f7;

  /*  dark theme */
  --moredark: #0c0c0e;
  --dark: #030303;
  --lightgrey: #697565;
  --pink: #ecdfcc;
}

/* body */
body {
  width: 100%;
  min-height: 100dvh;
  max-width: 2000px;
  /* border: 2px solid orangered; */
  margin: 0 auto;

  > .dot {
    position: fixed;
    top: 0;
    left: 0;
    height: 10px;
    width: 10px;
    border-radius: 5rem;
    background-color: var(--white);
    z-index: 80;
    filter: blur(5px);
    box-shadow: 0 0 .1rem var(--white);
    /* text-shadow: 0 0 1rem var(--white); */
  }
}

/* selection */
*::selection{
  color: var(--black);
  background-color: var(--white);
}

/* scroll indicator */
.scroll{
  width: 100%;
  max-width: 2000px;
  margin:  0 auto;
  background-color: var(--black);
  height: max-content;
  position: fixed;
  top: 0;
  z-index: 9999;


  .indicator{
    background-color: var(--white);
    width: min-content;
    height: 100%;
    box-shadow:  0 0 5rem var(--white);

    >span{
      text-align: center;
      display: block;
      font-size: var(--font-very-small);
      font-weight: 600;
    }
  }
}

/* cursor */
html,body{
  cursor: none;
}

.cursor{
  position: fixed;
  top: 60px;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  /* transform: rotate(45deg); */
  border: 3px solid var(--pink);
  box-shadow: 0 0 10px var(--pink);
  z-index: 9999;
  pointer-events: none;
  .pointer{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--pink);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }

  .pointer.active{
    width: 70%;
    height: 70%;
  }
}

/* image-cursor */
/* html,body{
  cursor: none;
} */

/* .image-cursor{
  width: 5rem;
  height: 5rem;
  position: fixed;
  top: 0;
  display: none;
  z-index: 9999;
  left: 0;
  pointer-events: none;

  >img{
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
} */


/* header */
header {
  /* border: 2px solid orange; */
  position: fixed;
  top: 12px;
  z-index: 999;
  width: 100%;
  max-width: 2000px;

  > .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    padding: 0.5rem 5%;
    position: relative;
    backdrop-filter: blur(2px);
    background-color: #00000086;

    > a {
      .logo-img {
        width: 4rem;
        height: 4rem;
        border: 1px solid white;
        border-radius: 50%;
        object-fit: cover;
        background-color: var(--black);

        &:hover {
          scale: 1.1;
        }
      }
    }

    #nav {
      /* border: 2px solid white; */
      height: 100%;
      display: flex;
      border-radius: 5rem;
      overflow: hidden;
      /* position: relative; */

      .menu-link {
        background-color: var(--black);
        align-content: center;
        font-size: var(--font-body);
        text-transform: capitalize;
        color: var(--white);
        padding: 0 0.9rem;
        font-weight: 600;
        transition: all 0.2s ease;

        &:hover {
          background-color: var(--grey);
          /* color: var(--moredark); */
        }

        span {
          position: relative;
        }

        > span::before {
          content: " ";
          height: 3px;
          width: 0;
          background-color: var(--white);
          position: absolute;
          bottom: -8%;
          transition: all 0.2s ease;
        }
      }

      .menu-link:hover > span::before {
        width: 100%;
      }
    }

    .ham-btn {
      background-color: transparent;
      outline: none;
      border: none;
      color: var(--white);
      font-size: var(--font-body);
      font-weight: 900;
      display: none;
      cursor: pointer;
    }
  }
  .navbar::before {
    content: " ";
    height: 3px;
    width: 90%;
    display: inline-block;
    position: absolute;
    background-color: var(--black);
    z-index: -1;
  }
}

/* main */
#main {
  min-height: 60rem;
  /* border: 2px solid lightcoral; */
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
    url("/assets/images/3d-rendering-abstract-black-white-waves.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  padding-top: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 5%;

  .hero-img {
    /* border: 2px solid rgb(255, 0, 0); */
    align-self: flex-end;

    .profile-img {
      /* border: 2px solid grey; */
      width: 38rem;
    }
  }

  .hero-text {
    /* border: 2px solid orange; */
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    > span {
      font-size: var(--font-small);
      text-transform: uppercase;
      letter-spacing: 8px;
      word-spacing: 2px;
      font-weight: 400;
    }

    > h2 {
      font-size: var(--font-h2);
      text-transform: capitalize;
      font-weight: 500;
    }

    > h1 {
      font-size: var(--font-h1);
      text-transform: capitalize;
      font-weight: 700;
      text-shadow: 0 0 4px var(--white);
      letter-spacing: 2px;
    }

    > h3 {
      font-size: var(--font-h3);
      text-transform: capitalize;
      font-weight: 300;
    }

    > p {
      font-size: var(--font-body);
      text-transform: lowercase;
      font-weight: 600;
      line-height: 4rem;
    }

    .hero-link {
      display: flex;
      gap: 2rem;
      flex-wrap: wrap;

      > a {
        color: var(--white);
        text-transform: uppercase;
        background-color: var(--black);
        min-width: max-content;
        width: 18rem;
        text-align: center;
        padding: 0.2em 0.1em;
        border-radius: 2rem;
        font-size: var(--font-body);
        border: 1.3px solid transparent;
        transition: all 0.2s ease;

        &:hover {
          border-color: var(--white);
          background-color: transparent;
          scale: 1.1;
        }
      }

      > a:nth-child(2) {
        border-color: var(--white);
        background-color: transparent;
        &:hover {
          border-color: transparent;
          background-color: var(--black);
        }
      }
    }
  }
}

/* about */
#about {
  min-height: 60rem;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  /* border: 2px solid crimson; */
  padding-inline: 5%;
  padding-block: 5rem;
  background-color: var(--moredark);
  display: flex;
  flex-direction: column;
  gap: 2rem;

  > h2 {
    font-size: var(--font-h1);
    text-transform: capitalize;
    color: var(--white);
    position: relative;
  }
  > h2::before {
    content: " ";
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, var(--white) 30%, var(--black) 90%);
    position: absolute;
    bottom: -0.4rem;
  }
  .about-img-box {
    /* border: 2px solid white; */
    align-self: center;
    .about-img {
      border: 2px solid var(--white);
      width: 20rem;
      height: 20rem;
      object-fit: cover;
      border-radius: 50%;
      transition: all 0.2s ease;
      &:hover {
        scale: 1.1;
      }
    }
  }

  .about-name {
    text-transform: capitalize;
    font-weight: 400;
    font-size: var(--font-h3);
    color: var(--white);
    align-self: center;
  }

  .about-text {
    font-size: var(--font-body);
    color: var(--white);
    line-height: 3rem;
    margin: 1rem 0;
  }

  .about-text.about-text-hidden {
    display: none;
  }
  .about-text.about-text-hidden.show-hide {
    display: block;
  }

  .show-btn {
    background-color: var(--dark);
    color: var(--white);
    font-size: var(--font-small);
    text-transform: capitalize;
    font-weight: 500;
    outline: none;
    border: none;
    padding: 0.8em;
    border-radius: 1rem;
    cursor: pointer;
    width: max-content;
    align-self: center;
    &:hover {
      scale: 1.1;
    }
  }

  .about-link {
    /* border: 2px solid white; */
    min-height: max-content;
    min-width: 25rem;
    width: 80%;
    column-count: 2;
    /* margin: 2rem auto; */
    align-self: center;
    /* column-rule: 2px solid var(--white); */

    > a {
      color: var(--white);
      text-transform: lowercase;
      font-size: var(--font-body);
      display: block;
      margin-bottom: 0.5rem;
      background-color: var(--black);
      padding: 2rem 1rem;
      border: 1px solid transparent;
      text-transform: capitalize;
      &:hover i {
        scale: 1.2;
        margin-right: .2em;
      }
      /* text-align: center; */
    }
  }
}

/* education */
#education{
  width: 100%;
  max-width: 2000px;
  min-height: 60rem;
  /* border: 2px solid crimson; */
  margin: 0 auto;
  background-color: var(--dark);
  padding: 6rem 5%;

  > h2 {
    font-size: var(--font-h1);
    text-transform: capitalize;
    color: var(--white);
    position: relative;
  }
  > h2::before {
    content: " ";
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, var(--white) 30%, var(--black) 90%);
    position: absolute;
    bottom: -0.4rem;
  }




  /* education - timeline */

  .education-timeline{
    min-height: 20rem;
    /* border: 2px solid white; */
    margin-top: 2rem;

    >ul{
      /* border: 2px solid aqua; */
      display: flex;
      flex-direction: column;
      padding: 3.5rem 1rem;
      position: relative;

      &::before{
        content: ' ';
        width: 2px;
        height: calc(100% - (3.5rem + 3.5rem));
        background-color: var(--white);
        position: absolute;
        top: 3.5rem;
        bottom: 0;
        left: 50%;
        border-radius: 5rem;
      }

      >li{
        color: var(--white);
        /* background-color: var(--white); */
        border: 2px solid var(--white);
        padding: 1rem;
        display: flex;
        gap: 1.5rem;
        flex-direction: column;
        width: 50%;
        /* margin-block: 1rem; */
        margin: 2rem -10px;
        border-radius: .6rem;
        position: relative;

        &::before{
          content: ' ';
          height: 15px;
          width: 15px;
          border-radius: 50%;
          background-color: var(--white);
          position: absolute;
          right: -21px;
        }


        >h3{
          font-size: var(--font-h5);
          text-transform: capitalize;
          font-weight: 800;
        }
        >p{
          font-weight: 500;
          font-size: var(--font-body);
          line-height: 2.4rem;
        }

        &:nth-child(even){
          align-self: flex-end;


          &::before{
            content: ' ';
            height: 15px;
            width: 15px;
            border-radius: 50%;
            background-color: var(--white);
            position: absolute;
            left: -18px;
          }
        }

        >.date{
          background: linear-gradient(var(--white),var(--moredark) );
          color: var(--black);
          width: max-content;
          padding: .5em;
          font-size: var(--font-small);
          border-radius: .5rem;
          font-weight: 900;
          position: absolute;
          top: -4rem;
          left: 0;
        }
      }


    }
  }
}

/* scroll */
.infinite-scroll{
  overflow: hidden;
  background-color: var(--black);
  padding: 20px 0;
  display: flex;
  position: relative;
  >div{
      white-space: nowrap;
      animation: move 30s linear infinite;
      display: inline-block;

      >a{
          font-size: var(--font-h2);
          margin: 0 20px;
          color: var(--white);
          margin-inline: 3em;
          text-transform: capitalize;

          i{
            margin-right: 1em;
          }
      }
  }
}

.infinite-scroll:hover div{
  animation-play-state: paused;
}

@keyframes move {
  from{
      transform: translate(0);
  }
  to{
      transform: translate(-100%);
  }
  
}
.infinite-scroll::after{
  content: ' ';
  width: 30%;
  height: 100%;
  background: linear-gradient(to left,rgba(255, 255, 255, 0),var(--dark));
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.infinite-scroll::before{
  content: ' ';
  width: 30%;
  height: 100%;
  background: linear-gradient(to right,rgba(255, 255, 255, 0),var(--dark));
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  right: 0;
}

/* skills */
#skills {
  width: 100%;
  max-width: 2000px;
  min-height: 60rem;
  /* border: 5px solid crimson; */
  margin: 0 auto;
  background-color: var(--moredark);
  padding-inline: 5%;
  padding-block: 5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;

  > h2 {
    font-size: var(--font-h1);
    text-transform: capitalize;
    color: var(--white);
    position: relative;
  }
  > h2::before {
    content: " ";
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, var(--white) 30%, var(--black) 90%);
    position: absolute;
    bottom: -0.4rem;
  }

  .skills-wrapper {
    min-height: 20rem;
    /* border: 2px solid white; */
    color: var(--white);

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    row-gap: 5rem;
    column-gap: 2rem;
    padding: 0.8rem;

    .skills-box {
      border: 1px solid var(--white);
      border-radius: 1rem;
      padding: 1rem;
      background-color: var(--black);

      > h3 {
        text-align: center;
        font-size: var(--font-h1);
      }

      > p {
        font-size: var(--font-body);
        line-height: 3rem;
      }
    }
  }
}

/* projects */
#projects {
  width: 100%;
  max-width: 2000px;
  min-height: 60rem;
  /* border: 5px solid crimson; */
  margin: 0 auto;
  background-color: var(--dark);
  padding-inline: 5%;
  padding-block: 5rem;

  > h2 {
    font-size: var(--font-h1);
    text-transform: capitalize;
    color: var(--white);
    position: relative;
  }
  > h2::before {
    content: " ";
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, var(--white) 30%, var(--black) 90%);
    position: absolute;
    bottom: -0.4rem;
  }

  > p {
    font-size: var(--font-body);
    color: var(--white);
    line-height: 3rem;
    margin: 2rem 0;
  }

  > h3 {
    font-size: var(--font-h3);
    color: var(--white);
    text-transform: capitalize;
  }

  .recent-projects {
    background-color: var(--grey);
    margin-block: 1.5rem;
    .title {
      display: flex;
      gap: 5px;
      text-transform: uppercase;
      background-color: var(--black);
      h1 {
        padding: 5px;
        cursor: pointer;
        color: var(--white);
        font-size: var(--font-h5);
      }
      h1.active {
        background-color: var(--grey);
        color: var(--white);
      }
    }
    .content {
      background-color: var(--grey);
      color: var(--white);
      margin: 15px 0;
      line-height: 22px;
      font-size: var(--font-body);
      padding: 10px;
      display: none;
      flex-direction: column;

      .view-btn {
        align-self: flex-end;
        background-color: var(--dark);
        color: var(--white);
        text-transform: uppercase;
        outline: none;
        border: none;
        padding: 0.4em 1em;
        cursor: pointer;
        border-radius: 2rem;
        display: inline-block;

        &:hover {
          scale: 1.1;
        }
      }
    }
    .content.active {
      display: flex;
    }
  }

  .all-projects {
    /* border: 2px solid white; */

    .item {
      /* background-color: beige; */
      color: black;
      margin: 20px 0;
      .title {
        background-color: var(--black);
        color: var(--white);
        text-transform: uppercase;
        font-size: var(--font-h4);
        padding: 10px;
        cursor: pointer;
        transition: all 0.2s ea;
        display: flex;
        justify-content: space-between;
        /* border-radius: 1.2rem; */
        &:hover {
          background-color: var(--grey);
          /* color: var(--moredark); */
        }
      }

      .answer {
        font-size: var(--font-body);
        padding: 10px;
        max-height: 0;
        display: none;
        overflow: hidden;
        transition: all 1s ease-in-out;
        background-color: var(--grey);
        /* border-radius: 2rem; */
        p {
          line-height: 2.5rem;
          color: var(--white);
          font-weight: 500;
        }

        .view-btn {
          margin-block: 1rem;
          background-color: var(--dark);
          color: var(--white);
          text-transform: uppercase;
          outline: none;
          border: none;
          padding: 0.4em 1em;
          cursor: pointer;
          border-radius: 2rem;
          display: inline-block;
          font-size: var(--font-small);

          &:hover {
            scale: 1.1;
          }
        }
      }
    }
  }

  .all-projects .item .answer.active {
    max-height: max-content;
    display: block;
    overflow: none;
  }
}

/* contact */
#contact {
  width: 100%;
  max-width: 2000px;
  min-height: 60rem;
  /* border: 2px solid crimson; */
  margin-inline: auto;
  background-color: var(--moredark);
  padding: 5rem 5%;

  > h2 {
    font-size: var(--font-h1);
    text-transform: capitalize;
    color: var(--white);
    position: relative;
  }
  > h2::before {
    content: " ";
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, var(--white) 30%, var(--black) 90%);
    position: absolute;
    bottom: -0.4rem;
  }

  .contact-container {
    height: 50rem;
    /* border: 2px solid white; */
    display: flex;
    margin-block:2rem ;
    gap: 2rem;

    .contact-box {
      width: 50%;
      height: 100%;

      /* border: 2px solid orangered; */

      > form {
        color: var(--white);
        padding-block:1rem ;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 100%;
              /* border: 2px solid orangered; */

        .inp-box {
          /* border: 1px solid goldenrod; */
          position: relative;
          padding: 1.5rem 1rem;

          .input {
            width: 98%;
            background: transparent;
            padding: 1rem;
            color: var(--white);
            font-size: var(--font-body);
            border: none;
            outline: none;
            border: 1px solid var(--white);
            border-radius: 1rem;
          }

          .textarea{
            width: 98%;
            background: transparent;
            padding: 1rem;
            color: var(--white);
            font-size: var(--font-body);
            border: none;
            outline: none;
            border: 1px solid var(--white);
            border-radius: 1rem;
            resize: none;
            height: 10rem;
          }

          .label {
            font-size: var(--font-body);
            text-transform: capitalize;
            position: absolute;
            top: 2.3rem;
            left: 1.5rem;
            padding: .1em .4em;
            /* border: 1px solid crimson; */
            background-color: var(--moredark);
            transition: all .2s ease;
          }

          input:focus ~ label,
          input:valid ~ label ,
          .textarea:focus ~ label,
          .textarea:valid ~ label{
            top: 5px;
            font-size: var(--font-small);
            left: 2.2rem;
          }
          
        }

        .form-btn{
          /* border: 2px solid white; */
          margin-inline: 1rem;
          display: flex;
          justify-content: space-between;

          input{
            background-color: var(--grey);
            outline: none;
            border: none;
            font-size: var(--font-body);
            text-transform: uppercase;
            font-weight: 500;
            color: var(--white);
            padding: .5em .8em;
            border-radius: 1rem;
            cursor: pointer;
            display: inline-block;

            &:hover{
              scale: 1.1;
            }
          }
        }
      }
    }

    .contact-box:nth-child(2) {
      background-color: var(--black);
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      justify-content: space-around;
      position: relative;
      z-index: 10;

      .angle{
        height: 50px;
        width: 50px;
        top: 10%;
        left: -4%;
        transform: rotate(134deg);
        background-color: var(--black);
        z-index: -1;
        /* border: 2px solid white; */
        position: absolute;
      }

      > h2 {
        font-size: var(--font-h3);
        text-transform: capitalize;
        font-weight: 700;
      }

      > p {
        font-size: var(--font-body);
        text-transform: capitalize;
        font-weight: 400;
        line-height: 2.5rem;
        margin-block: 1rem;
        color: var(--white);
      }

      .contact-links {
        /* border: 2px solid white; */

        > a {
          display: flex;
          gap: 1.2rem;
          margin-block: 1rem;
          color: var(--white);
          font-weight: 600;
          align-items: center;
          font-size: var(--font-body);
          overflow-wrap: anywhere;

          i {
            color: var(--dark);
            font-size: var(--font-h4);
          }
        }
      }

      > h3 {
        font-size: var(--font-h4);
        text-transform: capitalize;
      }
      /* connect links */
      .connect-links {
        /* border: 2px solid white; */
        margin-block: 1rem;
        display: flex;
        gap: 1.5rem;

        > a {
          display: inline-block;

          > i {
            font-size: var(--font-body);
            color: var(--white);
            background-color: var(--moredark);
            padding: 0.5em;
            border-radius: 0.2em;
          }
        }
      }
    }


  }
}


/* footer */
#footer{
  width: 100%;
  min-height:  max-content;

  margin: 0 auto;
  border: 2px solid transparent;
  background-color: var(--dark);
  padding-inline: 5%;
  padding-block-start: 5rem;
  position: relative;

  >h2{
    text-transform: capitalize;
    font-size: var(--font-h1);
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--white);

  }

  >ul{
    /* border: 2px solid white; */
    /* display: flex;
    flex-wrap: wrap; */
    display: grid;
    margin-block: 12rem;
    grid-template-columns: repeat(auto-fit,minmax(290px,1fr));

    .logo-img{
      width: 10rem;
      height: 10rem;
      object-fit: contain;
      border: 2px solid var(--white);
      border-radius: 50%;
      margin-block-end: 1.9rem;
  }

  >li{
    /* border: 2px solid chartreuse; */
    padding: 1.5rem;
    list-style: none;
    /* max-width: 100%;
    min-width: 28rem; */


    >h3{
      text-transform: uppercase;
      font-size: var(--font-h4);
      color: var(--white);
      letter-spacing: .1rem;

    }

    >p{
      font-size: var(--font-body);
      color: white;
      line-height: 2.3rem;
    }

    >ol{
      margin-block: 1rem;
      list-style: none;
      >li{
        /* border: 2px solid saddlebrown; */
        >a{
          text-transform: capitalize;
          font-size: var(--font-body);
          color: var(--white);
          /* border: 2px solid coral; */
          display: block;
          font-weight: 500;
          transition: all .1s ease;
          border-radius: .5rem;
          padding:1rem .4rem;


          &:hover{
            color: var(--dark);
            background-color: var(--grey);
          }

          
          >i{
            color: var(--white);
            margin-inline-end: 1rem;
            display: inline-block;
          }
        }

        >a:hover  i{
          scale: 1.3;
          color: var(--moredark);
        }
      }
    }
  }
}

.copy-right{
  /* border: 2px solid rgb(211, 9, 9); */
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  max-width: 2000px;
  background-color: var(--moredark);
  padding: 1rem;

  >p{
    text-align: center;
    font-size: var(--font-small);
    color: var(--white);
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: 2px;
    word-spacing: 3px;
  }
}
}

/* ------------------------------------- media queries ------------------------------------------------ */
/* Tablet (768px) */

@media (max-width: 880px) {
  #main {
    .hero-img {
      .profile-img {
        width: 38rem;
      }
    }
  }
}

@media (max-width: 768px) {
  :root {
    --font-h1: 4rem; /* 40px */
    --font-h2: 3.2rem; /* 32px */
    --font-h3: 2.6rem; /* 26px */
    --font-h4: 2.2rem; /* 22px */
    --font-h5: 1.8rem; /* 18px */
    --font-body: 1.6rem; /* 16px */
    --font-small: 1.4rem; /* 14px */
    --font-very-small :12px;
  }

  /* body */
  body {
    border: unset;
  }

  /* header */
  #header {
    .navbar {
      .ham-btn {
        display: block;
      }

      #nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100dvh;
        max-height: 70rem;
        overflow: auto;
        box-shadow: 0 0 3rem var(--white);
        flex-direction: column;
        width: 80%;
        text-align: center;
        border-radius: unset;
        border-start-start-radius: 50%;
        border-end-start-radius: 50%;
        transition: all 0.3s ease;
        background-color: var(--black);


        > .ham-btn {
          align-self: flex-end;
          /* border: 1px solid white; */
          border-radius: unset;
          text-align: right;
          width: 100%;
          margin: 1.9rem 1.7rem;
        }

        > .menu-link {
          padding: 2rem 0;
          background-color: transparent;


          >span::before{
            background-color: var(--moredark);
          }

          &:hover {
            background-color: var(--white);
            color: var(--moredark);
            box-shadow:  0 0 1rem var(--white);
          }
        }
      }

      .ham-btn {
        background-color: var(--black);
        height: 3rem;
        width: 3rem;
        border-radius: 50%;
      }

      #nav.menu-active {
        right: 0;
      }
    }
  }

  .cursor{
    display: none;
  }

  /* main */

  #main {
    flex-direction: column-reverse;
    position: relative;
    /* border: 5px solid greenyellow; */
    padding-block: .5rem;

    /* hero img */
    .hero-img {
      width: 100%;
      display: flex;
      justify-content: center;
      position: absolute;
      top: 5rem;
      height: calc(100% - 5rem);
      z-index: 10;
      /* profile img */
      .profile-img {
        object-fit: contain;
        align-self: flex-end;
      }
    }

    .hero-img::before {
      content: " ";
      height: 100%;
      width: 100%;
      position: absolute;
      background: linear-gradient(
        rgba(128, 128, 128, 0),
        rgba(0, 0, 0, 0.863) 60%
      );
      z-index: 12;
    }

    /* hero text */
    .hero-text {
      position: absolute;
      width: 100%;
      align-items: center;
      z-index: 20;

      > p {
        text-align: center;
      }

      .hero-link {
        justify-content: center;
        flex-direction: column;
        align-items: center;

        > a {
          width: max-content;
          text-align: center;
          padding: 0.4em 1em;
        }
      }
    }
  }

  #education{

    .education-timeline{

      >ul {
        display: flex;
        flex-direction: column;
        gap: 4.5rem;
        &::before{
          left: 2%;
          /* position: unset; */
          /* display: none; */
        }
        >li{
          width: 100%;
          margin-block: 2rem;
          /* background-color: orange; */
          margin: 2rem unset;
          align-self: flex-end;


          >.date{
            left: unset;
            right: 0;
          }

          &::before{
            content: ' ';
            height: 15px;
            width: 15px;
            border-radius: 50%;
            background-color: var(--white);
            position: absolute;
            left: 0;
            transform: translateX(-20px);
            /* display: none; */
          }

          &:nth-child(even){
            align-self: unset;
            align-self: flex-end;
  
            &::before{
              content: ' ';
              height: 15px;
              width: 15px;
              border-radius: 50%;
              background-color: var(--white);
              position: absolute;
              left: 0;
              transform: translateX(-20px);
            }
          }
        }



      }
    }
  }

}

/* Mobile Large (646px) */
@media (max-width: 646px) {
  :root {
    --font-h1: 3.2rem; /* 32px */
    --font-h2: 2.6rem; /* 26px */
    --font-h3: 2.2rem; /* 22px */
    --font-h4: 2rem; /* 20px */
    --font-h5: 1.6rem; /* 16px */
    --font-body: 1.6rem; /* 16px */
    --font-small: 1.2rem; /* 12px */
    --font-very-small :11px;
  }

  #skills {
    /* border: 2px solid white; */
    min-height: max-content;
    .skills-wrapper {
      display: flex;
      /* border: 2px solid white; */
      overflow-x: scroll;
      scroll-snap-type: x mandatory;
      .skills-box {
        max-width: 340px;
        min-width: 250px;
        flex-shrink: 0;
        scroll-snap-align: center;
      }
    }
  }

  #contact {
    .contact-container {
      flex-direction: column-reverse;
      height: unset;

      .contact-box {
        width: 100%;
      }

      .contact-box:nth-child(2){
        .angle{
          /* border: 2px solid red; */
          top: 92%;
          left: unset;
          right: 1rem;
          /* bottom: 50%; */
  

      }

      }
    }
  }


  #footer{
    >ul{
      margin-block: 3rem;
    }
  }
}

/* Mobile Medium (425px) */
@media (max-width: 425px) {
  :root {
    --font-h1: 2.8rem; /* 28px */
    --font-h2: 2.4rem; /* 24px */
    --font-h3: 2rem; /* 20px */
    --font-h4: 1.8rem; /* 18px */
    --font-h5: 1.6rem; /* 16px */
    --font-body: 1.4rem; /* 14px */
    --font-small: 1.2rem; /* 12px */
    --font-very-small :10px;
  }

  }

  #skills {
    padding-inline: 2%;
    .skills-wrapper {
      padding: 0;
      row-gap: 2rem;
      .skills-box {
        border: unset;
      }
    }
  }

/* Mobile Small (360px) */
@media (max-width: 360px) {
  :root {
    --font-h1: 2.4rem; /* 24px */
    --font-h2: 2rem; /* 20px */
    --font-h3: 1.8rem; /* 18px */
    --font-h4: 1.6rem; /* 16px */
    --font-h5: 1.4rem; /* 14px */
    --font-body: 1.4rem; /* 14px */
    --font-small: 1.2rem; /* 12px */
    --font-very-small :9px;
  }

  #main {
    .hero-img {
      .profile-img {
        width: 34rem;
      }
    }
  }

  #about {
    .about-link {
      /* border: 2px solid white; */
      width: 100%;
    }
  }
}
