/*=============== FONTS ===============*/

@font-face {
  font-family: myFont;
  src: url(../fonts/woff/IRANSansX-Black.woff);
}

/*=============== VARIABLES CSS ===============*/

:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(0, 0%, 5%);
  --black-color-light: hsl(0, 0%, 70%);
  --white-color: hsl(0, 0%, 100%);
  --title-color: #0c120c;
  --text-color: #6d7275;
  --body-color: #f1f3f5;
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: myFont;
  --second-font: "Syncopate", sans-serif;
  --biggest-font-size: 2.5rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-bold: 700;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/

@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/*=============== BASE ===============*/

* {
  box-sizing: content-box;
  padding: 0;
  margin: 0 5px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  direction: rtl;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/

.container {
  max-width: 1024px;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.active-link {
  color: #e03131;
}

#home,
#about,
#products,
#call {
  transition: 300ms;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 3.5rem 0 2rem;
}

/*=============== HEADER & NAV ===============*/

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__title {
  color: #e03131;
  font-size: 1.2rem;
}

.nav__logo img {
  width: 2.5rem;
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: #212529;
  cursor: pointer;
}

main {
  margin-top: 15px;
  margin-bottom: 1rem;
}

/* loader */

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: #f1f3f5;
  z-index: 999999999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.loader {
  border: 8px solid #e03131;
  border-top: 8px solid #f2f2f2;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 10px;
  color: #212529;
  font-family: myFont;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Navigation for mobile devices */

@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--body-color);
    box-shadow: -1px 0 16px hsla(0, 0%, 0%, 0.1);
    /* width: 80%; */
    height: 100%;
    padding: 6rem 3rem;
    transition: right 0.4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: #212529;
  font-family: myFont;
  transition: 0.3s;
  font-size: 1.1rem;
  font-weight: bold;
  font-weight: 500;
}

.nav__link:hover {
  color: #e03131;
  border-bottom: 1px solid #e03131;
}

.nav__close {
  position: absolute;
  top: 1.125rem;
  right: 1.5rem;
}

/* Show menu */

.show-menu {
  right: 0;
}

/* Add shadow header */

.shadow-header {
  box-shadow: 0 1px 16px hsla(0, 0%, 0%, 0.3);
}

/*=============== HOME ===============*/

.home__container {
  position: relative;
  display: grid;
  row-gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home__subtitle,
.home__title,
.home__button {
  font-family: var(--body-font);
  color: #212529;
  transition: 300ms;
}

.home__button:link {
  cursor: pointer;
  box-shadow: 0 1px 16px hsla(0, 0%, 0%, 0.1);
  border-radius: 10%;
  padding: 0.4rem 0.5rem;
}

.home__subtitle {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
}

.home__description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
  color: #495057;
}

.home__buttton {
  display: inline-block;
  background-color: var(--white-color);
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.1);
  padding: 1rem 3rem;
  border-radius: 4rem;
  font-weight: var(--font-bold);
  transition: box-shadow 0.4s;
}

.home__button:hover {
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.15);
}

.home__social {
  position: absolute;
  top: 7rem;
  left: 0;
  display: grid;
  row-gap: 1rem;
}

.home__social-link {
  display: inline-flex;
  font-size: 1.25rem;
  color: var(--title-color);
  transition: transofrm 0.4s;
}

.home__social-link:hover {
  transform: translateY(-0.25rem);
  color: #212529;
}

.home__images {
  display: grid;
  position: relative;
  /* background-color: gray; */
}

.home__shoe {
  width: 300px;
  margin-inline: auto;
}

.home__circle {
  width: 250px;
  height: 250px;
  background: linear-gradient(180deg, hsl(0, 0, 100%), hsl(0, 0, 96%));
  border-radius: 50%;
  position: absolute;
  inset: 0;
  margin: auto;
}

/* Swiper class */

.swiper {
  margin-inline: initial;
}

/*=============== BREAKPOINTS ===============*/

/* For small devices */

@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  .home__title {
    font-size: 2rem;
  }
  .home__circle {
    width: 220px;
    height: 220px;
  }
}

/* .home__container {
  height: 55vh;
} */

/* For medium devices */

@media screen and (max-width: 567px) {
  .section {
    text-align: center;
  }
  .home__container {
    padding-top: 4rem;
    padding-bottom: 1.5rem;
  }
}

@media screen and (min-width: 567px) {
  /* .nav__menu {
    width: 60%;
  } */
  .home__container {
    grid-template-columns: 350px;
    justify-content: center;
    position: relative;
    padding-top: 6rem;
  }
  .home__data {
    text-align: center;
  }
  .section-2 {
    padding: 0 0 0rem;
  }
}

@media screen and (min-width: 767px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-us {
    font-size: 1rem;
  }
  .slide img {
    width: 400px;
  }
}

/* For large devices */

@media screen and (min-width: 1023px) {
  .home__container {
    padding-top: 9rem;
  }
  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 2rem;
  }
  .home__container {
    /* height: 35vh; */
    grid-template-columns: repeat(2, 400px);
    place-items: center;
    column-gap: 2rem;
  }
  .home__title {
    font-size: 3rem;
  }
  .home__shoe {
    width: 400px;
  }
  .home__data {
    text-align: initial;
  }
  .home__social {
    align-content: center;
    top: 0;
    bottom: 0;
    right: 0;
  }
  .footer__container {
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
  }
  .footer__logo {
    column-gap: 0.5rem;
  }
  .footer__logo i {
    font-size: 2rem;
  }
  .footer__title {
    margin-bottom: 1.5rem;
  }
  .footer__links {
    row-gap: 0.75rem;
  }
  .footer__social-link {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1rem;
  }
  .footer__copy {
    margin-top: 4rem;
    padding-bottom: 1rem;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
  .home__data {
    margin-right: 6rem;
  }
  .home__container {
    grid-template-columns: 430px 600px;
    column-gap: 4.5rem;
  }
  .home__title {
    margin-bottom: 1.25rem;
  }
  .home__description {
    font-size: var(--normal-font-size);
    margin-bottom: 3rem;
  }
  .home__shoe {
    width: 400px;
  }
  .home__circle {
    width: 500px;
    height: 500px;
  }
}

@media screen and (min-width: 1248px) {
  .home__social {
    right: -3rem;
    row-gap: 2rem;
  }
  .home__social-link {
    font-size: 1.5rem;
  }
}

.footer {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.footer__container {
  row-gap: 2.5rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1.25rem;
  transition: 0.3s;
}

.footer__logo img {
  width: 200px;
}

.footer__logo:hover {
  color: var(--first-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.footer__link,
.footer__social-link {
  color: #495057;
  text-align: center;
  transition: 0.3s;
}

.footer__link:hover,
.footer__social-link:hover {
  text-align: center;
  color: var(--title-color);
}

.footer__social {
  display: flex;
  text-align: center;
  column-gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  justify-content: center;
}

.footer__social-link {
  text-align: center;
  font-size: 1.25rem;
}

.footer__copy {
  display: block;
  margin-top: 2.5rem;
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.features {
  overflow: hidden;
  position: relative;
}

.about-us {
  text-align: center;
  color: #495057;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 2.2rem;
  color: #212529;
}

.center-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow {
  position: relative;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 300px;
  height: auto;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: bold;
  color: #f1f3f5;
  background-color: #212529;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.prev {
  right: 0;
}

.next {
  left: 0;
}

.container {
  margin: 0 auto;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Two equal columns */
  gap: 20px;
  /* Adjust the gap as needed */
  justify-content: center;
  align-items: center;
}

.home__data-1 {
  order: 2;
  /* Set the order to 2 to move to the second column */
  font-size: 0.8rem;
}

.home__images-1 {
  order: 1;
  /* Set the order to 1 to move to the first column */
}

@media only screen and (max-width: 525px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home__data-1 {
    order: 1;
  }
  .home__images-1 {
    order: 2;
  }
}

.grid-container-1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 17px;
  /* Adjust the gap as needed */
  padding: 10px;
  max-width: 1024px;
  margin: 0 auto;
}

.grid-item {
  width: 230px;
  height: 200px;
  border: 1px solid #495057;
  color: #495057;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.15);
}

.sales {
  font-size: 1.5rem;
  font-family: var(--body-font);
  color: var(--first-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
  margin-top: 2rem;
  color: #212529;
}

.company__description {
  font-size: 1.5rem;
  color: #e03131;
}

.table-container {
  max-width: 100%;
  margin: 50px auto;
  padding: 15px;
  font-size: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 6px;
  text-align: center;
}

.bordered {
  border-left: 1px solid #0c120c;
}

.footer__title {
  margin-bottom: 3rem;
  color: #212529;
}

.developer {
  margin-top: 0;
  font-size: 1rem;
}

.footer__title__social {
  color: #212529;
  margin-bottom: 1;
}

.footer__description {
  color: #495057;
}

.grid-item {
  scale: 1;
  transition: 300ms;
}

.grid-item:hover {
  scale: 1.1;
}

td a {
  color: #495057;
  font-size: 1.1rem;
  font-weight: bold;
  transition: 300ms;
}

td a:hover {
  color: #0c120c;
}

/* Ticker */
.ticker {
  width: 100%;
  background-color: transparent;
  color: #495057;
  text-shadow: 1px 1px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ticker p {
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1023px) {
  .ticker {
    margin-bottom: -5px;
  }

  .ticker p {
    font-size: 0.7rem;
  }
}
@media (max-width: 757px) {
  .ticker {
    margin-bottom: -5px;
  }

  .ticker p {
    font-size: 0.55rem;
  }

  main {
    margin-top: 0;
  }
}
