/* ==========================================================
   PREMIUM TEAM PAGE STYLES (COGNITO-SOFT)
========================================================== */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* =========================================
   1. PREMIUM UI HERO SECTION
   ========================================= */
.team-hero-premium {
    position: relative;
    padding: 220px 0 120px;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(10, 88, 202, 0.1) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
body.dark-mode .team-hero-premium {
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(94, 252, 2, 0.1) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px);
}

.hero-top-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
}
body.dark-mode .hero-top-glow { background: linear-gradient(90deg, transparent, var(--flyer-neon), transparent); }

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(10, 88, 202, 0.05);
    border: 1px solid rgba(10, 88, 202, 0.2);
    border-radius: 50px;
    color: var(--brand-blue);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
body.dark-mode .badge-premium {
    background: rgba(94, 252, 2, 0.05);
    border-color: rgba(94, 252, 2, 0.2);
    color: var(--flyer-neon);
}
.pulse-icon { animation: pulseIcon 2s infinite; }
@keyframes pulseIcon { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title-premium {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
    letter-spacing: -2px;
}
body.dark-mode .hero-title-premium { color: #fff; }

.text-gradient-premium {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.dark-mode .text-gradient-premium {
    background: linear-gradient(135deg, var(--flyer-neon) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc-premium {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* =========================================
   2. TEAM SECTION GLOBAL
   ========================================= */
.team-showcase {
    padding: 2rem 0 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.team-showcase {
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    --pill-bg: rgba(10, 88, 202, 0.08);
    --pill-text: var(--brand-blue);
    --pill-border: rgba(10, 88, 202, 0.2);
    --glow-color: rgba(10, 88, 202, 0.2);
}

body.dark-mode .team-showcase {
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    --pill-bg: rgba(94, 252, 2, 0.1);
    --pill-text: var(--flyer-neon);
    --pill-border: rgba(94, 252, 2, 0.2);
    --glow-color: rgba(94, 252, 2, 0.3);
}

/* =========================================
   3. PREMIUM CEO CARD
   ========================================= */
.ceo-card-premium {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-top: 2px solid var(--brand-blue);
    border-radius: 24px;
    padding: 5rem 4rem;
    margin-bottom: 6rem;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
body.dark-mode .ceo-card-premium {
    background: linear-gradient(180deg, rgba(30,41,59,0.7) 0%, rgba(15,23,42,0.8) 100%);
    border-color: rgba(255,255,255,0.05);
    border-top: 2px solid var(--flyer-neon);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px);
}

.ceo-card-premium:hover { transform: translateY(-5px); box-shadow: 0 50px 120px rgba(0,0,0,0.1); }
body.dark-mode .ceo-card-premium:hover { box-shadow: 0 50px 120px rgba(0,0,0,0.7); }

.ceo-content-wrapper { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.ceo-badge-premium {
    padding: 8px 20px;
    background: rgba(10, 88, 202, 0.05);
    color: var(--brand-blue);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}
body.dark-mode .ceo-badge-premium { background: rgba(94, 252, 2, 0.1); color: var(--flyer-neon); }

.ceo-name-premium {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -2px;
}
body.dark-mode .ceo-name-premium { color: #fff; }

.ceo-title-premium {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}
body.dark-mode .ceo-title-premium { color: var(--flyer-neon); }

.ceo-bio-premium {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
}
body.dark-mode .ceo-bio-premium { color: #cbd5e1; }

.expertise-tags-premium { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.tag-premium {
    padding: 10px 20px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex; align-items: center; gap: 8px;
}
body.dark-mode .tag-premium {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.05);
    color: #e2e8f0;
}
.tag-premium i { color: var(--brand-blue); }
body.dark-mode .tag-premium i { color: var(--flyer-neon); }

.socials-premium { display: flex; gap: 15px; justify-content: center; }

.social-icon-premium {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(0,0,0,0.05);
    color: var(--text-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
/* EXPLICIT FIX FOR ICON VISIBILITY IN DARK MODE */
body.dark-mode .social-icon-premium { 
    background: rgba(255,255,255,0.1); 
    color: #ffffff !important; /* Forces icon to be pure white against dark mode */
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon-premium:hover { background: var(--brand-blue); color: #fff; transform: translateY(-3px); }
body.dark-mode .social-icon-premium:hover { background: var(--flyer-neon); color: #000 !important; border-color: var(--flyer-neon); }

/* =========================================
   3.2 PROJECT MANAGER CARD
   ========================================= */
.pm-card-premium {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 4px solid var(--brand-blue);
    border-radius: 20px;
    padding: 3rem 3rem;
    margin-bottom: 4rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    align-items: center;
    gap: 3rem;
}
body.dark-mode .pm-card-premium {
    background: linear-gradient(135deg, rgba(30,41,59,0.5) 0%, rgba(15,23,42,0.6) 100%);
    border-color: rgba(255,255,255,0.05);
    border-left: 4px solid var(--flyer-neon);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}
.pm-card-premium:hover { transform: translateY(-3px); box-shadow: 0 30px 80px rgba(0,0,0,0.1); }
body.dark-mode .pm-card-premium:hover { box-shadow: 0 30px 80px rgba(0,0,0,0.6); }

.pm-avatar {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
body.dark-mode .pm-avatar { box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.pm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.pm-card-premium:hover .pm-avatar img {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.05);
}

.pm-content {
    flex-grow: 1;
}
.pm-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(10, 88, 202, 0.05);
    color: var(--brand-blue);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}
body.dark-mode .pm-badge { background: rgba(94, 252, 2, 0.1); color: var(--flyer-neon); }
.pm-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    letter-spacing: -1px;
}
body.dark-mode .pm-name { color: #fff; }
.pm-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
}
body.dark-mode .pm-title { color: var(--flyer-neon); }
.pm-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
body.dark-mode .pm-bio { color: #cbd5e1; }

@media (max-width: 991px) {
    .pm-card-premium { flex-direction: column; text-align: center; padding: 2rem; gap: 2rem; }
    .pm-avatar { width: 200px; height: 200px; margin: 0 auto; }
}


/* =========================================
   3.5 DEPARTMENT HEADERS
   ========================================= */
.team-department-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2.5rem;
    margin-top: 3rem;
}

.department-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    letter-spacing: -1px;
}
body.dark-mode .department-title { color: #fff; }

.department-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--glow-color), transparent);
}


/* =========================================
   4. MODERN 3D TEAM CAROUSEL (SWIPER)
   ========================================= */
.team-carousel-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.team-bg-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    color: rgba(10, 88, 202, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 5px;
}
body.dark-mode .team-bg-text {
    color: rgba(255, 255, 255, 0.02);
}

.team-carousel-section .swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    z-index: 2;
}

.team-carousel-section .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border: 4px solid #ffffff;
    transition: all 0.3s ease;
}

body.dark-mode .team-carousel-section .swiper-slide {
    border: 4px solid #1e293b;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
}

.team-carousel-section .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: filter 0.5s ease;
}

.team-carousel-section .swiper-slide-active img {
    filter: grayscale(0%);
}

.team-carousel-section .swiper-slide-active {
    border-color: var(--brand-blue);
    box-shadow: 0 25px 60px rgba(10, 88, 202, 0.3);
}

body.dark-mode .team-carousel-section .swiper-slide-active {
    border-color: var(--flyer-neon);
    box-shadow: 0 25px 60px rgba(94, 252, 2, 0.2);
}

@media (max-width: 767px) {
    .team-carousel-section .swiper-slide {
        width: 240px;
        height: 320px;
    }
}

/* Swiper Navigation & Pagination */
.team-carousel-section .swiper-button-next,
.team-carousel-section .swiper-button-prev {
    color: var(--brand-blue);
    background: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.team-carousel-section .swiper-button-next::after,
.team-carousel-section .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

body.dark-mode .team-carousel-section .swiper-button-next,
body.dark-mode .team-carousel-section .swiper-button-prev {
    color: var(--flyer-neon);
    background: #1e293b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.team-carousel-section .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
}
.team-carousel-section .swiper-pagination-bullet-active {
    background: var(--brand-blue);
    transform: scale(1.2);
}

body.dark-mode .team-carousel-section .swiper-pagination-bullet {
    background: #475569;
}
body.dark-mode .team-carousel-section .swiper-pagination-bullet-active {
    background: var(--flyer-neon);
}

/* Dynamic Info Panel */
.team-carousel-info {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    padding: 0 20px;
}

.carousel-member-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease;
}
body.dark-mode .carousel-member-name {
    color: #ffffff;
}

.carousel-member-role {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}
body.dark-mode .carousel-member-role {
    color: var(--flyer-neon);
}

.carousel-member-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: opacity 0.3s ease;
}

.carousel-member-socials .social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

body.dark-mode .carousel-member-socials .social-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-member-socials .social-btn:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 88, 202, 0.3);
}

body.dark-mode .carousel-member-socials .social-btn:hover {
    background: var(--flyer-neon);
    color: #000000;
    border-color: var(--flyer-neon);
    box-shadow: 0 8px 20px rgba(94, 252, 2, 0.3);
}
