body {
  margin: 0;
  font-family: sans-serif;
  background: #f4f5f7;
  direction: rtl;
}

/* ================= HEADER ================= */
.header {
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  width: 250px; /* اندازه لوگو در لپ‌تاپ */
  height: auto;
  object-fit: contain;
}

/* Nav */
.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    justify-content:space-between ; 
  }
  .nav {
    margin-top: 10px;
    justify-content: center; /* منو هم وسط */
    gap: 20px;
  }
  .logo img {
    width: 200px; /* لوگو کوچکتر در موبایل */
  }
  .nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
}
}

/* ================= HERO ================= */
.hero {
  background: #34495e;
  color: white;
  text-align: center;
  padding: 50px 15px;
}







/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 16px;
}

/* ===== TITLE ===== */
.page-title {
  text-align: center;
  margin-bottom: 24px;
}

.page-title h1 {
  margin: 0;
  font-size: 22px;
}

.page-title p {
  font-size: 14px;
  color: #666;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.project-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.card-body p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ===== LEVEL ===== */
.level {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
}

.beginner {
  background: #4caf50;
}

.medium {
  background: #ff9800;
}

.advanced {
  background: #e53935;
}

/* ===== Footer ===== */
.footer {
  background: #111827;
  color: #fff;
  padding: 30px 20px 15px;
  font-family: 'Vazirmatn', sans-serif;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #4bc6ff;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}


/* ===== Footer Logo ===== */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* پیش‌فرض برای لپ‌تاپ */
  gap: 1px;
}

.footer-logo img {
  width: 250px; /* اندازه لوگو در لپ‌تاپ */
  height: auto;
  object-fit: contain;
  display: inline-block;
}

/* ===== Footer Info ===== */
.footer-info p {
  margin: 5px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== Footer Social ===== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social i {
  font-size: 22px;
  transition: transform 0.3s, color 0.3s;
}

.footer-social i:hover {
  color: #ff6b6b;
  transform: scale(1.3);
}

/* ===== Footer Responsive ===== */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center; /* همه آیتم‌ها در مرکز */
    gap: 15px;
  }

  .footer-logo {
    justify-content: center; /* لوگو در وسط */
    gap: 0; /* متن که حذف شده نیازی به فاصله نیست */
  }

  .footer-logo img {
    width: 200px; /* لوگو کوچکتر در موبایل */
  }

  .footer-info {
    text-align: center; /* متن‌ها هم وسط چین شوند */
  }

  .footer-info p {
    font-size: 13px;
  }

  .footer-social {
    justify-content: center; /* آیکون‌ها هم وسط چین */
    margin-top: 10px;
  }
}



.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {

  .footer-social {
    margin-top: 10px;
  }
}