/* Enhanced Team Page Styles */
.team-hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    background: linear-gradient(135deg, #0A1A3A 0%, #1A2B4A 100%);
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.team-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.team-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 700;
}

.team-hero .highlight {
    display: inline-block;
    position: relative;
}

.team-hero .highlight:after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(212, 175, 55, 0.3);
    z-index: -1;
    transition: all 0.3s ease;
}

.team-hero .subheadline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.signature-line {
    margin-top: 3rem;
    font-style: italic;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.signature-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0.8);
    transform-origin: left center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arrow-down {
    width: 30px;
    height: 30px;
    margin: 10px auto 0;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    40% {
        transform: rotate(-45deg) translateY(-10px);
    }
    60% {
        transform: rotate(-45deg) translateY(-5px);
    }
}

/* Team Members Section */
.team-members {
    padding: 8rem 0;
    background-color: var(--white);
    position: relative;
}

.team-members:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(10,26,58,0.1) 0%, rgba(255,255,255,0) 100%);
}

.team-member {
    margin-bottom: 120px;
    position: relative;
}

.team-member:last-child {
    margin-bottom: 0;
}

.member-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
    cursor: pointer;
    transition: all 0.6s ease;
}

.member-front, .member-back {
    position: relative;
    width: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    box-shadow: 0 15px 45px rgba(10, 26, 58, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.member-front {
    transform-style: preserve-3d;
    z-index: 2;
}

.member-back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    align-items: center;
}

.member-card:hover .member-front {
    transform: rotateY(180deg);
}

.member-card:hover .member-back {
    transform: rotateY(0deg);
}

.member-image {
    height: 400px;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,26,58,0) 0%, rgba(10,26,58,0.8) 100%);
}

.member-mini-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
}

.member-mini-info h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.member-mini-info .position {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tags span {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-content {
    width: 100%;
}

.back-content h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.back-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.strengths-list {
    list-style: none;
    margin-bottom: 30px;
}

.strengths-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.strengths-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 2px;
    background: var(--secondary);
}

.personal-detail {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.personal-detail i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 1.2rem;
}

.member-full-bio {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
    padding: 50px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(10, 26, 58, 0.1);
    border-radius: 8px;
}

.bio-content {
    position: relative;
    z-index: 2;
}

.bio-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></svg>');
    background-size: 40px 40px;
    opacity: 0.5;
}

.member-full-bio h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.member-full-bio .position {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.member-bio p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.member-bio .personal {
    font-style: italic;
    color: var(--primary);
    border-left: 3px solid var(--secondary);
    padding-left: 20px;
    margin-top: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Enhanced CTA Section */
.team-cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--light-gold) 100%);
    opacity: 0.9;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.cta-content .btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-content .btn-primary i {
    transition: transform 0.3s ease;
}

.cta-content .btn-primary:hover {
    background: var(--dark-gray);
}

.cta-content .btn-primary:hover i {
    transform: translateX(5px);
}

.imagebox{
        width: 200px;
        height:200px;
    border: 5px solid white;
    border-radius: 100px;
    z-index:5;
    overflow:hidden;
}

.imagebox img{
        box-sizing:border-box;
        width: 100%;
        background-size:cover;
        z-index:4;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .member-card {
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    .team-hero h1 {
        font-size: 3.2rem;
    }
    
    .member-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .team-hero {
        min-height: 700px;
    }
    
    .team-hero h1 {
        font-size: 2.5rem;
    }
    
    .member-card {
        perspective: none;
    }
    
    .member-front, .member-back {
        transform: none !important;
        position: relative;
        backface-visibility: visible;
    }
    
    .member-back {
        position: relative;
        height: auto;
        transform: none;
    }
    
    .member-full-bio {
        padding: 30px;
    }
    
    .bio-pattern {
        display: none;
    }
}

@media (max-width: 576px) {
    .team-hero h1 {
        font-size: 2rem;
    }
    
    .team-hero .subheadline {
        font-size: 1.1rem;
    }
    
    .member-image {
        height: 390px;
    }
    
    .member-mini-info h2 {
        font-size: 1.8rem;
    }
    
    .member-full-bio {
        padding: 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}