:root {
  /* Inner shadow */
  --shadow-offset: 1px;
  --shadow-blur: 4px;
  --shadow-spread: 0px;
  --shadow-color: #ffffff;

  /* Painted glass */
  --tint-color: 255, 255, 255;
  --tint-opacity: 0.04;

  /* Background frost */
  --frost-blur: 3px;

  /* SVG noise/distortion */
  --noise-frequency: 0.013;
  --distortion-strength: 55;

  /* Outer shadow blur */
  --outer-shadow-blur: 24px;

  /* color */
  --white-color: #ffff;
  --primery-color: #18bf3aff;
}

@font-face {
  src: url("/font/Vazir-Medium.woff2") format("woff2"),
    url("/font/Vazir-Medium.woff") format("woff"),
    url("/font/Vazir-Medium.ttf") format("truetype");
  font-family: Vazir;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
}

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  overflow-x: clip;
  position: relative;
  font-family: Vazir, Arial, Helvetica, sans-serif;
  font-size: 75%;
  background-attachment: fixed;
  background-size: 100% 100%;
  scroll-behavior: smooth;
}

header {
  display: flex;
  position: relative !important;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

}

main {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}

button,
a {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button,
a:focus,
button,
a:active {
  outline: none;
  box-shadow: none;
  background: none;
}


/* ---- particles.js container ---- */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  z-index: 0;
  overflow-x: hidden;
  background: transparent;
  background-image: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

canvas {
  display: block;
  max-width: 100%;
  height: 100dvh;
  overflow-x: hidden;
}

canvas#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  pointer-events: none;
  overflow-x: hidden;
}


/* glass effect */

.glass {
  position: relative !important;
  box-shadow: 0px 6px var(--outer-shadow-blur) rgba(0, 0, 0, 0.2);
  border-radius: 3rem;
  isolation: isolate;
}

.glass::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  box-shadow: inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
  border-radius: 3rem;
  background-color: rgba(var(--tint-color), var(--tint-opacity));
  content: "";
}

.glass::after {
  position: absolute;
  z-index: -1;
  backdrop-filter: blur(var(--frost-blur));
  filter: url(#glass-distortion);
  inset: 0;
  border-radius: 3rem;
  isolation: isolate;
  content: "";
  -webkit-backdrop-filter: blur(var(--frost-blur));
  -webkit-filter: url("#glass-distortion");
}


/* animation */


.animation {
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform;
}

.animation.run {
  animation: fade 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fade {
  0% {
    opacity: 0;
    transform: scale(0.985) translateY(6px);
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}






/* slider */

.slider {
  position: relative;
  box-shadow: 0 0 15px #00000080;
  border-radius: 3rem;
  max-width: 1000px;
  margin-top: 2rem;
  overflow: hidden;
  direction: ltr;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  background-position: center;
  background-size: cover;
  user-select: none;
}

.slides img {
  flex-shrink: 0;
  width: 100%;
  object-fit: fill;
}

.nav {
  display: flex;
  position: absolute;
  top: 50%;
  justify-content: space-between;
  transform: translateY(-50%);
  box-sizing: border-box;
  padding: 0 20px;
  width: 100%;
  user-select: none;
}

.nav button {
  display: flex;
  position: relative !important;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  background: none;
  padding: 10px;
  width: 48px;
  height: 48px;
  pointer-events: auto;
  font-size: 20px;
  user-select: none;
  transition: all 300ms ease;
}

.nav button img {
  transition: all 300ms ease;
  width: 40px;
  height: 40px;
}

.nav button:hover {
  transform: scale(1.1);
}

#prevBtn:active img {
  transform: translateX(-4px);
}

#nextBtn:active img {
  transform: translateX(4px);
}

/* menu */

.menu-container,
.menu-item,
.menu-item_secondary,
.menu-container * {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}

.menu-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  margin-top: 100px;
  max-width: 1280px;
}

.menu-container div {
  display: flex;
  flex-direction: row-reverse;
}

.menu-item {
  display: flex;
  position: relative !important;
  justify-content: space-between;
  align-items: center;
  align-self: center;
  padding-inline: 8px;
  height: 70px;
  cursor: pointer;
}

.menu-item_secondary {
  display: flex;
  position: relative !important;
  justify-content: center;
  align-items: center;
  margin-left: 78px;
  padding-inline: 8px;
  height: 70px;
  cursor: pointer;
}

.menu-item button,
.menu-item_secondary button {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: all 500ms ease;
  cursor: pointer;
  border: none;
  border-radius: 3rem;
  background: none;
  width: 115px;
  height: 54px;
  color: var(--white-color);
  font-size: 1.2rem;
  font-family: Vazir;
  text-decoration: none;
  user-select: none;
  text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
}

.menu-item button.active,
.menu-item_secondary button.active {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  animation: fadeActive 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes fadeActive {
  from {
    background: rgba(24, 191, 58, 1);
    opacity: 0;
    transform: scale(0.95) translateY(6px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}



/* items */

.item-container {
  column-gap: 36px;
  column-count: 2;
  transition: all 300ms ease-in-out;
  box-sizing: border-box;
  margin-top: 5rem;
  padding: 24px;
  width: 100%;
  max-width: 1280px;
}


.item-container>* {
  display: inline-block;
  break-inside: avoid;
  margin: 0 0 36px;
  width: 100%;
  overflow: hidden;
}

.item {
  display: grid;
  position: relative;
  transition: all 500ms ease-in-out;
  margin-inline: auto;
  min-width: 320px;
  max-width: 480px;
}

.item:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
  background-color: rgba(24, 191, 58, 0.1);
}

.item img {
  grid-row: 1/2;
  grid-column: 1/4;
  border-radius: 3rem;
  aspect-ratio: 4/3;
  width: 100%;
  padding: .8rem;
}

.item h2 {
  grid-row: 2/3;
  grid-column: 1/4;
  align-self: center;
  margin: 19px 24px 19px 0;
  width: max-content;
  color: var(--white-color);
  font-size: 1.4rem;
  text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
}

.description {
  display: flex;
  grid-row: 3/4;
  grid-column: 1/4;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 60px 0 24px;
  height: max-content;
}

.description li {
  margin: 0;
  color: var(--white-color);
  list-style-type: circle;
  text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
}

.item h3 {
  grid-row: 4/5;
  grid-column: 1/4;
  align-self: self-end;
  box-sizing: border-box;
  margin: 0 16px 16px;
  border-radius: 2rem;
  background: rgba(255, 86, 86, 0.3);
  backdrop-filter: blur(10px);
  padding-inline: 24px;
  height: 48px;
  color: #ff5656;
  line-height: 48px;
  text-align: center;
  text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.item p {
  grid-row: 2/3;
  grid-column: 2/4;
  align-self: center;
  justify-self: end;
  margin: 0;
  margin: 19px 0 19px 24px;
  width: max-content;
  color: var(--primery-color);
  font-size: 1.2rem;

  text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
}


/* footer */

footer {
  display: grid;
  position: relative !important;
  margin-top: 180px;
  margin-inline: auto;
  max-width: 1280px;
  z-index: 1;
}

.map {
  grid-column: 1/2;
  z-index: 2;
  border-radius: 3rem;
}

.information {
  grid-column: 2/3;
  grid-row: 1/2;
  align-self: self-start;
}

.call {
  backdrop-filter: blur(10px);
  background: rgba(24, 191, 58, 0.4);
  margin: 1rem;
  padding-inline: 12px 4px;
  border-radius: 3rem;
  grid-column: 2/3;
  width: max-content;
  transition: all 300ms ease-in-out;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.call:hover {
  background: rgba(24, 191, 58, 0.6);
}

.call:hover>a>img {
  animation: shake 300ms ease-in-out;
}

@keyframes shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(-2px, 0) rotate(-3deg);
  }

  40% {
    transform: translate(2px, 0) rotate(3deg);
  }

  60% {
    transform: translate(-2px, 0) rotate(-3deg);
  }

  80% {
    transform: translate(2px, 0) rotate(3deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.call a {
  text-decoration: none;
  width: max-content;
  display: flex;
  align-items: center;
}

.call img {
  width: 48px;
  height: 48px;
}

footer h4 {
  color: var(--white-color);
  font-size: 1.4rem;
  margin-block: 16px;
}

.working-time {
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(42, 123, 155, 0.6) 0%, rgba(237, 221, 83, 0.6) 100%);
  padding: 10px;
  gap: 18px;
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 1rem;
  padding-right: 12px;
  border-radius: 3rem;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.working-time img {
  width: 48px;
  height: 48px;
}

footer h6 {
  margin: 0;
  color: var(--white-color);
  font-size: 1.4rem;
}

.SocialMedia {
  display: flex;
  grid-row: 1/2;
  grid-column: 2/3;
  align-self: self-end;
  gap: 48px;
  z-index: 2;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 3rem;
  margin: 1rem;
  width: max-content;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.SocialMedia a img {
  width: 68px;
  height: 68px;
}

.SocialMedia a img:hover {
  transform: scale(1.1);
  transition: all 300ms ease;
}

.footer-logo {
  display: flex;
  grid-column: 3/4;
  flex-direction: column;
  align-items: center;
  align-self: center;
  margin-left: 24px;
}

.footer-logo img {
  height: 325px;
}

.footer-logo h5 {
  margin: 0;
  color: var(--primery-color);
  font-size: 42px;
}

.copyright {
  color: var(--white-color);
  text-align: center;
  grid-column: 1/4;
  padding: 12px;
}

@media screen and (max-width: 1280px) {
  .map {
    grid-row: 2/3;
  }

  .information {
    grid-row: 2/3;
    justify-self: end;
    display: flex;
    flex-direction: column-reverse;
    align-items: end;
  }

  .SocialMedia {
    grid-row: 2/3;
    justify-self: end;
  }

  .footer-logo {
    grid-column: 1/3;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 850px) {
  .menu-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .menu-item_secondary {
    margin: 0 0 36px 0;
  }

  .item-container {
    grid-template-columns: 1fr;
    column-count: 1;
    padding: 78px;
  }

  footer {
    justify-items: center;
  }

  .map {
    grid-row: 5/6;
    width: 100%;
  }

  .copyright {
    grid-row: 6/7;
    grid-column: 1/2;
  }

  .information {
    display: flex;
    grid-column: 1/2;
    flex-direction: column-reverse;
    align-items: center;
    margin: 36px 0;
    justify-self: center;
  }

  .SocialMedia {
    justify-self: center;
    grid-row: 4/5;
    grid-column: 1/2;
  }

  .footer-logo {
    grid-row: 1/2;
    grid-column: 1/2;
    margin: 36px 0;
  }

}

@media screen and (max-width: 450px) {
  .nav {
    display: none;
  }

  .item-container {
    padding: 4px;
  }
  
  .map{
    width: 100%;
  }

  .information div{
    margin-inline: 0;
  }

  .SocialMedia{
    margin-inline: 0;   
  }

  .working-time {
    gap: 8x;
  }
}