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

html {
  scroll-behavior: smooth;
  font-size: 10px;
}

img {
  max-width: 100%;
}

:root {
  /* color */
  --bgclr: white;
  --text-clr: #1d1759;
  --btn-clr: #9cfff9;

  /* font */
  --ff: "Poppins", sans-serif;

  --bezier: cubic-bezier(0.3, -0.01, 0.49, 1);
}

body {
  font-family: var(--ff);
  line-height: 1.6;
  background-color: var(--bglr);
  color: var(--text-clr);
  margin: 0;
}

.icon::before,
.icon::after {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  margin: 0 auto;
}

header {
  background-color: var(--text-clr);
  margin-bottom: 4em;
  padding: 1em 5%;
}

.top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  max-width: 35px;
}

.logo {
  width: 100%;
}

.nav {
  position: fixed;
  background-color: var(--btn-clr);
  color: var(--text-clr);
  top: 0;
  bottom: 60em;
  left: 15em;
  right: 0;
  z-index: 100;

  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.5, 0, 0.5, 1);
}

@media (min-width: 400px) {
  .nav {
    top: 0;
    bottom: 60em;
    left: 14em;
    right: 0;
  }
}

@media (min-width: 500px) {
  .nav {
    top: 0;
    bottom: 60em;
    left: 25em;
    right: 0;
  }
}

@media (min-width: 700px) {
  .nav {
    top: 0;
    bottom: 60em;
    left: 35em;
    right: 0;
  }
}

@media (min-width: 800px) {
  .nav {
    top: 0;
    bottom: 50em;
    left: 30em;
    right: 0;
  }

  html {
    font-size: 12px;
  }
}

.desktop-nav {
  display: none;
}

.nav-list {
  height: 100%;
  margin-top: 1em;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  text-transform: capitalize;
  color: inherit;
  font-size: 1.7rem;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus {
  color: green;
}

.nav-toggle {
  font-size: 16px;
  padding: 0.5em;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  right: 1em;
  top: 1.8em;
  z-index: 1000;
}

.nav-open .nav {
  transform: translateX(0);
}

.nav-open .nav-toggle {
  position: fixed;
}

.nav-open .hamburger {
  background-color: var(--text-clr);
  transform: rotate(0.625turn);
  transition: transform 250ms ease-in-out;
}

.nav-open .hamburger::before {
  background-color: var(--text-clr);
  transform: rotate(90deg) translateX(-6px);
  transition: transform 250ms ease-in-out;
}

.nav-open .hamburger::after {
  opacity: 0;
}

.hamburger {
  display: block;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--btn-clr);
  width: 3em;
  height: 3px;
  border-radius: 1em;
  transition: transform 250ms ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.hamburger::before {
  top: 7px;
}
.hamburger::after {
  bottom: 7px;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.hamburger::before {
  top: 7px;
}
.hamburger::after {
  bottom: 7px;
}

h1 {
  font-size: 6rem;
  font-weight: 800;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 2em;
}

.wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: var(--btn-clr);
  margin-bottom: 2em;
  padding: 2.6em 2em;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(29, 23, 89, 0.1);
}

article {
  max-width: 400px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

p {
  display: none;
  margin-top: 1em;
  font-size: 1.3rem;
  font-weight: 300;
}

.wrapper.active p {
  display: block;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-clr);
  font-size: 4rem;
}

.active {
  transition: all 500ms ease-in-out;
}

.btn .minus-btn {
  display: none;
}

.wrapper.active .btn .minus-btn {
  display: inline;
}

.wrapper.active .btn .plus-btn {
  display: none;
}

.icons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.3em;
  margin-top: 8em;
  margin-bottom: 3em;
}

.fa-brands {
  font-size: 2.4rem;
  color: var(--text-clr);
  transition: transform 200ms ease-in-out;
}

.fa-brands:hover,
.fa-brands:focus {
  transform: scale(1.1);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .desktop-nav {
    display: block;
    padding: 0;
  }

  .desktop-nav__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5em;
    list-style: none;
    padding: 0;
  }

  .desktop-nav__link {
    color: var(--btn-clr);
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: capitalize;
    transition: color 200ms ease;
  }

  .desktop-nav__link:hover,
  .desktop-nav__link:focus {
    color: yellow;
  }

  .container {
    width: 70%;
  }

  .wrapper {
    margin-bottom: 3em;
  }
}
