:root {
--primary-color: #6c064a;
--black:  #151111;
--text-color: #482d3b;
--headings: #780741;
--background-color: #ffffff;
--section-spacing: 2.5rem;
--maroon-color: #721108;
--purple: #6d0d7e;
--dark-gray-color: #4a5568;
--light-green-color: #cff3db;
--blue-text-color: #435aa3;
--purple-color: #6a0dad;
}

body {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", "EB Garamond", serif;
line-height: 1.7;
color: var(--text-color);
margin: 0;
padding: 0;
background-color: var(--background-color);
scroll-behavior: smooth;
font-size: 18px;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 2.5rem;
}

h1, h2 {
color: var(--headings);
}

h1 {
font-size: 3rem;
padding-bottom: 0.75rem;
margin-bottom: 2rem;
letter-spacing: -0.5px;
}

h2 {
font-size: 3rem;
margin-top: var(--section-spacing);
margin-bottom: 1.75rem;
}

.header-container {
background: transparent;
width: 100vw;
margin-left: calc(-50vw + 50%);
margin-bottom: 0;
padding: 1.3rem 0;
box-shadow: none;
border-bottom: 4px solid #e5e7eb;
padding-bottom: 0.2rem;
}

.header-container h1 {
margin: 0;
padding-bottom: 0;
border-bottom: none;
}

.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}

.header-container .social-links a {
color: inherit;
}

.header-container .social-links a:hover {
opacity: 0.8;
}

.navigation {
display: flex;
gap: 1.5rem;
align-items: center;
}

.nav-button {
color: var(--headings);
text-decoration: none;
font-weight: 600;
font-size: 2.2rem;
transition: all 0.3s ease;
text-shadow: none;
padding: 0.5rem 1rem;
border-radius: 8px;
}

.nav-button:hover {
text-decoration: none;
background-color: #e9d5f5;
color: var(--headings);
transform: scale(1.05);
}

.social-section {
text-align: center;
margin: 1.5rem 0 0 0;
padding: 0;
}

.social-section .social-links {
justify-content: center;
}

.social-links {
display: flex;
gap: 1.5rem;
align-items: center;
}

.social-links a {
font-size: 2.2rem;
transition: color 0.2s ease;
display: flex;
align-items: center;
gap: 0.3rem;
}

.social-links .fa-graduation-cap {
color: var(--blue-text-color);
}

.social-links .fa-envelope {
color: #f59e0b;
}   

.social-links .fa-github {
color: #333333;
}

.social-links .fa-x-twitter {
color: #000000;
}

.social-links .fa-linkedin {
color: #0A66C2;
}

.social-links .fa-file-text {
color: #FFB5A7;
}

.cv-link span {
font-size: 1.2rem;
font-weight: 500;
}

.social-links a:hover {
opacity: 0.8;
text-decoration: none;
}

.profile-wrapper {
display: flex;
gap: 4rem;
margin: 1rem 0 3rem 0;
align-items: flex-start;
flex-wrap: wrap;
}

.profile-left {
flex-shrink: 0;
text-align: center;
}

.profile-left img {
width: 320px;
height: 320px;
border-radius: 50%;
object-fit: cover;
transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
cursor: pointer;
filter: brightness(0.95);
margin: 0 auto 25px auto;
display: block;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-left img:hover {
transform: scale(1.08);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
filter: brightness(1.1);
}

.profile-left h1 {
font-size: 2.8rem;
font-weight: 600;
margin-bottom: 12px;
color: #111;
}

.profile-left .profile-title {
font-size: 1.6rem;
color: #666;
margin-bottom: 2px;
line-height: 1.3;
}

.profile-left .profile-email {
font-size: 1.5rem;
color: #C41230;
margin-bottom: 20px;
}

.profile-text {
flex: 1;
min-width: 300px;
}

.profile-text p {
margin-bottom: 1.4rem;
font-size: 1.5rem;
color: var(--black);
text-align: justify;
}

a {
color: var(--purple);
text-decoration: none;
transition: all 0.2s ease;
}

a:hover {
text-decoration: underline;
color: #800000;
}

.publication-item {
margin-bottom: 2.5rem;
padding: 2rem;
background: linear-gradient(135deg, #f7fee7 0%, #ecfdf5 50%, #f0fdfa 100%);
border-radius: 20px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(134, 239, 172, 0.1);
position: relative;
}

.publication-item:hover {
transform: translateX(8px);
box-shadow: 0 6px 20px rgba(134, 239, 172, 0.15);
}

.publication-item::before {
content: '•';
position: absolute;
left: -1.5rem;
top: 2.2rem;
font-size: 1.5rem;
color: #000000;
font-weight: bold;
}

.talk-item {
margin-bottom: 2.5rem;
padding: 1rem 2rem;
background: linear-gradient(135deg, #f7fee7 0%, #ecfdf5 50%, #f0fdfa 100%);
border-radius: 20px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(252, 211, 77, 0.1);
position: relative;
max-width: 900px;
}

.talk-item:hover {
transform: translateX(8px);
box-shadow: 0 4px 15px rgba(252, 211, 77, 0.15);
}

.talk-item::before {
content: '•';
position: absolute;
left: -1.5rem;
top: 2.2rem;
font-size: 1.5rem;
color: #000000;
font-weight: bold;
}

.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
margin: 0.2rem auto;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
max-width: 850px;
}

.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 12px;
}

.carousel-container {
position: relative;
max-width: 900px;
margin: 2rem auto;
}

.carousel-wrapper {
position: relative;
overflow: hidden;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
display: none;
position: relative;
}

.carousel-slide.active {
display: block;
}

.carousel-slide img {
width: 100%;
height: 500px;
object-fit: contain;
display: block;
background-color: #f5f5f5;
}

.carousel-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}

.carousel-slide:hover .carousel-overlay {
opacity: 1;
}

.carousel-text {
color: white;
font-size: 1.8rem;
font-weight: 600;
text-align: center;
padding: 2rem;
}

.carousel-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(120, 7, 65, 0.8);
color: white;
border: none;
font-size: 2.5rem;
padding: 1rem 1.5rem;
cursor: pointer;
z-index: 10;
transition: all 0.3s ease;
border-radius: 8px;
}

.carousel-arrow:hover {
background: rgba(120, 7, 65, 1);
transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
left: 1rem;
}

.carousel-arrow.next {
right: 1rem;
}

.carousel-dots {
text-align: center;
padding: 1.5rem 0;
}

.dot {
height: 12px;
width: 12px;
margin: 0 0.5rem;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
cursor: pointer;
transition: background-color 0.3s ease;
}

.dot.active {
background-color: var(--headings);
}

.service-item {
margin-bottom: 1rem;
padding: 0.5rem 0;
position: relative;
display: flex;
justify-content: space-between;
align-items: flex-start;
}

.service-item::before {
content: '•';
position: absolute;
left: -1.5rem;
top: 0.5rem;
font-size: 1.2rem;
color: #000000;
font-weight: bold;
}

.service-content {
flex: 1;
padding-right: 1rem;
}

.service-role {
font-weight: 300;
font-size: 1.55rem;
font-style: normal;
color: var(--black);
line-height: 1.4;
margin: 0;
}

.service-role .committee-role {
color: var(--black);
}

.service-role .conference-name {
color: var(--maroon-color);
font-weight: 500;
}

.service-date {
color: var(--purple-color);
font-style: italic;
font-size: 1.4rem;
white-space: nowrap;
flex-shrink: 0;
}

.service-role a {
color: var(--purple);
text-decoration: none;
font-weight: 400;
}

.service-role a:hover {
color: #800000;
text-decoration: underline;
}

cite {
font-weight: 600;
display: block;
margin-bottom: 0.75rem;
font-size: 1.6rem;
font-style: normal;
color: var(--black);
}

.publication-links {
margin-top: 1rem;
}

.publication-link {
margin-right: 1rem;
background-color: var(--light-green-color);
color: var(--blue-text-color);
padding: 0.6rem 1.4rem;
border-radius: 8px;
font-size: 1.2rem;
transition: all 0.2s ease;
}

.publication-link:hover {
opacity: 0.9;
}

.publication-link a {
color: var(--blue-text-color);
text-decoration: none;
}

.custom-list {
list-style: none;
padding: 0;
}

firstauthor {
font-weight: bold;
color: var(--maroon-color);
font-size: 1.4rem;
}

auth {
color: #475569;
line-height: 1.7;
font-size: 1.4rem;
font-weight: 450;
margin: 0.3rem 0;
}

conf {
font-style: italic;
color: var(--purple-color);
display: inline-block;
margin-top: 0.5rem;
font-size: 1.3rem;
}

.section-divider {
height: 1px;
background-color: #e5e7eb;
margin: 3rem 0;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2.5rem;
}
.nav-button {
font-size: 1.8rem;
padding: 0.4rem 0.8rem;
}
}

@media (max-width: 768px) {
.container {
padding: 1.5rem;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 2rem;
margin-top: 2rem;
margin-bottom: 1.25rem;
}
.header-content {
flex-direction: column;
gap: 1rem;
text-align: center;
padding: 0 1rem;
}
.navigation {
justify-content: center;
gap: 0.8rem;
flex-wrap: wrap;
}
.nav-button {
font-size: 1.4rem;
padding: 0.4rem 0.7rem;
}
.social-links {
justify-content: center;
gap: 1.2rem;
flex-wrap: wrap;
}
.social-links a {
font-size: 1.8rem;
}
.profile-wrapper {
flex-direction: column;
align-items: center;
gap: 2rem;
}
.profile-left img {
width: 280px;
height: 280px;
}
.profile-text {
text-align: left;
}
.profile-text p {
font-size: 1.3rem;
text-align: left;
}
cite {
font-size: 1.4rem;
}
firstauthor, auth {
font-size: 1.2rem;
}
conf {
font-size: 1.1rem;
}
.publication-item, .talk-item {
padding: 1.25rem;
margin-left: 1rem;
}
.publication-item::before, .talk-item::before {
left: -1rem;
}
.publication-link {
font-size: 1rem;
padding: 0.5rem 1rem;
margin-bottom: 0.5rem;
display: inline-block;
}
.carousel-slide img {
height: 350px;
}
.carousel-arrow {
font-size: 1.8rem;
padding: 0.6rem 0.9rem;
}
.carousel-arrow.prev {
left: 0.5rem;
}
.carousel-arrow.next {
right: 0.5rem;
}
.carousel-text {
font-size: 1.2rem;
padding: 1rem;
}
.service-item {
flex-direction: column;
align-items: flex-start;
margin-left: 1rem;
}
.service-item::before {
left: -1rem;
}
.service-content {
padding-right: 0;
margin-bottom: 0.3rem;
}
.service-role {
font-size: 1.3rem;
}
.service-date {
align-self: flex-start;
font-size: 1.2rem;
}
.video-container {
max-width: 100%;
}
.section-divider {
margin: 2rem 0;
}
}

@media (max-width: 480px) {
.container {
padding: 1rem;
}
h1 {
font-size: 1.75rem;
}
h2 {
font-size: 1.75rem;
}
.nav-button {
font-size: 1.2rem;
padding: 0.35rem 0.6rem;
}
.social-links {
gap: 1rem;
}
.social-links a {
font-size: 1.6rem;
}
.profile-left img {
width: 240px;
height: 240px;
}
.profile-text p {
font-size: 1.2rem;
}
cite {
font-size: 1.3rem;
}
firstauthor, auth {
font-size: 1.1rem;
}
conf {
font-size: 1rem;
}
.publication-item, .talk-item {
padding: 1rem;
}
.publication-link {
font-size: 0.95rem;
padding: 0.4rem 0.8rem;
}
.carousel-slide img {
height: 280px;
}
.carousel-arrow {
font-size: 1.5rem;
padding: 0.5rem 0.7rem;
}
.carousel-text {
font-size: 1rem;
padding: 0.75rem;
}
.service-role {
font-size: 1.2rem;
}
.service-date {
font-size: 1.1rem;
}
}

@media (max-width: 360px) {
h1 {
font-size: 1.5rem;
}
h2 {
font-size: 1.5rem;
}
.nav-button {
font-size: 1.1rem;
padding: 0.3rem 0.5rem;
}
.profile-left img {
width: 220px;
height: 220px;
}
.profile-text p {
font-size: 1.1rem;
}
}