/**
 * FYP Portal - Landing Page: Development Team Module
 * Clean White Background + Sky Blue Theme (< 400 lines)
 */

/* ============================================================
   TEAM SECTION CONTAINER (WHITE + SKY BLUE PALETTE)
   ============================================================ */
body.landing-page .team-section {
    position: relative;
    padding: 48px 0 38px;
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #f0f9ff 0%, #ffffff 50%, #f8fafc 100%);
    overflow: hidden;
    color: #0f172a;
}

body.landing-page .team-bg-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body.landing-page .team-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0284c7;
    background: #ffffff;
    border: 1px solid #bae6fd;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
    margin-bottom: 10px;
}

body.landing-page .team-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f2742;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

body.landing-page .team-subtitle {
    color: #475569;
    font-size: 0.88rem;
    margin-bottom: 26px;
}

/* ============================================================
   COMPACT TEAM CARDS (WHITE CARDS + SKY BLUE BORDER)
   ============================================================ */
body.landing-page .team-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
    height: 100%;
}

body.landing-page .team-card:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.18), 0 0 16px rgba(56, 189, 248, 0.15);
}

body.landing-page .team-card-inner {
    padding: 18px 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   AVATAR, RINGS & BADGES (SCALED TO 72px)
   ============================================================ */
body.landing-page .team-avatar-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
}

body.landing-page .team-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #38bdf8, #0284c7, #38bdf8);
    animation: ringRotate 6s linear infinite;
}

body.landing-page .team-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid #ffffff;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

body.landing-page .team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

body.landing-page .team-card:hover .team-avatar img {
    transform: scale(1.08);
}

body.landing-page .team-avatar::after {
    content: 'Click to preview';
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%) translateY(8px);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    z-index: 3;
}

body.landing-page .team-card:hover .team-avatar::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.landing-page .team-preview-image {
    cursor: zoom-in;
}

body.landing-page .team-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    z-index: 2;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

body.landing-page .team-avatar-badge-alt {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
}

/* ============================================================
   INFO & HIGHLIGHTS GRID
   ============================================================ */
body.landing-page .team-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body.landing-page .team-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2742;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

body.landing-page .team-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    margin-bottom: 10px;
    align-self: center;
}

body.landing-page .team-bio {
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 12px;
    min-height: 0;
}

body.landing-page .team-detail-grid,
body.landing-page .team-detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 14px;
    text-align: left;
}

body.landing-page .team-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.73rem;
    line-height: 1.25;
}

body.landing-page .team-detail-item i {
    color: #0284c7;
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

body.landing-page .team-detail-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.landing-page .team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 14px;
}

body.landing-page .skill-tag {
    font-size: 0.69rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-weight: 600;
}

body.landing-page .team-portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff !important;
    background: linear-gradient(130deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: center;
    margin-top: auto;
}

body.landing-page .team-portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.38);
    color: #ffffff !important;
}

/* ============================================================
   IMAGE MODAL PREVIEW (WHITE + SKY BLUE THEME)
   ============================================================ */
.team-image-modal .modal-content {
    background: #ffffff !important;
    border: 1px solid #bae6fd !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.25) !important;
    overflow: hidden;
}

.team-image-modal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e0f2fe;
    padding: 16px 20px;
}

.team-image-modal .modal-title {
    color: #0f2742 !important;
    font-weight: 800;
    font-size: 1.15rem;
}

.team-image-modal .modal-body {
    padding: 20px;
    text-align: center;
    background: #ffffff;
}

.team-image-modal .modal-body img {
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
    border: 1px solid #e2e8f0;
}

@media (max-width: 991.98px) {
    body.landing-page .team-section {
        padding: 70px 0 60px;
    }
}
