/* فونت و رنگ‌بندی عمومی */
body {
  font-family: 'Vazirmatn';
  background-color: #ddd;
  /* padding-top: 106px; */
  direction: rtl;
  margin: 0;
}

/* نوار تماس ثابت */
.contact-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: white;
  padding: 10px 20px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.contact-bar a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-bar a:hover {
  color: orange;
}

/* هدر ثابت */
header {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  background-color: #333;
  padding: 10px 20px;
  z-index: 86;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: solid 1px rgb(142, 142, 142);
  box-shadow: 0 2px 6px rgba(230, 222, 222, 0.5);
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

.header-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.header-menu a:hover {
  color: orange;
}


/* انیمیشن‌ها */
@keyframes marquee-banner {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes marquee-call {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-120%);
  }
}

@keyframes marquee-shout {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-200%);
  }
}

@keyframes blinkColor {
  0%, 100% {
    color: white;
  }
  50% {
    color: hsl(41, 94%, 39%);
  }
}

.animate-blink {
  animation: blinkColor 3s infinite;
}

.marquee-text-container {
  width: 90%;
  position: relative;
  overflow: hidden;
  height: 24px;
}

.marquee-text-container::before,
.marquee-text-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 2;
}

.marquee-text-container::before {
  left: 0;
  background: linear-gradient(to right, #2d2d2d, transparent);
}

.marquee-text-container::after {
  right: 0;
  background: linear-gradient(to left, #2d2d2d, transparent);
}

.marquee-text {
  font-size: 18px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  display: inline-block;
  animation: marquee-banner 20s linear infinite;
  padding-left: 20px;
}

.animate-marquee-call {
  animation: marquee-call 25s linear infinite;
  font-family: 'Vazirmatn', sans-serif;
  white-space: nowrap;
}

.animate-marquee-shout {
  animation: marquee-shout 45s linear infinite;
  font-family: 'Vazirmatn', sans-serif;
  white-space: nowrap;
}


@keyframes expandLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 200px;
    opacity: 1;
  }
}

.animate-expand-line {
  animation: expandLine 1s ease-out forwards;
}
 

/* انیمیشن Fade In */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px); /* حرکت به پایین */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* برگشت به حالت اولیه */
  }
}

.animate-fadeIn {
  animation: fadeIn 1.2s ease-in-out 0.5s forwards; /* انیمیشن با تاخیر بیشتر و زمان بیشتر */
} 


/* واتساپ شناور */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

.whatsapp-float:hover {
  background-color: #1ebc59;
}

/* دکمه زبان */
.lang-btn {
  color: #e7e7e7;
  background-color: #333;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.lang-btn:hover {
  background-color: #ddd;
  color: #333;
}

.lang-btn.active {
  background-color: #f97316;
  color: white;
  font-weight: bold;
}

.shadow-custom {
  box-shadow: 0 4px 10px rgba(132, 131, 131, 0.267), 0 2px 4px rgba(141, 141, 141, 0.2);
}
.shadow-custom-hover:hover {
  box-shadow: 0 10px 20px rgba(120, 120, 120, 0.5), 0 4px 8px rgba(180, 180, 180, 0.4);
}


/* دکمه بازگشت به بالا */
#scrollTopBtn {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #f97316;
  color: white;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 998;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

#scrollTopBtn:hover {
  background-color: #fb923c;
}

#scrollProgressCircle {
  transition: stroke-dashoffset 0.2s ease;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .contact-bar {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }

  header nav ul {
    flex-direction: row;
    gap: 1rem;
  }

  .whatsapp-float {
    bottom: 1rem;
    left: 1rem;
  }

  section#about,
  section#services {
    flex-direction: column-reverse;
  }

  section#about img,
  section#services img {
    margin-bottom: 1.5rem;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer .flex {
    justify-content: center;
  }

  .animate-marquee-call,
  .animate-marquee-shout {
    font-size: 0.85rem;
  }

  #scrollTopBtn {
    width: 40px;
    height: 40px;
    bottom: 80px;
    left: 16px;
  }
}
