﻿/* =============================================
   wwwroot/css/team-section.css
   SunShine Premium Team Section
   ============================================= */

:root {
    --green-deep: #071a10;
    --green-primary: #0e3521;
    --green-secondary: #1a5230;
    --gold-bright: #FFD700;
    --gold-mid: #F9A826;
    --gold-deep: #FF8C00;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-hover: 0 25px 50px rgba(249, 168, 38, 0.15);
}

/* ---------- Page Header ---------- */
.team-page-header {
    background: linear-gradient(135deg, #071a10 0%, #0e3521 50%, #1a5230 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

    .team-page-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
        border-radius: 50%;
        animation: floatOrb 10s ease-in-out infinite;
    }

    .team-page-header::after {
        content: '';
        position: absolute;
        bottom: -50%;
        left: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(255, 140, 0, 0.12), transparent 70%);
        border-radius: 50%;
        animation: floatOrb 12s ease-in-out infinite reverse;
    }

.page-badge {
    display: inline-block;
    padding: 8px 22px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold-bright);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.page-title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.team-page-header .breadcrumb-item a {
    color: rgba(255, 245, 214, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .team-page-header .breadcrumb-item a:hover {
        color: var(--gold-bright);
    }

.team-page-header .breadcrumb-item.active {
    color: var(--gold-bright);
    font-weight: 600;
}

.team-page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
    content: "›";
}

/* ---------- Section Base ---------- */
.team-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

    .team-section::before {
        content: '';
        position: absolute;
        top: 10%;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.08), transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

/* ---------- Section Header ---------- */
.section-badge {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: var(--green-deep);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    color: var(--green-deep);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.golden-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
    border-radius: 2px;
    margin-top: 1.5rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ---------- Team Card (Glassmorphism) ---------- */
.team-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
        border-color: rgba(255, 215, 0, 0.4);
    }

/* ---------- Team Image ---------- */
.team-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

    .team-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.team-card:hover .team-image img {
    transform: scale(1.08);
}

/* Gradient overlay at bottom */
.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 26, 16, 0.2) 50%, rgba(7, 26, 16, 0.85) 100%);
    pointer-events: none;
}

/* Department Badge */
.team-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--green-deep), var(--green-secondary));
    color: var(--gold-bright);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(7, 26, 16, 0.4);
    z-index: 2;
}

/* Social Icons */
.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(180deg, transparent, rgba(7, 26, 16, 0.8));
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.team-card:hover .team-social {
    transform: translateY(0);
    opacity: 1;
}

.team-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--green-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

    .team-social a:hover {
        background: var(--gold-bright);
        color: var(--green-deep);
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    }

/* ---------- Team Info ---------- */
.team-info {
    padding: 1.5rem 1.5rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-name {
    color: var(--green-deep);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.team-card:hover .team-name {
    color: var(--gold-deep);
}

.team-role {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    min-height: 2.4em;
}

.team-divider {
    height: 2px;
    width: 40px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
    border-radius: 2px;
    margin: 1rem auto;
    transition: width 0.3s ease;
}

.team-card:hover .team-divider {
    width: 80px;
}

.team-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-deep);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: center;
}

    .team-contact-link:hover {
        background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
        color: var(--green-deep);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    }

    .team-contact-link i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .team-contact-link:hover i {
        transform: translateX(3px);
    }

/* ---------- CTA Section ---------- */
.team-cta-inner {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    max-width: 720px;
    margin: 0 auto;
}

.team-cta-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    animation: ctaIconPulse 3s ease-in-out infinite;
}

.team-cta-inner h4 {
    color: var(--green-deep);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.team-cta-inner .btn-primary {
    background: linear-gradient(135deg, var(--green-deep), var(--green-secondary));
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-weight: 700;
    color: var(--gold-bright);
    transition: all 0.3s ease;
}

    .team-cta-inner .btn-primary:hover {
        background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
        color: var(--green-deep);
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
    }

/* ---------- Expertise Section ---------- */
.team-expertise-section {
    padding: 5rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.expertise-content {
    padding: 1rem 2rem 1rem 0;
}

.expertise-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

    .expertise-item:hover {
        transform: translateY(-5px);
        background: #ffffff;
        box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15);
        border-color: rgba(255, 215, 0, 0.4);
    }

.expertise-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-award {
    background: linear-gradient(135deg, #FFD700, #F9A826);
}

.icon-training {
    background: linear-gradient(135deg, #FFC857, #FF8C00);
}

.icon-tools {
    background: linear-gradient(135deg, #FFE57F, #FFD700);
}

.icon-customer {
    background: linear-gradient(135deg, #FFF2D7, #FFC857);
}

.expertise-text h5 {
    color: var(--green-deep);
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
}

.expertise-text p {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

.expertise-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.team-expertise-section .stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--green-deep);
    margin: 0 0 0.15rem 0;
}

.team-expertise-section .stat-label {
    display: block;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.expertise-actions .btn-primary {
    background: linear-gradient(135deg, var(--green-deep), var(--green-secondary));
    color: var(--gold-bright);
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(7, 26, 16, 0.3);
}

    .expertise-actions .btn-primary:hover {
        background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
        color: var(--green-deep);
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
    }

/* Floating Badges */
.expertise-float-badge {
    position: absolute;
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 4;
    animation: floatBadge 4s ease-in-out infinite;
}

.float-badge-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.badge-certified {
    top: 0;
    left: 0;
}

.badge-experience {
    bottom: 0;
    right: 0;
    animation-delay: 2s;
}

.float-badge-text strong {
    color: var(--green-deep);
    font-size: 1.05rem;
    font-weight: 800;
}

.float-badge-text span {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Animations */
@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes ctaIconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .team-image {
        height: 280px;
    }

    .team-social {
        transform: translateY(0);
        opacity: 0.9;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }

    .team-image {
        height: 260px;
    }

    .expertise-image {
        height: 350px;
    }

    .expertise-actions, .join-cta-actions {
        flex-direction: column;
    }

        .expertise-actions .btn, .join-cta-actions .btn {
            width: 100%;
            justify-content: center;
        }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }

    .team-image {
        height: 300px;
    }

    .expertise-float-badge {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        border-radius: 12px;
    }

    .float-badge-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
