:root {
    --primary: #6a9bd8;
    --primary-light: #9ac6ff;
    --primary-dark: #4a7bb8;
    --accent: #ff9d6b;
    --accent-light: #ffc299;
    --text: #f5fbff;
    --text-light: #d8ecf7;
    --bg-dark: #1a2332;
    --bg-card: rgba(40, 50, 70, 0.15);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(154, 198, 255, 0.4);
    --glass-blur: blur(25px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.universe-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(106, 155, 216, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 157, 107, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 60%, rgba(154, 198, 255, 0.3) 0%, transparent 40%),
        linear-gradient(135deg, #1a2332 0%, #2a3445 100%);
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    color: white;
    font-size: var(--star-size, 16px);
    animation: twinkle var(--twinkle-duration, 5s) infinite ease-in-out;
    opacity: var(--star-opacity, 0.7);
    text-shadow: 0 0 5px currentColor;
}

@keyframes twinkle {
    0%, 100% { opacity: var(--star-opacity, 0.7); }
    50% { opacity: calc(var(--star-opacity, 0.7) * 0.3); }
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.9);
    filter: blur(0.5px);
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.2), transparent);
    transform-origin: left center;
    animation: tailExtend 0.5s ease-out forwards;
}

@keyframes tailExtend {
    to {
        width: 150px;
    }
}

@keyframes shooting {
    0% {
        opacity: 0;
        transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(var(--rotation));
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(calc(var(--start-x) + var(--dx))) translateY(calc(var(--start-y) + var(--dy))) rotate(var(--rotation));
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(154, 198, 255, 0.3);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--text) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(154, 198, 255, 0.5);
    transition: var(--transition);
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px rgba(154, 198, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(154, 198, 255, 0.8), 0 0 40px rgba(154, 198, 255, 0.6);
    }
}

.logo::before {
    content: 'Welcome To';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo:hover {
    transform: translateY(-5px);
    text-shadow: 0 0 30px rgba(154, 198, 255, 0.8);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
}

.gallery-section {
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(154, 198, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 157, 107, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(40, 50, 70, 0.1) 100%);
    z-index: -1;
}

.gallery-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(154, 198, 255, 0.03) 50px,
            rgba(154, 198, 255, 0.03) 51px
        );
    z-index: -1;
    animation: backgroundShift 20s linear infinite;
}

@keyframes backgroundShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.gallery-section:hover {
    transform: translateY(-10px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
    text-shadow: 0 0 15px rgba(154, 198, 255, 0.4);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    height: 600px;
    background: rgba(26, 35, 50, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
}

.photo-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

.gallery-photo:hover img {
    transform: scale(1.03);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 30px;
    color: white;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-background-filter: blur(10px);
    border-top: var(--glass-border);
}

.gallery-photo:hover .photo-info {
    opacity: 1;
}

.photo-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.photo-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.interaction-buttons {
    display: flex;
    gap: 20px;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.interaction-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.interaction-btn.active {
    background: rgba(154, 198, 255, 0.2);
    border-color: var(--primary-light);
    color: white;
}

.interaction-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.interaction-btn.disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-button, .play-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.refresh-button:hover, .play-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.auto-rotate-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.photo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.photo-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.photo-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(154, 198, 255, 0.3);
    border-top: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.photo-loading-text {
    color: var(--text-light);
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.time-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.time-stat-card {
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.time-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(154, 198, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 157, 107, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.time-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.time-stat-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    flex-shrink: 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
}

.time-stat-content {
    flex: 1;
}

.time-stat-title {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.time-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.time-stat-desc {
    font-size: 0.8rem; 
    color: var(--text-light);
}

.time-stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.time-stat-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s ease;
}

.game-section {
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(154, 198, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255, 157, 107, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(40, 50, 70, 0.1) 100%);
    z-index: -1;
}

.game-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(154, 198, 255, 0.03) 50px,
            rgba(154, 198, 255, 0.03) 51px
        );
    z-index: -1;
    animation: backgroundShift 20s linear infinite;
}

.game-section:hover {
    transform: translateY(-10px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.game-content {
    max-width: 900px;
    margin: 0 auto;
}

.game-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 40px;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    border: var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(154, 198, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(154, 198, 255, 0.1);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: var(--glass-highlight);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.6;
}

.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(154, 198, 255, 0.2);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(154, 198, 255, 0.05) 100%),
        radial-gradient(circle at 30% 70%, rgba(106, 155, 216, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.footer a:hover {
    color: white;
    text-decoration: underline;
    text-shadow: 0 0 15px rgba(154, 198, 255, 0.8);
}

.footer p {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.95);
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 85%;
    background: rgba(30, 40, 60, 0.15);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 25px;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: var(--glass-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: rgba(40, 50, 70, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 157, 107, 0.2);
    transform: rotate(90deg);
}

.game-frame {
    width: 100%;
    height: calc(100% - 80px);
    border: none;
}

.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: rgba(40, 50, 80, 0.15);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4), 
        0 0 20px rgba(154, 198, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    z-index: 100;
    transition: var(--transition);
    overflow: hidden;
}

.music-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(154, 198, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 157, 107, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.music-player:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5), 
        0 0 25px rgba(154, 198, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-btn {
    background: rgba(255, 255, 255, 0.1);
    border: var(--glass-border);
    color: var(--text-light);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.player-btn:hover {
    background: rgba(154, 198, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.player-main-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
}

.player-main-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.song-info {
    text-align: center;
    margin-bottom: 20px;
}

.song-title {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 20px 0;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.playlist-toggle {
    text-align: center;
    margin-top: 15px;
    cursor: pointer;
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(154, 198, 255, 0.1);
    font-size: 0.9rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
}

.playlist-toggle:hover {
    background: rgba(154, 198, 255, 0.2);
    color: white;
    border: var(--glass-highlight);
}

.playlist-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.playlist-container.show {
    max-height: 200px;
    margin-top: 15px;
}

.playlist {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
}

.playlist-item {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.playlist-item:hover {
    background: rgba(154, 198, 255, 0.15);
}

.playlist-item.playing {
    background: rgba(154, 198, 255, 0.25);
    color: white;
    font-weight: 600;
}

.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.5);
    z-index: 2000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
}

.custom-alert.active {
    display: flex;
}

.alert-content {
    background: rgba(30, 40, 60, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 15px;
    padding: 25px;
    max-width: 300px;
    width: 80%;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: var(--glass-border);
    text-align: center;
    position: relative;
    animation: alertPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.alert-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.alert-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.alert-message {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.alert-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.alert-button {
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.alert-button.confirm {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.alert-button.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-content {
    padding: 30px;
    height: calc(100% - 80px);
    overflow-y: auto;
    color: var(--text);
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.4);
    border-bottom: 1px solid rgba(154, 198, 255, 0.2);
    padding-bottom: 10px;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-left: 20px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-light);
}

.intro-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.intro-text {
    flex: 1;
}

.intro-photo {
    flex-shrink: 0;
    width: 200px;
}

.intro-photo-frame {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.intro-photo-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.intro-photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.intro-photo-frame:hover img {
    transform: scale(1.05);
}

.skills-grid {
    display: grid;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-name {
    width: 80px;
    font-weight: 600;
    color: var(--text-light);
}

.skill-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 5px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.interest-tag {
    background: rgba(154, 198, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.interest-tag:hover {
    background: rgba(154, 198, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.profile-card {
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(154, 198, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 157, 107, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(154, 198, 255, 0.3);
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.4);
}

.profile-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    gap: 25px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 10px rgba(154, 198, 255, 0.8);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    border: var(--glass-border);
    transition: var(--transition);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.timeline-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.skills-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px;
    transition: var(--transition);
    border: var(--glass-border);
    text-align: center;
}

.skill-card:hover {
    background: rgba(154, 198, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: var(--glass-highlight);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.skill-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    /* 更清晰的阴影 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 1.1em; /* 稍微增大字号 */
}

.quote-text {
    font-style: italic;
    color: var(--text-light);
    padding-left: 15px;
    margin: 20px 0;
    position: relative;
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: 5px;
    top: -10px;
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staggered-text > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.staggered-text > *:nth-child(1) { animation-delay: 0.1s; }
.staggered-text > *:nth-child(2) { animation-delay: 0.2s; }
.staggered-text > *:nth-child(3) { animation-delay: 0.3s; }
.staggered-text > *:nth-child(4) { animation-delay: 0.4s; }
.staggered-text > *:nth-child(5) { animation-delay: 0.5s; }

@media (max-width: 1200px) {
    .container {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-container {
        height: 400px;
    }
    
    .time-stats-section {
        grid-template-columns: 1fr;
    }
    
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .music-player {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .alert-content {
        padding: 20px 15px;
        max-width: 280px;
    }
    
    .alert-buttons {
        flex-direction: column;
    }
    
    .intro-container {
        flex-direction: column;
    }
    
    .intro-photo {
        width: 150px;
        align-self: center;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .skills-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .gallery-section,
    .game-section {
        padding: 25px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .refresh-button, .play-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}
