@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');
@import url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css');

* {
   box-sizing: border-box;
  }

body {
  margin: 0;
  font-family: 'Vazir', 'Vazirmatn', sans-serif;
  background-color: #f9f5ff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="5" fill="%23ffcce6" opacity="0.6"/><circle cx="80" cy="40" r="7" fill="%23c2f0ff" opacity="0.6"/><circle cx="40" cy="80" r="6" fill="%23ffd9b3" opacity="0.6"/><circle cx="70" cy="70" r="4" fill="%23e6ccff" opacity="0.6"/></svg>');
  padding-top: 140px;
  direction: rtl;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  /*کد رنگ آبی
  *background: linear-gradient(to left, #0077b6, #00b4d8);
  */
  background: linear-gradient(to left, #ff80ab, #ff4081);
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 5px solid #ffccdd;
}

header h1 {
  font-size: 28px;
  margin: 5px 0;
  font-weight: 900;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

header h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  padding-bottom: 80px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.link-item {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 3px solid #ffccdd;
  position: relative;
  overflow: hidden;
}

.link-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #ff80ab, #ff4081);
}

/*********************/
.link-item:hover {
  background-color: #e0f7fa;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.link-item:active {
  background-color: #ffd9e6;
}

.link-item a {
  text-decoration: none;
  color: #0077b6;/*رنگ آبی */
  /*color: #ff4081; *//*رنگ صورتی*/
  font-size: 18px;
  font-weight: bold;
  display: block;
  transition: color 0.3s;
}

.link-item:hover a {
  color: #d81b60;
}


.section-title {
  margin-top: 60px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #ff4081;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #ff80ab, #ff4081);
  border-radius: 2px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.image-grid img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 3px solid #ffccdd;
  cursor: zoom-in;
}

.image-item {
  text-align: center;
  transition: transform 0.3s;
}

/*****/
.image-item:hover {
  transform: translateY(-5px);
}
/****/
.image-caption {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.site-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(to left, #ff80ab, #ff4081);
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 400;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  border-top: 5px solid #ffccdd;
}

.contact-info {
  margin-top: 5px;
  font-size: 14px;
}



/* Lightbox Overlay */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.zoom-close {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/******/
@media (max-width: 768px) {
      body {
        padding-top: 140px;
      }
      
      header h1 {
        font-size: 22px;
      }

      header h2 {
        font-size: 16px;
      }

      .link-item a {
        font-size: 16px;
      }

      .section-title {
        font-size: 20px;
      }
    }

    @media (max-width: 480px) {
      .link-item {
        padding: 15px;
      }

      .link-item a {
        font-size: 14px;
      }
    }
