html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

h1,
p,
ul,
h4,
img {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

.active {
  overflow: hidden !important;
}

a {
  text-decoration: none;
}

/* This is the nav styling */

.nav-item {
  list-style: none;
  background-color: transparent;
  margin: 1px 0;
}

.nav-item a {
  background-color: transparent;
  color: black;
  text-decoration: none;
}

.navbar {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 0 24px;
}

.nav-menu {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: -100%;
  top: 30px;
  gap: 0;
  flex-direction: column;
  background-color: white;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  padding-left: 20px;
  z-index: 1;
}

.nav-menu.active {
  left: 0;
}

.welcome.active {
  visibility: hidden;
  position: relative;
  top: -200px;
}

.nav-link {
  transition: 0.1s ease;
}

.nav-link:hover {
  color: dodgerblue;
}

.hamburger {
  display: block;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.1s ease-in-out;
  background-color: black;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.close-icon {
  cursor: pointer;
  z-index: 1;
  background-color: white;
  width: 100%;
}

/* This is the header styling */

.header-section {
  background-image: url('images/header_background.png');
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-wrap: wrap;

  align-content: center;
  color: #172b4d;
  min-height: 80vh;
  justify-content: center;
  z-index: 0;
}

.header-section h1 {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 52px;
  text-align: center;
  color: #172b4d;
  padding: 30px 10px;
  animation: writer 4s ease-in-out;
  margin: 0 auto;
  z-index: 0;
}

@keyframes writer {
  0% {
    transform: translateX(-250px);
  }

  20% {
    transform: translateY(-100px);
  }

  100% {
    transform: translateX(0);
  }
}

.header-span {
  color: #2d624c;
}

.header-section p {
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  color: #172b4d;
  padding: 0 10px;
}

/* This is the styling for the social icons */

.social-icons {
  display: inline-block;
  padding: 10px;
}

.social-icons:hover {
  color: aqua;
}

.scroll-button {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* The header for my recent works */

.top-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
  margin: 10% 0;
}

.card-title {
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 52px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #172b4d;
}

hr {
  background-color: #294237;
  border-radius: 24px;
  width: 48px;
  height: 4px;
}

/* The main card container */

.card-container {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto auto auto;
  row-gap: 20px;
  flex-wrap: wrap;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ebf0ee;
  padding-top: 150px;
  border: 1px solid #d0d9d4;
  border-radius: 8px;
  margin: 5% 5% 0;
  flex-wrap: wrap;
}

.bottom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: #fff;
  text-align: center;
}

.card h4 {
  font-size: 20px;
  text-align: center;
}

ul {
  margin: 5% 0 0;
  padding: 0;
  display: flex;
  list-style-type: none;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 10px;
}

li,
.Project-technologies1 {
  text-decoration-style: none;
  padding: 8px;
  color: #3a4a42;
  background-color: #ebf0ee;
  flex-wrap: wrap;
  margin: 0 5px;
}

.card-button {
  background-color: #2d624c;
  border-radius: 4px;
  align-items: center;
  padding: 12px;
  gap: 10px;
  margin-top: 5%;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  font-style: normal;
  border-style: none;
  letter-spacing: 0.03em;
}

/* This is the about us section */

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 10%;
  position: relative;
}

.about h1 {
  color: #172b4d;
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
}

.about p {
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  margin-top: 5%;
}

.about-up {
  position: absolute;
  right: 10px;
  top: -50px;
}

.about-down {
  position: absolute;
  bottom: 0;
  left: 0;
}

/* This is the language, frameworks sections */

.sub-language-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  background-color: #ebf0ee;
  border: 1px solid #c1c7d0;
  border-radius: 8px;
  margin: 5% 5% 0;
}

.sub-language-card img {
  /* margin-bottom: 50px; */
  margin-top: 40px;
  transition: transform 1s ease-in;
}

.card-img:hover {
  transform: rotateY(360deg);
}

.sub-language-card h4 {
  /* margin-bottom: 20px; */
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #344563;
}

.sub-language-card ul,
.social {
  margin: 5% 0 0;
  padding: 0;
  display: flex;
  list-style-type: none;
}

.second-card-list li {
  text-decoration-style: none;
  padding: 8px 12px;
  color: #2d624c;
  background-color: white;
  margin: 0 10px;
  border-radius: 8px;
}

.get-in-touch {
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 52px;
  margin: 5% 5% 0;
  text-align: center;
  color: #172b4d;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 5% 5% 0;
}

input,
textarea {
  width: 100%;
  padding: 20px 20px;
  margin: 10px 0;
  border: 1px solid #d0d9d4;
  border-radius: 4px;
  color: #6b778c;
}

/* .btn-div {
  text-align: center;
} */

.form-button {
  background-color: #2d624c;
  border-radius: 4px;
  max-width: 40%;
  padding: 8px;
  margin: 20px 0;
  text-align: center;
  color: #fff;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.03em;
  font-weight: 500;
  transition: margin-right 2s;
}

.form-section {
  position: relative;
}

.right-contact-img,
.middle-contact-img,
.left-contact-img,
.desktop-about-up,
.desktop-about-down,
.sticky-header,
.desktop-popup-container {
  display: none;
}

.contact-image {
  position: absolute;
  right: 0;
  bottom: 70px;
  margin: 0;
}

.email-contact {
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: #42526e;
  text-align: center;
}

textarea {
  resize: vertical;
  border: 1px solid #60c095;
  border-radius: 4px;
}

textarea:hover {
  border-radius: green;
}

.footer {
  visibility: hidden;
}

button {
  /* transition-property: all;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
  transition-delay: 0s; */
  transition: all 0.3s;
}

button:hover {
  background-color: #172b4d;
  transform: translateY(2px);
}

button:active {
  background-color: #ff6163;
}

.form-button:active {
  background-color: #ff6163;
}

.form-button:hover {
  background-color: #1e488f;
}

.popup-mobile {
  background-color: rgb(193, 199, 208, 80%);
  position: fixed;
  z-index: 2;
  width: 100%;
  justify-content: center;
  height: 100vh;
}

.popup-section {
  display: flex;
  flex-direction: column;
  padding: 10px;
  position: fixed;
  background-color: white;
  transition: all 0.4s, top 0.4s;
  margin: 0.5rem 2rem;
  width: 80%;
}

.open-popup {
  visibility: visible;
  position: fixed;
  top: 0;
  transform: scale(1);
  overflow: auto;
  overflow-y: scroll;
}

.popup-img-div {
  position: relative;
}

.popup-img {
  width: 100%;
}

.closepopup {
  position: absolute;
  top: 25px;
  right: 23px;
  width: 30px;
  color: white;
  transition: all 0.3s;
}

.popup-section ul {
  margin: 0;
  justify-content: flex-start;
}

h3 {
  margin: 5px 0;
  font-weight: 700;
  font-size: 28px;
  line-height: 32px;
  color: #172b4d;
}

.popup-section p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #344563;
  margin-top: 20px;
}

.popupbutton-div {
  display: flex;
  gap: 20px;
}

.popup-button {
  width: 45%;
  background-color: #36b37f;
  border-radius: 4px;
  padding: 12px;
  margin: 20px 10px;
  text-align: center;
  color: #fff;
  font-size: 17px;
  line-height: 24px;
  border-style: none;
  letter-spacing: 0.03em;
  font-weight: 500;
  transition: padding 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* .popupbutton-img {
  padding-left: 10px;
} */

.popup {
  display: none;
}

.text {
  width: 100%;
  background-color: #fff;
  color: rgb(205 0 0);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  border: 1px solid rgb(205 0 0);
  border-radius: 4px;
  padding: 2%;
  margin-bottom: 5px;
  display: none;
}

@media screen and (min-width: 768px) {
  .welcome,
  .hamburger {
    visibility: hidden;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    position: fixed;
    top: 0;
  }

  .nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 42%;
    top: 0;
    gap: 0;
    flex-direction: row;
    background-color: transparent;
    text-align: center;
    width: initial;
    transition: 0.3s;
    height: 0;
    font-size: 1rem;
    font-weight: 400;
  }

  ul {
    margin: 0;
    padding: 20px 0;
  }

  .desktop-header {
    background-image: url('images/Header-llustration-desktop.png');
    background-repeat: no-repeat, repeat;
    background-position: center;
    background-size: cover;
    min-height: 110vh;
  }

  .header-section {
    position: relative;
    min-height: 80vh;
    background: none;
    padding: 0 21%;
    margin-top: 5%;
    order: 1;
  }

  .header-section h1 {
    font-size: 48px;
  }

  .header-section p {
    font-size: 20px;
  }

  .scroll-button {
    margin-top: 100px;
  }

  /* this is the work container */

  .top-tile {
    margin: 10% 0 0;
  }

  .card-container,
  .language-card {
    display: grid;
    grid-template-columns: 40% 40%;
    grid-template-rows: auto;
    justify-content: center;
    row-gap: 5px;
    margin-top: 3%;
  }

  .card,
  .sub-language-card {
    margin: 5% 20px 0;
    animation-name: slide;
    animation-duration: 1s;
    animation-timing-function: ease-in;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
  }

  @keyframes slide {
    0% {
      transform: translateY(-150px);
    }

    100% {
      left: 0;
    }
  }

  .about {
    margin-top: 5%;
    padding: 0 21%;
    position: relative;
  }

  .desktop-about-up {
    display: block;
    position: absolute;
    right: 0;
    bottom: 100px;
  }

  .desktop-about-down {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
  }

  .form {
    align-items: flex-start;
  }

  .btn-div {
    text-align: left;
  }

  .form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .right-contact-img {
    position: absolute;
    right: 0;
    display: block;
    visibility: visible;
    bottom: -5%;
  }

  .middle-contact-img {
    position: absolute;
    display: block;
    bottom: 0;
    left: 200px;
  }

  .left-contact-img {
    position: absolute;
    display: block;
    visibility: visible;
    bottom: -90px;
    left: 0;
  }

  .get-in-touch-div {
    width: 33%;
  }

  .get-in-touch {
    font-size: 30px;
  }

  .form-input {
    flex-grow: 60%;
  }

  .social-mobile,
  .contact-image,
  .email-contact,
  .about-down,
  .about-up,
  .nagivationToggle {
    display: none;
  }

  .footer {
    visibility: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
  }

  .footer-rule {
    background-color: #fff;
    width: 100%;
  }

  .main-desktop-popup {
    width: auto;
    background-color: rgb(193, 199, 208, 80%);
    align-items: center;
    z-index: 1;
    position: fixed;
    justify-content: center;
    overflow-y: scroll !important;
    top: 0;
    height: 100vh;
  }

  .desktop-popup-container {
    display: flex;
    padding: 3rem 1rem;
    background-color: white;
    flex-direction: column;
    height: auto;
    width: auto;
  }

  .popup-desktop-img {
    width: 70%;
  }

  .desktop-project-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
  }

  .cancel-icon-desktop {
    position: relative;
    width: 30px;
    text-align: left;
    background-color: white;
  }

  .heading-button-container {
    display: flex;
    margin: 5% 2% 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: white;
  }

  .popup-technologies {
    margin: 0 4%;
    justify-content: flex-start;
    background-color: white;
  }

  .popupbutton-div {
    text-align: center;
    width: 50%;
    align-items: center;
    justify-content: center;
  }

  .btn-live-desktop {
    display: flex;
    justify-content: center;
  }
}

@media screen and (min-width: 1024px) {
  .card-container,
  .language-card {
    display: grid;
    grid-template-columns: 30% 30% 30%;
    grid-template-rows: auto;
    justify-content: center;
    row-gap: 5px;
    margin-top: 3%;
  }

  .card,
  .sub-language-card {
    margin: 5% 20px 0;
    animation-name: slide;
    animation-duration: 1s;
    animation-timing-function: ease-in;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
  }
}
