/* Modern CSS Reset & Variable Definitions */
:root {
    --bg-color: #0b111e;
    --card-bg: #151d30;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.15);
    --accent-hover: #f88379;
    --accent-hover-glow: rgba(248, 131, 121, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Base Container */
.container {
    width: 100%;
    max-width: 1040px;
    padding: 40px;
    margin: 20px auto;
    background: rgba(21, 29, 48, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Typographical Elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}


a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

a:hover {
    color: var(--accent-hover);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--border-color) 50%, rgba(255,255,255,0) 100%);
    margin: 40px 0;
}

/* Icons */
.section-icon {
    margin-right: 12px;
    font-size: 1.6rem;
    color: var(--accent-color);
}

.icon-spacing {
    margin-right: 6px;
}

/* Profile Header */
.profile-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-avatar {
    width: 280px;
    height: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: border-color var(--transition-speed), transform var(--transition-speed);
}

.profile-avatar:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

#avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.bio-text {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-text a {
    font-weight: 500;
    border-bottom: 1px dotted var(--accent-color);
}

.bio-text a:hover {
    border-bottom-style: solid;
    border-bottom-color: var(--accent-hover);
}

.badge {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: inline-block;
    transition: all var(--transition-speed);
}

.badge:hover {
    background: rgba(248, 131, 121, 0.1);
    color: var(--accent-hover);
    border-color: rgba(248, 131, 121, 0.2);
}

.reviewer-info {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-details {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Profile Buttons */
.profile-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-hover-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Sections Layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* News Section */
.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    line-height: 1.6;
}

.news-date {
    font-family: Monaco, "Courier New", monospace;
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(14, 165, 233, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.news-desc {
    color: var(--text-secondary);
}

.news-desc a {
    font-weight: 500;
}

/* Publications Grid */
.pub-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.pub-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), 
                border-color var(--transition-speed), 
                box-shadow var(--transition-speed);
}

.pub-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(14, 165, 233, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

.pub-media {
    width: 240px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000000;
}

.pub-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pub-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.pub-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pub-authors strong {
    color: var(--text-primary);
    font-weight: 500;
}

.pub-meta {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-hover);
}

.pub-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn-link:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent-color);
    border-color: var(--accent-color);
}



/* Blogs List */
.blogs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 12px;
}

.blogs-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.blogs-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.blog-title {
    font-weight: 600;
    color: var(--text-primary);
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 8px;
    opacity: 0.85;
}

.blog-gif {
    margin-top: 12px;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-gif img {
    width: 100%;
    height: auto;
    display: block;
}

/* Miscellaneous List */
.misc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 12px;
}

.misc-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
}

.misc-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.25rem;
    line-height: 1.2;
}

.misc-list strong {
    color: var(--text-primary);
}

/* Footer styling */
.profile-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* Media Queries for Responsiveness */
@media (max-width: 900px) {
    .profile-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .profile-avatar {
        width: 200px;
        height: 200px;
    }
    
    .profile-info {
        align-items: center;
    }
    
    .profile-links {
        justify-content: center;
    }
    
    .pub-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    
    .pub-body {
        align-items: center;
    }
    
    .pub-links {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 20px;
        margin: 10px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .pub-media {
        width: 100%;
        max-width: 240px;
    }
}
