/* ===== OUR TEAM PAGE - PROFESSIONAL DESIGN ===== */

/* Team Hero Section */
.team-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background: linear-gradient(135deg, #004e89 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.9), rgba(26, 26, 46, 0.9));
    z-index: 1;
}

.team-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    background: #ff9f43;
    color: var(--white);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.team-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.team-hero-text {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
}

/* Team Stats Section */
.team-stats {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #27ae60;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60, #229954);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
}

.stat-icon i {
    font-size: 35px;
    color: var(--white);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.stat-number::after {
    content: '+';
    color: #27ae60;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* Team Members Section */
.team-members {
    padding: 100px 0;
    margin-top: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f8ff 100%);
    position: relative;
    overflow: hidden;
}

.team-members::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.08), transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.team-members::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.08), transparent);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.section-header-center {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
    animation: fadeInDown 0.8s ease;
}

.header-badge i {
    font-size: 16px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title-center {
    font-size: 52px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease 0.2s both;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, #27ae60, #229954, #1e8449);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.sparkle {
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.3) rotate(180deg);
        opacity: 0.8;
    }
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.title-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.underline-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #27ae60, #229954);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.underline-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #229954, #27ae60);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.underline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.7;
    }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Category */
.team-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #27ae60;
    display: inline-block;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* Team Card */
.team-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    border-color: #27ae60;
}

/* Team Image */
.team-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

/* Team Overlay */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.team-card:hover .social-links a {
    transform: translateY(0);
    opacity: 1;
}

.social-links a:nth-child(1) { transition-delay: 0.1s; }
.social-links a:nth-child(2) { transition-delay: 0.2s; }
.social-links a:nth-child(3) { transition-delay: 0.3s; }
.social-links a:nth-child(4) { transition-delay: 0.4s; }

.social-links a:hover {
    background: #27ae60;
    color: var(--white);
    transform: translateY(-5px);
}

/* Team Badge */
.team-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

/* Team Info */
.team-info {
    padding: 30px 25px;
}

.team-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.team-role {
    font-size: 15px;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Team Contact */
.team-contact {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.team-contact a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #27ae60;
    transition: all 0.3s ease;
}

.team-contact a:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: var(--white);
    transform: translateY(-3px);
}

/* Join Team CTA */
.join-team-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    position: relative;
    overflow: hidden;
}

.join-team-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
}

.cta-content-team {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.cta-icon i {
    font-size: 50px;
    color: var(--white);
}

.cta-content-team h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content-team p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.btn-cta-team {
    padding: 18px 45px;
    background: var(--white);
    color: #27ae60;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-team:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #ff9f43;
    color: var(--white);
}

.btn-cta-team i {
    transition: transform 0.3s ease;
}

.btn-cta-team:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .team-hero-title {
        font-size: 38px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-members {
        padding: 80px 0;
    }
    
    .section-title-center {
        font-size: 36px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .join-team-cta {
        padding: 80px 0;
    }
    
    .cta-content-team h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .team-hero-title {
        font-size: 28px;
    }
    
    .team-hero-text {
        font-size: 16px;
    }
    
    .section-title-center {
        font-size: 28px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .cta-content-team h2 {
        font-size: 26px;
    }
}

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}


/* ===== OUR TEAM PAGE MOBILE RESPONSIVE ===== */

@media (max-width: 768px) {
    /* Team Hero */
    .team-hero {
        padding: 80px 0 50px;
    }

    .team-main-title {
        font-size: 32px;
    }

    .team-subtitle {
        font-size: 15px;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-card {
        max-width: 100%;
    }

    /* Team Info */
    .team-info h4 {
        font-size: 20px;
    }

    .team-role {
        font-size: 14px;
    }

    .team-bio {
        font-size: 14px;
    }

    /* Category Title */
    .category-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .team-hero {
        padding: 60px 0 40px;
    }

    .team-main-title {
        font-size: 28px;
    }

    .team-subtitle {
        font-size: 14px;
    }

    .team-image {
        height: 280px;
    }

    .team-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .team-info {
        padding: 20px 15px;
    }

    .team-info h4 {
        font-size: 18px;
    }

    .category-title {
        font-size: 22px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}
