/* فونت‌های Vazirmatn */
@font-face {
  font-family: Vazirmatn;
  src: url("../../../assets/fonts/Vazirmatn-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../../../assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../../../assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../../../assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --cursor-color: #000;
  --cursor-border-color: #000;

  --first-color: hsl(200, 100%, 55%);
  --title-color: hsl(220, 60%, 15%);
  --text-color: hsl(220, 15%, 60%);
  --border-color: hsl(220, 30%, 80%);
  --body-color: hsl(220, 100%, 97%);
  --container-color: hsl(220, 100%, 99%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font-EN: "Vazirmatn", sans-serif;
  --body-font: "Vazirmatn", sans-serif;
  --second-font: "Vazirmatn", sans-serif;
  --biggest-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  transition: background-color 0.4s;
}

input,
button {
  border: none;
  outline: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== LOADER ===============*/

.loader-page {
  background-color: #fff;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all .5s ease-out;
}
.loader-container {
  /* border: 1px solid steelblue; */
  width: 600px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader {
  width: 500px;
  height: 5px;
  background-color: rgba(0,0,0,0.3);
  position: relative;
  border-radius:15px;
}
.loader-fill {
  background-color: rgb(1, 99, 180);
  width: 0px;
  height: 100%;
  position: absolute;
  border-radius: 15px;
}
.loader-counter {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -5px;
  color: rgb(1, 99, 180);
  margin-top: 50px;
  z-index: 9;
}

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/

body.dark-theme {
  --cursor-color: #0ff;
  --cursor-border-color: #0ff;

  --title-color: hsl(220, 40%, 85%);
  --text-color: hsl(220, 20%, 70%);
  --border-color: hsl(220, 15%, 25%);
  --body-color: hsl(220, 15%, 10%);
  --container-color: hsl(220, 15%, 13%);
}

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/

.dark-theme .shadow-header {
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.4);
}

.dark-theme .nav__menu {
  box-shadow: 0 -8px 32px hsla(0, 0%, 0%, 0.4);
}

.dark-theme .scrollup {
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.4);
}

.dark-theme .search,
.dark-theme .login {
  background-color: hsla(230, 12%, 8%, 0.6);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsl(230, 16%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(230, 16%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(230, 16%, 35%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1220px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}
button {
  display: block; /* اضافه شد */
  padding: 5px 20px;
  text-transform: uppercase;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--title-color);
  text-shadow: none;
  background: transparent;
  cursor: pointer;
  box-shadow: transparent;
  border: 1px solid var(--title-color);
  transition: 0.5s ease;
  user-select: none;
  margin: 0 auto; /* تغییر کرد به margin: 0 auto برای وسط‌چین کامل */
}

button a {
  color: var(--title-color);
}

button:hover {
  color: #fff;
  background: var(--first-color);
  border: 1px solid var(--first-color);
  box-shadow: 0 0 5px #008cff, 0 0 20px #008cff, 0 0 50px #008cff, 0 0 100px #008cff;
}

/*=============== HEADER & NAV ===============*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow 0.4s, background-color 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--first-color);
  font-weight: var(--font-medium);
}

.nav__logo i {
  font-size: 1.25rem;
}
/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--container-color);
    box-shadow: 0 -8px 32px hsla(0, 0%, 0%, 0.1);
    padding: 1.25rem 4rem;
    transition: background-color 0.4s;
    border-radius: 20px 20px 0 0;
  }
}

.nav__list {
  display: flex;
  justify-content: space-between;
}

.nav__link {
  color: var(--text-color);
  transition: color 0.4s;
}

.nav__link span {
  display: none;
}

.nav__link i {
  font-size: 1.25rem;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__actions {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.nav__actions i {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.4s;
}

.nav__actions i:hover {
  color: var(--first-color);
}

/* Add shadow header */

.shadow-header {
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.1);
}

.nav__item--has-submenu {
  position: relative;
}

/* حالت پیش‌فرض ساب‌منو */
.nav__submenu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--container-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  min-width: 190px;
  z-index: 10;
  overflow: hidden;
}

/* نمایش ساب‌منو هنگام هاور */
.nav__item--has-submenu:hover .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* آیتم‌های ساب‌منو */
.nav__sublink {
  display: block;
  padding: 0.75rem 1.2rem;
  padding-right: 1.7rem;
  padding-left: 2rem;
  color: var(--text-color);
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  text-align: right;
  direction: rtl;
}

/* افکت hover روی آیتم‌ها */
.nav__sublink:hover {
  background: var(--first-color-light);
  color: var(--first-color);
  border-radius: 2rem 0 0 2rem;
}

/* آیکون در سمت چپ (به جای راست) */
.nav__sublink::before {
  content: "›";
  position: absolute;
  left: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--first-color);
  font-weight: bold;
  direction: ltr;
}

.nav__sublink:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* حالت موبایل */
@media screen and (max-width: 1150px) {
  .nav__submenu {
    display: none !important;
  }

  .nav__link span {
    display: none;
  }
}


/* Active link */

.active-link {
  color: var(--first-color);
}

/*=============== LOGIN ===============*/

.login {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-fixed);
  background-color: hsla(230, 12%, 96%, 0.6);
  backdrop-filter: blur(16px);
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  transition: top 0.4s;
}

.login__form {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 15px;
  row-gap: 1.25rem;
}

.login__title {
  font-size: var(--h2-font-size);
}

.login__group {
  row-gap: 1.25rem;
}

.login__lable {
  display: block;
  text-align: initial;
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
}

.login__input {
  width: 100%;
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 1rem;
  color: var(--text-color);
}

.login__signup,
.login__forgot {
  display: block;
  font-size: var(--small-font-size);
}

.login__signup {
  margin-bottom: 0.5rem;
}

.login__signup a {
  color: var(--first-color);
  font-weight: var(--font-medium);
}

.login__forgot {
  color: var(--first-color);
  margin-bottom: 1.25rem;
}

.login__button {
  width: 100%;
  cursor: pointer;
}

.login__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--title-color);
  cursor: pointer;
}
/* Show login */

.show-login {
  top: 0;
}
/*=============== BUTTON ===============*/

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  font-weight: var(--font-semi-bold);
  border-radius: 15px;
  padding: 0.5rem 1rem;
  transition: box-shadow 0.4s;
  margin-top: 1rem;
}

.button:hover {
  box-shadow: 0 4px 32px hsla(230, 72%, 32%, 0.4);
}
/*=============== HOME ===============*/
.home-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  gap: 40px;
  flex-direction: row; /* دسکتاپ - متن و عکس کنار هم */
}

.section-text {
  flex: 1;
  text-align: center;
  direction: rtl;
}

.section-img {
  flex: 1;
  position: relative;
}

.section-img img {
  width: 300px;
  margin-right: auto;
  margin-left: auto;
  height: auto;
  border-radius: 50%;
}

.sections-img {
  flex: 1;
  position: relative;
}

.sections-img img {
  width: 50%;
  margin-right: auto;
  margin-left: auto;
  height: auto;
  margin-bottom: 30px;
  border: none;
}

/* حالت موبایل */
@media (max-width: 768px) {
  .home-section {
    flex-direction: column;/
    text-align: center;
  }

  .section-text {
    text-align: center;
    padding:15px;
  }
  .section-img {
    right: 0rem;
  }
}

/*skills*/

.skills-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.box {
  position: relative;
  margin: 20px;
}

.box .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--title-color);
}

.box .text h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
}

.box .text small {
  font-size: 18px;
  display: block;
}

.circle {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.circle .points {
  width: 3px;
  height: 15px;
  background: #0007;
  position: absolute;
  border-radius: 3px;
  transform: rotate(calc(var(--i) * var(--rot))) translateY(-100px);
}

.points.marked {
  animation: glow 0.04s linear forwards;
  animation-delay: calc(var(--i) * 0.05s);
}

@keyframes glow {
  0% {
    background: #0007;
    box-shadow: none;
  }
  100% {
    background: var(--bgColor);
    box-shadow: 0 0 10px var(--bgColor);
  }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .skills-row {
    flex-direction: column;
    align-items: center;
  }

  .box {
    margin-bottom: 30px;
  }
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  .card-personal {
    width: 300px;
    height: 210px;
  }

  .card-personal:hover {
    height: 320px;
  }

  .imgBox {
    width: 130px;
    height: 130px;
    top: -40px;
  }

  .card-personal:hover .imgBox {
    width: 180px;
    height: 180px;
  }

  .detalis h2 {
    font-size: 1.2em;
    margin-top: 70px;
  }
}

@media (max-width: 768px) {
  .card-personal {
    width: 90%;
    margin: 3rem auto;
    height: 200px;
  }

  .card-personal:hover {
    height: 320px;
  }

  .imgBox {
    width: 120px;
    height: 120px;
    top: -35px;
  }

  .card-personal:hover .imgBox {
    width: 160px;
    height: 160px;
  }

  .detalis h2 {
    font-size: 1.15em;
    margin-top: 60px;
  }

  .content-personal {
    padding: 0 10px;
  }
    .team-container {
    flex-direction: column; /* زیر هم */
    align-items: center;
  }
}

@media (max-width: 480px) {
  .card-personal {
    width: 95%;
    height: 190px;
  }

  .card-personal:hover {
    height: 300px;
  }

  .imgBox {
    width: 110px;
    height: 110px;
    top: -30px;
  }

  .card-personal:hover .imgBox {
    width: 150px;
    height: 150px;
  }

  .detalis h2 {
    font-size: 1.05em;
    margin-top: 50px;
  }
  .sections-img img {
  width: 80%;
  margin-right: auto;
  margin-left: auto;
  height: auto;
  margin-bottom: 30px;
  border: none;
}
}

/*=============== FOOTER ===============*/

.footer {
  padding-block: 4rem 6rem;
}

.footer__container {
  row-gap: 3rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--first-color);
  font-size: var(--h3-font-size);
  font-family: var(--second-font);
  margin-bottom: 1.25rem;
}

.footer__logo i {
  font-size: 1.25rem;
}

.footer__data {
  grid-template-columns: repeat(2, max-content);
  gap: 3rem 2rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: grid;
  row-gap: 0.5rem;
}

.footer__link {
  color: var(--text-color);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__info {
  font-style: normal;
}

.footer__social {
  display: flex;
  column-gap: 1.25rem;
}

.footer__social-link {
  font-size: 1.25rem;
  color: var(--first-color);
}

.footer__copy {
  display: block;
  margin-top: 5rem;
  text-align: center;
  font-size: var(--small-font-size);
}

/*=============== SCROLL BAR ===============*/

::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(230, 16%, 85%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(230, 16%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  border-radius: 0.5rem;
  background-color: hsl(230, 16%, 55%);
}

/*=============== SCROLL UP ===============*/

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.1);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s, background-color 0.4s;
  border-radius: 12px;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */

.show-scroll {
  bottom: 6rem;
  border: 2px solid var(--border-color);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */

@media screen and (min-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__menu {
    padding-inline: 3rem;
  }

  .discount__img-1,
  .discount__img-2 {
    width: 140px;
    text-align: center;
  }

  .new__card {
    flex-direction: column;
  }

  .testimonail__card {
    padding-inline: 1rem;
  }

  .footer__data {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .home__model {
    margin-right: -100px;
  }

  .home__model-about {
    margin-right: -200px;
    top: -100px;
  }
    .loader {
  width: 350px;
  height: 5px;
  background-color: rgba(0,0,0,0.3);
  position: relative;
  border-radius:15px;
}
}

@media screen and (min-width: 375px) {
  .home__model {
    margin-right: -80px;
  }

  .home__model-about {
    margin-right: -200px;
    top: -100px;
  }
}

@media screen and (min-width: 414px) {
  .home__model {
    margin-right: -40px;
  }

  .home__model-about {
    margin-right: -200px;
    top: -100px;
  }
}

/* For medium devices */

@media screen and (min-width: 450px) {
  .featured__card {
    width: 290px;
  }

  .new__card {
    width: 390px;
  }

  .testimonail__card {
    width: 320px;
  }

  .home__model {
    margin-right: -50px;
  }

  .home__model-about {
    margin-right: -80px;
    top: -100px;
  }
}

@media screen and (min-width: 540px) {
  .home__model {
    margin-right: 30px;
  }

  .home__model-about {
    margin-right: -200px;
    top: -100px;
  }
}

@media screen and (min-width: 576px) {
  .search__form {
    width: 500px;
    margin-inline: auto;
  }

  .login__form {
    width: 400px;
    justify-self: center;
  }

  .search__close,
  .login__close {
    width: max-content;
    top: 4rem;
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .nav__menu {
    width: 380px;
    margin-inline: auto;
  }

  .home__container,
  .discount__container {
    grid-template-columns: 420px;
    justify-content: center;
  }

  .join__form {
    width: 320px;
    justify-self: center;
  }

  .footer__data {
    grid-template-columns: repeat(3, max-content);
  }

  .home__model {
    margin-right: -15px;
  }

  .home__model-about {
    margin-right: -10px;
    top: -100px;
  }
}

@media screen and (min-width: 768px) {
  .home__container {
    grid-template-columns: 580px;
  }

  .home__data {
    width: 420px;
    justify-self: center;
  }

  .services__container {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    column-gap: 5rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .home__model {
    margin-right: 80px;
  }

  .home__model-about {
    margin-right: -30px;
    top: -100px;
  }
}

/* For large devices */

@media screen and (min-width: 1150px) {
  .section {
    padding-block: 7rem 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    column-gap: 4rem;
  }

  .nav__link i {
    display: none;
  }

  .nav__link span {
    display: block;
  }

  .nav__menu {
    width: initial;
    margin-inline: auto 0;
  }

  .nav__list {
    column-gap: 4rem;
  }

  .nav__link {
    font-weight: var(--font-medium);
  }

  .dark-theme .nav__menu {
    box-shadow: none;
  }

  .home__data {
    width: initial;
  }

  .services__container {
    column-gap: 10rem;
  }

  .services__card i {
    font-size: 3.5rem;
  }

  .featured__container {
    padding-top: 2rem;
  }

  .featured__title {
    font-size: var(--h3-font-size);
  }

  .discount__container {
    grid-template-columns: 615px 500px;
    justify-content: space-between;
    align-items: center;
  }

  .discount__data {
    order: 1;
  }

  .discount__data,
  .discount__title {
    text-align: center;
  }

  .discount-description {
    margin-bottom: 3.5rem;
  }

  .discount__img-1,
  .discount__img-2 {
    width: 300px;
  }

  .new__container {
    padding-top: 2rem;
  }

  .new__card {
    padding: 1.5rem;
  }

  .new__img {
    width: 120px;
  }

  .new__title {
    font-size: var(--h3-font-size);
  }

  .join__bg {
    object-position: 0 -5rem;
  }

  .testimonail__container {
    padding-top: 2rem;
  }

  .testimonail__card {
    padding-inline: 2rem;
  }

  .testimonail__title {
    font-size: var(--h3-font-size);
  }

  .testimonail__description {
    font-size: var(--normal-font-size);
  }

  .footer {
    padding-block: 6rem 3rem;
  }

  .footer__data {
    grid-template-columns: repeat(4, max-content);
    column-gap: 4.5rem;
  }

  .footer__logo,
  .footer__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.5rem;
  }

  .footer__links {
    row-gap: 1rem;
  }

  .footer__social {
    column-gap: 1.5rem;
  }

  .footer__social-link {
    font-size: 1.5rem;
  }

  .footer__copy {
    margin-top: 7.5rem;
  }

  .scrollup {
    right: 3rem;
  }

  .show-scroll {
    bottom: 3rem;
  }

  .home__model-about {
    margin-right: -250px;
    top: 23px;
  }
}

@media screen and (min-width: 1220px) {
  .container {
    margin-inline: auto;
  }

  .home__container {
    grid-template-columns: 435px 745px;
    align-items: center;
    padding-block: 7rem 2rem;
  }

  .home__data {
    text-align: initial;
  }

  .home__description {
    margin-bottom: 4rem;
  }

  .home__article,
  .home-img {
    width: 290px;
  }
  .home__model {
    margin-right: 200px;
    z-index: 1000;
  }
}
