@font-face {
  font-family: SST;
  src: url(../assets/fonts/sstrg-webfont.woff2) format(woff2);
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: SST;
  src: url(../assets/fonts/sstlight-webfont.woff2) format(woff2);
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: SST;
  src: url(../assets/fonts/sstbold-webfont.woff2) format(woff2);
  font-weight: 700;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: SST;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #fff;
  line-height: 1.6;
}
/* من از CSS Nesting استفاده کردم، از 2023 پشتیبانی میشه */
header {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid #333;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;

  img {
    width: 7rem;
    height: 2rem;
  }
}
a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}
ul {
  list-style: none;
}
nav {
  ul {
    display: flex;
    gap: 100px;
  }
  a {
    font-size: 1rem;
    font-weight: 300;
    color: #aaa;
    position: relative;
    padding-bottom: 5px;
    &:hover {
      color: white;
    }
    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 2px;
      background-color: #fff;

      transform: scaleX(0);
      transform-origin: bottom right;
      transition: transform 0.2s ease-out;
    }
    &:hover::after {
      transform: scaleX(1);
      transform-origin: bottom left;
    }
  }
}

.btn-buy {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  &:hover {
    background-color: rgb(38, 128, 208);
    color: #fff;
  }
}

#hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 5%;
  min-height: 80vh;
}

.hero-video video {
  width: 100%;
  max-width: 650px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}
.hero-content {
  max-width: 600px;
}
#hero {
  background-color: #c6a4ae;

  h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  p {
    font-size: 1.1rem;
    color: #4d2c1c;
    margin-bottom: 30px;
  }
}
.btn-outline {
  border: 2px solid white;
  padding: 12px 30px;
  border-radius: 30px;
  display: inline-block;
  background-color: white;
  color: #4d2c1c;
  font-weight: 400;
  &:hover {
    background-color: rgb(38, 128, 208);
    color: white;
  }
}

#new-color {
  background-color: #fff;
  padding: 5rem 5%;
  text-align: center;
  h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #000;
  }
  p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
  }
}

.color-content {
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.color-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.color-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  overflow: hidden;
  border-radius: 10px;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

#features {
  background: #111;
  color: #fff;
  padding: 5rem 5%;
  text-align: center;
  h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
}
.features-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.feature-card {
  background: #1a1a1a;
  padding: 40px 20px;
  border-radius: 15px;
  flex: 1;
  transition: transform 0.3s;
  &:hover {
    transform: translateY(-10px);
  }
  h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
  }
  p {
    font-size: 0.9rem;
    color: #888;
  }
}

.icon-box i {
  font-size: 2.5rem;
  color: #d18b92;
  margin-bottom: 20px;
}
#contact {
  padding: 5rem 5%;
  border-top: 1px solid black;
  h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
  }
}
.contact-wrapper {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  align-items: center;
}
.contact-form {
  flex: 1;
  max-width: 500px;
  label {
    display: block;
    margin-bottom: 5px;
    color: black;
  }
  justify-items: center;
  textarea {
    resize: none;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background: wheat;
  border: 1px solid black;
  color: black;
  border-radius: 5px;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: #5865f2;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-info {
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: wheat;
  padding: 20px;
  border-radius: 10px;
}

.info-item i {
  font-size: 1.5rem;
  color: #5865f2;
  margin-right: 20px;
}
footer {
  background: black;
  border-top: 1px solid #222;
  text-align: center;
  padding: 40px 20px;
}

.social-links a {
  font-size: 1.5rem;
  margin: 0 15px;
  color: #555;
}

.social-links a:hover {
  color: white;
}

footer p {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #444;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  #hero {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
    h1 {
      font-size: 2.5rem;
    }
  }

  #new-color h2 {
    font-size: 2rem;
  }
  .color-gallery {
    flex-direction: column;
  }

  .features-container {
    flex-direction: column;
  }

  .contact-wrapper {
    flex-direction: column;
  }
}
