
/* 🔹 کلیات */
.our-team-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 🔹 ویدیو بک‌گراند */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* 🔹 لایه تار روی ویدیو */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1); /* تار در ابتدا */
    transition: background 1.2s ease;
    z-index: -1;
}

/* 🔹 محتوای کارت‌ها */
.our-team-content {
    text-align: center;
    color: #fff;
    padding: 80px 20px;
    z-index: 1;
    width: 100%;
}

.team-title {
    font-size: 2.8rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

/* 🔹 کانتینر کارت‌ها */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    
}

/* 🔹 کارت‌ها */
.team-card {
     background: rgba(26, 26, 26, 0.2);
    color: #fff;
    border-radius: 15px;
    width: 280px;
    opacity: 0.5;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    
    /* اولیه */
   
    transform: translateY(50px);
}

/* کارت هنگام نمایش */
.team-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-in-out;
}

.team-card:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 10px #a30707;
}

.team-image img {
    width: 100%;
    border-radius: 15px 15px 0 0;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.15);
}

.team-info {
    padding: 20px;
    transition: all 0.4s ease;
}

.team-info h3 {
    margin: 10px 0 5px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
}

.team-info p {
    font-size: 1.2rem;
    color: #ccc;
    opacity: 0.85;
}
/* 🔹 Services Section---------------- */
.services-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* برای اینکه محتوا زیر هم قرار بگیره */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* مهم */
    z-index: 0;
}
.services-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1); /* در ابتدا کاملاً تار */
    transition: background 1.2s ease;
    z-index: -2;
}
.services-title {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 50px;
    letter-spacing: 2px;
    position: relative;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.service-card {
    background: rgba(26, 26, 26, 0.2); /* transparent background only */
    padding: 30px 20px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(60px);
}


.service-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #a30707;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    font-size: 1.1rem;
    color: #ccc;
    opacity: 0.85;
}

/* Hover effect */
.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px #a30707;
}

/* Responsive */
@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }
}
