@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cormorant Garamond", serif;
}

html {
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

html::-webkit-scrollbar {
  width: 0px; /* For Chrome, Safari, and Opera */
}

html {
  scroll-behavior: smooth;
}

body {
  /* background-color: #f7f3f0; */
  background-color: #fffff3;
}

body.stop-scrolling {
  height: 100%;
  overflow: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.container {
  width: 90%;
  margin: 0 auto;
}

.noise::before {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
  background: url(../img/noise.gif);
}

.portfolio .noise::before {
  z-index: 0;
  opacity: 0.02;
}

.loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fffff3;
  pointer-events: none;
  z-index: 10;
}

@keyframes fadeout {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.count {
  color: white;
  font-weight: 700;
  mix-blend-mode: difference;
  z-index: 21;
}

.loader {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: black;
}

.close,
.open {
  cursor: pointer;
}

/* HEADER */
.header {
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  position: relative;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 5rem;
}

.navbar-left,
.navbar-right {
  display: flex;
}

.navbar-right {
  gap: 2rem;
}

.navlink {
  font-weight: 700;
  font-size: 1.25rem;
}

.navlink,
.nav-sociallink {
  color: black;
}

.nav-sociallink i {
  color: black;
}

.lang .navlink.active::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 50%;
  height: 2px;
  width: 20px;
  background-color: rgba(0, 0, 0, 0.2);
}

.lang .navlink {
  position: relative;
  color: gray;
  transition: color 0.3s ease;
}

.lang .navlink.active {
  color: black;
}

.lang .navlink:hover {
  color: black;
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 5rem;
}

.hero-header {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 400;
}

.hero-header span {
  position: relative;
  right: -112px;
}

.hero-right {
  margin-left: auto;
}

.hero-img {
  width: 100%;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.hero-img:hover {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}

.hero-alt-header {
  text-transform: uppercase;
  text-align: center;
  padding: 2rem 0;
  font-weight: 400;
}

/* ABOUT */
.about {
  margin: 10rem auto;
}

.about-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.about-img {
  width: 100%;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.about-img:hover {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}

.about-header {
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.about article {
  width: 80%;
  margin-bottom: 4rem;
  font-size: 1.15rem;
}

.about-parag-two {
  color: gray;
  font-weight: 500;
}

.about-btn {
  position: relative;
  color: #f7f3f0;
  background-color: #333;
  padding: 1rem 2rem;
  z-index: 10;
  transition: box-shadow 0.1s ease;
}

.about-btn:hover {
  box-shadow: 5px 5px rgba(0, 0, 0, 0.3);
}

/* SKILLS */
.skills {
  margin: 5rem auto;
}

.swiper-wrapper img {
  width: 100px !important;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

/* EXPERTISE */
.expertise {
  margin: 10rem auto;
}

.expertise-header {
  text-transform: uppercase;
}

.expertise-sub-header {
  text-transform: capitalize;
  padding: 2rem 0;
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.expertise-sub-header:nth-child(4) {
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.expertise-card-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: none;
}

.expertise-card {
  position: relative;
  background-color: #fffff3;
  display: none;
}

.expertise-card .close-btn {
  position: absolute;
  font-size: 2rem;
  cursor: pointer;
}

.expertise-card-header {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.expertise-card-article {
  width: 80%;
  color: gray;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.expertise-list-item {
  color: gray;
  font-size: 1.2rem;
}

.expertise-list-item i {
  margin-right: 0.5rem;
  color: black;
}

.expertise-list-item:not(:last-child) {
  margin-bottom: 0.5rem;
}

/* PORTFOLIO */
.portfolio {
  background-color: #191919;
  width: 100%;
  padding: 5rem 0;
  margin: 5rem 0;
  position: relative;
}

.portfolio-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  background-color: gray;
}

.portfolio-header {
  position: relative;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  width: 90%;
  margin: 0 auto 3rem;
}

.portfolio-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 5;
}
/* 
.portfolio-card:last-child {
  margin: 0 auto 0 3.2%;
}
*/
.portfolio-img {
  width: 100%;
  margin-bottom: 1rem;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.portfolio-img:hover {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}

.card-header {
  color: white;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* CONTACT */
.contact-header {
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-container {
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

.contact-left {
  width: 50%;
}

.contact-form {
  display: flex;
  align-items: center;
}

.contact-btn {
  width: 220px;
  height: 220px;
  background-color: #191919;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
  transition: box-shadow 0.3s ease;
}

.contact-btn:hover {
  box-shadow: none;
}

.contact-form-right {
  width: 100%;
}

.contact-form-right input,
.contact-form-right textarea {
  width: 100%;
  display: block;
  background-color: transparent;
  outline: none;
  border: none;
  border-left: 2px solid gray;
  border-bottom: 2px solid gray;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  transition: border-color 0.3s ease;
}

.contact-form-right textarea {
  resize: none;
  height: 150px;
  margin: 0 !important;
}

.contact-form-right input:focus,
.contact-form-right textarea:focus {
  border-color: black;
}

.contact-right-header {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-link {
  display: block;
  color: gray;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: black;
}

.contact-link:nth-child(2) {
  margin-bottom: 1rem;
}

/* FOOTER */
.footer {
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-cpy {
  font-size: 1.5rem;
  font-weight: 500;
}

.top {
  text-transform: uppercase;
  font-weight: 500;
  color: #666;
}

.footer-right {
  display: flex;
}

@media screen and (min-width: 360px) {
  .count {
    font-size: 5rem;
  }

  /* NAV */
  .nav-sociallink i {
    font-size: 1rem;
  }

  .navbar {
    position: fixed;
    flex-direction: column;
    top: 0;
    transform: translateX(-100%);
    width: 60vw;
    height: 100vh;
    background-color: #fffff3;
    padding-left: 2rem;
    z-index: 10;
    transition: all 0.3s ease;
  }

  .navbar.active {
    transform: translateX(0);
  }

  .navbar-left {
    flex-direction: column;
    padding-top: 3rem;
    gap: 2rem;
  }

  .open {
    display: inline-block;
    padding: 1.5rem 0 1.5rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 2rem;
  }

  .close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 2rem;
  }

  .lang {
    margin-left: 0;
  }

  .nav-sociallink i {
    font-size: 1.25rem;
  }

  /* HERO */
  .hero {
    flex-direction: column;
  }

  .hero-left {
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    margin-bottom: 5rem;
  }

  .hero-header {
    font-size: 5rem;
    text-align: center;
    text-align-last: center;
  }

  .hero-header span {
    right: unset;
  }

  .hero-right {
    width: 100%;
  }

  .hero-alt-header {
    font-size: 3.5rem;
  }

  /* ABOUT */
  .about {
    flex-direction: column;
    margin-top: 5rem;
  }

  .about-container {
    flex-direction: column;
  }

  .about-left,
  .about-right {
    width: 100%;
  }

  .about article {
    width: 100%;
  }

  .about-header,
  .expertise-header {
    text-align: center;
  }

  /* SKILLS */
  .about,
  .expertise {
    margin: 5rem auto;
  }

  /* EXPERTISE */
  .expertise-header {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .expertise-sub-header {
    font-size: 1.75rem;
  }

  .expertise-card {
    padding: 2rem;
    width: 90%;
  }

  .expertise-card .close-btn {
    top: 10px;
    right: 10px;
  }

  /* PORTFOLIO */
  .portfolio-header::before {
    width: 0;
  }

  .portfolio-header {
    font-size: 3em;
    padding-left: 0;
  }

  .portfolio-card,
  .contact-left,
  .contact-right {
    width: 100%;
  }

  /* CONTACT */
  .contact-header {
    font-size: 4rem;
    text-align: center;
    padding: 0;
  }

  .contact-container {
    align-items: center;
    padding: 2rem 0;
  }

  .contact-container,
  .contact-form {
    flex-direction: column;
  }

  .contact-form {
    gap: 2rem;
  }

  .contact-right-header {
    display: none;
  }

  /* FOOTER */
  .footer {
    padding: 2.5rem 0;
  }

  .footer-right {
    gap: 1rem;
  }
}

@media screen and (min-width: 768px) {
  /* NAV */
  .navbar {
    position: relative;
    flex-direction: row;
    top: unset;
    background-color: transparent;
    width: 90%;
    height: unset;
    transform: translateX(0);
  }

  .navbar-left {
    flex-direction: row;
    padding-top: unset;
  }

  .close,
  .open {
    display: none;
  }

  .nav-sociallink i {
    font-size: 1.25rem;
  }

  .hero-header {
    text-align-last: center;
  }

  .hero-header span {
    right: -106px;
  }

  /* ABOUT */
  .about-header,
  .expertise-header,
  .contact-header {
    text-align: left;
  }

  /* PORFTOLIO */
  .portfolio-header::before {
    width: 150px;
  }

  .portfolio-header {
    font-size: 5rem;
    padding-left: 9.5rem;
  }

  .portfolio-card {
    width: 45%;
  }

  /* CONTACT */
  .expertise-header,
  .contact-header {
    padding-left: 2rem;
  }

  .contact-form {
    flex-direction: row;
  }

  /* FOOTER */
  .footer-right {
    gap: 1rem;
  }
}

@media screen and (min-width: 1200px) {
  .count {
    font-size: 20rem;
  }

  .lang {
    margin-left: 2.5rem;
  }

  /* HERO */
  .hero {
    flex-direction: row;
  }

  .hero-left {
    text-align-last: center;
  }

  .hero-header {
    font-size: 10rem;
    text-align: left;
  }

  .hero-right {
    width: 50%;
  }

  .hero-alt-header {
    font-size: 3.95rem;
  }

  /* ABOUT */
  .about {
    flex-direction: row;
    padding: 0 5rem;
  }

  .about-container {
    flex-direction: row;
    gap: unset;
  }

  .about-left,
  .about-right {
    width: 45%;
  }

  /* EXPERTISE */
  .expertise-header,
  .contact-header {
    padding-left: 0;
  }

  .expertise-header {
    font-size: 5rem;
    margin-bottom: 5rem;
  }

  .expertise-sub-header {
    font-size: 3rem;
  }

  .expertise-card {
    padding: 5rem;
    width: 910px;
  }

  /* PORTFOLIO */
  .portfolio-card {
    width: 30%;
  }

  /* CONTACT */
  .contact-container {
    align-items: flex-start;
  }

  .contact-container,
  .contact-form {
    flex-direction: row;
  }

  .contact-left {
    width: 50%;
  }

  .contact-form {
    gap: 5rem;
  }

  .contact-right-header {
    display: block;
  }

  .contact-right {
    width: unset;
  }

  /* FOOTER */
  .footer {
    padding: 5rem 0;
  }
}
