@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    /* Futuristic Liquid Glass Variables */
    --primary-text: #1d1d1f;
    --secondary-text: #5e5e66;
    --glass-shine: rgba(255, 255, 255, 0.85);
    /* Iridescent Colors */
    --iridescent-1: rgba(0, 255, 255, 0.1);
    --iridescent-2: rgba(255, 0, 255, 0.1);
    --iridescent-3: rgba(255, 255, 0, 0.1);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Deep space gradient fallback */
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* --- Background Handling --- */
.bg-anime {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* High Quality Anime Scenery API (Sunsets, Cities, Nature) */
    background-image: url('https://t.alcy.cc/ycy');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Cinematic dark vignette */
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

/* --- Futuristic Liquid Glass Container (Hyper-Realistic) --- */
.glass-container {
    width: auto;
    max-width: 840px;
    margin: 20px;
    width: 90%; /* Fallback/Mobile */
    width: clamp(300px, 90%, 840px); /* Adaptive Width */
    border-radius: 48px;
    position: relative;
    overflow: hidden;
    
    /* I. Core Material: Liquid Glass (High IOR) */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: saturate(180%) blur(60px); /* Extreme blur for bokeh foreground */
    -webkit-backdrop-filter: saturate(180%) blur(60px);
    
    /* II. Lighting & Depth */
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.6), /* Ambient Occlusion */
        inset 0 0 0 1px rgba(255, 255, 255, 0.3), /* Sharp Edge */
        inset 0 0 60px rgba(255, 255, 255, 0.05); /* Inner Volume */
        
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Animation */
    opacity: 0;
    transform: scale(0.95) translateY(30px);
}

/* Subtle Dynamic Ripples / Fluid Marks */
.glass-container::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 10%, transparent 10.5%) 0 0;
    background-size: 50px 50px;
    opacity: 0.3;
    transform: rotate(15deg);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

/* --- Holographic/Iridescent Overlay (Optical Effects) --- */
.glass-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 60%
    );
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* --- Animations --- */
.animate-entrance {
    animation: fluidFloat 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fluidFloat {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.15s; }
.stagger-3 { animation-delay: 0.2s; }
.stagger-4 { animation-delay: 0.25s; }

/* --- Inner Layout Components --- */
.profile-section {
    padding: 50px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center; /* Default to center for better mobile look, override left if needed */
    /* Subtle top gradient reflecting the sky */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 10px;
}

/* Add flexible container for user info */
.user-info {
    flex: 1 1 300px; /* Grow, shrink, basis 300px */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align content */
    min-width: 280px;
}

/* Override text-align for desktop if preferred, but center usually looks good for this style */
@media (min-width: 768px) {
    .profile-section {
        text-align: left;
        justify-content: flex-start;
    }
    .user-info {
        align-items: flex-start;
    }
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    /* Liquid metal rim */
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

.status-dot {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: #00f260; /* Neon Green */
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #00f260; /* Glowing dot */
}

.user-info h1 {
    margin: 0 0 8px 0;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 10;
    
    /* 1. Left-to-Right: Sapphire Blue to Electric Purple */
    background: linear-gradient(90deg, #0F52BA 0%, #BF00FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* 2. Volumetric Lighting & Depth */
    filter: drop-shadow(0 0 25px rgba(191, 0, 255, 0.5));
}

.user-bio {
    color: var(--secondary-text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .action-buttons {
        justify-content: flex-start;
        width: auto;
    }
}

/* --- Quote Text (Futuristic Italic) --- */
.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    text-shadow: 0 0 15px rgba(135, 206, 235, 0.8); /* Pale Blue Glow */
    position: relative;
    z-index: 5;
}

/* --- Buttons (Liquid Glass / Metal) --- */
.btn {
    padding: 14px 28px;
    border-radius: 24px; /* Squircle */
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
    color: #fff; /* White text for high contrast on liquid colors */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Interactive "Pulse" / "Rise" effect on hover */
.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(255,255,255,0.8);
    filter: brightness(1.1);
}

/* Specific Button Colors (Hyper-Realistic Liquid) */

/* 1. BiliBili (Magenta) */
.btn-pink { 
    background: linear-gradient(135deg, rgba(255, 0, 144, 0.7), rgba(219, 112, 147, 0.5));
    box-shadow: 0 8px 20px -5px rgba(255, 0, 144, 0.4);
}

/* 2. Shop (Cyan/Aqua) */
.btn-blue { 
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.6), rgba(0, 180, 216, 0.5)); 
    color: #e0f7fa; 
    box-shadow: 0 8px 20px -5px rgba(0, 255, 255, 0.4);
}

/* 3. GitHub (Dark Charcoal/Silver) */
.btn-github {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.5);
    color: #fff;
}
.btn-github:hover {
    box-shadow: 0 0 25px rgba(100, 149, 237, 0.4); /* Blue code flow glow */
    border-color: rgba(255, 255, 255, 0.8);
}

/* 4. QQ Group (Classic Blue) */
.btn-green { 
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.8), rgba(0, 50, 150, 0.6));
    box-shadow: 0 8px 20px -5px rgba(0, 86, 210, 0.4);
}

/* Icons - Liquid Metal Material */
.btn i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* --- Divider --- */
.divider-section {
    padding: 30px 60px;
    background: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.quote-text {
    font-size: 1.4rem;
    color: #4a4a55;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
    text-align: left;
    text-shadow: none;
}

/* --- Links Section --- */
.links-section {
    padding: 50px 60px 60px 60px;
    /* Bottom section heavier frosted glass */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.4));
    display: block;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-text);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Futuristic Link Cards */
.link-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    
    /* Thick Glass Borders */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Internal lighting */
    box-shadow: 
        0 10px 20px -5px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(255,255,255,0.2);
}

/* Iridescent Hover Effect for Cards */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 30px 50px -12px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8); /* Rim light boost */
    border-color: rgba(255,255,255,0.9);
}

.link-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px; /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #333; /* Default dark */
}

.icon-blue { color: #2563eb; }
.icon-purple { color: #9333ea; }
.icon-red { color: #dc2626; }
.icon-green { color: #16a34a; }

.link-info {
    flex: 1;
    min-width: 0;
}

.link-title {
    display: block;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.link-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-arrow {
    color: #9ca3af;
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-card:hover .link-arrow {
    color: #2563eb;
    transform: translateX(5px);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 24px;
    font-size: 0.85rem;
    color: var(--secondary-text);
    background: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* --- Futuristic Liquid Glass Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-glass-box {
    width: 90%;
    max-width: 420px;
    /* Match Main Card Material */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: saturate(200%) blur(50px);
    -webkit-backdrop-filter: saturate(200%) blur(50px);
    border-radius: 32px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 40px 80px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Iridescent/Holographic Edge Glow */
.modal-glass-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(0, 255, 255, 0.1) 25%, /* Cyan */
        transparent 50%,
        rgba(191, 0, 255, 0.1) 75%, /* Purple */
        transparent 100%
    );
    animation: rotateHolo 6s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateHolo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-overlay.active .modal-glass-box {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #0F52BA, #BF00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(191, 0, 255, 0.3));
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: color 0.3s;
    padding: 0 8px;
}

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

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Modal Cards (Liquid Glass Buttons) --- */
.modal-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.modal-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-text {
    flex: 1;
}

.card-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff; /* White text for dark glass */
}

.card-desc {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.card-arrow {
    color: rgba(255,255,255,0.5);
    transition: transform 0.3s;
}

.modal-card:hover .card-arrow {
    transform: translateX(4px);
    color: #fff;
}

/* Specific Theme Colors */
/* weben - Cyan Theme */
.card-cyan:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 255, 255, 0.3);
}
.card-cyan .card-icon { color: #06b6d4; }
.card-cyan:hover .card-title { color: #00FFFF; text-shadow: 0 0 10px rgba(0,255,255,0.5); }

/* Naven-XD/RE - Purple Theme */
.card-purple:hover {
    box-shadow: 0 10px 25px -5px rgba(191, 0, 255, 0.3);
}
.card-purple .card-icon { color: #9333ea; }
.card-purple:hover .card-title { color: #BF00FF; text-shadow: 0 0 10px rgba(191,0,255,0.5); }
