:root {
    --black: #0A0A0A;
    --dark-purple: #1A0A2E;
    --purple: #4B2E83;
    --light-purple: #6A4C93;
    --accent: #5D3FD3;
    --white: #FFFFFF;
    --gray-text: rgba(255, 255, 255, 0.8);
    --border-color: rgba(75, 46, 131, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--dark-purple) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--purple) 0%, transparent 20%);
}

header {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.team-container {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    overflow: hidden;
}

.team-title {
    font-size: 3rem;
    margin-bottom: 10rem;
    background: linear-gradient(90deg, var(--light-purple), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(93, 63, 211, 0.3);
    text-align: center;
    z-index: 2;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
}

.member {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.light-beam {
    position: absolute;
    bottom: -50px;
    width: 120px;
    height: 150px;
    background: radial-gradient(ellipse at center, 
        var(--accent) 0%, 
        rgba(93, 63, 211, 0.5) 50%, 
        transparent 80%);
    filter: blur(15px);
    border-radius: 50%;
    transform-origin: center bottom;
    animation: beam-rise 4s ease-in-out infinite alternate;
    opacity: 0.7;
    z-index: 0;
}

@keyframes beam-rise {
    0% { 
        transform: scaleY(0.8) scaleX(1);
        opacity: 0.5;
    }
    100% { 
        transform: scaleY(1.5) scaleX(1.2);
        opacity: 0.9;
    }
}

.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--purple);
    box-shadow: 0 0 30px rgba(93, 63, 211, 0.7);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.member:hover .member-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(93, 63, 211, 0.9);
    border-color: var(--accent);
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.member-title {
    font-size: 1rem;
    color: var(--light-purple);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.member-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.member-details {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label, .detail-label {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.stat-value, .detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.pvp-level {
    color: #FF5555;
}

.hours-played {
    color: #55AAFF;
}

.skill-level {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.skill-s {
    background-color: #4CAF50;
}

.skill-a {
    background-color: #8BC34A;
}

.skill-b {
    background-color: #FFC107;
    color: #333;
}

.skill-c {
    background-color: #FF9800;
}

.toggle-btn-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.toggle-btn {
    background: linear-gradient(90deg, var(--light-purple), var(--accent));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 63, 211, 0.4);
}

.member-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.crown {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-image: url('../crown.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    filter: drop-shadow(0 0 5px gold);
}

@media (max-width: 1024px) {
    .team-members {
        gap: 3rem;
    }
    .team-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .team-members {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    .team-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    header {
        flex-direction: column;
        padding: 1rem;
    }
    nav {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .team-container {
        padding: 2rem 1rem;
    }
    .team-title {
        font-size: 1.8rem;
    }
    .member-avatar {
        width: 120px;
        height: 120px;
    }
    .member-name {
        font-size: 1.3rem;
    }
}