/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg-color: #fafafa;
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --card-bg: #ffffff;
    --card-border: #f4f4f5;
    --shadow-color: rgba(0, 0, 0, 0.04);
    --shadow-hover: rgba(0, 0, 0, 0.08);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --accent-color: #4f46e5;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(at 0% 0%, rgba(244, 244, 245, 0.5) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(228, 228, 231, 0.3) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Main Layout Container */
.profile-container {
    width: 100%;
    max-width: 400px;
}

/* Profile Card */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 10px 30px -10px var(--shadow-color);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 20px 40px -15px var(--shadow-hover);
}

/* Avatar Styles */
.avatar-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
    position: relative;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.avatar-container:hover .profile-avatar {
    transform: scale(1.04);
}

/* Profile Info / Typography */
.profile-info {
    margin-bottom: 28px;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-handle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.2px;
    margin-bottom: 16px;
}

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Social Links Navigation */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f4f4f5;
    color: #52525b;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-link .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effects */
.social-icon-link:hover {
    transform: translateY(-3px);
    background: #e4e4e7;
    color: var(--text-primary);
}

/* Specific branding colors on hover for light theme */
.social-icon-link[aria-label="GitHub"]:hover {
    color: #181717;
}

.social-icon-link[aria-label="LinkedIn"]:hover {
    color: #0a66c2;
}

.social-icon-link[aria-label="X (Twitter)"]:hover {
    color: #000000;
}

.social-icon-link[aria-label="Google Scholar"]:hover {
    color: #1a73e8;
}

.social-icon-link:hover .icon {
    transform: scale(1.1);
}

/* Tooltip implementation */
.tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #18181b;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.social-icon-link:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(4px);
}

/* Projects Section */
.profile-projects {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1.5px solid var(--card-border);
}

.projects-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    background: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.projects-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.22);
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .profile-card {
        padding: 32px 24px;
    }
    
    .profile-name {
        font-size: 1.6rem;
    }
}
