:root {
    --primary: #10b981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.5);
    --primary-rgb: 16, 185, 129;
    --accent: #34d399;
    --bg-dark: #050a09; /* Deep Forest Black */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ecfdf5;
    --text-muted: #6ee7b7;
    --card-radius: 28px;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Premium Animated Background --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #064e3b 0%, #050a09 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    animation: move-bg 60s linear infinite;
}

@keyframes move-bg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(4px);
    animation: float-green 15s infinite ease-in-out;
    box-shadow: 0 0 15px var(--primary-glow);
}

@keyframes float-green {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-100px) scale(1.5); opacity: 0.5; }
}

/* --- Container --- */
.container {
    max-width: 550px;
    margin: 0 auto;
    padding: 60px 20px 140px;
}

/* --- Glassy Profile Section --- */
.profile-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
}

.avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    animation: spin-ring 10s linear infinite;
}

@keyframes spin-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 30px var(--primary-glow);
}

.profile-name {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-glow);
}

.profile-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50px;
}

.profile-bio {
    color: var(--text-muted);
    font-size: 16px;
    opacity: 0.9;
}

/* --- Glassy Link Cards --- */
.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.category-icon {
    font-size: 18px;
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
}

.category-name {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.8s;
}

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

.link-card:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}

.link-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    transition: var(--transition);
}

.link-card:hover .link-icon {
    background: var(--primary);
    color: #000;
    transform: rotate(-10deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.link-text {
    flex: 1;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.link-arrow {
    font-size: 14px;
    color: var(--primary);
    opacity: 0.5;
    transition: var(--transition);
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* --- Neon Music Player --- */
.music-player-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 450px;
    z-index: 1000;
}

.music-player {
    background: linear-gradient(135deg, rgba(5, 10, 9, 0.8), rgba(16, 185, 129, 0.05));
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 35px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.1);
    transition: var(--transition);
}

.music-player:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.music-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 25px;
}

.bar {
    width: 4px;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 4px;
    animation: neon-pulse 1s infinite ease-in-out;
    box-shadow: 0 0 10px var(--primary-glow);
}

@keyframes neon-pulse {
    0%, 100% { height: 8px; filter: brightness(1); }
    50% { height: 25px; filter: brightness(1.5); }
}

.music-info {
    flex: 1;
}

.music-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.music-artist {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--primary-glow);
}

.play-btn:hover {
    transform: scale(1.15) rotate(5deg);
    background: var(--accent);
}

/* --- Fake Entrance Overlay (click anywhere) --- */
.fake-entrance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.fake-entrance.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
}

.fake-entrance-content {
    text-align: center;
    padding: 40px;
    max-width: 320px;
    width: 90%;
}

.fake-entrance-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 5px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    animation: fake-pulse 2s ease-in-out infinite;
}

@keyframes fake-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 80px var(--primary-glow); }
}

.fake-entrance-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.fake-entrance-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #fff;
}

.fake-entrance-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    opacity: 0.8;
    animation: hint-bounce 2s ease-in-out infinite;
}

@keyframes hint-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-6px); opacity: 1; }
}

.hint-icon {
    font-size: 18px;
}

/* --- Floating Theme Toggle --- */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(15px);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
    .container { padding-top: 40px; }
    .profile-name { font-size: 26px; }
    .link-card { padding: 15px 20px; }
    .link-icon { width: 42px; height: 42px; font-size: 18px; }
}
