* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: Vazir, Arial, Helvetica, sans-serif;
  word-wrap: break-word;
}

:root {
  --header-height: 65px;
  --text: rgb(0, 2, 10);
  --card-bg: rgb(241, 249, 255);
  --btn-bg: rgb(3, 86, 229);
  scroll-behavior: smooth;
}

@font-face {
  font-family: Vazir;
  src: url("../fonts/Vazir.woff") format("woff");
  src: url("../fonts/Vazir.woff2") format("woff2");
}

body {
  width: 100%;
  max-width: 100vw !important;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}
body.dark {
  --text: rgb(243, 243, 243);
  --card-bg: rgb(10, 12, 14);
  --btn-bg: rgb(3, 86, 229);
  color: white;
  transition: color 0.6s;
}

/* dark theme styles */
#toggle-theme {
  width: 60px;
  height: 30px;
  background-color: #fffae8;
  border: none;
  border-radius: 20px;
  box-shadow: inset 0 0 5px rgb(255, 157, 0);
  position: relative;
  transition: all 0.5s;
}
#toggle-theme::after {
  content: "";
  width: 22px;
  height: 22px;
  background-color: rgb(255, 136, 0);
  box-shadow: 0 0 5px 2px orange;
  position: absolute;
  top: 4px;
  left: 4px;
  border-radius: 50%;
  transition: all 0.8s;
}
#toggle-theme.change {
  background-color: #293a55;
  box-shadow: inset 0 0 5px rgb(1, 37, 134);
}
#toggle-theme.change::after {
  content: "";
  background-color: rgb(34, 47, 116);
  box-shadow:
    0 0 5px 1px rgb(92, 119, 255),
    inset -5px -5px 0 rgb(153, 173, 230);
  transform: translateX(30px);
}
.dark-layer {
  width: 100vw;
  height: 100vh;
  background-color: #030e20;
  clip-path: circle(0 at calc(100% - 30px) 35px);
  position: fixed;
  top: 0;
  right: 0;
  z-index: -1;
  transition: clip-path 0.7s;
}
.dark-layer.max-layer {
  clip-path: circle(150% at calc(100% - 30px) 35px);
}
.menu-blur-layer {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;  /* تغییر از left به right */
  z-index: 10;
  background-color: #8f8f8f9d;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;  /* پنهان کردن کامل */
  transition: opacity 0.3s, visibility 0.3s;
}
.dark .menu-blur-layer {
  background-color: #3636369d;
}

.menu-blur-layer.show-blur-layer {
  opacity: 1;
  visibility: visible;  /* نمایش دادن */
}

.container {
  width: 100%;
  min-height: 100vh;
  margin-top: var(--header-height);
  z-index: 5;
  overflow-x: hidden;
}

header {
  width: 100%;
  max-width: 100vw;
  height: var(--header-height);
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.092);
  background-color: #ffffffdd;
  backdrop-filter: blur(5px);
  z-index: 1111;
  transition: background-color 0.6s;
}
.dark header {
  background-color: #404040de;
}
.header-wrapper {
  max-width: 1200px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 auto;
}
.logo {
  padding: 7px 14px;
  font-size: 20px;
  color: rgb(30, 134, 213);
  font-weight: 700;
}
.logo span {
  color: black;
}
.dark .logo {
  color: rgb(72, 215, 255);
}
.dark .logo span {
  color: white;
}
#menu-btn {
  width: 30px;
  height: 25px;
  position: relative;
  border: none;
  background-color: #00000000;
}
#menu-btn span {
  width: 30px;
  height: 3px;
  display: block;
  background-color: rgb(20, 20, 20);
  position: absolute;
  border-radius: 20px;
  transition:
    transform 0.6s,
    opacity 0.3s;
}
.dark #menu-btn span {
  background-color: #fff;
}
#menu-btn span:nth-of-type(1) {
  top: 0;
  left: 0;
}
#menu-btn span:nth-of-type(2) {
  top: 10px;
  left: 0;
}
#menu-btn span:nth-of-type(3) {
  top: 20px;
  left: 0;
}
#menu-btn.close-menu span:nth-of-type(1) {
  top: 10px;
  transform: rotate(135deg);
}
#menu-btn.close-menu span:nth-of-type(2) {
  transform: translateX(-50px);
  opacity: 0;
}
#menu-btn.close-menu span:nth-of-type(3) {
  top: 10px;
  transform: rotate(-135deg);
}
.navigation {
  width: 50vw;
  max-width: 220px;
  height: 100vh;
  position: fixed;
  top: var(--header-height);
  right: -100%;
  transition: right 0.6s;
  z-index: 99;
}
.navigation.show-menu {
  right: 0;
}
.nav-links {
  width: 100%;
  height: 100%;
  background-color: #0091ff;
  list-style: none;
  text-align: center;
  transition: background-color 0.3s;
  z-index: 999;
}
.dark .nav-links {
  background-color: #000766;
}
.nav-links li {
  background-color: #14a5ff;
  transition:
    background-color 0.4s,
    transform 0.4s;
}
.dark .nav-links li {
  background-color: #002a7e;
}
.nav-links li:hover:not(:first-child) {
  transform: translateY(-3px) !important;
  background-color: #40fade;
}
.nav-links li a:hover {
  color: black !important;
}
.nav-links li:not(:last-child) {
  border-bottom: 1px solid rgba(97, 97, 97, 0.537);
}
.nav-links li a {
  text-decoration: none;
  color: white;
  padding: 12px 0;
  font-size: 0.8rem;
  display: block;
  transition: color 0.3s;
}
.nav-links li.active-menu {
  transform: translateX(-7px) scale(1.03);
  margin-bottom: 5px;
  background-color: #061965;
  border-radius: 7px;
}
.dark .nav-links li.active-menu {
  background-color: #1069e5;
}
.nav-links > li:first-child > img {
  width: 100px;
  aspect-ratio: 1 / 1;
  margin: 10px 0;
  border-radius: 50%;
  box-shadow: 0 2px 10px 2px rgba(0, 0, 0, 0.775);
  transition: all 0.5s;
}
.nav-links > li:first-child > img:hover {
  transform: rotate(360deg) scale(1.1);
}

.content-wrapper {
  max-width: 1024px;
  margin: 0 auto;
}

h1 {
  font-size: 1.5rem;
  text-align: center;
}

.card {
  width: 200px;
  border-radius: 24px;
  padding: 0 0 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.118);
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
  margin: 10px 20px 0;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.429);
}
.dark .card {
  background: #f4fdff13;
}
.card h3 {
  font-size: 20px;
  color: var(--main-text-color);
  margin: 15px 0;
}
.icon {
  font-size: 60px;
  font-style: normal;
  margin: 20px 0;
  display: inline-block;
}
.card p {
  text-align: center;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  transition: filter 0.6s;
}
.dark .card > img {
  filter: brightness(85%) contrast(0.8);
}
.main-card {
  width: 260px;
  border-radius: 12px;
  padding: 0 0 30px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.196);
}

footer {
  background-color: #031027;
  color: white;
  transition: all 0.3s;
  margin-top: 30px;
  padding: 30px 7px 7px;
}
.footer-container {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 15px 5px;
  gap: 5px;
}
.footer-container > div {
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.212);
  padding: 7px;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.065);
  flex: 1;
}
.footer-container > div > h3 {
  width: 100%;
  margin-bottom: 15px;
  font-size: 12px;
  text-align: center;
}
.footer-container > div > p {
  font-size: 12px;
  margin-top: 10px;
}
.tell-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 5px;
}
.tell-btns > a {
  min-width: 40%;
  max-width: 150px;
  display: inline-block;
  padding: 10px;
  font-size: 15px;
  text-decoration: none;
  color: white;
  background-color: var(--btn-bg);
  border-radius: 15px;
  transition: all 0.3s;
}
.tell-btns a:last-child {
  background-color: #3391f61f;
  font-size: 12px;
}
.tell-btns > a:hover {
  transform: scale(1.04) translateX(-5px);
}
.tell-box > p {
  color: white;
}
.gmail {
  padding: 10px;
  background-color: #78b7f33a;
  border-radius: 15px;
  font-size: 14px !important;
}
.virtual {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-around;
}
.virtual > a {
  max-width: 150px;
  min-width: 40%;
  padding: 7px;
  text-decoration: none;
  color: white;
  border-radius: 10px;
  font-size: 12px;
  transition: all 0.5s;
  flex-grow: 1;
}
.virtual > a:first-child {
  background-image: linear-gradient(
    45deg,
    rgb(188, 1, 188) 30%,
    rgb(255, 0, 179) 40%,
    rgb(255, 136, 0) 70%,
    yellow 100%
  );
  background-size: 200% 100%;
  background-position: 60% 100%;
  font-weight: bold;
}
.virtual > a:hover {
  background-position: 0% 100%;
  transform: translateY(-5px) scale(1.04) skewX(10deg);
}
.virtual > a:nth-last-of-type(1) {
  background-color: red;
  font-weight: bold;
}
.virtual-icons {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.virtual-icons > a {
  width: 33px;
  display: inline-block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s;
}
.virtual-icons > a:hover {
  transform: translateY(-5px) scale(1.04) skewX(10deg);
}
.virtual-icons > a > img {
  width: 100%;
  height: 100%;
}
.address {
  min-width: 130px;
}
.address > p {
  color: white;
  text-align: center;
}

.copyright {
  background-color: #00000000;
  width: 100%;
  text-align: center;
  font-size: 0.6rem;
  padding: 20px;
  color: rgba(164, 150, 150, 0.715);
  line-height: 1.3rem;
}

.back-to-top {
  width: 40px;
  aspect-ratio: 1 / 1;
  background-color: rgba(57, 57, 57, 0.229);
  backdrop-filter: blur(5px);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 8;
  box-shadow: 0 1px 7px rgba(99, 99, 99, 0.705);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s;
  transform: translateX(-100px);
}
.back-to-top.visible-back-top {
  transform: translateX(0px) !important;
}
/* 
================================
           MEDIA QUERIES
================================
 */
@media (min-width: 768px) {
  header {
    padding: 10px 30px;
  }
  .navigation {
    max-width: none;
    position: static;
    flex: 1;
    height: auto;
    background-color: #00000000;
  }
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: #00000000 !important;
  }
  .nav-links li {
    max-width: max-content;
    flex: 1;
    background-color: #1760d426;
    border: none !important;
    border-radius: 10px;
  }
  .nav-links > li:first-child {
    display: none;
  }
  .nav-links li a {
    color: black;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 15px;
  }
  .dark .nav-links li a {
    color: white;
  }
  #menu-btn {
    display: none;
  }
  .nav-links li.active-menu {
    transform: none;
    margin: 0;
    background-color: rgb(0, 119, 255);
  }
  .nav-links li.active-menu a {
    color: white;
  }

  .footer-container > div {
    padding: 20px 10px;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.065);
    flex: 1;
  }
}

