@font-face {
  font-family: Vazir;
  src: url(/font/Vazir.woff) format("woff");
  src: url(/font/shabnam/Shabnam.woff) format("woff");
}

body {
  font-family: "Vazir" !important;
  background-image: url(/image/4.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.container-box {
  width: 60%;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin: 0 auto;
  margin-top: 80px;
  padding: 10px;
  justify-content: space-between;

  align-items: center;
}

.nav-blur {
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(5px) !important;
}

.image-section img {
  width: 200px;
  height: 250px;
  border-radius: 15px;
  transition: transform 0.3s;
  object-fit: contain;
  transform: perspective(600px) rotateX(-15deg);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.image-section img:hover {
  transform: none;
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.4);
}

.info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 250px;
}

.mobile {
  display: none;
}

.mobile div {
  text-align: justify;
}

.desktop {
  width: 60%;
}

.project a {
  text-decoration: none;
  text-align: left;
  color: white;
}

.countact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.countact p {
  margin-bottom: 0;
}

.contact-mobile {

  margin: 0;
  text-decoration: none;

}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
  text-align: center;
}

.project-info h5 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #222;
}

.project-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.project-info a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(45deg, #007bff, #00c4ff);
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
  font-size: 14px;
}

.project-info a:hover {
  background: linear-gradient(45deg, #0056b3, #0094cc);
}

/* 🎨 Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-item span {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
  color: #333;
}

.skill-bar {
  height: 10px;
  border-radius: 5px;
  background: #eee;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #00c4ff);
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

/* 📱 ریسپانسیو */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}



@media (max-width: 992px) {
  .container-box {
    width: 90%;
    flex-direction: column;
    text-align: center;
    margin-top: 40px;
  }

  .info-section {
    padding: 5px !important;

  }

  .button {
    flex-direction: column;
    width: 90% !important;
    margin-bottom: 50px !important;
  }

  .button button {
    width: 100%;
  }

  .desktop {
    width: 90%;
  }

  .name {
    font-size: 16px;
  }
}