@font-face {
  font-family: Sahel;
  src: url(fonts/webfonts/sahel-font-v1.0.0-alpha14/Sahel.woff);
}
/* ===== تنظیمات پایه ===== */
body {
  margin: 0;
  font-family: Sahel;
  background: #0f172a;
  color: #fff;
}

section {
  padding: 80px 20px;
}

/* ===== Hero ===== */
.projects-hero {
  text-align: center;
  padding-top: 120px;
}

.projects-hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.projects-hero p {
  font-size: 18px;
  opacity: 0.8;
}

/* ===== تیتر سکشن ===== */
.projects-section h2 {
  text-align: center;
  margin-bottom: 70px;
  font-size: 28px;
}
.projects-section h2::after {
  content: " ";
  display: block;
  width: 90px;
  height: 3px;
  margin: 10px auto 0;
  background: #1a5fd0;
  border-radius: 2px;
}

/* ===== گرید ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* ===== کارت پروژه ===== */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #111e3a, #0b3d91);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(40px);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 12px;
}

/* Hover حرفه‌ای */
.project-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.active {
  background: #1a5fd0;
}

.finished {
  background: #374151;
}

.owned-badge {
  background: #2563eb;
}

/* ===== انیمیشن فعال شدن ===== */
.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .projects-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
}
