/*
 * Main Settings
 */
 :root {
	--bold: 700;
	--semi-bold: 600;
	--normal: 400;
	--font: 'Inter', sans-serif;
    --mobile-thresh: 700px;
    --width: calc(min(90vw, 80vw + 50px, 800px));
    --primary-color: #3a86ff;
    --secondary-color: #4361ee;
    --text-color: #2b2d42;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%233a86ff' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.site-header a {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 0px solid transparent;
    margin: .4rem 1rem;
    padding: .25rem 0;
    position: relative;
}

.site-header a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.site-header a:hover:after {
    width: 100%;
}

.site-header a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.site-header a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.site-footer {
    background-color: rgba(0, 50, 100, 0.06);
}

.contact .name { font-weight: 600; }

h2 {
    margin-top: -60px;
    padding-top: 80px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    background-color: var(--light-gray);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.pubs, .patents {
    padding-left: 0;
    list-style: none;
}
.p {
    margin-top: 1em;
    margin-bottom: 1em;
}
.p ol, .p ul {
    counter-reset: list;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.p p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.p ol > li {
    list-style: none;
}
.p ol > li:before {
    content: "(" counter(list) ") ";
    counter-increment: list;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/*
 * Body
 */

/* Main container */
.container { width: var(--width); }
.container.section { width: 100%; }
.container.section:not(:first-child) {
    margin-top: calc(min(1000px, 90vw) * 0.02);
}
/* Bio */
.profile {
    padding: 20px;
    transition: all 0.3s ease;
    text-align: left;
}
.biography { display: inline-block; vertical-align: top; }
.name-mobile {
    display: inline-block;
    vertical-align: top;
    width: calc(var(--width) * 0.6);
}
.name-mobile.h1, .biography.h1 {
    margin-top: 0;
    line-height: 36px;
    word-break: normal;
}
/* Sidebar */
.sidebar {
    left: 0px;
    top: 0px;
    position: fixed;
    background-color: rgb(200, 200, 200);
    width: 100px;
    height: 100vh;
}
.sidebar > a { color: var(--dark); width: 100%; }

/*
 * Mobile Management
 */
 .only-mobile { display: inline-block; }
.no-mobile { display: inline-block; }
/* Narrow screen */
@media screen and (max-width: 700px) {
	.no-mobile { display: none !important; }
    .biography { width: 90vw; }
    .container { margin-left: calc(0.5 * (100vw - var(--width))); }
}
/* Wide screen */
@media screen and (min-width: 700px) {
	.only-mobile { display: none !important; }
    .biography { width: calc(var(--width) * 0.6); }
    .container { margin-left: calc(0.5 * (100vw - var(--width))); }
}

/*
 * Elements
 */
html, body{
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--dark);
	background-color: var(--background);
	width: 100%;
	margin: 0;
}

ul li { white-space: normal;margin-left: 20px; }
img { width: 100%; vertical-align: middle; }
a {
	color: inherit;
	background-color: transparent;
	-webkit-text-decoration-skip: objects;
}
a:active, a:hover { outline-width:0 }
h1{font-size:36px}
h2{font-size:30px}
h3{font-size:24px}
h4{font-size:20px}
h5{font-size:18px}
h6{font-size:16px}
h1,h2,h3,h4,h5,h6{
	font-family: "Segoe UI", Arial, sans-serif;
	font-weight: var(--normal);
	margin: 10px 0;
}
hr { border-top: 1px solid var(--dark); margin: 20px 10%; }

/*
 * Color Theme
 */
 :root {
	--dark: #000;
	--highlight: #005cf1;
	--light: #fff;

	--header: #000;
	--header-text: #fff;
	--heading-text: #fff;
	--background: #fff;
	--border: #000;

	--highlight-tl: rgba(0, 92, 241, 0.8);
	--light-tl: rgba(255, 255, 255, 0.8);

	--item-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
	--header-shadow: 0 4px 8px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}
[data-theme="dark"] {
	--dark: #f3f3f3;
	--highlight: #256bdb;
	--light: #26282b;

	--header: #000;
	--header-text: #f3f3f3;
	--heading-text: #f3f3f3;
	--background: #394346;
	--border: #000;

	--highlight-tl: rgba(95, 133, 219, 0.8);
	--light-tl: rgba(38, 40, 43, 0.8);

	--item-shadow: 0 2px 5px 0 rgba(0,0,0,0.4),0 2px 10px 0 rgba(0,0,0,0.3);
	--header-shadow: 0 4px 8px 0 rgba(0,0,0,0.4),0 2px 10px 0 rgba(0,0,0,0.3);
}

/*
 * Buttons
 */
 .button, .button-menu, .button-navbar, .sidebar > a {
	border: none;
	display: inline-block;
	padding: 8px 8px;
    box-sizing: border-box;
	vertical-align: middle;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background-color: inherit;
	cursor: pointer;
    user-select: none;
	white-space: normal;
}
.button:hover, .sidebar > a:hover {
	color: var(--heading-text);
	background-color: var(--highlight) !important;
}

/*
 * Images
 */
.image-800, .image-600, .image-500, .image-400 { width: 100%; }
.image-800 > img, .image-600 > img, .image-500 > img, .image-400 > img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.image-600 > img { width: calc(min(100%, 600px)); }
.image-500 > img { width: calc(min(100%, 500px)); }
.image-400 > img { width: calc(min(100%, 400px)); }

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-color) !important;
}

.profile img {
    border-radius: 50%;
    max-width: 220px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.profile img:hover {
    transform: scale(1.03);
}

.social-icons {
    margin-top: 15px;
    text-align: left;
}

.social-icons a {
    color: var(--text-color);
    margin: 0 8px 10px 0;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
}

.social-icons a i {
    margin-right: 5px;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: var(--text-color);
}

.section {
    margin-bottom: 3rem;
}

.image-500, .image-400 {
    max-width: 100%;
    margin-bottom: 1rem;
}

.image-500 img, .image-400 img {
    max-width: 100%;
    height: auto;
}

footer {
    background-color: var(--light-gray);
    padding: 30px 0;
    margin-top: 60px;
}

footer .social-icons {
    margin-top: 15px;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Publication styles */
.publication-entry {
    display: flex;
    margin-bottom: 2.5rem;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.publication-entry:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.publication-entry:last-child {
    margin-bottom: 0;
}

.publication-image-container {
    flex: 0 0 200px;
    margin-right: 20px;
}

.publication-details {
    flex: 1;
}

.publication-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: contain;
    transition: all 0.3s ease;
    max-height: 150px;
    border: 1px solid #eee;
}

.publication-image:hover {
    transform: scale(1.05);
}

.publication-entry h5 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publication-conference {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: inline-block;
    background-color: var(--light-gray);
    padding: 3px 8px;
    border-radius: 4px;
}

.publication-entry .authors {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.publication-entry .links {
    margin-top: 0.75rem;
}

.publication-entry .links a {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.publication-entry .links a:hover {
    transform: translateY(-2px);
}

/* Education Section Styles */
.education-entry {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.education-year {
    font-weight: 600;
    color: #555;
}

.education-degree {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.education-institution {
    font-weight: 600;
    color: #428bca;
    margin-bottom: 0.5rem;
}

.education-details p {
    margin-bottom: 0.3rem;
}

/* Animation for page elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container > div {
    animation: fadeIn 0.8s ease forwards;
}

.publication-entry:nth-child(1) { animation-delay: 0.1s; }
.publication-entry:nth-child(2) { animation-delay: 0.2s; }
.publication-entry:nth-child(3) { animation-delay: 0.3s; }
.publication-entry:nth-child(4) { animation-delay: 0.4s; }
.publication-entry:nth-child(5) { animation-delay: 0.5s; }
.publication-entry:nth-child(6) { animation-delay: 0.6s; }
.publication-entry:nth-child(7) { animation-delay: 0.7s; }
.publication-entry:nth-child(8) { animation-delay: 0.8s; }
.publication-entry:nth-child(9) { animation-delay: 0.9s; }
.publication-entry:nth-child(10) { animation-delay: 1.0s; }

.bio-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.bio-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.bio-content {
    padding: 25px;
    background-color: white;
    border-radius: var(--border-radius);
}

.bio-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
    line-height: 1.7;
}

.research-interests {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-top: 20px;
}

/* Button styling improvements */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section transitions */
.section {
    transition: all 0.5s ease;
    padding: 30px 0;
}

/* Container spacing */
.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Page scroll behavior */
html {
    scroll-behavior: smooth;
}

/* For issue #2: Reduce gap between bio and publications */
.section.mt-5 {
    margin-top: 1rem !important;
}

#publications {
    padding-top: 10px;
}

/* Publications section specific styling */
.publications-section {
    margin-top: 0.5rem !important;
    padding-top: 0;
}

#publications h2 {
    margin-top: -40px; /* Reduce the negative margin to pull content up */
    padding-top: 60px; /* Reduce from 80px to bring content closer */
}

/* Award badges for publications */
.award-badge {
    display: inline-block;
    background-color: #ffd700; /* Gold color */
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

.best-paper-badge {
    background: linear-gradient(45deg, #ffd700, #ffcc00);
    border: 1px solid #e6b800;
}

.best-student-paper-badge {
    background: linear-gradient(45deg, #c0c0c0, #e6e6e6);
    border: 1px solid #b3b3b3;
}

.award-details {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 6px 10px;
    border-radius: var(--border-radius);
    border-left: 3px solid #ffd700;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Highlighted publication entry */
.publication-entry.highlighted {
    border: 2px solid #ffd700;
    background-color: rgba(255, 215, 0, 0.05);
}

.ros-release-badge {
    background: linear-gradient(45deg, #00b0f0, #0080c0);
    border: 1px solid #0070b0;
    color: white;
}

/* ROS release info */
.ros-release-info {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    background-color: rgba(0, 176, 240, 0.1);
    padding: 6px 10px;
    border-radius: var(--border-radius);
    border-left: 3px solid #00b0f0;
}
