@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazir.eot");
    src: url("../fonts/Vazir.eot?#iefix") format('embedded-opentype'),
         url("../fonts/Vazir.woff2") format("woff2"),
         url("../fonts/Vazir.woff") format("woff"),
         url("../fonts/Vazir.ttf") format("truetype");
}
/* تمام لینک‌ها هنگام هاور سفید می‌شوند */
a:hover {
  color: white !important;
  text-decoration: none; /* اگر می‌خوای زیرخط هم نداشته باشد */
}

.bgnav {
    background-color: rgb(179, 40, 40);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1;
}
nav a {
    color: white;
}
.bgnav :hover {
    color: white;
}
.nav-item a {
    color: white;
}
.nav-item a:hover {
    color: white;
    background-color: rgba(255, 251, 251, 0.635);
}

body {
    font-family: 'Vazir', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    overflow-x: hidden;
}

/* Navbar */
.bgnav {
    background-color: rgb(185, 38, 38);
}
.navbar a {
    color: white;
    font-weight: 600;
}
.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Hero */

 .hero {
    text-align: center;
    color: rgb(155, 50, 50);
    padding: 120px 20px;
    overflow: hidden;
    background:url(../img/istockphoto-1490141850-612x612.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 450px;
}
.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    animation: floatText 6s ease-in-out infinite;
}
.hero p {
    font-size: 26px;
    margin-top: 15px;
    animation: floatText 8s ease-in-out infinite alternate;
}

/* Animations */
 @keyframes floatText {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
} 



/* Section */
.section {
    padding: 60px 20px;
    text-align: center;
}
.section h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 50px;
    font-weight: 700;
}

/* داستان ما */
.story-box {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(205, 9, 9, 0.1);
    animation: slideFade 1s ease forwards;
    opacity: 0;
}
@keyframes slideFade {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(50px); }
}

/* ماموریت و ارزش‌ها */
.feature-box {
    display: inline-block;
    width: 250px;
    margin: 15px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: 0.5s;
    animation: floatIcon 4s ease-in-out infinite;
}
.feature-box:hover {
    transform: translateY(-15px) rotate(-1deg);
    box-shadow: 3px 3px 3px 3px rgb(178, 27, 27);

}
.feature-box i {
    font-size: 50px;
    color: #b84141;
    margin-bottom: 15px;
}
@keyframes floatIcon {
    0% { transform: translateY(0px); }
    25% { transform: translateY(-25px); }
    50% { transform: translateY(0px); }
    75% { transform: translateY(25px); }
    100% { transform: translateY(0px); }
}

/* تیم ما */
.team-member {
    display: inline-block;
    width: 200px;
    margin: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    animation: zoomIn 1s ease forwards;
    opacity: 0;
}
.team-member:hover {
    transform: scale(1.05);
}
.team-member h5 {
    margin-top: 10px;
    font-weight: 600;
}
.team-member p {
    font-size: 14px;
    color: #555;
}
@keyframes zoomIn {
    to { opacity: 1; transform: scale(1); }
    from { opacity: 0; transform: scale(0.5); }
}

/* CTA */
.cta-btn {
    font-size: 22px;
    padding: 15px 40px;
    border-radius: 50px;
    background: #b84141;
    color: white;
    margin-top: 40px;
    animation: pulseBtn 2s infinite;
    text-decoration: none;
    display: inline-block;
}
.cta-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(184, 65, 65, 0.8);
}
@keyframes pulseBtn {
    0% { transform: scale(1); box-shadow: 0 0 10px #ff6767; }
    50% { transform: scale(1.1); box-shadow: 0 0 25px #ff6767; }
    100% { transform: scale(1); box-shadow: 0 0 10px #ff6767; }
}

/* Footer */
footer {
    background: #b84141;
    color: white;
    padding: 40px 20px;
    text-align: center;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}



/* فقط برای بخش تیم ما */
.team-member {
  display: inline-block;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  margin: 20px;
  padding: 25px 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}
.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff000033;
  transition: 0.4s ease;
}
.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.team-member:hover img {
  transform: scale(1.1) rotate(-3deg);
  border-color: #ff0000;
}
.image-container {
  position: relative;
  display: inline-block;
}
.image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s ease;
}
.image-container:hover::before {
  opacity: 1;
  
}
/* آیکون‌ها */
.social-icons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  gap: 10px;
transform: scale(1.1); /* تصویر کمی بزرگ شود */
}
.image-container:hover .social-icons {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  
}
.social-icons a {
  color: #fff;
  background: #f72323d2;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}
.social-icons a:hover {
  background: #0056b3;
  transform: translateY(-3px);
}




.image-container {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 50%; /* برای دایره */
  
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.image-container:hover .team-img {
  transform: scale(1.1); /* تصویر کمی بزرگ شود */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3); /* نیمه‌شفاف */
  transition: background-color 0.3s;
}

.image-container:hover .overlay {
  background-color: rgba(231, 76, 60, 0.5); /* رنگ هاور تغییر می‌کند */
}
