/* Webfont: Yekan */
@font-face {
	font-family: 'Yekan';
	src:	url('font/Yekan.eot'); /* IE9 Compat Modes */
	src:	url('font/Yekan.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
			url('font/Yekan.woff2') format('woff2'), /* Modern Browsers */
			url('font/Yekan.woff') format('woff'), /* Modern Browsers */
			url('font/Yekan.otf') format('opentype'), /* Open Type Font */	
			url('font/Yekan.ttf') format('truetype'); /* Safari, Android, iOS */
	font-weight: normal;
	font-style: normal;
	text-rendering: optimizeLegibility;
	font-display: auto;
}





body {
  margin: 0;
  font-family: 'Yekan',Tahoma, Arial, sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.9;
}



header {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 3.2rem;
}

header p {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* CTA Button */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 34px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,152,0,0.7); }
  70% { box-shadow: 0 0 0 18px rgba(255,152,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,152,0,0); }
}

section {
  padding: 20px 15px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  color: #203a43;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* Form */
.send-form {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.send-form label {
  display: block;
  margin: 15px 0 6px;
  font-weight: bold;
}

.send-form input,
.send-form textarea {
  width: 95%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.send-form button {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
}

/* WhatsApp Button */
.social-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.social {
  width: 150px;
  height: 52px;
  border-radius: 3%;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}


/* رنگ‌ها */
.whatsapp { background: #25D366; }
.rubika   { background: #6f2dbd; }
.eitaa    { background: #ff9800; }
.bale     { background: #0d47a1; }




.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.contact {
  padding: 14px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  opacity: 0.4;
  pointer-events: none;
  transition: 0.3s;
}

.contact-buttons.active .contact {
  opacity: 1;
  pointer-events: auto;
}

.call-btn {
  display: inline-block;
  width: 85%;

  padding: 12px;
  background: #2e7d32;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.call-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  background: #ff00aa;   color: #ffffff;
}


footer{text-align: center;}


/* حالت پایه کارت */
.switcher .card {
  opacity: 0.9;
  transform: scale(0.98);
  transition: 0.1s;
  position: relative;
}

/* انیمیشن چشمک خیلی ملایم */
@keyframes softBlink {
  0%   { opacity: 0.9; transform: scale(0.98); }
  10%  { opacity: 1;   transform: scale(1);   box-shadow: 0 8px 18px rgba(0,0,0,0.15); }
  25%  { opacity: 1;   transform: scale(1); }
  35%  { opacity: 0.9; transform: scale(0.98); }
  100% { opacity: 0.9; }
}

/* کانال‌ها با تاخیر */
.ch1 { animation: softBlink 3s infinite; }
.ch2 { animation: softBlink 3s infinite .2s; }
.ch3 { animation: softBlink 3s infinite .4s; }
.ch4 { animation: softBlink 3s infinite .6s; }







/* کارت پایه */
.led-switcher .card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  opacity: 0.6;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  transition: 0.4s;
  text-align: center;
}

/* متن */
.led-switcher .card span {
  display: block;
  font-weight: bold;
  color: #203a43;
  transition: 0.4s;
}

/* انیمیشن LED همزمان */
@keyframes ledGlowText {
  0% {
    opacity: 0.6;
    box-shadow: none;
  }

  10% {
    opacity: 1;
    box-shadow:
      0 0 6px rgba(0, 200, 255, 0.4),
      0 0 14px rgba(0, 200, 255, 0.25),
      inset 0 0 6px rgba(0, 200, 255, 0.25);
    border-color: rgba(0, 200, 255, 0.6);
  }

  25% {
    opacity: 1;
  }

  40% {
    opacity: 0.6;
    box-shadow: none;
    border-color: rgba(0,0,0,0.06);
  }

  100% {
    opacity: 0.6;
  }
}

/* انیمیشن LED متن */
@keyframes ledText {
  0% {
    color: #203a43;
    text-shadow: none;
  }

  10% {
    color: #00c8ff;
    text-shadow:
      0 0 4px rgba(0,200,255,0.7),
      0 0 10px rgba(0,200,255,0.6);
  }

  25% {
    color: #00c8ff;
  }

  40% {
    color: #203a43;
    text-shadow: none;
  }

  100% {
    color: #203a43;
  }
}

/* سوییچر 4 کاناله */
.ch1 {
  animation: ledGlowText 8s infinite;
}
.ch1 span {
  animation: ledText 8s infinite;
}

.ch2 {
  animation: ledGlowText 8s infinite 2s;
}
.ch2 span {
  animation: ledText 8s infinite 2s;
}

.ch3 {
  animation: ledGlowText 8s infinite 4s;
}
.ch3 span {
  animation: ledText 8s infinite 4s;
}

.ch4 {
  animation: ledGlowText 8s infinite 6s;
}
.ch4 span {
  animation: ledText 8s infinite 6s;
}




.diagnostic-list li {
  position: relative;
  padding: 10px 0;
  font-weight: 500;
  overflow: hidden;
}

/* خط اسکن */
.diagnostic-list li::after {
  content: "";
  position: absolute;
  right: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(0, 180, 100, 0.25),
    transparent 60%
  );
  animation: scan 6s infinite;
}

/* تاخیر برای هر آیتم */
.diagnostic-list li:nth-child(1)::after { animation-delay: 0s; }
.diagnostic-list li:nth-child(2)::after { animation-delay: 1.5s; }
.diagnostic-list li:nth-child(3)::after { animation-delay: 3s; }
.diagnostic-list li:nth-child(4)::after { animation-delay: 4.5s; }

@keyframes scan {
  0%   { right: -100%; }
  20%  { right: 100%; }
  100% { right: 100%; }
}


/*انیمیشن مربوط به هدر*/
.stability {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.stability::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  margin: 8px auto 0;
  background: linear-gradient(
    to left,
    transparent,
    rgba(0, 200, 255, 0.6),
    transparent
  );
  animation: pulseLine 1.6s ease-out 2;
  animation-delay: 0.9s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes pulseLine {
  0%   { width: 0; opacity: 0; }
  30%  { width: 70%; opacity: 1; }
  60%  { width: 70%; opacity: 1; }
  100% { width: 0; opacity: 0; }
}


/* دکمه‌ها اولیه غیرفعال */
.contact-buttons .contact {
  opacity: 0.4;
  pointer-events: none;
  transition: 0.3s;
}

/* دکمه‌ها وقتی فعال شدن */
.contact-buttons.active .contact {
  opacity: 1;
  pointer-events: auto;
}

/* مودال قوانین */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  max-width: 500px;
  margin: auto;
  text-align: right;
  position: relative;
}
.modal-content h3 { margin-top:0; }
.modal-content p { line-height: 1.6; }
.close {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 25px;
  cursor: pointer;
}
#acceptRules {
  margin-top: 20px;
  padding: 12px 20px;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.rules-link {
  color: #0d47a1;
  text-decoration: underline;
  cursor: pointer;
}




