:root {
  --background-primary-color: #16162a;
  --backgrouind-secendory-color: #0f0f1a;
  --primary-color: #a78bfa;
  --text-light: #f3f4f6;
  --text-gray: #9ca3af;
  --border-radius: 10px;
  --primary-dark: #8b5cf6;

  --container-witdh-lg: 80%;
  --container-witdh-md: 90%;
  --container-witdh-sm: 94%;

  --bg-nav: #16161f;

  --shadow-md: 1px solid rgba(255, 255, 255, 0.1);
  --shadow-blue: 1px solid #3b82f6;

  --border-grey: 1px solid rgba(156, 163, 175, 0.25);
  --transition: all 400ms ease;

  --background-gradient: (90deg, #a78bfa 0%, #77a5f8 100%);
}
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  background-color: var(--backgrouind-secendory-color);
  color: var(--text-light);
  padding-top: 5rem;
}

.container {
  width: var(--container-witdh-lg);
  margin: 0 auto;
}
html {
  scroll-behavior: smooth;
}
section {
  padding: 6rem 0;
}
section h2 {
  text-align: center;
  margin-bottom: 4rem;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
}

h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

a {
  color: var(--text-light);
}

img {
  width: 90%;
  display: block;
  object-fit: cover;
}
#logo {
  background: linear-gradient(90deg, #a78bfa 0%, #77a5f8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  background-color: var(--background-primary-color);
  width: 100vw;
  height: 5rem;
  position: fixed; /* see navbar when scorrl */
  top: 0;
  z-index: 11;
  border-bottom: var(--border-grey);
}

.window-scroll {
  background-color: var(--background-primary-color);
  border-bottom: var(--border-grey);
}

.nav__container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav button {
  display: none;
}

.nav__menu {
  display: flex;
  gap: 4rem;
}

.nav__menu a {
  transition: var(--transition);
}

.nav__menu a:hover {
  color: var(--primary-dark);
}

.model-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 32px 96px 32px;
  gap: 2rem;
}

.model {
  width: 325px;
  background-color: var(--background-primary-color);
  border-radius: 8px;
  border: var(--border-grey);
  overflow: hidden;
  margin-bottom: 20px;
}
.model:hover {
  border: 1px solid #3b82f6;
  box-shadow:
    0 0 8px rgba(59, 130, 246, 0.4),
    0 0 16px rgba(59, 130, 246, 0.2);
  cursor: pointer;
  transform: translateY(-3px);
}
.model img {
  width: 100%;
  height: auto;
}
.model-content {
  padding: 2rem;
  text-align: center;
}
.model-content h3 {
  font-size: 1.5rem;
  line-height: 3rem;
}
.model-content .model-btn {
  display: inline-block;
  border-radius: var(--border-radius);
  padding: 5px 20px;
  background: linear-gradient(135deg, #a78bfa 0%, #77a5f8 100%);
  margin-top: 1rem;
  font-size: 0.8rem;
}
.model-content .model-btn:hover {
  cursor: pointer;
  transform: translateY(-3px);
}
.description {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #a78bfa 0%, #77a5f8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 1.5rem;
  padding-top: 64px;
}

@media screen and (max-width: 1024px) {
  .container {
    width: var(--container-witdh-md);
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  img {
    width: 100%;
    max-width: 800px;
  }

  nav button {
    display: inline-block;
    background: transparent;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
  }
  .header__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
  }

  .header__right-image img {
    width: 90%;
    max-width: none;
  }
  .header__right {
    margin: 0;
    padding: 0;
  }

  .btn {
    padding: 10px 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
  }

  nav button#close-menu-btn {
    display: none;
  }
  .nav__menu {
    position: fixed;
    top: 5rem;
    right: 5%;
    height: fit-content;
    width: 18rem;
    flex-direction: column;
    gap: 0px;
    display: none;
  }

  .nav__menu li {
    width: 100%;
    height: 5.8rem;
    animation: animateNavItems 400ms linear forwards;
    transform-origin: top right;
    opacity: 0;
  }
  .nav__menu li:nth-child(2) {
    animation-delay: 200ms;
  }
  .nav__menu li:nth-child(3) {
    animation-delay: 400ms;
  }
  .nav__menu li:nth-child(4) {
    animation-delay: 600ms;
  }
  .nav__menu li:nth-child(5) {
    animation-delay: 800ms;
  }
  @keyframes animateNavItems {
    from {
      transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
    }
    to {
      transform: rotateZ(0) rotateX(0) scale(1);
      opacity: 1;
    }
  }

  .nav__menu li a {
    background-color: var(--primary-dark);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
  }
  .nav__menu li a:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
  }
  .model-container {
    padding: 0 16px 32px;
  }
  .description {
    padding-top: 64px;
    font-size: 2rem;
  }
}
