:root {
    /* Colors */
    --bg-base: #0f172a; /* Deep charcoal/slate */
    --accent-primary: #252368; /* Neon blue */
    --accent-secondary: #c084fc; /* Purple */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrolling if blobs go off edge */
    position: relative;
}

/* --- Animated Background SVGs --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
    animation-direction: alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(100px, 50px) scale(1.1) rotate(45deg); }
    66% { transform: translate(-50px, 150px) scale(0.9) rotate(90deg); }
    100% { transform: translate(50px, -50px) scale(1.2) rotate(180deg); }
}

/* --- Main Layout & Glass Card --- */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Header & Avatar --- */
.profile-header {
    text-align: center;
    margin-bottom: 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    position: relative;
    z-index: 2;
}

.initials {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.glowing-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    z-index: 1;
    filter: blur(15px);
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.name {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.divider {
    width: 40px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    margin: 24px auto 0;
    opacity: 0.5;
}

/* --- Links Section --- */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    group: hover;
}

/* Hover effect background */
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-link:hover::before {
    transform: translateX(100%);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(56, 189, 248, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    transition: var(--transition-smooth);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.social-link:hover .icon-wrapper {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.social-link:hover .social-icon {
    color: var(--bg-base); /* Invert icon color on hover */
    transform: scale(1.1);
}

/* Specific icon hover colors (optional, if you want brand colors on hover) */
.social-link:nth-child(1):hover .icon-wrapper { background: #0077b5; box-shadow: 0 0 15px #0077b5; } /* LinkedIn */
.social-link:nth-child(2):hover .icon-wrapper { background: #fff; box-shadow: 0 0 15px #fff; } /* GitHub */
.social-link:nth-child(2):hover .social-icon { fill: #000; } 
.social-link:nth-child(3):hover .icon-wrapper { background: var(--accent-secondary); box-shadow: 0 0 15px var(--accent-secondary); } /* Custom */


.link-text {
    font-weight: 500;
    font-size: 1.1rem;
    flex-grow: 1;
    transition: var(--transition-smooth);
}

.social-link:hover .link-text {
    transform: translateX(4px);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-bounce);
    color: var(--text-secondary);
}

.social-link:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
    .glass-card {
        padding: 32px 24px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .blob {
        width: 400px;
        height: 400px;
    }
}
