:root {
    --bg-color: #020617;
    --text-color: #f8fafc;
    --primary-color: #3b82f6;
    --accent-color: #8b5cf6;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background effects */
.stars {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIj4KICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIxIiBmaWxsPSIjZmZmIiAvPgogIDxjaXJjbGUgY3g9IjI1MCIgY3k9IjE1MCIgcj0iMS41IiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIwLjUiIC8+CiAgPGNpcmNsZSBjeD0iMTgwIiBjeT0iMzIwIiByPSIxIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIwLjgiIC8+CiAgPGNpcmNsZSBjeD0iMzUwIiBjeT0iODAiIHI9IjIiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuNCIgLz4KPC9zdmc+') repeat;
    z-index: 0;
}

.twinkling {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj4KICA8Y2lyY2xlIGN4PSIxMjAiIGN5PSIzMTAiIHI9IjEiIGZpbGw9IiNmZmYiIC8+CiAgPGNpcmNsZSBjeD0iNDAwIiBjeT0iMjAwIiByPSIxLjUiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuNiIgLz4KICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjQ1MCIgcj0iMC41IiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIwLjgiIC8+CiAgPGNpcmNsZSBjeD0iMzUwIiBjeT0iNDIwIiByPSIyIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIwLjMiIC8+Cjwvc3ZnPg==') repeat;
    z-index: 0;
    animation: move-twink-back 150s linear infinite;
    opacity: 0.5;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    z-index: 0;
    filter: blur(80px);
}

.container {
    width: 100%;
    max-width: 600px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.profile {
    text-align: center;
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); box-shadow: 0 0 25px rgba(139, 92, 246, 0.6); }
    50% { transform: translateY(-10px); box-shadow: 0 0 35px rgba(59, 130, 246, 0.8); }
    100% { transform: translateY(0px); box-shadow: 0 0 25px rgba(139, 92, 246, 0.6); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-color);
    border: 3px solid var(--bg-color);
}

.profile h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.profile p {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 300;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.link-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.link-section:nth-child(1) { animation-delay: 0.2s; }
.link-section:nth-child(2) { animation-delay: 0.4s; }
.link-section:nth-child(3) { animation-delay: 0.6s; }
.link-section:nth-child(4) { animation-delay: 0.8s; }

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

.link-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.link-section h2 i {
    color: #c084fc;
    font-size: 1.2rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-btn {
    position: relative;
    display: block;
    padding: 2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.btn-content {
    background: #0f172a;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    height: 100%;
}

.link-btn i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    margin-right: 1rem;
    transition: all 0.4s ease;
}

.link-btn span {
    font-size: 1.1rem;
    font-weight: 500;
    flex-grow: 1;
    text-align: center;
    transform: translateX(-15px);
    transition: all 0.4s ease;
}

/* Hover States */
.link-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.link-btn:hover .btn-content {
    background: #1e293b;
}

/* Specific Brand Colors */
.link-btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.link-btn.instagram:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.instagram:hover i { color: #E1306C; transform: scale(1.2); }

.link-btn.tiktok:hover { background: linear-gradient(45deg, #00f2fe, #4facfe); }
.link-btn.tiktok:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.tiktok:hover i { color: #00f2fe; transform: scale(1.2) rotate(-5deg); }

.link-btn.youtube:hover { background: #FF0000; box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3); }
.link-btn.youtube:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.youtube:hover i { color: #FF0000; transform: scale(1.2); }

.link-btn.facebook:hover { background: #1877F2; box-shadow: 0 5px 20px rgba(24, 119, 242, 0.3); }
.link-btn.facebook:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.facebook:hover i { color: #1877F2; transform: scale(1.2); }

.link-btn.linkedin:hover { background: #0A66C2; box-shadow: 0 5px 20px rgba(10, 102, 194, 0.3); }
.link-btn.linkedin:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.linkedin:hover i { color: #0A66C2; transform: scale(1.2); }

.link-btn.github:hover { background: #ffffff; box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2); }
.link-btn.github:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.github:hover i { color: #ffffff; transform: scale(1.2); }

.link-btn.orcid:hover { background: #A6CE39; box-shadow: 0 5px 20px rgba(166, 206, 57, 0.2); }
.link-btn.orcid:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.orcid:hover i { color: #A6CE39; transform: scale(1.2); }

.link-btn.website:hover { background: #10B981; box-shadow: 0 5px 20px rgba(16, 185, 129, 0.2); }
.link-btn.website:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.website:hover i { color: #10B981; transform: scale(1.2); }

.link-btn.email:hover { background: #F59E0B; box-shadow: 0 5px 20px rgba(245, 158, 11, 0.2); }
.link-btn.email:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.email:hover i { color: #F59E0B; transform: scale(1.2); }

.link-btn.cv:hover { background: #EF4444; box-shadow: 0 5px 20px rgba(239, 68, 68, 0.2); }
.link-btn.cv:hover .btn-content { background: rgba(15, 23, 42, 0.9); }
.link-btn.cv:hover i { color: #EF4444; transform: scale(1.2); }

footer {
    text-align: center;
    padding: 1rem 0 2rem;
    color: #64748b;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}
