:root {
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-highlight: rgba(255, 255, 255, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #00f2ff;
    --liquid-gradient: linear-gradient(45deg, #00f2ff, #00c3ff);
}

@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/Exo2-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/Exo2-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Exo 2', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    background: #000;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

/* --- Advanced Liquid Background (Deep Ocean Flow) --- */
.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #020205; /* Deep dark base */
    overflow: hidden;
}

.liquid-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 44, 191, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 100, 255, 0.15), transparent 40%);
    filter: blur(80px);
    animation: liquidFlow 25s infinite alternate ease-in-out;
    opacity: 0.8;
}

.liquid-background::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 255, 179, 0.1), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(60, 20, 180, 0.1), transparent 50%);
    filter: blur(60px);
    animation: liquidFlowReverse 30s infinite alternate-reverse ease-in-out;
    opacity: 0.6;
}

@keyframes liquidFlow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
    100% { transform: rotate(-5deg) scale(0.95); }
}

@keyframes liquidFlowReverse {
    0% { transform: rotate(0deg) translate(0,0); }
    50% { transform: rotate(-10deg) translate(5%, 5%); }
    100% { transform: rotate(5deg) translate(-5%, -5%); }
}

/* --- Floating Elements (Orbs & Bubbles) --- */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* 1. Soft Light Orbs (Atmosphere) */
.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00f2ff, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7b2cbf, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff0055, transparent 70%);
    top: 40%;
    left: 40%;
    opacity: 0.3;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, 50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* 2. Realistic Glass Bubbles (Texture) */
.glass-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 2px 2px 10px rgba(255, 255, 255, 0.1),
        inset -2px -2px 10px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
    animation: floatBubble 15s infinite ease-in-out;
}

.glass-bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, transparent 70%);
    transform: rotate(-45deg);
    filter: blur(1px);
}

.bubble-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 20%;
    animation-duration: 18s;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 15%;
    animation-duration: 22s;
    animation-delay: -3s;
}

.bubble-3 {
    width: 50px;
    height: 50px;
    top: 60%;
    right: 40%;
    animation-duration: 25s;
    animation-delay: -7s;
    opacity: 0.7;
}

.bubble-4 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 25%;
    animation-duration: 20s;
    animation-delay: -2s;
    opacity: 0.8;
}

.bubble-5 {
    width: 40px;
    height: 40px;
    bottom: 15%;
    right: 10%;
    animation-duration: 28s;
    animation-delay: -5s;
    opacity: 0.6;
}

.bubble-6 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: -5%;
    animation-duration: 35s;
    animation-delay: -8s;
    opacity: 0.4;
    filter: blur(2px); /* Depth of field effect */
}

.bubble-7 {
    width: 25px;
    height: 25px;
    top: 30%;
    right: 10%;
    animation-duration: 15s;
    animation-delay: -1s;
    opacity: 0.9;
}

.bubble-8 {
    width: 90px;
    height: 90px;
    bottom: 5%;
    left: 40%;
    animation-duration: 24s;
    animation-delay: -4s;
}

@keyframes floatBubble {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, -40px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- Announcement Card --- */
.announcement-card {
    padding: 15px 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 60px;
    margin-bottom: -20px; /* Pull closer to profile */
}

.announcement-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

#announcement {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(0.95); }
}

/* --- Main Layout --- */
.main-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    z-index: 10;
}

/* --- High-End Glass Effect (3D Bevel Liquid - Clearer) --- */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.001));
    backdrop-filter: blur(1px); /* Ultra clear glass */
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Complex shadows for 3D Bevel Effect */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3), /* Drop shadow */
        inset 2px 2px 4px rgba(255, 255, 255, 0.4), /* Top-Left Bevel Highlight */
        inset -2px -2px 4px rgba(0, 0, 0, 0.1), /* Bottom-Right Bevel Shadow */
        inset 0 0 30px rgba(255, 255, 255, 0.01); /* Inner Glow */
    border-radius: 40px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent); /* Brighter shine */
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.glass-card:hover {
    box-shadow: 
        0 20px 50px 0 rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.glass-card:hover::before {
    left: 150%;
    transition: 0.7s;
}

/* --- Typography & Profile --- */
.profile-card {
    text-align: center;
}

/* --- New Avatar Design (Embedded in Glass Sphere) --- */
.avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 2;
    padding: 8px; /* Space for the glass shell thickness */
}

/* The Glass Shell (Outer Layer) - Clearer Version */
.avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* Very transparent background, mostly edges */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent 60%);
    box-shadow: 
        inset -3px -3px 10px rgba(255, 255, 255, 0.1),
        inset 3px 3px 10px rgba(255, 255, 255, 0.5), /* Rim Light */
        0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(0px); /* Removed blur for clarity */
    z-index: 5; /* On top of everything */
    pointer-events: none;
}

/* The Shine Highlight */
.avatar-wrapper::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 8%;
    width: 45%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    filter: blur(3px);
    transform: rotate(-45deg);
    pointer-events: none;
    z-index: 6; /* On top of shell */
}

.liquid-ring {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), var(--accent-color), rgba(255, 255, 255, 0.15), transparent);
    background-size: 200% 200%;
    animation: ringFlow 6s linear infinite;
    filter: blur(10px);
    z-index: 1; /* Behind avatar and shell */
    opacity: 0.7;
}

.avatar-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 3; /* Inside the shell (visually) */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s;
}

.avatar-wrapper:hover .avatar-main {
    transform: scale(1.05);
}

/* --- Icon Only Buttons --- */
.glass-btn.icon-only {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

.glass-btn.icon-only svg {
    width: 24px;
    height: 24px;
}

/* --- Footer --- */
.glass-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.glass-footer a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.glass-footer a:hover {
    color: var(--accent-color);
}

.gradient-text {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    letter-spacing: 4px;
    animation: textFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.subtitle {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 3px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
    animation: textFloat 5s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 0 10px var(--accent-color);
}

/* --- Liquid Buttons (Social & Actions) --- */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.glass-btn {
    position: relative;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(1px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.glass-btn:active {
    transform: scale(0.95);
}

.glass-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Snake Toggle */
.snake-toggle {
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.snake-toggle:hover {
    transform: rotate(360deg) scale(1.2);
}
.snake-toggle img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

/* --- Projects Grid --- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
    padding: 10px 20px;
    border-radius: 0 20px 20px 0;
    letter-spacing: 1px;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
    
    /* 3D Glass Effect */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.002));
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4), /* Bevel Highlight */
        inset -1px -1px 2px rgba(0, 0, 0, 0.1); /* Bevel Shadow */
    
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.project-item:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        inset 1px 1px 2px rgba(255, 255, 255, 0.6),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.project-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.project-item img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- App Store Search --- */
.tool-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.icon-large {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6); /* Soft white border */
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1), inset 0 2px 5px rgba(0,0,0,0.5); /* Soft white glow */
    font-family: inherit;
}

.input-group input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3), inset 0 2px 5px rgba(0,0,0,0.5);
}

.button-group {
    display: flex;
    gap: 15px;
}

/* Liquid Action Buttons */
.liquid-action-btn {
    flex: 1;
    padding: 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(1px);
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6); /* Soft white border */
}

.liquid-action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.liquid-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-color);
    border-color: var(--accent-color);
}

.liquid-action-btn:active::after {
    width: 300px;
    height: 300px;
}

/* --- App List & Modal --- */
.app-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s;
}
.app-container:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
}
.app-icon img {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.app-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
.app-version {
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 5px;
}
.app-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.action-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 242, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.action-btn:active {
    transform: translateY(1px);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .glass-grid {
        grid-template-columns: 1fr;
    }
    .profile-card {
        padding: 30px 20px;
    }
    .gradient-text {
        font-size: 2.5rem;
    }
}
