@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  --primary-white: #fff;
  --secondary-white: #ebebff;
  --primary-light: #6070ff;
  --primary-dark: #172b4d;
  --secondary-dark: #344563;
  --secondary-light: #7f8cff;
  --primary-gray: #7a869a;
  --light-blue: #ebebff;
  --dark-blue: #396df2;
  --dark: #000;
}

body {
  position: relative;
  padding: 0;
  margin: 0;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  background-color: #f7f7f9;
}

h1 {
  margin-top: 8px;
  margin-bottom: 8px;
}

a {
  text-decoration: none;
  cursor: pointer;
}

p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary-dark);
}

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

.btn {
  padding: 12px;
  background-color: #fff;
  border: 1px solid var(--primary-light);
  border-radius: 8px;
  font-weight: 500;
  font-size: 17px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  line-height: 24px;
  text-transform: capitalize;
  color: var(--dark-blue);
  text-align: center;
  cursor: pointer;
  transition-property: color, background-color, filter, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-white);
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
  transform: translateY(-3px);
}

.intro-text {
  font-weight: 700;
  font-size: 40px;
  line-height: 52px;
  color: var(--primary-dark);
}

.call-to-action {
  text-transform: uppercase;
  border: none;
  background-color: transparent;
  padding: 16px 0;
  text-align: center;
  color: var(--secondary-light);
  font-weight: 500;
  font-size: 16px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  line-height: 24px;
}

.no-scroll {
  overflow-y: hidden;
  height: 100%;
  margin: 0;
}

.display-none {
  display: none;
}

.position-fixed {
  position: fixed;
}

#menu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 100;
  background: rgba(6, 29, 243, 0.6);
  backdrop-filter: blur(5px);
}

.menu-layer {
  display: flex;
  flex-direction: column;
  position: relative;
}

.menu-layer a {
  color: var(--secondary-white);
}

.menu-layer button {
  position: absolute;
  top: 16px;
  right: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-layer ul {
  margin-top: 100px;
  font-weight: 600;
  font-size: 32px;
  line-height: 44px;
}

.container {
  margin: 0 24px;
}

.section-margin-t {
  margin-top: 100px;
}

@media screen and (min-width: 576px) {
  .container {
    margin: 0 60px;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin: 0 90px;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    margin: 0 120px;
  }
}

.header-container {
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}

@media screen and (min-width: 576px) {
  .header-container {
    padding: 0 60px;
    height: 72px;
  }
}

@media screen and (min-width: 768px) {
  .header-container {
    padding: 0 90px;
  }
}

@media screen and (min-width: 1200px) {
  .header-container {
    padding: 0 120px;
  }
}

.nav-wrapper ul {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
}

.nav-link {
  display: none;
}

.nav-link a {
  color: var(--secondary-dark);
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 150ms ease-in-out;
}

.nav-link a:hover {
  background-color: #f7f7f9;
}

.menu {
  cursor: pointer;
}

.logo {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  display: block;
  background-color: var(--secondary-light);
  height: 10px;
  width: 20px;
  border-radius: 0 0 15px 15px;
  transition: all 150ms ease-in-out;
  animation: spin 1s ease-in-out;
}

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

  to {
    transform: rotate(360deg);
  }
}

.logo:hover span {
  background-color: var(--primary-gray);
}

@media screen and (min-width: 768px) {
  .menu {
    display: none;
  }

  .nav-link {
    display: block;
  }
}

.hero-wrapper {
  height: 100vh;
  background-image: url('assets/svgs/header-background-mobile.svg');
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-container {
  height: 100%;
  padding: 0 24px;
  background-image: url('assets/svgs/header-shapes\ mobile.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

@media screen and (min-width: 576px) {
  .hero-container {
    padding: 0 60px;
  }
}

@media screen and (min-width: 768px) {
  .hero-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    background-image: none;
  }

  .hero-container {
    background-image: none;
    padding: 0;
  }

  .hero-wrapper-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('assets/svgs/header-background-shape-desktop.svg');
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom-left-radius: 100px;
    z-index: -3;
  }

  .hero-wrapper-shapes {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: calc(100% - 80px);
    background-image: url('assets/svgs/header-shapes-desktop.svg');
    background-repeat: no-repeat;
    background-size: 100% 85%;
    z-index: -2;
  }
}

.hero-container h1 {
  padding-top: 60%;
}

@media screen and (min-width: 540px) {
  .hero-container {
    background-position-y: 100px;
  }

  .hero-container h1 {
    padding-top: 50%;
  }

  .hero-container h1 .break {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .hero-container h1 {
    padding-top: 0;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    max-width: 55%;
  }
}

.social {
  display: flex;
  gap: 16px;
}

.projects-wrapper {
  display: grid;
  row-gap: 100px;
}

.project-container {
  padding: 16px 16px 25px 16px;
  background-color: var(--primary-white);
  border: 1px solid #dfe1e6;
  border-radius: 16px;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

.project-snapshot {
  width: 100%;
  height: 42%;
  display: block;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
  transition: filter 250ms ease-in-out;
}

.project-snapshot:hover {
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

@media screen and (min-width: 768px) {
  .project-container {
    display: flex;
    gap: 46px;
    padding: 16px;
  }

  .project-snapshot {
    height: 60vh;
    flex: 1 1 100%;
  }

  .project-content {
    flex: 1 1 100%;
  }

  .project-container .odd {
    order: 999;
  }
}

.project-snapshot img {
  width: 100%;
  height: 100%;
}

.project-container h2 {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  text-transform: capitalize;
}

.project-details {
  display: flex;
  gap: 12px;
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
}

.project-details .client-name {
  color: var(--secondary-dark);
}

.project-details .role,
.yearlb {
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-gray);
}

.project-container .btn {
  margin-top: 40px;
}

.technologies-used {
  display: flex;
  gap: 8px;
}

.technologies-used li {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  text-transform: lowercase;
  color: var(--primary-light);
  padding: 4px 12px;
  background-color: var(--light-blue);
  border-radius: 8px;
}

.lang-list li {
  display: flex;
  align-items: center;
  padding: 9px;
  gap: 16px;
  background-color: #f7f7f9;
  border-radius: 8px;
  margin: 10px 0;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: #253858;
}

@media screen and (min-width: 768px) {
  .lang-list {
    display: flex;
    gap: 12px;
    max-width: 70%;
  }

  .lang-list li {
    flex: 1 1 0;
    flex-direction: column;
    align-items: start;
    justify-content: start;
  }
}

#project-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(200, 203, 233, 0.2);
  backdrop-filter: blur(5px);
}

.popup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.popup-container {
  position: relative;
  padding: 16px;
  background-color: var(--primary-white);
  margin: 16px;
  height: 85%;
  border-radius: 16px;
  overflow-y: scroll;
}

@media screen and (min-width: 768px) {
  .popup-container {
    width: 55%;
  }
}

.popup-container h2 {
  margin: 0 0 3px 0;
}

.popup-container ul {
  margin-bottom: 16px;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}

.popup-snapshot {
  height: 40%;
}

@media screen and (min-width: 768px) {
  .popup-snapshot {
    height: 75%;
  }
}

.popup-snapshot img {
  width: 100%;
  height: 100%;
}

.popup-content {
  margin-top: 16px;
}

@media screen and (min-width: 992px) {
  .popup-content {
    display: flex;
    gap: 20px;
  }
}

.popup-content p {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--secondary-dark);
  width: 95%;
}

.popup-content .technologies-used {
  flex-wrap: wrap;
  width: 90%;
  border-bottom: 1px solid #ebecf0;
  padding-bottom: 16px;
  margin-top: 16px;
}

.popup-content .technologies-used li:nth-child(n+4) {
  display: none;
}

@media screen and (min-width: 992px) {
  .popup-content .technologies-used li:nth-child(n+4) {
    display: block;
  }

  .popup-content .technologies-used {
    margin-top: 0;
  }
}

.popup-content .btn-wrapper {
  display: flex;
  gap: 30px;
}

.popup-content .btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 15px;
}

@media screen and (min-width: 992px) {
  .popup-content .btn-wrapper {
    display: flex;
    gap: 10px;
  }
}

.popup-content .btn svg {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

.popup-content .btn svg path {
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 300ms;
}

.popup-content .btn:hover svg path {
  fill: var(--primary-white);
}

.about-wrapper {
  padding-top: 100px;
  padding-bottom: 200px;
  background-image: url(assets/svgs/about-bg.svg);
  background-size: cover;
}

.about-container .btn {
  margin-top: 24px;
}

@media screen and (min-width: 768px) {
  .about-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }

  .about-wrapper {
    background-image: url('assets/svgs/about-bg-desktop.svg');
  }
}

.tools-title {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-right: 30px;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: var(--dark);
  text-transform: capitalize;
}

@media screen and (min-width: 768px) {
  .tools-title .title {
    padding-left: 16px;
  }
}

.b-bottom {
  border-bottom: #dfe1e6 1px solid;
}

.contact-wrapper {
  margin-top: -100px;
  padding-bottom: 50px;
  background-image: url('assets/svgs/contact-bg.svg');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -4;
}

.contact-container {
  padding: 103px 24px 0 24px;
  background-image: url('assets/svgs/contact-form-shapes-mobile.svg');
  background-size: 65% 99%;
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: 15px;
  z-index: -2;
}

@media screen and (min-width: 576px) {
  .contact-container {
    margin: 0 60px;
  }
}

@media screen and (min-width: 768px) {
  .contact-wrapper {
    padding-bottom: 0;
    background-image: url('assets/svgs/contact-bg-desktop.svg');
  }

  .contact-container {
    padding: 10% 20% 10% 20%;
    background-image: url('assets/svgs/contact-shapes-desktop.svg');
    background-size: 100% 100%;
    background-position-x: 0;
    background-position-y: 15px;
    margin: 0 40px;
  }
}

@media screen and (min-width: 1200px) {
  .contact-container {
    padding: 10% 30% 10% 30%;
  }
}

form {
  display: flex;
  flex-direction: column;
  align-items: start;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

@media screen and (min-width: 768px) {
  form {
    align-items: center;
  }
}

.contact-container form {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.contact-container .intro-text {
  text-align: center;
  color: var(--primary-white);
}

.contact-container p {
  text-align: center;
  color: var(--secondary-white);
  font-size: 20px;
  line-height: 28px;
  padding-bottom: 30px;
}

.contact-container input,
textarea {
  width: 100%;
  background-color: var(--primary-white);
  margin-bottom: 20px;
  border-radius: 8px;
  border-color: transparent;
  color: var(--dark);
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-weight: 400;
  padding: 15px 38px 15px 16px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.contact-container input {
  font-size: 17px;
  line-height: 20px;
}

.contact-container textarea {
  height: 170px;
  font-size: 15px;
  line-height: 24px;
}

.contact-container button {
  margin-top: 3px;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
  transition: all 300ms ease-in-out;
}

.contact-container button:hover {
  transform: translateY(-3px);
}

.button-wrapper {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  .button-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

.button-wrapper .error {
  color: red;
  background-color: rgb(255, 255, 255, 0.3);
  font-size: 11px;
  padding: 2px 10px;
  margin-top: 18px;
  border-radius: 5px;
}

@media screen and (min-width: 768px) {
  .button-wrapper .error {
    margin-top: 16px;
    margin-left: 16px;
    font-size: 12px;
  }
}
