:root {
    --bg-color: #f7f9fc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 8px 32px rgba(148, 163, 184, 0.15);
    --card-hover-shadow: 0 16px 40px rgba(148, 163, 184, 0.25);
    
    --accent: #3b82f6;
    --accent-light: #eff6ff;
    
    --blob-1: rgba(186, 230, 253, 0.4);
    --blob-2: rgba(191, 219, 254, 0.4);
    --blob-3: rgba(221, 214, 254, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background-color: var(--accent);
    color: white;
}

/* Background Animations */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.shape1 {
    width: 40vw;
    height: 40vw;
    background: var(--blob-1);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape2 {
    width: 35vw;
    height: 35vw;
    background: var(--blob-2);
    top: 40%;
    right: -10%;
    animation-delay: -5s;
}

.shape3 {
    width: 45vw;
    height: 45vw;
    background: var(--blob-3);
    bottom: -20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 640px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar-container {
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-secondary);
    border: 3px solid white;
    object-fit: cover;
    overflow: hidden;
}

.avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.4);
    border: 3px solid white;
    object-fit: cover;
    object-position: center 25%;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #cbd5e1;
    display: inline-block;
}

.bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto;
}

/* Links Section */
.links-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(255, 255, 255, 1);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card > * {
    z-index: 1;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 1.25rem;
    transition: all 0.3s ease;
}

.linkedin { color: #0a66c2; background-color: #e8f4ff; }
.youtube { color: #ff0000; background-color: #ffeef0; }
.mail { color: #10b981; background-color: #ecfdf5; }
.google-scholar { color: #2563eb; background-color: #eff6ff; }

.link-card:hover .icon-box {
    transform: scale(1.05);
}

.card-content {
    flex-grow: 1;
}

.card-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.action-icon {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: color 0.3s ease, transform 0.3s ease;
}

.link-card:hover .action-icon {
    color: var(--text-primary);
    transform: translateX(2px) translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: auto;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Subpage Specifics */
.content-box {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    width: 100%;
}

.content-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.content-box p, .content-box ul {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.content-box ul {
    padding-left: 1.5rem;
}

.content-box li {
    margin-bottom: 0.75rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.back-link:hover {
    color: var(--accent);
}

.citation-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.citation-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.citation-title:hover {
    color: var(--accent);
}

.citation-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-avatar {
    width: 150px;
    height: 150px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .link-card {
        padding: 1rem;
    }
    
    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-right: 1rem;
    }
}
