* {
  box-sizing: border-box;
}

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: 900px;
  margin: auto;
  padding: 16px;
}

/* ABOUT */
.about {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  margin-top: 20px;
}

.about h1 {
  margin-top: 0;
  font-size: 20px;
}

.about p {
  font-size: 15px;
  line-height: 2;
  color: #444;
}

/* CONTACT */
.contact-box {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  margin-top: 20px;
}

.contact-box h3 {
  margin-top: 0;
}

.contact-item {
  background: #f7f7f7;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.contact-item span {
  display: block;
  font-size: 14px;
  color: #666;
}

.contact-item a {
  font-size: 16px;
  color: #ef4056;
  text-decoration: none;
  font-weight: bold;
}

.contact-item p {
  margin: 6px 0 0;
  font-size: 14px;
}

/* ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.delay {
  transition-delay: 0.2s;
}

/* ===== 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;
  }
}