:root {
    /* Light theme colors - Modern and Cool */
    --bg-gradient-start: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-end: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --text-color: #2c3e50;
    --text-secondary: #34495e;
    --text-muted: #7f8c8d;
    --close-btn-color: #2c3e50;
    --close-btn-hover: #ff4d4d;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --card-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    /* Dark theme colors - Cool and Modern */
    --bg-gradient-start: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-gradient-end: linear-gradient(135deg, #232526 0%, #414345 100%);
    --text-color: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #95a5a6;
    --close-btn-color: #ecf0f1;
    --close-btn-hover: #ff4d4d;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --card-bg: rgba(52, 73, 94, 0.8);
}

body {
    margin: 0;
    font-family: 'Nunito', Arial, sans-serif;
    background: var(--bg-gradient-start);
    color: var(--text-color);
    min-height: 100vh;
    transition: all 0.5s ease;
    background-attachment: fixed;
    position: relative;
}

/* Add animated background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 226, 0.3) 0%, transparent 50%);
    z-index: -1;
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(2deg); }
}

.member-detail-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}

/* Add glassmorphism effect */
.member-detail-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: -1;
    box-shadow: 0 25px 50px var(--shadow-color);
}

.member-detail-left {
    flex: 1 1 320px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    z-index: 1;
}
.member-detail-left img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: transform 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.member-detail-left img:hover {
    transform: scale(1.05) rotate(2deg);
}

.member-detail-right {
    flex: 2 1 400px;
    max-width: 600px;
    margin: 20px;
    z-index: 1;
}
.member-detail-right h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: var(--text-color);
    position: relative;
}

.member-detail-right h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.member-detail-right h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: capitalize;
}
.member-detail-right p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-secondary);
}
@media (max-width: 900px) {
    .member-detail-container { flex-direction: column; }
    .member-detail-left, .member-detail-right { max-width: 95vw; }
}

.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--close-btn-color);
    cursor: pointer;
    z-index: 1000;
    padding: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--close-btn-hover);
    background: rgba(255, 77, 77, 0.1);
    box-shadow: 0 15px 35px var(--shadow-color);
}