@font-face {
  font-family: kalameh;
  src: url("../fonts/KalamehWeb-Medium.woff2");
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: kalameh;
  scroll-behavior: smooth;
}

img {
  user-select: none;
}

/* =============================================
   انیمیشن‌های پایه (Keyframes)
   ============================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes floatRotate {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(10deg); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(64, 179, 162, 0.4); }
  70%  { box-shadow: 0 0 0 15px rgba(64, 179, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(64, 179, 162, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ripple {
  0% {
    box-shadow:
      0 0 0 0   rgba(255,255,255,0.1),
      0 0 0 20px rgba(255,255,255,0.1),
      0 0 0 40px rgba(255,255,255,0.1),
      0 0 0 60px rgba(255,255,255,0.1);
  }
  100% {
    box-shadow:
      0 0 0 20px rgba(255,255,255,0.1),
      0 0 0 40px rgba(255,255,255,0.1),
      0 0 0 60px rgba(255,255,255,0.1),
      0 0 0 80px rgba(255,255,255,0);
  }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* =============================================
   کلاس‌های عمومی Reveal (با JS فعال می‌شن)
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* delay برای ورود پشت سر هم */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =============================================
   HOME
   ============================================= */

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0px 10px;
  margin: 50px 0px;
}

.home-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  width: 1200px;
}

.home-rast {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 60px;
  width: 500px;
  position: relative;
  background: radial-gradient(circle, rgba(255,0,0,0.12) 0%, rgba(255,255,255,1) 50%);

  /* انیمیشن ورود از چپ */
  animation: fadeInLeft 0.9s ease both;
}

/* ستاره شناور */
.home-rast #star {
  position: absolute;
  top: 60%;
  left: 20%;
  opacity: .2;
  animation: floatRotate 4s ease-in-out infinite;
}

.home-rast-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
}

.home-rast-top h1 {
  font-size: 30px;
  /* تایپ‌رایتر جلوه shimmer روی تیتر */
  background: linear-gradient(90deg, #000 40%, #40B3A2 50%, #000 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

.home-rast-top p {
  color: gray;
  font-size: 15px;
  animation: fadeInUp 1s ease 0.4s both;
}

/* دکمه */
.btn {
  outline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #40B3A2;
  border: 0;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  box-sizing: border-box;
  padding: 5px 30px;
  color: #fff;
  text-transform: uppercase;
  overflow: hidden;
  text-decoration: none;
  transition: all .5s;

  /* ضربان دکمه */
  animation: pulse-ring 2.5s ease-out infinite;
}

.btn:hover {
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(64,179,162,0.4);
}

.btn .animation {
  border-radius: 100%;
  animation: ripple 1s linear infinite;
}

.home-rast-top h1 span {
  font-size: 22px;
  font-weight: 100;
  color: red;
  -webkit-text-fill-color: red;
}

.home-rast-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 50px;
}

/* کارت‌های آمار — ورود یکی‌یکی */
.home-rast-bottom-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid gray;
  padding-right: 20px;
  animation: countUp 0.6s ease both;
}

.home-rast-bottom-card:nth-child(1) { animation-delay: 0.6s; }
.home-rast-bottom-card:nth-child(2) { animation-delay: 0.8s; }
.home-rast-bottom-card:nth-child(3) { animation-delay: 1.0s; }

.home-rast-bottom-card h6 {
  font-size: 24px;
}

/* تصویر سمت چپ — شناور */
.home-chap {
  width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.9s ease 0.2s both;
}

.home-chap img {
  max-width: 500px;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

/* =============================================
   SERVICES
   ============================================= */

.service {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: radial-gradient(circle, rgba(9,9,121,1) 0%, rgba(0,0,0,1) 50%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.service-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 1200px;
  gap: 50px;
  padding: 50px 0px;
}

.service-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
  gap: 20px;
}

.service-title h1 { color: white; }
.service-title p  { color: #C3C5CB; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

/* هر کارت سرویس — ورود یکی‌یکی */
.service-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  background-color: white;
  max-width: 280px;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
  transition: all .5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: cardEntrance 0.6s ease both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
  background-color: #2C2C2C;
  color: white;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card-img img {
  border-radius: 10px;
  width: 60px;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
  transform: rotate(10deg) scale(1.1);
}

.service-card-title { font-size: 12px; }

.service-card-desc {
  text-align: justify;
  font-size: 13px;
  color: gray;
}

/* =============================================
   PORTFOLIO
   ============================================= */

.portfolio {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0px 10px;
  margin: 50px 0px;
}

.portfolio-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  width: 1200px;
}

.portfolio-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
}

.portfolio-title-rast {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  font-weight: bold;
  font-size: 24px;
}

.portfolio-title-rast p span { color: red; }

.portfolio-title-rast img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  /* آیکون عنوان — چرخش ملایم */
  animation: floatRotate 3s ease-in-out infinite;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 1200px;
}

.portfolio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: white;
  padding: 5px;
  border-radius: 15px;
  width: 280px;
  height: 280px;
  box-shadow: 0 0 10px rgba(128,128,128,0.2);
  border: 3px solid white;
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-decoration: none;
  overflow: hidden;
  animation: cardEntrance 0.6s ease both;
}

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }

.portfolio-card:hover {
  border: 3px solid #5462FF;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(84,98,255,0.2);
}

/* overlay رنگی روی hover */
.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(84,98,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.portfolio-card:hover::after { opacity: 1; }

.portfolio-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.portfolio-card-img img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.05);
}

.portfolio-card-about {
  position: absolute;
  background-color: rgba(255,255,255,0.4);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 2px solid rgba(255,255,255,0.8);
  bottom: 13px;
  width: 90%;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* slide up روی hover */
  transform: translateY(10px);
  opacity: 0.8;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-card-about {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-card-about p { color: black; }

/* =============================================
   RAVAND
   ============================================= */

.ravand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 50px 10px;
  background-color: #ECF1FF;
}

.ravand-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 30px;
  width: 1200px;
}

.ravand-rast {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 500px;
}

.ravand-rast img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transform: rotateY(180deg);
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

.ravand-chap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 50px;
  width: 500px;
  height: 100%;
}

.ravand-chap-top h2 {
  font-size: 24px;
}

.ravand-chap-top h2 span {
  font-weight: 100;
  color: red;
}

.ravand-chap-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.ravand-chap-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  text-align: justify;
  gap: 10px;
}

.ravand-chap-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,0,0,0.2);
  cursor: pointer;
  width: 100%;
  transition: border-color 0.3s ease;
}

.ravand-chap-card-title:hover {
  border-color: rgba(0,0,0,0.5);
}

.ravand-chap-card-title svg,
.ravand-chap-card-title i {
  transition: transform 0.3s ease;
}

/* چرخش آیکون وقتی باز می‌شه — با JS کلاس open اضافه کن */
.ravand-chap-card.open .ravand-chap-card-title svg,
.ravand-chap-card.open .ravand-chap-card-title i {
  transform: rotate(180deg);
}

.ravand-chap-card-title-rast {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
}

.ravand-chap-card-title-rast h5 {
  color: white;
  padding: 5px 15px;
  background-color: black;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.ravand-chap-card-title:hover .ravand-chap-card-title-rast h5 {
  background-color: #40B3A2;
}

.ravand-chap-card-desc {
  display: none;
  color: gray;
  font-size: 14px;
  /* fade-in برای محتوای accordion */
  animation: fadeInUp 0.35s ease both;
}

/* =============================================
   COMMENTS
   ============================================= */

.comment {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: radial-gradient(circle, rgba(9,9,121,1) 0%, rgba(0,0,0,1) 50%);
}

.comment-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 1200px;
  gap: 50px;
  padding: 50px 0px;
}

.comment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
  color: white;
}

.comment-title p { color: #C3C5CB; }

.swiper {
  width: 100%;
  padding: 10px;
}

.comment-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: white;
  border-radius: 15px;
  width: 380px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.comment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255,255,255,0.1);
}

.comment-card-desc {
  text-align: justify;
  font-size: 14px;
  color: gray;
}

.comment-card-about {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
}

.comment-card-about-img {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 55px;
}

.comment-card-about-img img {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 100%;
  border: 2px solid #5462FF;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.comment-card:hover .comment-card-about-img img {
  transform: scale(1.1) rotate(5deg);
  border-color: #40B3A2;
}

.comment-card-about-name {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.comment-card-about-name h4 {
  color: black;
  font-size: 17px;
}

.comment-card-about-name p {
  color: gray;
  font-size: 13px;
}

/* =============================================
   COMMON (FAQ)
   ============================================= */

.common {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 10px;
  margin: 50px 0px;
}

.common-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 50px;
  width: 1200px;
}

.common-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.common-top p {
  font-weight: bold;
  font-size: 24px;
}

.common-top p span {
  color: red;
  font-weight: normal;
}

.common-top img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  animation: float 4s ease-in-out infinite;
}

.common-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
  gap: 30px;
}

.common-cards {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  width: 500px;
}

.common-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.common-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,0,0,0.2);
  cursor: pointer;
  transition: border-color 0.3s ease, padding-right 0.3s ease;
}

.common-card-title:hover {
  border-color: #5462FF;
  padding-right: 5px;
}

.common-card-title-rast {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
}

.common-card-title-rast img {
  background-color: #5462FF;
  padding: 5px;
  border-radius: 3px;
  transition: transform 0.4s ease, background-color 0.4s ease;
}

.common-card-title:hover .common-card-title-rast img {
  transform: rotate(90deg);
  background-color: #40B3A2;
}

.common-card-desc {
  display: none;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  text-align: justify;
  color: gray;
  font-size: 14px;
  animation: fadeInUp 0.35s ease both;
}

/* خط پیشرفت زیر هر آکاردئون */
.common-card-desc::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, #5462FF, #40B3A2);
  border-radius: 2px;
  margin-bottom: 8px;
  animation: slideInBar 0.5s ease both;
}

.common-chap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 500px;
}

.common-chap img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: transform 0.5s ease;
}

.common-chap img:hover {
  transform: scale(1.03) rotate(-1deg);
}

/* =============================================
   BLOGS
   ============================================= */

.blogs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0px 10px;
  margin: 50px 0px;
  background-color: #ECF1FF;
}

.blogs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  padding: 50px 0px;
  width: 1200px;
}

.blogs-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.blogs-title p {
  font-weight: bold;
  font-size: 24px;
}

.blogs-title p span {
  color: red;
  font-weight: normal;
}

.blogs-cards {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.blogs-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 10px;
  width: 280px;
  height: 285px;
  background-color: white;
  padding: 15px;
  border-radius: 15px;
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: cardEntrance 0.6s ease both;
}

.blogs-card:nth-child(1) { animation-delay: 0.1s; }
.blogs-card:nth-child(2) { animation-delay: 0.2s; }
.blogs-card:nth-child(3) { animation-delay: 0.3s; }
.blogs-card:nth-child(4) { animation-delay: 0.4s; }

.blogs-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.blogs-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.blogs-card-img img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 10px;
  height: 150px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blogs-card:hover .blogs-card-img img {
  transform: scale(1.08);
}

.blogs-card-date {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  color: gray;
  font-size: 12px;
}

.blogs-card-title {
  width: 100%;
  font-size: 14px;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-y: hidden;
  text-overflow: ellipsis;
}

.blogs-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.blogs-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blogs-card-btn a {
  text-decoration: none;
  color: white;
  background-color: #5462FF;
  padding: 5px 20px;
  border-radius: 10px;
  font-size: 14px;
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blogs-card-btn a:hover {
  background-color: red;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(220,38,38,0.35);
}

/* =============================================
   REQUEST
   ============================================= */

.request {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0px 10px;
  margin: 100px 0 0 0;
}

.request-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  background: linear-gradient(135deg, #5462FF, #40B3A2);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  width: 1200px;
  padding: 50px;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
  border-top-right-radius: 10px;
  position: relative;
}

.request-container #rocket {
  position: absolute;
  top: 100px;
  left: 40px;
  width: 50px;
  animation: float 3s ease-in-out infinite;
}

.request-container #rocket2 {
  position: absolute;
  top: 70px;
  right: 40px;
  transform: rotateY(180deg);
  width: 75px;
  animation: float 3.5s ease-in-out infinite 0.5s;
}

.request-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.request-title h1 { color: white; }

.request-title h1 span {
  color: #FFD700;
  font-weight: normal;
}

.request-title p { color: aliceblue; }

form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  background-color: white;
  width: 800px;
  padding: 5px 5px;
  border-radius: 50px;
  transition: box-shadow 0.4s ease;
}

form:focus-within {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.4);
}

form input[type="tel"] {
  display: flex;
  align-items: center;
  justify-content: center;
  color: gray;
  outline: none;
  padding: 10px 20px;
  background-color: white;
  width: 100%;
  border: none;
  text-align: right;
  border-radius: 50px;
}

form input[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  background-color: red;
  padding: 10px 40px;
  border-radius: 50px;
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

form input[type="submit"]:hover {
  background-color: #cc0000;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(220,38,38,0.4);
}

form input[type="submit"]:active {
  transform: scale(0.97);
}

/* =============================================
   STAR / FACE انیمیشن اصلی
   ============================================= */

#star,
#face,
#face2 {
  transition: transform 0.5s linear;
}

.rotate { transform: rotate(360deg); }

/* =============================================
   SCROLL-REVEAL — JS مورد نیاز دارد
   کد زیر رو به آخر فایل HTML اضافه کن:

   <script>
     const observer = new IntersectionObserver((entries) => {
       entries.forEach(e => {
         if (e.isIntersecting) {
           e.target.classList.add('visible');
         }
       });
     }, { threshold: 0.15 });
     document.querySelectorAll('.reveal, .reveal-left, .reveal-right')
       .forEach(el => observer.observe(el));
   </script>

   ============================================= */

/* =============================================
   RESPONSIVE — موبایل (max 600px)
   ============================================= */

@media screen and (max-width: 600px) {

  .home-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
  }

  .home-rast,
  .home-chap {
    width: 100%;
  }

  .home-chap img { width: 100%; }

  .service-container {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .service-title {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .service-cards {
    grid-template-columns: repeat(1, auto);
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .portfolio-container { width: 100%; }

  .portfolio-title {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  .portfolio-cards {
    grid-template-columns: repeat(1, auto);
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .ravand-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
  }

  .ravand-rast,
  .ravand-chap { width: 100%; }

  .ravand-chap { padding: 0px 10px; }

  .comment-container { width: 100%; }

  .comment-title {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .comment-card { width: 100%; }

  .common-container { width: 100%; }

  .common-top {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .common-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0px 10px;
  }

  .common-cards,
  .common-chap { width: 100%; }

  .blogs-container {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .blogs-title {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  .blogs-title p { font-size: 30px; }

  .blogs-cards {
    grid-template-columns: repeat(1, auto);
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .request-container {
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
  }

  .request-container #rocket,
  .request-container #rocket2 { display: none; }

  .request-title {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .request-title h1 { font-size: 18px; }
  .request-title p  { font-size: 12px; }

  form {
    width: 100%;
    padding: 5px;
  }

  form input[type="tel"] { padding: 10px; }

  form input[type="submit"] { padding: 10px 20px; }

}

/* =============================================
   RESPONSIVE — تبلت (601px - 1200px)
   ============================================= */

@media screen and (min-width: 601px) and (max-width: 1200px) {

  .home-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
  }

  .home-rast,
  .home-chap { width: 100%; }

  .service-container {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .service-title { padding: 0px 10px; }

  .service-cards {
    grid-template-columns: repeat(2, auto);
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .portfolio-container { width: 100%; }

  .portfolio-title { padding: 0px 10px; }

  .portfolio-cards {
    grid-template-columns: repeat(2, auto);
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .ravand-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
  }

  .ravand-rast,
  .ravand-chap { width: 100%; }

  .ravand-chap { padding: 0px 10px; }

  .comment-container { width: 100%; }

  .comment-title {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .comment-card { width: 100%; }

  .common-container { width: 100%; }

  .common-top {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .common-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0px 10px;
  }

  .common-cards,
  .common-chap { width: 100%; }

  .blogs-container {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .blogs-title { padding: 0px 10px; }

  .blogs-cards {
    grid-template-columns: repeat(2, auto);
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .request-container {
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
  }

  .request-container #rocket,
  .request-container #rocket2 { display: none; }

  .request-title {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .request-title h1 { font-size: 18px; }
  .request-title p  { font-size: 12px; }

  form {
    width: 100%;
    padding: 5px;
  }

  form input[type="tel"] { padding: 10px; }

  form input[type="submit"] { padding: 10px 20px; }

}