/* fonts */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff') format('woff'),
         url('fonts/Vazir.ttf') format('truetype');
}
/* body */
body {
    font-family: 'Vazir', sans-serif;
    background: #ffffff;
}
/* header */
.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: #e2e2e2a6;
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    box-sizing: border-box;
}
.menu-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent; 
    justify-content: center;
}
@media (hover: hover) and (pointer: fine) {
.menu-btn img:hover {
    transition: transform 0.2s ease;
    transform: scale(1.2);
}
}
.menu-btn img:active {
    transform: scale(0.9);
}
.header .menu-btn img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.logo-img {
    width: 110px;
    margin-top: 3px;
}

/* loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
}
.loading-box {
    width: 60px;
    height: 60px; 
    background: #e2e2e2a6;
    backdrop-filter: blur(30px);
    border-radius: 200px; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading-gif {
    max-width: 50%;
    max-height: 50%;
}

/* floating nuttons */
.floating-btn1 {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #0022ff;
    border: none;
    border-radius: 50%;
    color: white;       
    font-size: 30px;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.3s, opacity 0.3s; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    padding: 5px;
    -webkit-tap-highlight-color: transparent; 
}
.floating-btn1.visible {
    opacity: 1; 
}
@media (hover: hover) and (pointer: fine) {
.floating-btn1:hover {
    transition: transform 0.2s ease;
    transform: scale(1.2);
}
}
.floating-btn1:active {
    transform: scale(0.9);
    background: #001bc9;
}
.floating-btn2 {
    position: fixed;
    bottom: 40px;
    right: 90px;
    width: 60px;
    height: 60px;
    background: #e2e2e2a6;
    backdrop-filter: blur(30px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.3s, opacity 0.3s; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    padding: 5px;
    -webkit-tap-highlight-color: transparent; 
}
.floating-btn2.visible {
    opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
.floating-btn2:hover {
    transition: transform 0.2s ease;
    transform: scale(1.2);
}
}
.floating-btn2:active {
    transform: scale(0.9);
}
.floating-icon {
    width: 26px;
}

/* title */
.title-img {
    width: 120px;
    display: block;
    margin: 40px auto 0px;
}
.title-text {
    width: 200px;
    display: block;
    margin: 0px auto 40px;
}

/* menu */
.sidebar {
    font-family: 'Vazir', sans-serif;
    font-size: 20px;
    position: fixed;
    top: 0;
    right: -300px; 
    width: 280px;
    height: 100%;
    background-color: var(--sidebar-bg);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
    background: #e2e2e2;
    padding: 20px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; 
}
.sidebar-select {
    background: linear-gradient( to right, #1dda00, #3a54ff );
}
.sidebar.active {
    right: 0;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e2e2e200;
    backdrop-filter: blur(30px);
    z-index: 1999;
    display: none;
}
.sidebar-overlay.active {
    display: block;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000000;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-color);
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    margin-bottom: 5px;
    border-radius: 10px;
    transition: transform 0.3s, opacity 0.3s; 
}
@media (hover: hover) and (pointer: fine) {
.sidebar-nav li:hover {
  background-color: #0000000b;
}
}
.sidebar-nav li:active {
  background-color: #0000000b;
  transition: transform 0.2s ease;
  transform: scale(0.9);
}
.sidebar-nav a, .theme-btn {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 10px;
    transition: background 0.2s;
    font-size: 0.95rem;
}
.submenu {
    display: none;
    padding-right: 0px !important;
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
    margin-top: 5px;
}
.submenu.open {
    display: block;
}
.arrow {
    font-size: 0.7rem;
    float: left;
    transition: transform 0.3s;
}
.open > a .arrow {
    transform: rotate(180deg);
}
.menu-divider {
    border: 0;
    border-top: 1px solid #000000;
    margin: 15px 0;
}
.theme-btn {
    width: 100%;
    font-family: 'Vazir', sans-serif;
    border: none;
    background: none;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* text */
.text {
    font-size: 20px;
    text-align: justify;
    margin: 20px;
}

/* slider */
.slider {
    width: 100%;
    max-width: 80%;
    height: 200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}
.slides {
    height: 100%;
}
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}
.slide { 
    background: #e4e4e4; 
}
.slide.active {
    opacity: 1;
}
.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #00000000;
    color: white;
    border: none;
    font-size: 30px;
    padding: 5px 12px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s; 
    -webkit-tap-highlight-color: transparent; 
}
.slider button:active {
    transition: transform 0.2s ease;
    transform: scale(0.9);
}
.prev { 
    left: 10px; 
}
.next { 
    right: 10px; 
}

/* 4 buttons */
.ms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 50vh; 
  gap: 10px;
}
.ms-btn {
    padding: 0;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    font-family: 'Vazir', sans-serif;
    -webkit-tap-highlight-color: transparent; 
    transition: transform 0.3s, opacity 0.3s; 
}
.ms-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.ms-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-btn .icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  color: white;
  z-index: 2;
}
.ms-btn .text {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: rgb(0, 0, 0);
  font-size: 18px;
  font-weight: bold;
  z-index: 2;
}
.ms-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to bottom, #3651ff53, #3a54ff );
  z-index: 1;
}
#ms-btn-green::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to bottom, #47ff3653, #007f0d );
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
.ms-btn:hover {
    transition: transform 0.2s ease;
    transform: scale(1.02);
}
}
.ms-btn:active {
    transition: transform 0.2s ease;
    transform: scale(0.9);
}

/* cards */
.card-container {
  max-width: 1300px;
  margin: 80px auto 80px;
  padding: 0 20px;
}
.card-title {
  font-family: 'Vazir', sans-serif;
  text-align: center;
  font-size: 60px;
  margin-bottom: 80px;
  font-weight: 900;
  color: #000000;
}
.card-grid {
  display: flex;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.card {
  background-color: #c2c2c2;
  backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 15px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
.card:hover {
    transition: transform 0.2s ease;
    transform: scale(1.02);
}
}
.card:active {
    transition: transform 0.2s ease;
    transform: scale(0.9);
}
.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 15px;
}
.card h3 {
  font-size: 18px;
  margin: 10px 5px;
  font-weight: 700;
  color: #111;
}
.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  margin: 0 5px 20px;
}
.btn-v {
  margin-top: auto;
  align-self: center;
  border: none;
  background: linear-gradient(to left, #0022ff, #000be2);
  color: #ffffff;
  font-family: 'Vazir', sans-serif;
  font-size: 15px;
  padding: 12px 45px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; 
}
.btn-p {
  margin-top: auto;
  align-self: center;
  border: none;
  background: linear-gradient(to left, #009726, #00aa2a);
  color: #ffffff;
  font-family: 'Vazir', sans-serif;
  font-size: 15px;
  padding: 12px 45px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; 
}

/* footer */
.footer {
  background-color: #c2c2c2;
  width: 100%;
  height: 500px;
  border-radius: 30px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}
.footer-text {
    text-align: right;
    font-size: 20;
    margin-right: 30px;
    margin-top: 20px;
}
.footer-follow {
    display: flex;
    justify-content: center;
    gap: 130px;
    flex-wrap: wrap;
    margin-top: 50px;
    text-align: center;
}
.footer-follow .item {
    text-align: center;
    display: flex;
    width: 95px;
    flex-direction: column;
    align-items: center;
}
.footer-follow-image {
    transition: transform 0.3s ease-in-out;
    max-width: 100%;
    width: 60px;
}
@media (hover: hover) and (pointer: fine) {
    .footer-follow-image:hover {
      transform: scale(1.2);
    }
}
.footer-follow-image:active {
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.end_text {
    width: 100%;
    text-align: center;
    font-size: 12px;
    margin-top: 50px;
}

/* for mobile */
@media (max-width: 640px) {
.sidebar-nav li:hover {
  background-color: #00000000;
}
.slider {
  max-width: 94%;
  border-radius: 20px;
  height: 100px;
}
.card-title {
  font-size: 40px;
}
.card-grid {
  grid-template-columns: 1fr;
}
.card img {
  height: 100px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
}

/* for big screens*/
@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
