/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  margin-left: 0;
}



/* Header */

.header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: -20px 30px 10px 20px;
  height: 100px;
}

#menu_icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2rem;
  margin-right: 1.3rem;
  display: block;
}

#close_icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2rem;
  margin-right: 16px;
  display: none;
  z-index: 1000;
}

.close_icon_active {
  display: block !important;
}

.menu_icon_active {
  display: none !important;
}

.navbar0 {
  display: grid;
  grid-template-columns: repeat(3,auto);
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  margin-right: -10px;
}

.nav-menu a:hover {
  color: #0078ff;
  transition: 0.3s;
}

.btn-primary:not(.main_change_language) {
  background-color: #0078ff;
  color: #ffffff;
  border: none;
  padding: 0.8vw 1.5vw;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 1.4rem;
  font-size: 1.1vw;
}
.main_change_language{
  background-color: #0078ff;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 1.4rem;
}

.btn-primary:hover {
  background-color: #005fcc;
  transition: 0.3s;
}

.img_header{
  width: 100px;
  margin-right: 50px;
  margin-left: 30px;
  margin-top: -.5rem;
}

.side_bar {
  background-color: #ffffffec;
  position: fixed;
  z-index: 100;
  width: 200px;
  height: 100svh;
  right: 0;
  top: 0;
  border-left: 2px solid #494949;
  transform: translateX(300px);
  -webkit-transform: translateX(300px);
  -moz-transform: translateX(300px);
  -ms-transform: translateX(300px);
  -o-transform: translateX(300px);
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}



.side_bar_language {
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 17px;
}

.menu1_active {
  transform: translateX(0);
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
}



/* Hero Section */

.hero-image {
  max-width: 23%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-row {
  width: 75%;
  margin: 100px auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  perspective: 2000px;
}

.slider-box {
  width: 45%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) rotateX(15deg) rotateY(-15deg);
  filter: blur(4px);
  opacity: 0.4;
  transition: all 0.6s ease;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  transition: all 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
/* Services Section */

.imgbar {
  display: flex;
  /* padding-right: 50px; */
}
.imgbar a {
  text-decoration: none;
  color: #000000;
}
.imgp {
  padding-right: 90px;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}
.menu {
  display: block;
  margin-top: 90px;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/*fvdv||||||||||||||||||||||||||||||||||||||||||*/

/* کانتینر انیمیشن با ارتفاع و عرض مشخص */
#animationSection {
  position: relative;
  height: 600px; /* ارتفاع دلخواه بخش */
  max-width: 1000px; /* عرض بخش */
  margin: 0 auto;
  background: transparent;
  overflow: visible;
}

/* عکس وسط */
#centerImage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background-image: url("ban/7.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 1.5s ease, transform 1.5s ease;
  z-index: 20;
}

/* دو عکس کوچیک بالا راست و پایین چپ */
.circleImage {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: drop-shadow(0 0 10px #005fcc);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 15;
  -webkit-filter: drop-shadow(0 0 10px #005fcc);
}
.circleImage.topRight {
  top: 10%;
  right: 10%;
  transform: translateX(50px);
}
.circleImage.bottomLeft {
  bottom: 10%;
  left: 10%;
  transform: translateX(-50px);
}
.circleImage.active {
  opacity: 1;
  transform: translateX(0);
}

/* خط جداکننده بین متن‌ها */
#separatorLine {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, #005fcc, transparent 80%);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 10;
  margin-right: 80px;
}
#separatorLine.active {
  opacity: 1;
}

/* متن‌های کناری */
.textContainer {
  position: absolute;
  width: 30vw;
  max-width: 450px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0;
  white-space: normal;
  letter-spacing: 0.02em;
  z-index: 15;
}

/* متن سمت راست زیر عکس بالا راست */
.textRight {
  right: 10%;
  top: calc(10% + 300px + 20px); /* زیر عکس بالا راست */
  text-align: right;
  line-height: 20px;
  font-weight: 600;
}

/* متن سمت چپ بالای عکس پایین چپ */
.textLeft {
  left: 10%;
  bottom: calc(10% + 300px + 20px); /* بالای عکس پایین چپ */
  text-align: left;
  direction: ltr;
  line-height: 25px;
  font-weight: 600;
}

.textContainer.active {
  opacity: 1;
}

.textContainer div {
  opacity: 0;
  margin-bottom: 12px;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.textLeft div {
  transform: translateX(-30px);
}
/*fvdv||||||||||||||||||||||||||||||||||||||*/

/* About Section */
.about {
  padding: 4rem 0;
  background-color: #eef5ff;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  color: #555;
  line-height: 1.8;
}
/*مقاله*/

/* باکس اصلی سفید رنگ با شادو */




/*eftekharat*/
.eft {
  display: flex;
}
.eft img {
  width: 400px;
  height: 400px;
  border-radius: 20px;
  margin-right: 30px;
  background-color: #f9f9f9;
}
.eft01 {
  text-align: center;
  margin: 30px 0 50px 0;
  font-size: 40px;
}
/* Portfolio Section */
.slider {
  align-items: center;
  display: grid;
  grid-auto-columns: 250px;
  grid-auto-flow: column;
  gap: 1rem;
  justify-content: space-evenly;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  margin: 4rem 0;
}
.card0 {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  position: relative;
  scroll-snap-align: center;
}
.card0::before {
  content: "";
  width: 100%;
  height: 120px;
  background: #0078ff;
  position: absolute;
  top: 0;
  left: 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.card0 img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  margin-top: 60px;
  position: relative;
  background: white;
}
.card0 h2 {
  font-size: 20px;
  margin: 10px 0;
}
.card0 p {
  color: gray;
  font-size: 14px;
}
#modir::before {
  content: "";
  width: 100%;
  height: 120px;
  background: #0078ff;
  position: absolute;
  top: 0;
  left: 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.stars {
  color: gold;
  margin: 10px 0;
}
.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.buttons a {
  background: #0078ff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.buttons a p {
  color: #ffffff;
}
.buttons a:hover {
  background: #005fcc;
  transition: 0.3s;
}

/* .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
} */
/* Contact Section */

.contact-feedback-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

.contact-section,
.feedback-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
}

.contact-section h2,
.feedback-section h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #222;
}

.contact-section p,
.feedback-section p {
  font-size: 1em;
  color: #4169e1;
  margin-bottom: 20px;
}

.contact_cards_container{
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 15px;
}

.contact_cards_container .contact-card:last-child{
  grid-column: 1 / 3;
}

.fas + h3 + div{
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-around;
}

.contact-card {
  text-align: center;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card i {
  font-size: 2.5em;
  color: #4169e1;
  margin-bottom: 10px;
}

.contact-card h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
}

.contact-card p {
  font-size: 0.95em;
  color: #4169e1;
}

.contact-card a {
  color: #4169e1;
  text-decoration: none;
}


.feedback-form .form-group {
  margin-bottom: 15px;
}

.feedback-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95em;
  color: #4169e1;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #4169e1;
  border-radius: 5px;
  background-color: #f9f9f9;
  transition: border 0.3s;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: #4169e1;
  outline: none;
}

.submit-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1em;
  color: #000000;
  background-color: #ffffff;
  border: 0.5px solid #4169e1;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}


.brand {
  display: flex;
  background-color: #ffffff;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  margin: 2rem auto;
  border-top: 2px solid #757575;
}
.brand .ic{
  justify-self: center;
}
.brand img {
  width: 160px;
  border-radius: 30%;
  margin: 1rem auto;
}

/* 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;
}
/* Media Queries for responsiveness */

/* Mobile */
@media only screen and (max-width: 375px) {
  .categories {
    flex-direction: column;
    align-items: center;
  }

  .menu-item {
    flex-direction: column;
  }


  .product-image {
    width: 70px;
    height: 70px;
  }

  .container {
    margin: 10px;
  }

  .footer-box {
    flex: 1 1 100%;
  }
  /*||||||||||||||||||||||||||||||||||||||||||*/
  .categories {
    flex-direction: row;
    justify-content: center;
  }

  .container {
    margin: 20px 10px;
  }

  .footer-box {
    flex: 1 1 45%;
  }
  #del2 {
    visibility: hidden;
  }
  .nav-menu {
    visibility: hidden;
  }

  .btn-primary {
    font-size: 9px;
    padding: 3px;

    /* margin-right: -220px; */
  }
  .hero-content a {
    margin-right: 0;
    text-align: center;
    margin-top: 10px;
  }

  .hero-content h1 {
    font-size: 19px;
  }
  .hero-content p {
    font-size: 14px;
  }
  .card p {
    visibility: hidden;
  }
  .card {
    height: 130px;
    width: 100px;
    margin-bottom: -90px;
    margin-right: -14px;
  }
  #zar {
    margin-top: 90px;
  }
  .lisd {
    margin-top: 30px;
    max-width: 80%;
  }
  .card h3 {
    font-size: 14px;
  }
  .par {
    display: block;
  }
  .pap {
    font-size: 14px;
    margin: 16px 10px 20px 20px;
  }
  .item {
    width: 180px;
    height: 240px;
    display: flex;
    flex-direction: column;
    padding: 7px;
    margin: 0 20px 0 50px;
    margin-bottom: 20px;
    background-color: #fcfcfc;
    border-radius: 0.25em;
    scroll-snap-align: start;
    scroll-margin-inline: 0.5em;
  }
  .item img {
    width: 50px;
  }
  .item span {
    font-size: 14px;
  }
  .item p {
    font-size: 12px;
  }
  .mag {
    display: flex;
    overflow-x: auto;
    margin: 2em 20px;
    padding: 0.5em;
    background-color: #fcfcfc;
    border-radius: 5em;
    scroll-snap-type: x mandatory;
    direction: ltr;
    width: 90%;
    height: 800px;
    box-shadow: 0 4px 10px #999999;
    padding-left: 30px;
    padding-right: 30px;
  }
  #magma {
    margin-left: 70px;
    margin-right: 70px;
  }
  .mag0 {
    width: 90%;
    margin-right: 10px;
  }

  .mag0 p {
    font-size: 14px;
  }
  .topic {
    display: block;
    margin-left: 50px;
  }
  .eft {
    display: block;
  }
  .basic {
    margin: 0;
  }

  .eft img {
    width: 300px;
    height: 370px;
    margin-right: 60px;
  }
}

/*||||||||||||||||||||||||||||||||||||||||||*/

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .categories {
    flex-direction: row;
    justify-content: center;
  }

  .container {
    margin: 20px 10px;
  }

  .footer-box {
    flex: 1 1 45%;
  }
  #del2 {
    visibility: hidden;
  }
  .nav-menu {
    margin: 3px;
    font-size: 12px;
  }

  .hero-content{
    margin-top: -4rem;
  }
  .hero-content h1 {
    font-size: 19px;
  }
  .hero-content p {
    font-size: 14px;
  }
  .par {
    display: block;
  }
  .pap {
    font-size: 14px;
    margin: 16px 10px 20px 20px;
  }
  .item {
    width: 43%;
    display: flex;
    flex-direction: column;
    padding: 7px;
    margin: 0.5em 20px 0 190px;
    margin-bottom: 20px;
    background-color: #fcfcfc;
    border-radius: 0.25em;
    scroll-snap-align: start;
    scroll-margin-inline: 0.5em;
  }
  .mag {
    display: flex;
    overflow-x: auto;
    margin: 2em 40px;
    padding: 0.5em;
    background-color: #fcfcfc;
    border-radius: 5em;
    scroll-snap-type: x mandatory;
    direction: ltr;
    width: 90%;
    height: 800px;
    box-shadow: 0 4px 10px #999999;
    padding-left: 30px;
    padding-right: 30px;
  }
  #magma {
    margin-left: 70px;
    margin-right: 70px;
  }
  .mag0 {
    width: 100%;
  }
  .mag0 p {
    font-size: 14px;
  }
  .topic {
    display: flex;
  }
  .eft {
    display: block;
  }
  .basic {
    margin: 40px 200px;
    background-color: #f9f9f9;
  }

  .eft img {
    width: 300px;
    height: 370px;
    margin-right: 60px;
  }
}

/* Desktop */
@media only screen and (max-width: 1200px) {
  .categories {
    flex-direction: row;
  }

  .container {
    margin: 40px 30px;
  }

  .footer-box {
    flex: 1 1 30%;
  }
}
/*mobile*/
