:root {
  /* --grey-text:#9DB2BF;
    --white-text:#DDE6ED;



    --main-color:#526D82;
    --second-color:#526D82;
    --third-color:#9DB2BF;
    --bg-color: #27374D; */

  --grey-text: #d6d0def5;
  --white-text: #dde2ed;

  --main-color: #5e5df0;
  --second-color: rgb(25, 17, 73);
  --third-color: rgb(173, 96, 235); /*#AD60EB*/
  --bg-color: rgb(14, 10, 38);
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
  /* border: 1px solid sandybrown; */
}

body {
  background-color: var(--bg-color);
  color: var(--white-text);
  font-family: "Lato", sans-serif;
  font-size: 1.1rem;
  user-select: none;
}
/* ------------------------------------------------utilites------------------------------------------------ */
h1 {
  font-family: "Crimson Text", serif;
  font-style: italic;
  font-size: clamp(1rem, 4vw + 0.5rem, 3.5rem);
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
  font-family: "Crimson Text", serif;
  font-style: italic;
}

.btn {
  background: var(--main-color);
  border-radius: 999px;
  box-shadow: var(--main-color) 0 10px 20px -10px;
  box-sizing: border-box;
  color: var(--white-text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 24px;
  opacity: 1;
  outline: 0 solid transparent;
  padding: 14px 18px;
  touch-action: manipulation;
  width: fit-content;
  border: 0;
  text-decoration: none;
}
.buttons {
  display: flex;
}

.btn:hover {
  box-shadow: var(--third-color) 0 10px 20px -10px;
}

.btn2 {
  background: var(--second-color);
  box-shadow: var(--second-color) 0 10px 20px -10px;
}
.btn2:hover {
  background: var(--main-color);
  box-shadow: var(--main-color) 0 10px 20px -10px;
}

#scrollToTopBtn {
  background-color: black;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  line-height: 48px;
  width: 48px;
  position: static;
  top: 88vh;
}

/* ------------------------------------------------navbar------------------------------------------------ */
.nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  /* background-color: var(--second-color); */
}

.nav ul {
  display: flex;
  column-gap: 25px;
}

.nav li {
  list-style: none;
}

.nav li a {
  text-decoration: none;
  color: var(--white-text);
}

.nav li a:hover {
  color: var(--third-color);
  padding: 1px;
}

.nav-left {
  font-size: 1.5rem;
  font-weight: 700;
}
#menu,
.nav-mb-right {
  display: none;
}
/* ------------------------------------------------section 1------------------------------------------------ */

.section1box {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 55px auto;
}

.section1-left {
  width: 40vw;
  font-size: clamp(1rem, 2.75vw + 0.5rem, 3rem);
  /* line-height: 3.5rem; */
  font-weight: 500;
  margin-left: 5%;
  display: flex;
  flex-direction: column;
  row-gap: 25px;
}
#greetings {
  font-weight: 200;
  font-family: satisfy, serif;
  font-style: normal;
  margin-bottom: 10px;
}

#element {
  color: var(--third-color);
  font-family: "Crimson Text", serif;
  font-style: italic;
  font-weight: 600;
}

.section1-right {
  width: 30vw;
}

.rightSection img {
  max-width: 80%;
  margin: 50px auto;
  filter: hue-rotate(35deg);
}
.hey {
  text-decoration: none;
  color: var(--third-color);
  text-shadow: 2px 1px 4px #5e5df0;
  border-radius: 25px;
  padding: 0px 2px;
}
/* ------------------------------------------------section 2------------------------------------------------ */
.secondSection,
.fifthSection {
  scroll-margin-top: 50px;
}
.section2box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin: 50px 25px;
  padding-block: 3vw;
  gap: 7vw;
}

.section2-left img {
  width: clamp(12.5rem, 8.8942rem + 14.4231vw, 21.875rem);
  filter: drop-shadow(2px 4px 2px #6e07f3);
}
.section2-right {
  background-color: rgba(66, 53, 117, 0.047);
  color: var(--grey-text);
  width: clamp(40ch, 60%, 55ch);
  padding: 20px 20px;
  line-height: 1.5;
  font-size: clamp(0.875rem, 0.7463rem + 0.4902vw, 1.1875rem);
  box-shadow: 5px 5px 1px 1px #6e07f3;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(114, 12, 223, 0.816);
  letter-spacing: 0.2px;
  word-spacing: 1.5px;
}

.right-box {
  display: flex;
  gap: 10%;
  color: var(--grey-text);
  padding: 20px 30px;
  max-width: 600px;
  border-radius: 25px;
}

.right-box:hover {
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rightSection2 li {
  list-style: none;
}
.info-box {
  margin: 10px auto;
}
.info-box p {
  background-color: rgba(66, 53, 117, 0.047);
  width: clamp(20ch, 75%, 70ch);
  padding: 20px 20px;
  line-height: 1.5;
  font-size: 1.25rem;
  box-shadow: 5px 5px 1px 1px #6e07f3;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(114, 12, 223, 0.816);
}

.info-title {
  color: var(--white-text);

  font-weight: 700;
}

.work-info-box {
  min-width: 200px;
}

/* ------------------------------------------------section 3------------------------------------------------ */

/* ------------------------------------------------section 5------------------------------------------------ */

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  justify-content: center;
  margin: 100px 20px;
}

.prj-container {
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 300px;
  border-radius: 24px;
}

.pr-caption {
  position: absolute;
  height: 100%;
  opacity: 0;
  transition: 0.45s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  width: 100%;
  padding-inline: 25px;
  text-align: center;
  align-items: center;
}

.pr-img img {
  display: block;
  height: auto;
  width: 100%;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  -webkit-transform: scale(1);
  transform: scale(1);
  transition: 0.25s ease-in-out;
}

.prj-container:hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.prj-container:hover .pr-caption {
  opacity: 1;
}
.pr-text {
  font-size: 1.2rem;
  line-height: 1.6rem;
}
.pr-btn {
  border-radius: 25px;
  color: var(--white-text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 20px;
  touch-action: manipulation;
  width: fit-content;
  border: 2px solid var(--main-color);
  text-decoration: none;
  background: var(--main-color);
}
.pr-btn:hover {
  box-shadow: var(--third-color) 0 10px 20px -10px;
}
.pr-tools {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 25px;
}
.pr-tool {
  border: 2px solid var(--main-color);
  border-radius: 25px;
  font-size: 0.7rem;
  padding: 6px 8px;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.45s ease-in-out;
  background-color: var(--second-color);
}

.prj-container:hover .overlay {
  opacity: 0.98;
}
/* ------------------------------------------------section 6------------------------------------------------ */
.sixSection {
  display: flex;
  gap: 5vw;
  justify-content: space-around;
  align-items: center;
  background-color: var(--second-color);
  padding: 25px 0px;
}
.hire-box h3 {
  font-size: clamp(1rem, 0.9038rem + 0.3846vw, 1.25rem);
  color: var(--white-text);
  font-weight: 600;
}
.hire-box p {
  font-size: 0.95rem;
  color: var(--white-text);
}
/* ------------------------------------------------section 7------------------------------------------------ */

/* ------------------------------------------------section 8------------------------------------------------ */
.eightSection {
  margin: 60px auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 25px auto 25px;
  flex-wrap: wrap;
}
form > div {
  width: clamp(200px, 60vw, 500px);
  display: flex;
  justify-content: center;
}
input {
  width: 95%;
  height: 30px;
  border-radius: 20px;
  padding: 0 10px;
}
textarea {
  width: 95%;
  border-radius: 20px;
  padding: 10px 10px;
}
.form-btn {
  margin-block: 20px;
  line-height: normal;
  font-weight: 500;
}

.links li {
  list-style: none;
}
.links li img {
  fill: var(--white-text);
  width: 40px;
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(115deg)
    brightness(101%) contrast(103%);
}
.links ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ------------------------------------------------footer------------------------------------------------ */
.footersection {
  padding: 50px 50px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--grey-text);
  width: 70vw;
  justify-content: space-between;
}

@media (max-width: 900px) {
  /* ------------------------------------------------section 2------------------------------------------------ */
  .btn {
    line-height: 1;
  }
  .rightSection img {
    max-width: 100%;
  }
  /* ------------------------------------------------section 3------------------------------------------------ */
}

@media (max-width: 700px) {
  .nav {
    justify-content: space-between;
    margin-inline: 30px;
  }
  .nav-left {
    font-size: 1.2rem;
    font-weight: 700;
  }
  .nav-right {
    display: none;
  }
  .nav-mb-right {
    display: block;
  }

  h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
  }
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    cursor: pointer;
    width: 30px;
    height: 20px;
  }

  .menu-icon-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s, opacity 0.3s;
  }

  .menu-icon.open .menu-icon-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-icon.open .menu-icon-line:nth-child(2) {
    opacity: 0;
  }

  .menu-icon.open .menu-icon-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  #menu {
    display: none;
    position: absolute;
    top: -120px;
    right: 10px;
    background-color: rgb(14, 10, 38, 0.95);
    border: 1px solid var(--third-color);
    border-radius: 16px;
    padding: 10px;
    min-width: 150px;
    z-index: 5;
    opacity: 0.5;
    transition: 0.9s;
  }

  #menu.open {
    display: block;
    top: 80px;
    opacity: 1;
    transition: 0.9s;
  }

  #menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }

  #menu ul li {
    padding: 10px;
    border-bottom: 1px solid rgb(173, 96, 235, 0.75);
  }

  #menu ul li:last-child {
    border-bottom: none;
  }

  #menu ul li a {
    color: #fff;
    text-decoration: none;
  }

  #menu ul li a:hover {
    color: rgb(192, 172, 207);
  }
  /* ------------------------------------------------section 2------------------------------------------------ */

  .section2box,
  .section3box,
  .section4box,
  .projects,
  .sevenSection,
  .eightSection {
    margin: 50px auto;
  }
  /* ------------------------------------------------section 3------------------------------------------------ */
  .prj-img {
    width: 250px;
  }
}

@media (max-width: 550px) {
  .nav-right {
    display: none;
  }

  h2 {
    font-size: 1.25rem;
  }
  .section1-left {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 85%;
    margin: 25px auto;
    text-align: center;
  }
  .buttons {
    margin-top: 0;
  }

  #greetings {
    margin-bottom: 40px;
    font-size: 46px;
  }
  .section1-right {
    display: none;
  }
  .prj-img {
    width: 225px;
  }
  /* ------------------------------------------------section 2------------------------------------------------ */

  /* ------------------------------------------------section 6------------------------------------------------ */

  /* ------------------------------------------------section 7------------------------------------------------ */

  form {
    width: 70vw;
  }
  .footersection {
    padding: 25px 50px;
    margin: 20px auto;
    flex-direction: column-reverse;
    text-align: center;
    font-size: 0.7rem;
    row-gap: 20px;
  }
}
.animation {
  -webkit-transform: translateY(-50px);
  transform: translateY(-50px);
  transition: all 0.5s ease-out;
  transition-delay: 0.4s;
  opacity: 0;
}

.scroll-animation {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}
