/* 
   PREMIUM TEAM SHOWCASE - RESPONSIVE DESIGN
   -----------------------------------------
*/

:root {
    --bg-gradient: linear-gradient(135deg, #CDDDDD 0%, #ACBDBA 30%, #2E2F2F 70%, #051014 100%);
    --accent-white: #ffffff;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;400;700;800&display=swap');

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* High-End Futuristic Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #050a0f;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-content {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-orb {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
}

.orb-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid transparent;
    border-top-color: var(--accent-white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: orbSpin 2s linear infinite;
}

.orb-ring::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid var(--accent-white);
    border-radius: 50%;
    opacity: 0.3;
    animation: orbPulse 1.5s ease-in-out infinite alternate;
}

.orb-core {
    position: absolute;
    inset: 15px;
    background: radial-gradient(circle at center, #fff 0%, rgba(255, 255, 255, 0.1) 70%);
    border-radius: 50%;
    box-shadow: 0 0 30px #fff;
    animation: corePulse 1.5s ease-in-out infinite alternate;
}

.loader-text-wrapper {
    text-align: center;
    overflow: hidden;
}

.loader-logo {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    animation: fadeInUp 0.5s forwards;
    opacity: 0;
}

.loader-status {
    font-family: monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    letter-spacing: 2px;
}

@keyframes orbSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbPulse {
    from {
        transform: scale(0.8);
        opacity: 0.1;
    }

    to {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

@keyframes corePulse {
    from {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 20px #fff;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 50px #fff;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Team Section */
.team-section {
    padding: 120px 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.team-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 80px;
    position: relative;
    display: inline-block;
}

.team-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-white);
    border-radius: 2px;
}

/* Team Grid - Responsive & Animated */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    perspective: 1000px;
}

.team-member {
    flex: 0 1 calc(20% - 20px);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: var(--transition);
}

.card-inner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    filter: grayscale(100%);
    transition: var(--transition);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    text-align: center;
    transform: translateY(10px);
    transition: var(--transition);
}

.name {
    display: block;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.role {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Hover States */
.team-member:hover {
    transform: translateY(-15px);
}

.team-member:hover .card-inner {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.team-member:hover .image-wrapper {
    filter: grayscale(0%);
}

.team-member:hover .image-wrapper img {
    transform: scale(1.1);
}

.team-member:hover .info-panel {
    transform: translateY(0);
}

/* Decorative Borders on Hover (User's style refined) */
.border-effects {
    position: absolute;
    inset: 15px;
    pointer-events: none;
    z-index: 2;
}

.border-effects span {
    position: absolute;
    background: var(--accent-white);
    transition: all 0.6s ease;
}

.top-line {
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
}

.bottom-line {
    bottom: 0;
    right: 0;
    height: 2px;
    width: 0;
}

.left-line {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 0;
}

.right-line {
    top: 0;
    right: 0;
    width: 2px;
    height: 0;
}

.team-member:hover .top-line {
    width: 100%;
}

.team-member:hover .bottom-line {
    width: 100%;
}

.team-member:hover .left-line {
    height: 100%;
}

.team-member:hover .right-line {
    height: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .team-member {
        flex: 0 1 calc(25% - 20px);
    }
}

@media (max-width: 1024px) {
    .team-member {
        flex: 0 1 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .team-section {
        padding: 80px 20px 60px;
    }

    .team-container {
        gap: 15px;
    }

    .team-member {
        flex: 0 1 calc(50% - 15px);
        max-width: 100%;
    }

    .image-wrapper {
        filter: grayscale(0%);
        /* Keep color on mobile for better UX */
    }
}

@media (max-width: 480px) {
    .team-member {
        flex: 0 1 100%;
    }

    .team-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .info-panel {
        padding: 20px 15px;
    }
}