/* ==========================================
   ⭐⭐ import فایل متغیر فاصله و فونت‌ها
   ========================================== */
@import url("../App_Styles/css/variables.css");
@import url("../App_Styles/css/font.css");

/* ==========================================
   RESET (ریست کامل برای همه مرورگرها)
   ========================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family:
    "Shabnam", "Vazirmatn", "IRANSans", "Yekan", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.8;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* ==========================================
   کانتینر اصلی
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 var(--side-spacing);
}

/* ==========================================
   نوار سبز (مخفی)
   ========================================== */
.top-green-bar {
  display: none;
}

/* ==========================================
   بدنه اصلی
   ========================================== */
.main-content {
  padding-top: 0;
  padding-bottom: 40px;
  flex: 1;
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.main-content h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1a1a2e;
}

.main-content p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 700px;
}

/* ==========================================
   ⭐⭐⭐ فوتر (اصلاح کامل)
   ========================================== */
.footer {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 30px 0 20px;
  margin-top: auto;

  width: calc(100% - (var(--side-spacing) * 2));
  margin-left: var(--side-spacing);
  margin-right: var(--side-spacing);
  box-sizing: border-box;
  border-radius: 8px 8px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.footer-brand {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.footer-brand h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.footer-nav {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.footer-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #2ecc71;
}

.footer-bottom {
  text-align: center;
  padding: 15px 20px 0 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-bottom strong {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
  :root {
    --side-spacing: 0.2cm;
  }
  .footer-inner {
    padding: 0 15px 15px 15px;
  }
  .footer-bottom {
    padding: 15px 15px 0 15px;
  }
}

@media (max-width: 768px) {
  :root {
    --side-spacing: 0.1cm;
  }
  .footer {
    padding: 25px 0 15px;
  }
  .footer-inner {
    flex-direction: column !important;
    text-align: center;
    padding: 0 15px 15px 15px;
    gap: 15px;
  }
  .footer-nav ul {
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  .footer-nav a {
    font-size: 0.85rem;
  }
  .footer-bottom {
    padding: 15px 15px 0 15px;
    font-size: 0.8rem;
  }
  .main-content h1 {
    font-size: 1.6rem;
  }
  .main-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --side-spacing: 0.05cm;
  }
  .footer {
    padding: 15px 0 10px;
    border-radius: 6px 6px 0 0;
  }
  .footer-inner {
    padding: 0 10px 10px 10px;
    gap: 10px;
  }
  .footer-brand h3 {
    font-size: 1rem;
  }
  .footer-nav ul {
    gap: 10px;
  }
  .footer-nav a {
    font-size: 0.75rem;
  }
  .footer-bottom {
    padding: 10px 10px 0 10px;
    font-size: 0.7rem;
  }
  .main-content h1 {
    font-size: 1.3rem;
  }
  .main-content p {
    font-size: 0.9rem;
  }
}

/* ========================================== */
/* ⭐⭐ تعریف فونت Caza */
/* ========================================== */
@font-face {
  font-family: "Caza";
  src:
    url("../App_Styles/Font/FarCasablanca.eot?#") format("eot"),
    url("../App_Styles/Font/FarCasablanca.woff") format("woff"),
    url("../App_Styles/Font/FarCasablanca.ttf") format("truetype");
}

/* ========================================== */
/* ⭐⭐ استایل دکمه بازگشت به بالا */
/* ========================================== */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

#scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  background: #27ae60;
  transform: scale(1.05);
}

/* ========================================== */
/* ⭐⭐ استایل‌های عمومی */
/* ========================================== */
img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ========================================== */
/* ⭐⭐ استایل صفحه درباره ما */
/* ========================================== */
.page-header {
  background: #f8f9fa;
  padding: 40px 0;
  text-align: center;
  border-bottom: 2px solid #2ecc71;
}

.page-header h1 {
  font-size: 2.2rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  color: #6b7280;
}

.about-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.about-text .highlight {
  color: #2ecc71;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.about-text ul li {
  padding: 8px 0;
  font-size: 1.05rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-grid {
    flex-direction: column-reverse;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
}

/* ========================================== */
/* ⭐⭐ استایل صفحه تماس با ما */
/* ========================================== */
.contact-grid {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h3 {
  font-size: 1.4rem;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  color: #555;
}

.contact-info i {
  color: #2ecc71;
  width: 30px;
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2ecc71;
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: #27ae60;
  transform: scale(1.02);
}

/* ========================================== */
/* ⭐⭐ استایل صفحات خدمات و مقالات */
/* ========================================== */
.services-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card,
.blog-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.service-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: #2ecc71;
}

.service-card h3,
.blog-card h3 {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.service-card p,
.blog-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.8;
}

.service-card .icon {
  font-size: 2rem;
  color: #2ecc71;
  margin-bottom: 15px;
  display: block;
}

.blog-card .date {
  font-size: 0.8rem;
  color: #adb5bd;
  margin-top: 10px;
  display: block;
}

/* ========================================== */
/* ⭐⭐ تنظیمات عمومی برای صفحات */
/* ========================================== */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* ========================================== */
/* ⭐⭐ انیمیشن درخشش عنوان */
/* ========================================== */

@keyframes glowShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 500% center;
  }
}

@keyframes glowShimmerRTL {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -500% center;
  }
}

/* ========================================== */
/* ⭐⭐ افکت درخشش عنوان - فونت Yekan_bold (واکنش‌گرا) */
/* ========================================== */

.glow-yekanbold {
  font-family: "Yekan_bold", "Yekan", "IRANSans", sans-serif;

  /* ✅ واکنش‌گرا با clamp */
  font-size: clamp(2rem, 4.5vw, 3.5rem);

  font-weight: 700;
  display: inline-block;

  /* ✅ برای درخشش نیاز به color: transparent داریم */
  color: transparent;

  background: linear-gradient(
    90deg,
    #1a1a2e,
    #4169e1,
    #1a237e,
    #1a1a2e,
    #4169e1,
    #1a237e,
    #1a1a2e
  );
  background-size: 500% auto;

  /* ✅ ترکیب کامل برای برش گرادیان روی متن */
  -webkit-background-clip: text;
  background-clip: text;

  /* ✅ برای مرورگرهای وب‌کیت */
  -webkit-text-fill-color: transparent;

  animation: glowShimmer 10s linear infinite;
  letter-spacing: 1px;
  transition:
    font-size 0.3s ease,
    transform 0.3s ease;
  filter: drop-shadow(0 0 20px rgba(65, 105, 225, 0.1));
}

.glow-yekanbold:hover {
  transform: scale(1.03);
  animation-duration: 5s;
  filter: drop-shadow(0 0 40px rgba(65, 105, 225, 0.25));
}

[dir="rtl"] .glow-yekanbold {
  background: linear-gradient(
    270deg,
    #1a1a2e,
    #4169e1,
    #1a237e,
    #1a1a2e,
    #4169e1,
    #1a237e,
    #1a1a2e
  );
  background-size: 500% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowShimmerRTL 10s linear infinite;
}
