/* Background image layer */
.team-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/Construction/LuxuryHouse.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

/* Dark overlay for better readability */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Section positioning */
.section {
    position: relative;
    overflow: hidden;
}

/* Description container */
.description-container {
    padding-bottom: 40px !important;
}

/* Team badge */
.team-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(43, 108, 176, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-badge i {
    font-size: 1rem;
    color: rgb(43, 108, 176);
}

/* Intro description */
.team-description-intro {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    color: rgb(43, 108, 176);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Category Titles */
.category-title {
    position: relative;
    margin-bottom: 2rem !important;
}

.category-highlight {
    display: inline-block;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 3px solid rgb(43, 108, 176);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Team card styling */
.team-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

/* Team name */
.team-name {
    color: white !important;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.team-card:hover .team-name {
    color: rgba(255, 255, 255, 1) !important;
    letter-spacing: 0.5px;
}

/* Team role */
.team-role {
    color: rgb(43, 108, 176) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.team-card:hover .team-role {
    color: rgb(63, 128, 196) !important;
}

/* Team image wrapper */
.team-img-wrapper {
    position: relative;
    display: inline-block;
    padding: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.team-card:hover .team-img-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    transform: scale(1.05);
}

.team-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.team-card:hover .team-img {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Team rank badge */
.team-rank {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgb(43, 108, 176);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    letter-spacing: 0.3px;
}

/* Specialization badges */
.team-specialization {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.spec-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.team-card:hover .spec-badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: white !important;
    color: rgb(43, 108, 176) !important;
    transform: translateY(-3px);
    border-color: white;
}

/* Home button */
.home-btn {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: white !important;
    border-color: white !important;
    color: rgb(43, 108, 176) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .description-container {
        padding-bottom: 30px !important;
    }
    .team-description-intro {
        font-size: 1.1rem;
    }
    .category-highlight {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .team-background {
        background-attachment: scroll;
    }
    
    .description-container {
        padding-bottom: 30px !important;
    }
    
    .team-img {
        width: 140px;
        height: 140px;
    }
    
    .team-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .category-highlight {
        font-size: 1.3rem;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-role {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .description-container {
        padding-bottom: 20px !important;
    }
    
    .team-description-intro {
        font-size: 1rem;
    }
    
    .home-btn {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
    
    .team-img {
        width: 130px;
        height: 130px;
    }
    
    .category-highlight {
        font-size: 1.2rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.team-badge, .team-description-intro, .category-title, .team-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.team-badge { animation-delay: 0.1s; }
.team-description-intro { animation-delay: 0.2s; }
.category-title { animation-delay: 0.3s; }
.team-card { animation-delay: 0.4s; }