/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: white;
  direction: rtl;
  overflow-x: hidden;
}

/* انیمیشن گرادیانت متحرک */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* تصویر پس‌زمینه با فید مشکی */
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url('bg.jpg') center center / cover no-repeat,
    linear-gradient(270deg, #323178, #0c1933, #323178, #064663);

  background-blend-mode: overlay;
  animation: gradientAnimation 30s ease infinite;
  background-size: cover, cover, 800% 800%;
}

/* Header */
header {
  width: 100%;
  padding: 1rem 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Main */
main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.main-container {
  max-width: 900px;
  width: 100%;
}

.small-text {
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}

/* انیمیشن fade-in با تاخیر */
.fade-in {
  opacity: 0;
  animation: fadeInAnim 1s forwards;
}

.fade-in.delay-1 { animation-delay: 0.5s; }
.fade-in.delay-2 { animation-delay: 1.5s; }
.fade-in.delay-3 { animation-delay: 2.5s; }
.fade-in.delay-4 { animation-delay: 3.5s; }
.fade-in.delay-5 { animation-delay: 4.5s; }
.fade-in.delay-6 { animation-delay: 5.5s; }

@keyframes fadeInAnim {
  to {
    opacity: 1;
  }
}

h1 {
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* تایپ از راست به چپ */
.typing-rtl {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  direction: rtl;
  animation: typingRTL 2.5s steps(20, end) forwards;
  font-size: 8rem;
  line-height: 0.8;
  padding-bottom: 0.2em;
}

.t-header {
  margin-bottom: -30px;
}

/* تایپ از چپ به راست */
.typing-ltr {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
  animation: typingLTR 2.5s steps(20, end) forwards;
  font-size: 8rem;
  line-height: 1.1;
  padding-bottom: 0.2em;
}

@keyframes typingRTL {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes typingLTR {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* نوار پیشرفت */
.progress-container {
  margin: 2rem auto 3rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  height: 15px;
  overflow: hidden;
  margin-top: 0.6rem;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
}

.progress-fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, #3e40cf, #693ecf);
  border-radius: 10px;
  animation: progressAnim 3s ease forwards;
}

@keyframes progressAnim {
  from { width: 0; }
  to { width: 10%; }
}

/* آیکون‌های شبکه اجتماعی */
.social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a svg {
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.7));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255,255,255,1));
}

/* توضیحات */
.description {
  font-weight: 300;
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  opacity: 0.85;
}
.email-form {
  margin: 2rem auto 3rem;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.input-button-wrapper {
  display: flex;
  width: 100%;
  gap: 0.8rem;
}

/* دکمه سمت چپ، گرد سمت راست */
.input-button-wrapper button {
  border-radius: 0 30px 30px 0;
  padding: 0.7rem 1.5rem;
  min-width: 90px;
  border: none;
  background: linear-gradient(90deg, #3e40cf, #693ecf);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(105, 62, 207, 0.6);
}

.input-button-wrapper button:hover {
  background: linear-gradient(90deg, #693ecf, #3e40cf);
  box-shadow: 0 6px 20px rgba(105, 62, 207, 0.8);
}

/* input سمت راست، گرد سمت چپ */
.input-button-wrapper input[type="email"] {
  flex-grow: 1;
  padding: 0.7rem 1rem;
  border-radius: 30px 0 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  text-align: center;
}

.input-button-wrapper input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-button-wrapper input[type="email"]:focus {
  border-color: #693ecf;
  background: rgba(255, 255, 255, 0.25);
}

/* متن توضیح زیر فرم */
.email-info {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-weight: 400;
  max-width: 400px;
}

/* Responsive */
@media (max-width: 600px) {
  .header-container {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .typing-rtl,
  .typing-ltr {
    font-size: 3.5rem;
    line-height: 1.1;
    padding-bottom: 0.1em;
  }

  .small-text {
    font-size: 1rem;
  }

  .description {
    font-size: 0.95rem;
    max-width: 100%;
    margin: 1rem auto 2rem;
  }

  .logo img {
    height: 25px;
  }

  .progress-bar {
    height: 10px;
  }

  .progress-fill {
    animation: progressAnim 3s ease forwards;
    width: 60%;
  }

  .progress-container {
    font-size: 1rem;
    margin: 1.5rem auto 2rem;
  }
  
  .email-form {
    max-width: 100%;
    padding: 0.5rem 1rem;
    gap: 0.6rem;
  }

  .email-form button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .email-form input[type="email"] {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }
  
}


