/* --- Global & Background --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #050510; /* Darker space blue */
    color: #fff;
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* --- Shooting Stars (Fixed & Enhanced) --- */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure it's behind content but visible */
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    height: 2px;
    /* Tail (Left/Transparent) -> Head (Right/White). Rotated -45deg so Tail is TL, Head is BR */
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    opacity: 0;
    animation: shooting-star-anim ease-in-out infinite;
    width: 120px; /* Slightly shorter for realism */
    border-radius: 2px; /* Rounded ends */
}

/* The glowing head of the star */
.star::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0; /* Head is at the "front" (bottom-right) */
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 
        0 0 10px #fff, 
        0 0 20px #fff,
        0 0 30px #00c6ff; /* Blueish tint for sci-fi feel */
}

/* Remove the old pseudo-elements */
.star::before {
    display: none;
}

@keyframes shooting-star-anim {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(45deg) scale(0.5);
    }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translateX(600px) translateY(600px) rotate(45deg) scale(1.0);
    }
}

/* --- Premium Glassmorphism (3D & Light Effect - Dark Mode) --- */
/* Base Glass Style - Visuals Only */
.glass-style {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Glass Panel - Layout + Visuals */
.glass-panel {
    /* Inherit visual styles */
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    
    /* Layout specific */
    border-radius: 24px;
    padding: 30px;
}

/* Add a subtle shine animation to glass elements */
.glass-style::before, .glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* --- Navigation & Language Toggle --- */
.nav-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.lang-toggle {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle:hover, .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* --- Modal (Refined - Dark Neon Style) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling on body when modal is open */
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s;
    /* Flexbox for perfect centering */
    align-items: center;
    justify-content: center;
}

/* When JS sets display: flex, these rules apply. 
   We don't need the [style*="display: none"] hack if JS toggles correctly. */

.modal-content {
    background: rgba(20, 20, 25, 0.9);
    margin: auto;
    padding: 30px 25px 15px;
    border-radius: 30px;
    width: 90%;
    max-width: 380px;
    max-height: 85vh;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        0 0 40px rgba(0,0,0,0.8),
        inset 0 0 0 1px rgba(255,255,255,0.1),
        0 0 20px rgba(80, 200, 255, 0.1);
    text-align: center;
    color: #fff;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.modal-header {
    margin-bottom: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255,255,255,0.5);
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3D Neon Buttons (Vibrant Style) */
.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    margin: 0; /* Reset margin, use gap */
    border: none;
    border-radius: 50px; /* Pill shape */
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    
    /* 3D Glassy Look */
    box-shadow: 
        0 10px 20px -10px rgba(0,0,0,0.5),
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.modal-btn span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Hover Effects */
.modal-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 30px -10px rgba(0,0,0,0.6),
        inset 0 2px 0 rgba(255,255,255,0.3),
        0 0 15px rgba(255,255,255,0.2); /* Outer glow */
}

.modal-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px -5px rgba(0,0,0,0.4);
}

/* Vibrant Gradients (Matching Reference Image 3) */
.btn-blue { 
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); 
}
.btn-purple { 
    background: linear-gradient(135deg, #b721ff 0%, #21d4fd 100%); 
}
.btn-orange { 
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #feada6 100%); 
    /* Make orange a bit more vibrant/pinkish like the image */
    background: linear-gradient(135deg, #ff6a88 0%, #ff99ac 100%);
}
/* Add a new Cyan/Green variant if needed, or stick to these 3 */
.btn-cyan {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #00d2ff 100%) !important;
    background-size: 200% 200% !important;
    animation: btn-cyan-shimmer 3s ease infinite;
}
@keyframes btn-cyan-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* AI Terminal Button - teal-to-blue gradient matching site style */
.btn-ai {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 50%, #30cfd0 100%) !important;
}

/* 3D Data Pipeline Button - vivid violet-to-cyan */
.btn-3d {
    background: linear-gradient(135deg, #7f00ff 0%, #00bfff 100%) !important;
}

/* Menu button staggered entrance animation */
@keyframes menuBtnIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-scroll-area .modal-btn {
    animation: menuBtnIn 0.35s ease both;
}
.modal-scroll-area .modal-btn:nth-child(1)  { animation-delay: 0.03s; }
.modal-scroll-area .modal-btn:nth-child(2)  { animation-delay: 0.06s; }
.modal-scroll-area .modal-btn:nth-child(3)  { animation-delay: 0.09s; }
.modal-scroll-area .modal-btn:nth-child(4)  { animation-delay: 0.12s; }
.modal-scroll-area .modal-btn:nth-child(5)  { animation-delay: 0.15s; }
.modal-scroll-area .modal-btn:nth-child(6)  { animation-delay: 0.18s; }
.modal-scroll-area .modal-btn:nth-child(7)  { animation-delay: 0.21s; }
.modal-scroll-area .modal-btn:nth-child(8)  { animation-delay: 0.24s; }
.modal-scroll-area .modal-btn:nth-child(9)  { animation-delay: 0.27s; }
.modal-scroll-area .modal-btn:nth-child(10) { animation-delay: 0.30s; }
.modal-scroll-area .modal-btn:nth-child(11) { animation-delay: 0.33s; }
.modal-scroll-area .modal-btn:nth-child(12) { animation-delay: 0.36s; }
.modal-scroll-area .modal-btn:nth-child(13) { animation-delay: 0.39s; }
.modal-scroll-area .modal-btn:nth-child(14) { animation-delay: 0.42s; }
.modal-scroll-area .modal-btn:nth-child(15) { animation-delay: 0.45s; }
.modal-scroll-area .modal-btn:nth-child(16) { animation-delay: 0.48s; }
.modal-scroll-area .modal-btn:nth-child(17) { animation-delay: 0.51s; }
.modal-scroll-area .modal-btn:nth-child(18) { animation-delay: 0.54s; }

/* Scrollable menu area */
.modal-scroll-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 6px 18px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
    -webkit-overflow-scrolling: touch;
    position: relative;
    mask-image: linear-gradient(to bottom, black 0%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 92%, transparent 100%);
}
.modal-scroll-area::-webkit-scrollbar {
    width: 5px;
}
.modal-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}
.modal-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
}
.modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

.close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.close-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) rotate(90deg);
}

.close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.close-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) rotate(90deg);
}

.modal-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 30px -10px rgba(0,0,0,0.6),
        inset 0 2px 0 rgba(255,255,255,0.3),
        0 0 15px rgba(255,255,255,0.2); /* Outer glow */
}

.modal-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px -5px rgba(0,0,0,0.4);
}

/* Gradient Styles (Refined) */
.btn-blue { 
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); 
}
.btn-purple { 
    background: linear-gradient(135deg, #b721ff 0%, #21d4fd 100%); 
}
.btn-orange { 
    background: linear-gradient(135deg, #ff6a88 0%, #ff99ac 100%);
}

/* --- Team Page Styles --- */
.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.team-item {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.team-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid rgba(255,255,255,0.5);
}

.team-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9em;
    color: #ddd;
}

/* --- Typing Animation --- */
.typing-container {
    text-align: center;
    margin-top: 10vh; /* Moved up from 15vh */
    text-shadow: 0 0 20px rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

.typing-text {
    font-family: 'Ma Shan Zheng', cursive;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
    display: inline-block;
    border-right: 3px solid rgba(255,255,255,0.8);
}

#main-title {
    font-size: 5em;
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sub-title {
    font-size: 2em;
    color: #ddd;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
}

/* --- Music Player Widget --- */
.music-widget-container {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.music-player {
    width: 50px;
    height: 50px;
    padding: 0 !important; /* Fix for glass-panel padding */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 0 10px rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-player:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.netease-player-wrapper {
    /* Hidden by default, toggled via JS */
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0; /* Remove padding for APlayer */
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    width: 300px; /* Fixed width for APlayer */
    overflow: hidden;
}

/* APlayer Customization for Glass Theme */
.aplayer {
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.aplayer .aplayer-body {
    background: transparent !important;
}
.aplayer .aplayer-info {
    border-bottom: none !important;
}
.aplayer .aplayer-info .aplayer-music .aplayer-title {
    color: #fff !important;
}
.aplayer .aplayer-info .aplayer-music .aplayer-author {
    color: #ddd !important;
}
.aplayer .aplayer-lrc:before, .aplayer .aplayer-lrc:after {
    background: transparent !important; /* Remove gradient mask */
}
.aplayer .aplayer-lrc p {
    color: #ccc !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.aplayer .aplayer-list ol li {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}
.aplayer .aplayer-list ol li:hover {
    background: rgba(255,255,255,0.1) !important;
}
.aplayer .aplayer-list ol li.aplayer-list-light {
    background: rgba(255,255,255,0.2) !important;
}
.aplayer .aplayer-list ol li .aplayer-list-title {
    color: #fff !important;
}
.aplayer .aplayer-list ol li .aplayer-list-author {
    color: #ddd !important;
}

.netease-player-wrapper.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
}

/* Keep the old controls hidden if we are using Netease */
.music-controls {
    display: none;
}

/* --- Admin Dashboard (Enhanced) --- */
.admin-container {
    display: flex;
    min-height: 80vh;
    gap: 20px;
    padding: 20px;
}

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.admin-content {
    flex-grow: 1;
}

.admin-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.admin-nav-item {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(255,255,255,0.2);
}

input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: #fff;
    box-sizing: border-box;
}

input[type="file"] {
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    width: 100%;
}

/* --- Member Modal Specifics --- */
.member-card {
    width: 95%;
    max-width: 1000px !important; /* Increased width further for better gallery view */
    padding: 0 !important;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(30, 30, 40, 0.95) !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.member-header-banner {
    height: 160px; /* Taller banner */
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.1),
        0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Add a subtle shine/gradient overlay to the glass */
.member-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.close-btn-member {
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
}

.close-btn-member:hover {
    color: #fff;
    transform: scale(1.1);
}

.member-body {
    padding: 0 30px 30px;
    margin-top: -80px; /* Pull avatar up more */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Target ONLY the avatar image using the direct child selector or ID */
.member-body > img {
    width: 160px; /* Larger Avatar */
    height: 160px;
    border-radius: 50%;
    border: 6px solid rgba(30, 30, 40, 1); /* Match card bg */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    object-fit: cover;
    background: #fff;
    z-index: 2;
    margin-bottom: 15px;
}

#modal-name {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 2.2em; /* Larger Name */
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#modal-role {
    color: #00c6ff;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1em;
    background: rgba(0, 198, 255, 0.1);
    padding: 5px 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 198, 255, 0.2);
}

.member-desc-box {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
    max-height: 500px; /* Taller scroll area */
    overflow-y: auto;
}

/* Custom Scrollbar for description */
.member-desc-box::-webkit-scrollbar {
    width: 6px;
}
.member-desc-box::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}
.member-desc-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.member-desc-box::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

.member-desc-box p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #ccc;
    font-size: 1em;
}

/* Member Bio Styling */
.member-bio {
    text-align: left;
}

.member-bio h5 {
    color: #00c6ff;
    margin: 20px 0 12px 0;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 198, 255, 0.2);
    padding-bottom: 6px;
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.3);
}

.member-bio p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: #ddd;
    font-size: 0.95em;
    text-align: justify;
}

.member-bio ul {
    padding-left: 20px;
    margin: 10px 0 15px 0;
}

.member-bio li {
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.92em;
    line-height: 1.6;
}

.member-bio strong {
    color: #fff;
}

/* Content Styling for Rich Text Descriptions */
.member-detail-content h4 {
    color: #00c6ff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
}

.member-detail-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.member-detail-content li {
    margin-bottom: 10px;
    color: #ddd;
    font-size: 1em;
    line-height: 1.6;
}

/* --- Reward Gallery Styles --- */
.reward-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Much larger columns */
    gap: 20px;
    margin-top: 25px;
}

.reward-frame {
    position: relative;
    border-radius: 12px; /* Rounded corners, not round */
    overflow: hidden;
    background: #000;
    border: 2px solid rgba(255, 215, 0, 0.3); /* Gold tint border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3; /* Fixed aspect ratio for uniformity */
}

.reward-frame:hover {
    transform: scale(1.05);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    z-index: 10;
}

/* --- Chat Widget --- */
/* Toggle Button Positioned above Live2D */
.chat-toggle-btn {
    position: fixed;
    bottom: 320px; /* Adjusted to be above Live2D head */
    left: 40px;    /* Slightly offset */
    z-index: 950;
    width: 50px;
    height: 50px;
    padding: 0 !important; /* Fix for glass-panel padding */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

.chat-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Chat Box Centered */
.chat-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; /* Increased width */
    height: 700px; /* Increased height */
    display: none; /* Hidden by default */
    flex-direction: column;
    background: rgba(20, 20, 30, 0.95); /* Darker bg */
    border-radius: 30px; /* More rounded corners */
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    z-index: 1000; /* High z-index */
    animation: fadeIn 0.3s ease;
}

.chat-header {
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: bold;
}

.close-chat {
    font-size: 24px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
    line-height: 1;
}

.close-chat:hover {
    color: #fff;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}
.chat-messages::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.message {
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 85%;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.system {
    background: rgba(0, 198, 255, 0.2);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 10px;
    background: rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    color: #fff;
    outline: none;
}

.chat-input-area input::placeholder {
    color: rgba(255,255,255,0.5);
}

.chat-input-area button {
    background: transparent;
    border: none;
    color: #00c6ff;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.2);
    color: #fff;
}

.reward-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the whole certificate is visible */
    background: #1a1a1a; /* Dark background for letterboxing */
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.reward-frame:hover img {
    opacity: 1;
}

.reward-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7em;
    padding: 4px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.reward-frame:hover .reward-caption {
    transform: translateY(0);
}

/* --- Other Pages --- */
.finance-grid, .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.finance-card, .shop-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}

.finance-card:hover, .shop-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.daily-stock {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #006064;
    border-radius: 25px;
    padding: 25px;
    margin: 30px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- Footer (Social Icons) --- */
footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 25px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

footer a:hover {
    color: #fff;
    transform: scale(1.2) translateY(-3px);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* --- Mobile Responsive Design --- */
@media (max-width: 768px) {
    /* Global Font Size Reduction */
    body {
        font-size: 14px; /* Base font size reduction */
    }

    /* Typography Adjustments */
    #main-title {
        font-size: 1.8em !important; /* Much smaller */
        margin-top: 0 !important; /* Reset margin */
        margin-bottom: 10px !important;
        text-align: center;
    }
    
    #sub-title {
        font-size: 0.9em !important; /* Much smaller */
        text-align: center;
    }

    .typing-container {
        margin-top: 0 !important;
        padding-top: 28vh; /* Position at approx 30% of screen height */
        height: auto !important;
        justify-content: flex-start !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Navigation & Toggles - Smaller */
    .nav-toggle {
        top: 15px;
        right: 15px;
        width: 35px; /* Smaller */
        height: 35px;
        padding: 0;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .lang-toggle {
        top: 15px;
        left: 15px;
        padding: 5px 10px;
        font-size: 12px;
    }

    /* Chat Widget (Dialogue) - Full Screen on Mobile */
    .chat-box {
        width: 95% !important;
        height: 70vh !important; /* Smaller height */
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 15px !important;
        bottom: auto;
        right: auto;
    }

    /* Floating Widgets - Smaller & Better Positioned */
    .chat-toggle-btn {
        bottom: 70px !important;
        right: 15px !important;
        left: auto !important;
        width: 40px !important; /* Smaller */
        height: 40px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.3);
        font-size: 18px;
    }

    .music-widget-container {
        bottom: 70px !important; /* Aligned with chat toggle */
        left: 15px !important;
        right: auto !important;
        width: auto !important;
        margin: 0 !important;
        align-items: flex-start !important;
    }
    
    .music-player {
        width: 40px !important; /* Smaller */
        height: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    }

    .netease-player-wrapper {
        width: 240px; 
        transform-origin: bottom left;
        left: 0;
        right: auto;
        margin-bottom: 10px;
    }

    /* Hide Live2D on Mobile */
    #waifu, .live2d-widget-container {
        display: none !important;
    }

    /* Footer */
    footer {
        bottom: 5px;
        padding: 4px 8px;
        gap: 10px;
        width: 100%;
        justify-content: center;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(5px);
    }

    footer a {
        font-size: 16px;
    }

    /* --- Menu Modal Optimization --- */
    .modal {
        align-items: center;
        padding: 10px;
    }

    .modal-content {
        width: 88%;
        max-width: 320px;
        max-height: 80vh;
        overflow: hidden;
        padding: 18px 14px 10px;
        margin: auto;
        gap: 8px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .modal-header {
        margin-bottom: 4px;
    }

    .modal-header h2 {
        font-size: 1.2em;
    }

    .modal-btn {
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 0;
        min-height: 38px;
        border-radius: 14px;
    }

    .modal-scroll-area {
        gap: 8px;
        padding: 2px 4px 14px 0;
    }

    /* --- Finance Cards Optimization (3x3 Layout) --- */
    .finance-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 Columns */
        gap: 8px; /* Tighter gap */
        padding: 0;
    }

    .finance-card {
        padding: 8px 4px; /* Minimal padding */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px;
    }
    
    .finance-card h4 {
        font-size: 0.7em; /* Small title */
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .finance-card p:nth-of-type(1) { /* Price */
        font-size: 1em !important; /* Much smaller price */
        margin: 2px 0;
        font-weight: 600 !important;
    }

    .finance-card p:nth-of-type(2) { /* Change */
        font-size: 0.65em;
        margin: 0;
    }

    /* Stock Pool - Smaller Text */
    .daily-stock {
        padding: 15px;
        margin: 15px 0;
        border-radius: 15px;
    }

    .daily-stock h3 {
        font-size: 1em;
        margin-top: 0;
        margin-bottom: 10px;
    }

    #stock-pool-list {
        font-size: 0.8em; /* Smaller text */
        line-height: 1.4;
    }

    /* --- General Performance & Layout --- */
    .glass-panel {
        width: 96% !important;
        margin: 10px auto !important;
        padding: 15px 10px !important;
        margin-bottom: 60px !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 15px;
    }

    /* Team Grid Mobile */
    .team-list {
        grid-template-columns: repeat(3, 1fr); /* 3 Columns */
        gap: 8px;
        padding: 5px;
    }
    
    .team-item {
        width: auto;
        padding: 10px 5px;
        border-radius: 10px;
    }
    
    .team-avatar {
        width: 50px; /* Smaller avatar */
        height: 50px;
        border-width: 2px;
    }

    .team-name {
        font-size: 0.8em;
    }

    .team-role {
        font-size: 0.6em;
        padding: 1px 5px;
    }

    /* Member Card Mobile */
    .member-card {
        width: 95% !important;
        max-height: 80vh;
        overflow-y: auto;
        padding: 0 !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .member-header-banner {
        height: 80px;
    }

    .member-body {
        margin-top: -40px;
        padding: 15px;
    }

    .member-body > img {
        width: 80px;
        height: 80px;
        border: 3px solid rgba(255,255,255,0.2);
    }

    #modal-name {
        font-size: 1.3em;
    }
    
    #modal-role {
        font-size: 0.8em;
        margin-bottom: 15px;
    }

    .member-desc-box {
        padding: 15px;
        font-size: 0.85em;
    }

    /* Reward Gallery */
    .reward-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Cloud List */
    .cloud-item {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .cloud-item .modal-btn {
        width: 100%;
        text-align: center;
        font-size: 14px;
    }
    
    /* Reduce Star Complexity for Performance */
    .star::after {
        box-shadow: 0 0 3px #fff;
    }
}

/* ==========================================
   Personal Profile Page v2
   ========================================== */

.profile-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* --- Hero --- */
.profile-hero {
    text-align: center;
    padding: 40px 30px 35px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(135deg, rgba(0,198,255,0.08), rgba(168,85,247,0.08));
    pointer-events: none;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
}

.profile-avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0,198,255,0.4);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-avatar-img:hover {
    transform: scale(1.06);
    box-shadow: 0 0 35px rgba(0,198,255,0.4);
}

.avatar-glow {
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00c6ff, #a855f7, #00c6ff);
    opacity: 0.25;
    animation: glowSpin 6s linear infinite;
    z-index: 0;
}

@keyframes glowSpin {
    to { transform: rotate(360deg); }
}

.profile-name {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #fff, #c0c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.profile-tagline {
    font-size: 0.95em;
    color: rgba(255,255,255,0.55);
    margin: 0 0 16px;
    letter-spacing: 2px;
}

.profile-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-bottom: 18px;
}

.profile-meta span {
    font-size: 0.82em;
    color: rgba(255,255,255,0.5);
}

.profile-meta i {
    color: rgba(0,198,255,0.7);
    margin-right: 5px;
    width: 14px;
    text-align: center;
}

.profile-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.8em;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: all 0.3s;
}

.profile-link-btn:hover {
    background: rgba(0,198,255,0.12);
    border-color: rgba(0,198,255,0.3);
    color: #fff;
    transform: translateY(-1px);
}

/* --- Sections --- */
.profile-section {
    margin-bottom: 20px;
    padding: 28px 28px;
}

.section-title {
    font-size: 1.25em;
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #e0e0ff;
    letter-spacing: 1px;
}

.section-title i {
    color: #00c6ff;
    margin-right: 8px;
    font-size: 0.9em;
}

/* --- Strengths --- */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.strength-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.35s ease;
}

.strength-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,198,255,0.25);
    box-shadow: 0 8px 30px rgba(0,198,255,0.08);
}

.strength-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    margin-bottom: 14px;
    color: #fff;
}

.gradient-blue { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.gradient-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.gradient-cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

.strength-card h3 {
    font-size: 0.95em;
    margin: 0 0 8px;
    color: #e0e0ff;
}

.strength-card p {
    font-size: 0.82em;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* --- Skills --- */
.skill-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skill-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.skill-row:last-child { border-bottom: none; }

.skill-label {
    flex-shrink: 0;
    width: 80px;
    font-weight: 600;
    font-size: 0.82em;
    color: #00c6ff;
    padding-top: 4px;
}

.skill-tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.78em;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s;
}

.skill-tag:hover {
    background: rgba(0,198,255,0.1);
    border-color: rgba(0,198,255,0.25);
}

.skill-tag.tag-highlight {
    background: rgba(0,198,255,0.12);
    border-color: rgba(0,198,255,0.3);
    color: #7dd3fc;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(180deg, #00c6ff 0%, #a855f7 50%, rgba(168,85,247,0.1) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 2px solid #00c6ff;
    z-index: 1;
}

.timeline-dot.dot-active {
    background: #00c6ff;
    box-shadow: 0 0 8px rgba(0,198,255,0.5);
}

.timeline-content {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color 0.3s;
}

.timeline-content:hover {
    border-color: rgba(0,198,255,0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.timeline-header h3 {
    margin: 0;
    font-size: 1em;
    color: #e0e0ff;
}

.timeline-badge {
    font-size: 0.72em;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(0,198,255,0.1);
    border: 1px solid rgba(0,198,255,0.2);
    color: #7dd3fc;
    white-space: nowrap;
}

.timeline-role {
    font-size: 0.85em;
    color: rgba(168,85,247,0.85);
    margin: 0 0 8px;
    font-weight: 500;
}

.timeline-project {
    font-size: 0.85em;
    color: rgba(255,255,255,0.65);
    margin: 0 0 8px;
}

.timeline-list {
    margin: 0;
    padding-left: 16px;
}

.timeline-list li {
    font-size: 0.82em;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    margin-bottom: 4px;
}

.timeline-list li strong {
    color: rgba(255,255,255,0.85);
}

/* --- Projects --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168,85,247,0.25);
    box-shadow: 0 8px 30px rgba(168,85,247,0.08);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.project-badge {
    font-size: 0.7em;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-blue {
    background: rgba(0,198,255,0.12);
    border: 1px solid rgba(0,198,255,0.25);
    color: #7dd3fc;
}

.badge-purple {
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.25);
    color: #c4b5fd;
}

.project-period {
    font-size: 0.72em;
    color: rgba(255,255,255,0.4);
}

.project-card h3 {
    font-size: 0.95em;
    margin: 0 0 8px;
    color: #e0e0ff;
}

.project-card > p {
    font-size: 0.82em;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    margin: 0;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.project-tech span {
    font-size: 0.7em;
    padding: 2px 9px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.06);
}

/* --- Awards --- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.award-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: border-color 0.3s;
}

.award-card:hover {
    border-color: rgba(251,191,36,0.25);
}

.award-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251,191,36,0.1);
    color: #fbbf24;
    font-size: 0.85em;
    flex-shrink: 0;
}

.award-card span {
    font-size: 0.82em;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

.gallery-title {
    text-align: center;
    margin: 25px 0 15px;
    font-size: 1.05em;
    color: rgba(0,243,255,0.85);
    letter-spacing: 2px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .profile-page { padding: 10px 10px 30px; }
    .profile-hero { padding: 28px 18px 25px; }
    .profile-avatar-img { width: 100px; height: 100px; }
    .profile-name { font-size: 1.6em; }
    .profile-tagline { font-size: 0.85em; }
    .profile-section { padding: 20px 16px; }
    .section-title { font-size: 1.1em; }
    .strength-grid { grid-template-columns: 1fr; }
    .skill-row { flex-direction: column; gap: 6px; }
    .skill-label { width: auto; }
    .timeline { padding-left: 22px; }
    .timeline-header { flex-direction: column; align-items: flex-start; }
    .project-grid { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .strength-grid { grid-template-columns: repeat(3, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
}
