:root {
  /* --grey-text:#9DB2BF;
    --white-text:#DDE6ED;



    --main-color:#526D82;
    --second-color:#526D82;
    --third-color:#9DB2BF;
    --bg-color: #27374D; */

  --grey-text: #a2b5d8f5;
  --white-text: #dde2ed;

  --main-color: #5e5df0;
  --second-color: rgb(25, 17, 73);
  --third-color: rgb(173, 96, 235);
  --bg-color: rgb(14, 10, 38);
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  /* border: 1px solid sandybrown; */
}

body {
  background-color: var(--bg-color);
  color: var(--white-text);
  font-family: "Lato", sans-serif;
  font-size: 1.1rem;
}
/* ------------------------------------------------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: 8px 18px;
  touch-action: manipulation;
  width: fit-content;
  border: 0;
  margin: 1vw;
}

.btn2 {
  background: var(--second-color);
  box-shadow: var(--second-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;
}

/* ------------------------------------------------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%;
}
#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);
}

/* ------------------------------------------------section 2------------------------------------------------ */

.section2box {
  display: flex;
  justify-content: space-around;
  margin: 100px 20px;
  gap: 7vw;
}

.section2-left {
  /* margin-left: 5vw; */
}

.section2-left img {
  max-width: 350px;
}
.section2-right {
  /* margin-right: 5vw; */
}

.right-box {
  display: flex;
  gap: 10%;
  color: var(--grey-text);
  padding: 20px 30px;
  max-width: 600px;
}

.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 p {
  width: clamp(20ch, 90%, 45ch);
  font-size: 1rem;
  margin-top: 15px;
}

.info-title {
  color: var(--white-text);
  font-weight: 700;
}

.work-info-box {
  min-width: 200px;
}

/* ------------------------------------------------section 3------------------------------------------------ */

.section3box {
  margin: 100px 20px;
  margin-bottom: 100px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  gap: 7vw;
}

.section3-left {
  margin-right: 5vw;
}
.section3-left img {
  max-width: 350px;
  margin-top: 105px;
}
.section2-right {
  margin-right: 5vw;
}

.skill-bar {
  display: flex;
  flex-wrap: wrap;
  width: clamp(250px, 40vw, 400px);
  margin: 40px 5vw;
  row-gap: 5px;
}

.skill-num {
  margin-left: auto;
}

.outer-bar {
  width: 100%;
  height: 10px;
  background-color: var(--grey-text);
  border-radius: 20px;
}
.inner-bar {
  background-color: var(--main-color);
  border-radius: 15px;
  width: 100%;
  height: 100%;
}
.skill-1 {
  width: 90%;
}
.skill-2 {
  width: 85%;
}
.skill-3 {
  width: 80%;
}
.skill-4 {
  width: 80%;
}
.skill-5 {
  width: 70%;
}

/* ------------------------------------------------section 4------------------------------------------------ */

.section4box {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  justify-content: center;
  margin: 100px 20px;
}

.service-box img {
  width: 75px;
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(115deg)
    brightness(101%) contrast(103%);
  padding: 15px;
}
.service-box {
  padding: 10px;
}
.service-box:hover {
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
}
.service-box:hover .icon-box {
  background-color: none;
}

.icon-box {
  background-color: var(--second-color);
  width: max-content;
  border-radius: 5%;
  padding: 20px 15px;
}
.service {
  display: flex;
}
.text-box {
  margin-left: 25px;
}
.service-title {
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.service-text {
  width: 300px;
  font-size: 1rem;
  color: var(--grey-text);
}

/* ------------------------------------------------section 5------------------------------------------------ */

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  justify-content: center;
  margin: 100px 20px;
}
.project {
  position: relative;
  width: min-content;
}
.prj-img {
  border-radius: 2.5%;
}
.prj-btn {
  position: absolute;
  cursor: pointer;
  left: 30%;
  top: 82%;
}

/* ------------------------------------------------section 6------------------------------------------------ */
.sixSection {
  display: flex;
  gap: 10rem;
  justify-content: space-around;
  align-items: center;
  background-color: var(--second-color);
  padding: 25px 0px;
}
.hire-box h3 {
  font-size: 1.2rem;
  color: var(--white-text);
  font-weight: 600;
}
.hire-box p {
  font-size: 0.95rem;
  color: var(--white-text);
}
/* ------------------------------------------------section 7------------------------------------------------ */
.sevenSection {
  margin: 100px auto;
}
.sevenSection h3 {
  text-align: center;
}
.clients {
  width: 70vw;
  text-align: center;
  margin: 20px auto;
}
.client > div {
  font-size: 1rem;
}
.client p {
  width: 50%;
  min-height: 100px;
  margin: 10px auto;
}
.client img {
  border-radius: 50%;
}
.client h3 {
  font-size: 1rem;
  font-weight: 600;
}
.client div {
  font-size: 0.8rem;
  font-weight: normal;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: var(--grey-text);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active {
  background-color: var(--white-text);
}
.client {
  display: none;
}

/* ------------------------------------------------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: 0 10px;
}
.form-btn {
  margin-block: 20px;
}

.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;
  border-top: 1px solid var(--grey-text);
  width: 70vw;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .section1box .btn {
    padding: 6px 8px;
    margin-top: 25px;
  }

  /* ------------------------------------------------section 2------------------------------------------------ */
  .section2-left img {
    display: none;
  }
  /* ------------------------------------------------section 3------------------------------------------------ */
  .section3-left {
    display: none;
  }
}

@media (max-width: 700px) {
  .nav-left {
    font-size: 1.2rem;
    font-weight: 700;
  }
  .nav-right {
    display: none;
  }
  .section1box .btn {
    padding: 2px 8px;
    margin-top: 50px;
    color: white;
    font-size: 0.75rem;
  }

  h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
  }

  /* ------------------------------------------------section 2------------------------------------------------ */
  .section2-left {
    display: none;
  }

  .section2-right {
    margin: 0 auto;
  }

  .section2box,
  .section3box,
  .section4box,
  .projects,
  .sevenSection,
  .eightSection {
    margin: 50px auto;
  }
  /* ------------------------------------------------section 3------------------------------------------------ */
  .section3-left {
    display: none;
  }
}

@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;
  }
  .section1box .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    width: max-content;
    margin: 20px 0;
    display: block;
    margin-left: 25px;
  }
  .section1-right {
    display: none;
  }
  /* ------------------------------------------------section 2------------------------------------------------ */
  .section2box {
    gap: 0;
  }
  .section2-left {
    margin-left: 0;
  }
  .section2-right {
    margin-right: 0;
  }
  .right-box {
    max-width: 100%;
    gap: 20px;
  }
  /* ------------------------------------------------section 6------------------------------------------------ */
  .service-box img {
    width: 35px;
  }
  .icon-box {
    padding: 8px 6px;
  }
  .service {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .text-box {
    margin-left: 0;
    text-align: center;
  }

  .sixSection {
    gap: 1rem;
  }
  .hire-box h3 {
    font-size: 1rem;
  }
  .hire-box p {
    font-size: 0.75rem;
  }
  /* ------------------------------------------------section 7------------------------------------------------ */
  .client p {
    width: 100%;
  }
  form {
    width: 70vw;
  }
  .footersection {
    padding: 25px 50px;
    margin: 20px auto;
    flex-direction: column-reverse;
    text-align: center;
    font-size: 0.7rem;
    row-gap: 20px;
  }
}
