/* فونت‌های 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 ===============*/
#cursor {

    width: 10px;
    height: 10px;

    background: #0163b4;

    border-radius: 50%;

    position: fixed;

    pointer-events: none;

    z-index: 999999;

    transform: translate(-50%, -50%);

}



#cursor-border {

    width: 35px;
    height: 35px;

    border: 2px solid #0163b4;

    border-radius: 50%;

    position: fixed;

    pointer-events: none;

    z-index: 999998;

    transform: translate(-50%, -50%);

    transition: .15s ease;

}



#cursor.hovered {

    transform: translate(-50%, -50%) scale(1.8);

}



#cursor-border.hovered {

    width: 50px;
    height: 50px;

}
* {
  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: var(--body-color);
  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: #2563EB;
  width: 0px;
  height: 100%;
  position: absolute;
  border-radius: 15px;
}
.loader-counter {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -5px;
color: #2563EB;
  margin-top: 50px;
  z-index: 9;
}

.call-float {
    position: fixed;
    left: 20px;
    bottom: 90px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    z-index: 8;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .3);
    transition: .3s;
}

.call-float:hover {
    transform: scale(1.08);
    color: #fff;
}

.call-tooltip {
    position: absolute;
    left: 75px;
    white-space: nowrap;
    background: #fff;
    color: #222;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: .3s;
}

.call-tooltip::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
}

.call-float:hover .call-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.breadcrumb-nav {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: var(--body-font);
  color: var(--first-color);
}

.breadcrumb-nav a {
  color: var(--first-color);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav .current-page {
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
}

.breadcrumb-nav span.separator {
  margin: 0 5px;
}
/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/

body.dark-theme {
    --cursor-color: var(--first-color);
    --cursor-border-color: var(--first-color);

    --title-color: #fff;
    --text-color: #f1f1f1;
    --border-color: hsl(0, 0%, 73%);
    --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 {
  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;
}

button a{
    color: var(--title-color);
}

button:hover {
  color: #fff;
  background: var(--first-color);
  border: 1px solid var(--first-color);
  /*text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;*/
  box-shadow: 0 0 5px #008cff, 0 0 20px #008cff, 0 0 50px #008cff,
    0 0 100px #008cff;
}
/*=============== HEADER & NAV ===============*/
.has-child{
    position:relative;
}

.nav__subsubmenu{
    position:absolute;
    right:100%;
    top:0;
    min-width:260px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);

    transition:.3s;
    list-style:none;
    padding:10px;
}

.has-child:hover .nav__subsubmenu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.nav__subsubmenu a{
    display:block;
    padding:12px 15px;
    color:#222;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
}

.nav__subsubmenu a:hover{
    background:#f5f7fa;
    padding-right:20px;
}

.sub-arrow{
    font-size:11px;
    margin-right:auto;
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: transparent;
}

.header::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.08);

    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);

    border-bottom: 1px solid rgba(255,255,255,.15);

    pointer-events: none;
    z-index: -1;
}

.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;
}

@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;
    display:flex;
    align-items:center;
    gap:8px;
}

.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 a {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: color 0.4s;
}

.nav__actions a i {
    font-size: 1.25rem !important;
    color: var(--title-color) !important;
    transition: color 0.4s;
    display: inline-block;
}

.change-theme {
    color: #A4ACBE;
    font-size: 1.5rem;
}

.nav__actions i:hover,
.nav__actions a:hover,
.nav__actions a:hover i {
    color: var(--first-color);
}


.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:visible;
}

.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;
}

.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 {
    color: var(--first-color);
}

.dropdown-arrow{
    width:8px;
    height:8px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg);
    display:inline-block;
    margin-right:8px;
    transition:.3s;
        display:none;

}

.nav__item--has-submenu:hover .dropdown-arrow{
    transform:rotate(225deg);
}


@media screen and (min-width:1151px){

    .dropdown-arrow{
        display:inline-block;
    }

}

.dropdown-arrow{
    display:inline-block;
    width:8px;
    height:8px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg);
    transition:.3s;
    margin-right:4px;
}

@media screen and (max-width: 1150px){

    .nav__link{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;
    }

    .nav__link span{
        display:block;
        font-size:.7rem;
        line-height:1;
    }

    .nav__link img{
        width:26px !important;
    }

    .dropdown-arrow{
        display:none !important;
    }
    
    .nav__link{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:6px;
    }

    .nav__link span{
        display:block;
        font-size:11px;
        font-weight:500;
    }

}

/*=============== 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;
  left: auto;
  font-size: 2rem;
  color: var(--title-color);
  cursor: pointer;
  border-radius: 15px;
}
/* Show login */

.show-login {
  top: 0;
}

/* اطمینان از مخفی شدن کامل باکس لاگین وقتی بسته می‌شود */
.login:not(.show-login) {
  top: -100%;
  visibility: hidden;
  opacity: 0;
  transition: top 0.4s, visibility 0.4s, opacity 0.4s;
}

.login.show-login {
  visibility: visible;
  opacity: 1;
}

/* ریسپانسیو فرم لاگین برای سایز 768px */
@media screen and (max-width: 768px) {
  .login {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .login__form {
    padding: 1.25rem 0.875rem;
    border-radius: 12px;
    width: calc(100% - 1.5rem);
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
  
  .login__title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .login__group {
    row-gap: 1rem;
  }
  
  .login__lable {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
  }
  
  .login__input {
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }
  
  .login__signup,
  .login__forgot {
    font-size: 0.75rem;
  }
  
  .login__button {
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }
  
  .login__close {
    top: 0.75rem;
    right: 0.75rem;
    left: auto;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--container-color);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* ریسپانسیو فرم لاگین برای سایز 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .login {
    padding: 1.5rem;
    align-items: center;
    overflow-y: visible;
  }
  
  .login__form {
    max-width: 500px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
    max-height: none;
    overflow-y: visible;
  }
  
  .login__title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .login__group {
    row-gap: 1.25rem;
  }
  
  .login__input {
    padding: 1rem;
    font-size: 0.938rem;
    border-radius: 15px;
  }
  
  .login__close {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    font-size: 1.75rem;
    border-radius: 15px;
  }
}

/* ریسپانسیو فرم لاگین برای سایز بزرگ‌تر از 1024px */
@media screen and (min-width: 1025px) {
  .login {
    padding: 2rem;
  }
  
  .login__form {
    max-width: 550px;
    padding: 2.5rem 2rem;
  }
  
  .login__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .login__group {
    row-gap: 1.5rem;
  }
  
  .login__input {
    padding: 1.125rem;
    font-size: 1rem;
  }
  
  .login__close {
    top: 2rem;
    right: 2rem;
    left: auto;
    font-size: 2rem;
    border-radius: 15px;
  }
}


:root {
		--gap: 2rem;
	}

	ul {
		list-style: none;
	}

	.stock-ticker {
		font-size: 15px;
		padding-block: 8px;
		border-block: 1px solid #0F1F3D;
		overflow: hidden;
		user-select: none;
		display: flex;
		border-radius: 15px;
		gap: var(--gap);
		transform: rotate(5deg);
		color: #0F1F3D;
	}

	.stock-ticker-2 {
		font-size: 15px;
		padding-block: 8px;
		border-block: 1px solid #0F1F3D;
		border-radius: 15px;
		overflow: hidden;
		user-select: none;
		display: flex;
		gap: var(--gap);
		transform: rotate(-5deg);
		color: #fff;
		background-color: #0F1F3D;
	}

	.stock-ticker ul,
	.stock-ticker-2 ul {
		display: flex;
		gap: var(--gap);
		flex-shrink: 0;
		align-items: center;
		justify-content: space-between;
		min-width: 100%;
		animation: scroll 20s linear infinite;
	}

	.stock-ticker li,
	.stock-ticker-2 li {
		display: flex;
		align-items: center;
		gap: 8px;
		white-space: nowrap;
	}


	@keyframes scroll {
		to {
			transform: translateX(calc(-100% - var(--gap)));
		}
	}

	.stock-ticker .company,
	.stock-ticker .price {
		font-weight: bold;
	}

	.stock-ticker .price {
		margin-inline: 4px;
	}

	.stock-ticker .plus .change,
	.stock-ticker .plus::before,
	.stock-ticker-2 .plus .change,
	.stock-ticker-2 .plus::before {
		color: #016fff;
	}

	.stock-ticker .minus .change,
	.stock-ticker .minus::before {
		color: #016fff;
	}

	.stock-ticker-2 .minus .change,
	.stock-ticker-2 .minus::before {
		color: #1BB2FF;
	}
/*=============== 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 ===============*/

.badge-center {
    text-align: center;
    margin:0 auto;
}

.rr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--body-color);
    color: #0077ff;
    font-size: 14px;
    font-weight: 600;
}
  
  .rr-banner {

    max-width: 1100px;

    height: 120px;

    margin: 80px auto;

    padding: 22px 35px;


    background:
        linear-gradient(135deg,
            rgba(37, 99, 235, .95),
            rgba(19, 29, 90, .95));


    border: 1px solid rgba(255, 255, 255, .15);

    border-radius: 22px;


    display: flex;

    align-items: center;

    justify-content: space-between;


    gap: 30px;

    position: relative;

    overflow: visible;


    box-shadow:
        0 15px 40px rgba(0, 0, 0, .12);

}




/* دارک تم */

.dark-theme .rr-banner {

    background:

        linear-gradient(135deg,
            hsl(220, 90%, 45%),
            hsl(230, 35%, 15%));


    border-color:
        rgba(255, 255, 255, .08);


    box-shadow:

        0 20px 50px rgba(0, 0, 0, .4);

}





.rr-banner-content {

    flex: 1;

    text-align: center;

}



.rr-banner-content h3 {

    margin: 0 0 5px;

    font-size: 26px;

    font-weight: 800;

    color: #fff;

}




.rr-banner-content p {

    margin: 0;

    color: rgba(255, 255, 255, .85);

    font-size: 15px;

    line-height: 1.8;

}





.rr-banner-image {

    width: 220px;

    position: relative;

    flex-shrink: 0;

}





.rr-banner-image img {

    width: 100%;

    display: block;


    transform: translateY(-20%);


    filter:
        drop-shadow(0 12px 20px rgba(0, 0, 0, .25));

}





/* دکمه */

.rr-banner-btn {

    transition: .3s ease;

}



.rr-banner-btn:hover {

    transform: translateY(-3px);

}





@media(max-width:768px) {



    .rr-banner {


        height: auto;

        min-height: 190px;


        margin: 70px 15px 50px;


        padding: 45px 20px 25px;


        flex-direction: column;


        text-align: center;


        gap: 8px;


        overflow: visible;

    }





    .rr-banner-image {


        position: absolute;


        top: -90px;


        right: 50%;


        transform: translateX(50%);


        width: 140px;

        height: 140px;

    }






    .rr-banner-image img {


        width: 100%;


        transform: none;


    }






    .rr-banner-content {


        width: 100%;


    }






    .rr-banner-content h3 {


        font-size: 20px;


        line-height: 1.6;


    }







    .rr-banner-content p {


        font-size: 13px;


        line-height: 1.8;


    }






    .rr-banner-btn {


        width: 100%;


        margin-top: 15px;


    }



}



.floating i{

color: #ea00ff;

font-size:18px;

margin-left:8px;

}
.hero-features i{

color:var(--first-color);

font-size:14px;

}
    .hero-kindergarten{

padding:120px 0;
overflow:hidden;
position:relative;
background:var(--body-color);

}

.hero-container{

width:90%;
max-width:1400px;

margin:auto;

display:flex;
align-items:center;
justify-content:space-between;

gap:80px;

}

.hero-content{

width:50%;

}

.hero-badge{

display:inline-flex;

padding:10px 18px;

border-radius:50px;

background:var(--body-color);

color:var(--title-color);

font-weight:700;

margin-bottom:25px;

}

.hero-content h1{

font-size:58px;

line-height:1.3;

font-weight:900;

margin-bottom:25px;

}

.hero-content h1 span{

color:#ea00ff;

}

.hero-content p{

font-size:18px;

line-height:2;

color:var(--text-color);

margin-bottom:40px;

max-width:620px;

}

.hero-buttons{

display:flex;

gap:15px;

margin-bottom:40px;

}

.btn-primary{
text-decoration:none;
}


.btn-secondary{
text-decoration:none;

}

.hero-features{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:18px;

font-weight:600;

color:var(--title-color);

}

.hero-image{

width:50%;

position:relative;

display:flex;

justify-content:center;

align-items:center;

height:650px;

}

.circle{

position:absolute;

width:520px;

height:520px;

border-radius:50%;

background:linear-gradient(
180deg,
#dff5ff,
#f5fcff
);

}

.blur{

position:absolute;

border-radius:50%;

filter:blur(80px);

}

.blur1{

width:260px;

height:260px;

background:#72d2ff;

top:80px;

left:70px;

opacity:.35;

}

.blur2{

width:260px;

height:260px;

background:#0aa5ff;

bottom:90px;

right:80px;

opacity:.25;

}

.laptop{

position:relative;

z-index:5;

width:560px;

}

.screen{

height:340px;

background:#1d1d1d;

border-radius:22px;

padding:12px;

box-shadow:0 40px 70px rgba(0,0,0,.18);

}

.screen-content{

height:100%;
border-radius:14px;

overflow:hidden;
background:var(--body-color);
}

.browser{

height:40px;

background:#ea00ff;
border:1px solid var(--border-color);
}

.hero-placeholder{

height:150px;

margin:25px;

border-radius:15px;
background:#ea00ff;
border:1px solid var(--border-color);

}

.cards-row{

display:flex;

gap:20px;

padding:0 25px;

}

.cards-row div{

flex:1;

height:80px;

border-radius:15px;

background:#ea00ff;
border:1px solid #ea00ff;

}

.base{

width:650px;

height:18px;

margin-left:-45px;

background:#d6d6d6;

border-radius:0 0 60px 60px;

}

.floating{

position:absolute;

background:var(--body-color);
border:1px solid #ea00ff;
padding:15px 22px;
color:#ea00ff;
border-radius:18px;

box-shadow:0 20px 45px rgba(0,0,0,.12);

font-weight:bold;

z-index:10;

animation:float 4s ease-in-out infinite;

}

.card1{

top:60px;

left:10px;

}

.card2{

top:120px;

right:0;

}

.card3{

bottom:150px;

left:20px;

}

.card4{

bottom:70px;

right:40px;

}

@keyframes float{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-12px);

}

100%{

transform:translateY(0);

}

}

@media(max-width:992px){

.hero-container{

flex-direction:column;

}

.hero-content,
.hero-image{

width:100%;

}

.hero-content h1{

font-size:42px;

}

.hero-image{

height:520px;

}

.laptop{

width:100%;

max-width:480px;

}

.base{

width:110%;

margin-left:-5%;

}

.circle{

width:380px;

height:380px;

}

}




.qa-wrap {
    padding: 90px 20px;
    direction: rtl;
    color: var(--title-color);
}

.qa-container {
    max-width: 900px;
    margin: auto;
}

/* ===== HEADER ===== */
.qa-head {
    text-align: center;
    margin-bottom: 45px;
}

.qa-head h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--title-color);
}

.qa-head p {
    color: var(--text-color);
    opacity: .8;
    line-height: 2;
}

/* ===== ITEM ===== */
.qa-item {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: .25s ease;
}

/* hover فقط border */
.qa-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* active */
.qa-item.active {
    border-color: #3b82f6;
}

/* ===== QUESTION ===== */
.qa-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--title-color);
}

.qa-q:hover {
    background-color: none;
}

.qa-q i {
    color: #60a5fa;
    margin-left: 10px;
}

/* icon + / - */
.qa-icon {
    font-size: 18px;
    color: #60a5fa;
}


.qa-q:hover,
.qa-q:focus,
.qa-q:active {
    background: transparent !important;
    box-shadow: none !important;
    border: var(--border-color);
    color: var(--title-color);
}

/* ===== ANSWER ===== */
.qa-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;

    color: var(--text-color);
    opacity: .85;
    line-height: 2;

    padding: 0 14px;
}

/* open */
.qa-item.active .qa-a {
    max-height: 180px;
    padding: 0 14px 14px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
    .qa-head h2 {
        font-size: 22px;
    }
}






    .rr-portfolio-hero {

    padding:120px 20px;


}



.rr-hero-container {

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:430px 1fr;

    gap:80px;

    align-items:center;

}




/* ===================
   پیش نمایش سایت
=================== */


.rr-site-preview {


    background:var(--body-color);

    border-radius:30px;

    overflow:hidden;

    box-shadow:
    0 25px 60px rgba(0,0,0,.12);

    border:1px solid var(--border-color);

}



.rr-browser-bar {


    height:60px;

    background: var(--body-color);
    display:flex;

    align-items:center;

    gap:20px;

    padding:0 20px;

}



.rr-dots {

    display:flex;

    gap:7px;

}



.rr-dots span {

    width:11px;

    height:11px;

    border-radius:50%;

    background:#0163b4;

    opacity:.5;

}




.rr-url {


    flex:1;

    background: var(--body-color);
    border:1px solid  var(--border-color);
    height:32px;

    border-radius:10px;

    color: var(--text-color);

    font-size:13px;

    display:flex;

    align-items:center;

    padding:0 15px;


}



.rr-preview-content {


    padding:45px 35px;

}



.rr-preview-title {


    font-size:27px;

    font-weight:800;

    color:var(--title-color);

    margin-bottom:25px;

}





.rr-preview-line {


    height:10px;

    width:90%;

    background:#eaf3fc;

    border-radius:20px;

    margin-bottom:12px;


}



.rr-preview-line.short {

    width:55%;

}




.rr-preview-boxes {


    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

    margin:35px 0;


}





.rr-preview-boxes div {


    background:var(--body-color);
    border:1px solid var(--border-color);

    border-radius:18px;

    padding:20px 10px;

    text-align:center;


}



.rr-preview-boxes i {


    font-size:25px;

    color:#0163b4;

    margin-bottom:12px;

    display:block;


}




.rr-preview-boxes span {


    font-size:13px;

    color:var(--title-color);


}




.rr-preview-button {


    background:#0163b4;

    color:white;

    padding:13px 28px;

    width:max-content;

    border-radius:12px;

    font-size:14px;


}






/* ===================
   محتوا
=================== */


.rr-hero-content {

    direction:rtl;

}




.rr-badge {


    background:var(--body-color);

    color:var(--text-color);

    padding:8px 18px;

    border-radius:50px;

    display:inline-block;

    margin-bottom:20px;

    font-size:14px;


}





.rr-hero-content h1 {


    font-size:48px;

    line-height:1.4;

    color:var(--title-color);

    margin-bottom:20px;


}




.rr-hero-content p {


    font-size:18px;

    line-height:2;

    color:var(--text-color);

    max-width:650px;

    margin-bottom:35px;


}





.rr-hero-buttons {


    display:flex;

    gap:15px;

    margin-bottom:50px;


}




.rr-btn {


    text-decoration:none;

    padding:15px 30px;

    border-radius:14px;

    font-weight:600;

}



.rr-btn.primary {


    background:#0163b4;

    color:white;


}



.rr-btn.secondary {


    background:var(--body-color);

    border:1px solid var(--first-color);

    color:var(--first-color);


}







/* آمار */


.rr-stats {


    display:flex;

    gap:20px;

    flex-wrap:wrap;


}




.rr-stat {


    background:var(--body-color);
    border:1px solid;

    padding:20px 25px;

    border-radius:18px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.06);


}





.rr-stat strong {


    display:block;

    color:var(--first-color);

    font-size:28px;


}




.rr-stat span {


    color:var(--text-color);

    font-size:14px;


}








/* موبایل */


@media(max-width:900px){


.rr-hero-container {

    grid-template-columns:1fr;

    gap:40px;

}



.rr-site-preview {

    order:2;

}



.rr-hero-content h1 {

    font-size:34px;

}



.rr-preview-boxes {

    grid-template-columns:1fr;

}



.rr-hero-buttons {

    flex-direction:column;

}



.rr-btn {

    text-align:center;

}



}



.rr-projects-section {

    padding:10px 20px;

}



.rr-projects-container {

    max-width:1200px;

    margin:auto;

}



.rr-projects-head {

    text-align:center;

    margin-bottom:60px;

}



.rr-projects-head h2 {


    font-size:42px;

    color:var(--title-color);

    margin:20px 0;


}



.rr-projects-head p {


    color:var(--text-color);

    font-size:17px;


}





/* GRID */


.rr-project-grid {


    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;


}







/* CARD */


.rr-project-card {


    background:var(--body-color);

    border-radius:26px;

    overflow:hidden;

    border:1px solid var(--border-color);


    box-shadow:

    0 15px 40px rgba(0,0,0,.07);


    transition:.3s;


}





.rr-project-card:hover {


    transform:translateY(-8px);

    border-color:var(--first-color);


}







/* IMAGE */


.rr-project-image {


    height:320px;

    position:relative;

    overflow:hidden;


}





.rr-project-image img {


    width:100%;

    height:100%;

    object-fit:cover;

    transition:.4s;

    display:block;


}





.rr-project-image::after {


    content:"";

    position:absolute;


    left:0;

    right:0;

    bottom:0;


    height:80px;


    background:linear-gradient(

        to bottom,

        rgba(0,0,0,0),

        var(--body-color)

    );


    pointer-events:none;


}







.rr-project-card:hover img {


    transform:scale(1.05);


}







/* OVERLAY HOVER با محو شدن به سمت پایین */

.rr-project-overlay {

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:0;

    transition:.3s;

    z-index:2;


    background:linear-gradient(

        to bottom,

        rgba(1,99,180,.85),

        rgba(1,99,180,.35) 60%,

        var(--body-color)

    );

}



.rr-project-card:hover .rr-project-overlay {

    opacity:1;

}




.rr-project-overlay a {


    background:var(--body-color);

    color:var(--first-color);


    padding:13px 25px;


    border-radius:12px;


    text-decoration:none;


    font-weight:600;


    transform:translateY(-5px);

    transition:.3s;

}





.rr-project-card:hover .rr-project-overlay a {

    transform:translateY(0);

}









/* TEXT */


.rr-project-info {


    padding:25px;

    direction:rtl;


}







.rr-project-info h3 {


    font-size:23px;


    margin:0 0 15px;


    color:var(--title-color);


}






.rr-project-info span {


    display:inline-block;


    background:var(--body-color);


    color:var(--text-color);


    border:1px solid var(--border-color);


    padding:7px 15px;


    border-radius:50px;


    font-size:14px;


}








.empty-project {


    text-align:center;


    width:100%;


}









/* RESPONSIVE */


@media(max-width:900px){


    .rr-project-grid {

        grid-template-columns:1fr 1fr;

    }


}






@media(max-width:600px){


    .rr-project-grid {

        grid-template-columns:1fr;

    }



    .rr-projects-head h2 {

        font-size:30px;

    }



    .rr-project-image {

        height:260px;

    }


}

.rr-badge{
    color:var(--first-color);
}

.rr-why-section {

    padding:110px 20px;

    background:var(--body-color);

}





.rr-why-container {

    max-width:1200px;

    margin:auto;

}





.rr-why-head {

    text-align:center;

    margin-bottom:60px;

}



.rr-why-head h2 {

    font-size:42px;

    color:var(--title-color);

    margin:20px 0;

}



.rr-why-head p {

    color:var(--text-color);

    font-size:17px;

    max-width:650px;

    margin:auto;

    line-height:2;

}





.rr-why-grid {


    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;


}





.rr-why-card {


    background:var(--body-color);


    border:1px solid var(--border-color);


    border-radius:25px;


    padding:35px 25px;


    text-align:center;


    transition:.3s;


}





.rr-why-card:hover {


    transform:translateY(-8px);


    border-color:var(--first-color);


    box-shadow:

    0 20px 45px rgba(0,0,0,.08);


}





.rr-why-icon {


    width:70px;

    height:70px;


    margin:0 auto 25px;


    border-radius:22px;


    background:rgba(1,99,180,.1);


    color:var(--first-color);


    display:flex;


    align-items:center;


    justify-content:center;


    font-size:30px;


}





.rr-why-card h3 {


    color:var(--title-color);


    font-size:22px;


    margin-bottom:15px;


}





.rr-why-card p {


    color:var(--text-color);


    line-height:1.9;


    font-size:15px;


}







@media(max-width:1000px){


.rr-why-grid {

    grid-template-columns:repeat(2,1fr);

}


}





@media(max-width:600px){


.rr-why-grid {

    grid-template-columns:1fr;

}



.rr-why-head h2 {

    font-size:30px;

}


}

.rr-process-section {


    padding:10px 20px;


}





.rr-process-container {


    max-width:1000px;

    margin:auto;


}






.rr-process-head {


    text-align:center;

    margin-bottom:70px;


}




.rr-process-head h2 {


    font-size:42px;

    color:var(--title-color);

    margin:20px 0;


}





.rr-process-head p {


    color:var(--text-color);

    font-size:17px;

    line-height:2;


}







/* Timeline */


.rr-process-list {


    position:relative;


}






.rr-process-list::before {


    content:"";

    position:absolute;


    right:35px;

    top:0;

    height:100%;


    width:2px;


    background:var(--first-color);


    opacity:.25;


}







.rr-process-item {


    display:flex;


    gap:30px;


    position:relative;


    margin-bottom:45px;


    direction:rtl;


}







.rr-process-icon {


    min-width:72px;


    height:72px;


    border-radius:22px;


    background:var(--body-color);


    border:1px solid var(--border-color);


    color:var(--first-color);


    display:flex;


    align-items:center;


    justify-content:center;


    font-size:28px;


    z-index:2;


}






.rr-process-content {


    background:var(--body-color);


    border:1px solid var(--border-color);


    border-radius:25px;


    padding:25px 30px;


    flex:1;


}







.rr-process-content span {


    color:var(--first-color);


    font-size:14px;


}





.rr-process-content h3 {


    color:var(--title-color);


    font-size:24px;


    margin:10px 0;


}





.rr-process-content p {


    color:var(--text-color);


    line-height:1.9;


    margin:0;


}









@media(max-width:600px){


.rr-process-list::before {

    right:25px;

}




.rr-process-item {

    gap:15px;

}




.rr-process-icon {

    min-width:55px;

    height:55px;

    font-size:20px;

}



.rr-process-content {

    padding:20px;

}




.rr-process-head h2 {

    font-size:30px;

}


}

.rr-tech-section {


    padding:10px 20px;


}




.rr-tech-container {


    max-width:1100px;

    margin:auto;


}






.rr-tech-head {


    text-align:center;

    margin-bottom:60px;


}






.rr-tech-head h2 {


    font-size:42px;

    color:var(--title-color);

    margin:20px 0;


}






.rr-tech-head p {


    color:var(--text-color);

    font-size:17px;

    line-height:2;

}









.rr-tech-grid {


    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:18px;


}








.rr-tech-badge {


    min-width:140px;


    height:60px;


    padding:0 25px;


    border-radius:50px;


    background:var(--body-color);


    border:1px solid var(--border-color);


    display:flex;


    align-items:center;


    justify-content:center;


    gap:12px;


    color:var(--title-color);


    font-size:17px;


    font-weight:600;


    transition:.3s;


    box-shadow:

    0 10px 30px rgba(0,0,0,.05);


}





.rr-tech-badge i {


    color:var(--first-color);


    font-size:22px;


}





.rr-tech-badge:hover {


    transform:translateY(-6px);


    border-color:var(--first-color);


    color:var(--first-color);


}








@media(max-width:600px){


.rr-tech-head h2 {

    font-size:30px;

}




.rr-tech-badge {


    min-width:120px;

    font-size:15px;


}


}


.rr-faq-hero{

padding:120px 20px 90px;

}



.rr-faq-hero-container{

max-width:1200px;

margin:auto;


display:grid;

grid-template-columns:1fr 1fr;

gap:70px;

align-items:center;

direction:ltr;

}





.rr-faq-hero-content{

direction:rtl;

}



.rr-faq-hero-content h1{

font-size:48px;

line-height:1.5;

color:var(--title-color);

margin:25px 0;

}





.rr-faq-hero-content p{

font-size:18px;

color:var(--text-color);

line-height:2;

max-width:600px;

}




.rr-faq-btn{

display:inline-flex;

margin-top:25px;


background:var(--first-color);

color:white;


padding:15px 35px;


border-radius:15px;


text-decoration:none;


font-weight:600;


transition:.3s;

}



.rr-faq-btn:hover{

transform:translateY(-5px);

}









/* CARD */


.rr-faq-hero-card{


direction:rtl;


background:var(--body-color);


border:1px solid var(--border-color);


border-radius:35px;


padding:40px;


box-shadow:

0 25px 60px rgba(0,0,0,.08);


backdrop-filter:blur(15px);


}





.rr-faq-big-icon{


width:90px;

height:90px;


border-radius:30px;


background:rgba(1,99,180,.1);


color:var(--first-color);


display:flex;


align-items:center;


justify-content:center;


font-size:45px;


margin-bottom:25px;


}




.rr-faq-hero-card h3{

font-size:28px;

color:var(--title-color);

margin-bottom:10px;

}




.rr-faq-hero-card p{

color:var(--text-color);

}





.rr-faq-points{

margin:30px 0;

display:flex;

flex-direction:column;

gap:15px;

}



.rr-faq-points div{


color:var(--title-color);


font-weight:600;


}



.rr-faq-points i{


color:var(--first-color);

margin-left:10px;

}






.rr-faq-count{


border-top:1px solid var(--border-color);


padding-top:25px;


display:grid;


grid-template-columns:auto 1fr;


column-gap:15px;


align-items:center;


}



.rr-faq-count span{

color:var(--first-color);

font-weight:bold;

}



.rr-faq-count strong{


font-size:38px;


color:var(--title-color);


}



.rr-faq-count p{


grid-column:1/3;

margin:0;

}








@media(max-width:900px){


.rr-faq-hero-container{

grid-template-columns:1fr;

gap:40px;

}




.rr-faq-hero-content h1{

font-size:34px;

}



}
/*=============== 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 (max-width: 768px){
    .nav__menu{

        position:fixed;
        bottom:0;
        left:0;
        right:0;
    
        padding:1rem 2rem;
    
        background:rgba(255,255,255,.08);
    
        backdrop-filter:blur(10px) saturate(180%);
        -webkit-backdrop-filter:blur(10px) saturate(180%);
    
        border-top:1px solid rgba(255,255,255,.15);
    
        box-shadow:
            0 -8px 30px rgba(0,0,0,.12),
            inset 0 1px 0 rgba(255,255,255,.18);
    
        border-radius:20px 20px 0 0;
    }
}
@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;
  }
}

/* ریسپانسیو فرم لاگین */
@media (max-width: 768px) {
  /* ریسپانسیو فرم لاگین برای تبلت */
  .login {
    padding: 1rem;
  }
  
  .login__form {
    padding: 1.5rem 1rem;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .login__title {
    font-size: 1.1rem;
  }
  
  .login__input {
    padding: 0.875rem;
    font-size: 0.938rem;
  }
  
  .login__close {
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  /* ریسپانسیو فرم لاگین برای موبایل */
  .login {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .login__form {
    padding: 1.25rem 0.875rem;
    border-radius: 12px;
    width: calc(100% - 1.5rem);
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
  
  .login__title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .login__group {
    row-gap: 1rem;
  }
  
  .login__lable {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
  }
  
  .login__input {
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }
  
  .login__signup,
  .login__forgot {
    font-size: 0.75rem;
  }
  
  .login__button {
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }
  
  .login__close {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--container-color);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}