@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

body {
  background-color: rgb(203, 211, 212);
  overflow-x: hidden;
}

@font-face {
  font-family: "vazir";
  src: url(../Fonts/Vazir.eot),
    url(../Fonts/Vazir.ttf),
    url(../Fonts/Vazir.woff),
    url(../Fonts/Vazir.woff2);
}

@font-face {
  font-family: "shabnam";
  src: url(../Fonts/Shabnam-Bold.eot),
    url(../Fonts/Shabnam-Bold.ttf),
    url(../Fonts/Shabnam-Bold.woff),
    url(../Fonts/Shabnam-Bold.woff2);
}

@font-face {
  font-family: "modam";
  font-weight: bold;
  src: url(../Fonts/Modam-Medium.eot),
    url(../Fonts/Modam-Medium.svg),
    url(../Fonts/Modam-Medium.ttf),
    url(../Fonts/Modam-Medium.woff),
    url(../Fonts/Modam-Medium.woff);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}
.main{
    width: 94%;
    background: linear-gradient(135deg, #1c357d, #373272);
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    margin-bottom: 2%;
}
.main h2{
    color: white;
    text-align: center;
    font-family: "shabnam";
    padding: 2% 0% 1% 0%;

}
.about{
  color: white;
    text-align: justify;
    border-bottom: 3px solid white;
    padding: 1% 2% 2% 2%;
    font-family: "vazir";
}
.portfolio {
  padding: 5% 5% 5% 5%;
  text-align: center;
}

.portfolio h2 {
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
}

.subtitle {
  font-size: 15px;
  color: #c7d2fe;
  margin-bottom: 50px;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(30, 41, 59, 0.8);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ✅ کارت همیشه از بالا تا پایین پر می‌مونه */
  height: 100%; /* ✅ ارتفاع کارت ثابت و منظم */
}


.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px black;
}

.project-card img {
  width: 100%;
  height: 200px;
  /* object-fit: cover; */
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1; /* ✅ محتوا فضای میانی را پر می‌کند */
}


.project-info h3 {
  color: #60a5fa;
  margin-bottom: 10px;
  font-size: 18px;
  font-family: "shabnam";
}

.project-info p {
  font-size: 14px;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 15px;
  flex-grow: 1; /* ✅ متن وسط قرار می‌گیرد */
  font-family: "vazir";
}

.project-info span {
  display: block;
  font-size: 13px;
  color: #a5b4fc;
  margin-bottom: 15px;
  color: #a5b4fc;
}
.btn {
  display: block;
  /* background: linear-gradient(135deg, #3b82f6, #6366f1); */
  background-color: #3b82f6 !important;
  color: white;
  text-decoration: none;
  padding: 12px 0;
  border-radius: 0 0 15px 15px; /* ✅ دکمه پایین کارت گرد و یک‌دست میشه */
  font-size: 14px;
  text-align: center;
  margin-top: auto; /* ✅ دکمه میره پایین کارت */
  font-family: "modam" !important;
}
.btn:hover{
  background-color: #3271d5 !important ; 
}


