* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    background: #fff;
    font-family:'Vazirmatn', sans-serif;
    overflow-x: hidden; /* حذف اسکرول نواری */
    direction: rtl;
  }





  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    position: relative;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scrollbar-width: none;
  }

  .container::-webkit-scrollbar {
    display: none;
  }

  .dot-scroll {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .dot-scroll .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #aaa;
    transition: background 0.3s;
    cursor: pointer;
  }

  .dot-scroll .dot.active {
    background: #333;
  }

  .container .section:not(.container .section:first-child) {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-rows: 400px 11px;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding-bottom: 40px;
  }
  .container .section:first-child {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    margin-bottom: 300px;
  }
  .container .section:last-child {
    min-height: auto !important;
    display: block !important;
  }

  .cards {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 20px;
  }

  .card {
    width: 29vw;
    height: 29vw;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
  }

  .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
    z-index: 1;
  }

  .card.clicked .overlay {
    background: rgba(0,0,0,0.7);
  }

  .text-slide {
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    font-size: clamp(16px, 2vw, 20px);
    z-index: 2;
    transition: left 0.5s ease-in-out;
  }

  .card.clicked .text-slide {
    left: 0;
  }

/* Footer */
.custom-footer {
  background-color: #0078ff;
  color: #fff;
  padding: 30px 15px;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-box {
  flex: 1 1 30%; 
  margin: 10px;
  min-width: 250px;
}

.footer-box h3 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-box p,
.footer-box ul,
.footer-box li {
  font-size: 0.95em;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  color: #ffffff;
}

.footer-box ul {
  list-style: none;
}

.footer-box ul li {
  margin-bottom: 10px;
}

.footer-box ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-box ul li a:hover {
  color: #f1f1f1;
}

.footer-box .contact-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-box .contact-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.85em;
}

.social-media {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-media a {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-media a:hover {
  background-color: #0078ff;
}
.contact-info p a{
  color: #ffffff;
}