@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir.eot");
  src: url("../fonts/Vazir.eot?#iefix") format("embedded-opentype"),
       url("../fonts/Vazir.woff2") format("woff2"),
       url("../fonts/Vazir.woff") format("woff"),
       url("../fonts/Vazir.ttf") format("truetype");
}
/* تمام لینک‌ها هنگام هاور سفید می‌شوند */
a:hover {
  color: white !important;
  text-decoration: none; /* اگر می‌خوای زیرخط هم نداشته باشد */
}


/* جلوگیری از اسکرول افقی */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* تنظیمات عمومی */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Vazir', sans-serif;
  background-color: #f1eded;
  margin: 0;
  padding: 0;
}

/* Navbar */
.bgnav {
  background-color: rgb(185, 38, 38);
  color: white;
  position: fixed;
  width: 100%;
  z-index: 1;
}
.navbar a {
  color: white;
  font-weight: 600;
}
.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}
.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* بخش اول: تایپ با cursor */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #ff7b7b, #ff4d4d);
  color: white;
  min-height: 65vh;
}
#typeHeading {
  font-size: 30px;       /* اندازه عنوان */
  margin-top: 60px;      /* فاصله بالای عنوان */
}

#typeParagraph {
  font-size: 25px;       /* اندازه متن */
  margin-top: 15px;      /* فاصله بالای پاراگراف */
}


.hero h1, .hero p {
  display: inline-block;
  font-size: 2.5rem;
  white-space: pre-wrap;
}
.cursor {
  display: inline-block;
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  margin-left: 2px;
  animation: blink 0.7s step-start infinite;
  vertical-align: bottom;
}
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* بخش دوم: کارت خدمات */
.services {
  padding: 60px 20px;
}
.service-card {
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.3s ease;
  position: relative;
  background: #fff;
  cursor: pointer;
  perspective: 1000px;
}
.service-card:hover {
  transform: translateY(-15px) scale(1.07) rotateX(3deg) rotateY(-3deg);
  box-shadow: 0 25px 40px rgba(0,0,0,0.3);
  background: #ffe6e6;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 80%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover img {
  transform: scale(1.08) rotate(1deg);
}
.service-card h3 {
  margin: 15px 15px 0;
  color: #ff4d4d;
  font-size: 1.5rem;
  transition: color 0.3s ease, font-weight 0.3s;
}
.service-card:hover h3 {
  color: #ff0000;
  font-weight: 700;
}
.service-card p {
  padding: 0 15px 20px;
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  transition: font-weight 0.3s;
}
.service-card:hover p {
  font-weight: 600;
}

/* بخش سوم: کارت قیمت‌ها (قبلاً جوایز بود) */
.promotions {
  background: #fde4e470;
  padding: 80px 20px;
  text-align: center;
}
.promotions h2 {
  color: #ff4d4d;
  font-size: 2.8rem;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}
.promo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.promo-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 20px;
  width: 300px;
  transition: transform 0.5s, box-shadow 0.5s, font-weight 0.3s;
  perspective: 1000px;
  position: relative;
}
.promo-card:hover {
  transform: translateY(-15px) scale(1.07) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 25px 40px rgba(0,0,0,0.3);
}
.promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 80%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.promo-card:hover::before {
  opacity: 1;
}
.promo-card h4, .promo-card p {
  transition: font-weight 0.3s;
}
.promo-card:hover h4, .promo-card:hover p {
  font-weight: 700;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .hero h1, .hero p { font-size: 1.8rem; }
  .promotions h2 { font-size: 2rem; }
  .promo-card { width: 100%; }
}

/* Footer */
footer {
  background-color: #b32d2d;
  color: white;
  padding: 30px 20px;
  text-align: center;
}
footer a {
  color: white;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
