/* ========== فونت Roboto (محلی) ========== */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-VariableFont_wdth,wght.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", "Roboto", sans-serif;
  background: #f4f6f9;
  color: #2c3e50;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* هدر با تم آبی و خاکستری */
header {
  background: linear-gradient(135deg, #4a5568 0%, #2c3e50 30%, #1e3a5f 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #3b82f6;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3b82f6;
  background: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.logo-text span {
  display: block;
  font-size: 0.95rem;
  color: #b0c4de;
  font-weight: 400;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: #ffffff;
  border-bottom-color: #3b82f6;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #3b82f6;
  color: #dbeafe;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch:hover {
  background: #3b82f6;
  color: white;
  border-color: white;
}

/* هیرو */
/* هیرو با تصویر پس‌زمینه و محو */
.hero {
  position: relative;
  padding: 120px 20px;
  text-align: center;
  color: #ffffff;
  border-bottom: 3px solid #3b82f6;
  overflow: hidden;
  /* پس‌زمینه fallback تا زمان بارگذاری تصویر */
  background: #1e3a5f;
}

/* لایه محو روی تصویر */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--hero-image, url("../images/hero-bg.jpg"));
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.45);
  z-index: 0;
}

/* متن بالای لایه محو قرار گیرد */
.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px #000;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 25px;
  border-radius: 10px;
}

section {
  padding: 70px 0;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 50px;
  color: #1e3a5f;
  position: relative;
  font-weight: 700;
}

.section-title:after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: #3b82f6;
  margin: 15px auto;
  border-radius: 2px;
}

.bg-light {
  background: #f0f4f8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.9;
}

.stat-card {
  background: #1e3a5f;
  color: white;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  font-size: 3rem;
  color: #3b82f6;
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-item {
  background: white;
  border: 1px solid #d1d9e6;
  border-radius: 20px;
  padding: 25px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.service-item i {
  font-size: 2rem;
  color: #3b82f6;
}

.partner-badge {
  background: #e8f0fe;
  color: #1e3a5f;
  padding: 15px 25px;
  border-radius: 40px;
  margin: 0 auto 40px;
  text-align: center;
  border: 1px solid #3b82f6;
  display: inline-block;
  font-weight: 500;
}

/* گالری اسلایدشو */
.gallery-slideshow {
  max-width: 900px;
  margin: 0 auto;
}

.main-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.main-image-container img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.caption {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 1.1rem;
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.2s;
}

.thumb.active,
.thumb:hover {
  border-color: #3b82f6;
}

/* دانلودها */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}
.download-category {
  border: 1px solid #dce5ea;
  background: #ffffff;
  color: #172a3a;
  padding: 28px 18px;
  cursor: pointer;
  font: inherit;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 170px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.download-category:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 28px rgba(23, 50, 77, 0.12);
}
.download-category i {
  color: #1769aa;
  font-size: 2.2rem;
}
.download-category small {
  color: #6b7b89;
}
.download-modal {
  width: min(560px, calc(100% - 28px));
  border: 1px solid #dce5ea;
  padding: 0;
  box-shadow: 0 22px 70px rgba(23, 50, 77, 0.2);
}
.download-modal::backdrop {
  background: rgba(16, 42, 61, 0.4);
}
.download-modal-content {
  padding: 25px;
}
.download-modal-content h3 {
  margin: 0 0 18px;
}
.download-modal-close {
  float: left;
  border: 0;
  background: transparent;
  color: #6b7b89;
  font-size: 1.1rem;
  cursor: pointer;
}
.download-items {
  display: grid;
  gap: 8px;
}
.download-items a {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce5ea;
  padding: 12px;
  color: #172a3a;
  text-decoration: none;
}
.download-items a i:last-child {
  margin-inline-start: auto;
  color: #1769aa;
}

.download-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  border: 1px solid #e0e7f0;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.download-card i {
  font-size: 2.5rem;
  color: #3b82f6;
  margin-bottom: 15px;
}

.download-card span {
  font-weight: 500;
  color: #2c3e50;
}

/* همکاری */
.cooperation-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn {
  display: inline-block;
  margin-top: 15px;
  background: #3b82f6;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* تماس */
.contact-info {
  background: #1e3a5f;
  color: #e8f0fe;
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-info i {
  color: #3b82f6;
  margin-left: 10px;
}

/* فوتر */
.footer {
  background: #2c3e50;
  color: #b0c4de;
  padding: 40px 0;
  margin-top: 50px;
  border-top: 3px solid #3b82f6;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.useful-links h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.useful-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.useful-links a {
  color: #b0c4de;
  text-decoration: none;
  transition: color 0.2s;
}

.useful-links a:hover {
  color: white;
  text-decoration: underline;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    order: -1;
  }
}
