/* Base Styles */
:root {
    --primary-color: #324789;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #646262;
    --border-color: #e0e0e0;
    --section-spacing: 5rem;
    --timeline-color: #f0f0f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

a:hover {
    color: #004080;
}

/* Header Styles */
header {
    padding: 2.25rem 0;
    background-image: url('assets/img/ahu-background.jpg');
    background-color: rgba(145, 143, 143, 0.5); /* 灰色，带有一定透明度 */
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info {
    flex: 2;
}

.profile-image {
    flex: 1;
    text-align: right;

}

#profile-img {
    width: 160px;
    height: 160px;
    border-radius: 1px;
    object-fit: cover;
}

h1 {
    font-size: 2.0rem;
    margin-bottom: 1.0rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.subtitle-highlight {
    background-color: #0a488f; /* 使用现有蓝色变量 */
    color: white !important; /* 白色文字 */
    padding: 0.25rem 0.5rem; /* 文字内边距 */
    display: inline; /* 背景仅包裹文字 */
    line-height: 1.5; /* 确保背景高度适中 */
}

.subtitle {
    font-size: 2.25rem;
    line-height: 2.25rem;
    color: var(--light-text);
    margin-bottom: 1.25rem;
}

.contact-info {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.contact-info a {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(0, 102, 204, 0.05);
    width: 42px;
    height: 42px;
}

.contact-info a:hover {
    background-color: rgba(0, 102, 204, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon-svg {
    width: 1.8rem;
    height: 1.8rem;
    filter: invert(26%) sepia(92%) saturate(1361%) hue-rotate(212deg) brightness(92%) contrast(90%);
}

/* Navigation Styles */
nav {
    background-color: #f3f5fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-links {
    display: flex; 
    list-style: none;
    height: 60px;
}

.nav-links li {
    margin-right: 2rem;
}

.nav-links a {
    display: inline-block;
    height: 60px;
    line-height: 60px;
    font-weight: 500;
    font-size: 1.5rem;
    position: relative;
}

.nav-links a.active {
    color: var(--primary-color);
}

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

.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation Menu */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #f3f5fa;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    body {
        padding-top: 60px;
    }
    
    .nav-links {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        white-space: nowrap;
        padding: 0.5rem 0;
        height: auto;
        width: 100%;
        margin: 0;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    nav .container {
        padding: 0;
        position: relative;
    }
    
    .nav-links li {
        display: inline-block;
        margin: 0 0.8rem;
        flex-shrink: 0;
    }
    
    .nav-links li:first-child {
        margin-left: 15px;
    }
    
    .nav-links li:last-child {
        margin-right: 15px;
        padding-right: 5px; /* Add a bit of padding at the end for better scrolling */
    }
    
    .nav-links a {
        height: auto;
        line-height: normal;
        padding: 0.5rem 0;
        font-size: 1.5rem;
        white-space: nowrap;
    }
    
    /* Add gradient indicators to show there's more content */
    nav .container::before,
    nav .container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        z-index: 10;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    nav .container::before {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
    }
    
    nav .container::after {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
    }
    
    /* Only show gradients if has-scroll class is present */
    nav .container.has-scroll::before,
    nav .container.has-scroll::after {
        opacity: 1;
    }
    
    .section {
        padding: 2rem 0 1.5rem 0;
    }
    
    #profile-img {
        width: 150px;
        height: 150px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Hide timeline elements on mobile */
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-marker {
        display: none;
    }
    
    .edu-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .edu-text {
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .school-logo {
        align-self: center;
    }
    
    .edu-logo {
        width: 80px;
    }
    
    .honor-item {
        flex-direction: column;
    }
    
    .honor-year {
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .service-list {
        gap: 0.5rem;
    }
    
    .service-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .address-info p {
        font-size: 1rem;
    }
    
    .address-description {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    nav {
        padding: 0;
    }
    
    body {
        padding-top: 42px; /* Adjust padding for smaller screens */
    }
    
    .nav-links {
        padding: 0.3rem 0;
    }
    
    .nav-links li {
        margin: 0 0.6rem;
    }
    
    .nav-links li:first-child {
        margin-left: 10px;
    }
    
    .nav-links li:last-child {
        margin-right: 10px;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: 0.4rem 0;
    }
    
    .container nav::before,
    .container nav::after {
        width: 20px;
    }
    
    .contact-info {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
        margin-bottom: 1rem;
    }
    
    .contact-info a {
        width: 38px;
        height: 38px;
        padding: 6px;
    }
    
    .contact-info i {
        font-size: 1.5rem;
    }
    
    .icon-svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skill-name {
        margin-bottom: 0.5rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        grid-template-columns: 1fr;
    }
    
    .contact-social {
        grid-column: span 1;
    }
    
    nav .container {
        padding: 0 2px;
    }
}

/* Section Styles */
.section {
    padding: var(--section-spacing) 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about-content {
    font-size: 1.05rem;
}

/* News Section */
.news-container, .news-list {
    margin-top: 2rem;
}

.news-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    border-radius: 4px;
    background-color: transparent;
    box-shadow: none;
}

.news-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 102, 204, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    min-width: 130px;
    width: 130px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.date-highlight, .year-highlight {
    background-color: rgba(0, 102, 204, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9rem;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.news-content p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.news-content a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.news-content a:hover {
    text-decoration: underline;
}

.view-all-news, .back-to-home {
    margin-top: 2rem;
    text-align: center;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Media queries for news items */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

/* Research Areas */
.research-areas {
    display: block;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.research-area {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.research-area i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.research-area h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.research-area p {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.75;
}

.research-list {
    text-align: left;
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.research-list li {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.research-list li strong {
    color: var(--text-color);
}

/* Education Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #d0d0d0;
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    padding: 20px;
    background-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.timeline-marker {
    position: absolute;
    top: 20px;
    left: -29.5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 2;
}

.timeline-content {
    flex: 1;
}

.edu-content-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.edu-text {
    flex: 1;
    padding-right: 1rem;
}

.school-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-logo {
    width: 100px;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-date {
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* Publications */
.publication-filter {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.part-publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication {
    display: flex;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Subtle left border for first-author papers */
.publication.first-author {
    border-left: 3px solid var(--primary-color);
}

.publication:hover {
    transform: translateX(5px);
}

.pub-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.pub-content {
    padding: 1.5rem;
    flex: 1;
}

.pub-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.authors {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.abstract {
    font-size: 1rem;
    color: var(--light-text);
    margin-top: 1.0rem;
    text-align: justify;
}

.venue {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    font-style: normal;
}

/* Gray color for preprint tags */
.preprint-tag {
    background-color: #f0f0f0;
    color: #666;
}

/* Light blue color for venue tags (accepted papers) */
.venue-tag {
    background-color: #e1f5fe;
    color: #0288d1;
}

/* Light purple color for highlight tags, rating tags, and code/blog tags */
.highlight-tag, .code-tag, .blog-tag {
    background-color: #e8eaf6;
    color: #3f51b5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.code-tag:hover, .blog-tag:hover {
    background-color: #3f51b5;
    color: white;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

.status {
    background-color: #e6f0ff;
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-style: normal;
}

.code-link, .blog-link {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background-color: #e6f0ff;
    color: var(--primary-color);
    border-radius: 4px;
    font-style: normal;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.code-link:hover, .blog-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    background-color: #324789;
    color: white;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.project-header {
    padding: 1.5rem;
    background-color: rgba(0, 102, 204, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.project-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.project-content {
    padding: 1.5rem;
}

.project-content p {
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
}

/* Skills Section */
.skills-container {
    margin-top: 2rem;
}

.skills-category {
    margin-bottom: 2.5rem;
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: flex;
    align-items: center;
}

.skill-name {
    width: 120px;
    font-weight: 500;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skills-tags span {
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.skills-tags span:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Honors Section */
.honors-list {
    margin-top: 2rem;
}

.honor-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    border-radius: 4px;
}

.honor-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 102, 204, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.honor-item:last-child {
    border-bottom: none;
}

.honor-year {
    min-width: 130px;
    width: 130px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.honor-content {
    flex: 1;
}

.honor-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.honor-content p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.year-highlight {
    display: inline-block;
    background-color: #e1f5fe;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .honor-item {
        flex-direction: column;
    }
    
    .honor-year {
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
}

/* CV Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    color: white;
}

.btn i {
    margin-right: 0.5rem;
}

.download-cv {
    margin-bottom: 2rem;
    text-align: center;
}

/* Contact Section */
.contact-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.contact-info-card {
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-method {
    text-align: center;
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.contact-method h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: var(--light-text);
}

.contact-social {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .profile-image {
        align-self: center;
    }
    
    .research-areas {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    #profile-img {
        width: 150px;
        height: 150px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Hide timeline elements on mobile */
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-marker {
        display: none;
    }
    
    .edu-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .edu-text {
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .school-logo {
        align-self: center;
    }
    
    .edu-logo {
        width: 80px;
    }
    
    .honor-item {
        flex-direction: column;
    }
    
    .honor-year {
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .contact-info {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
        margin-bottom: 1rem;
    }
    
    .contact-info a {
        width: 38px;
        height: 38px;
        padding: 6px;
    }
    
    .contact-info i {
        font-size: 1.5rem;
    }
    
    .icon-svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    nav {
        padding: 3px 0;
    }
    
    .nav-links {
        height: auto;
        padding: 5px 0;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: 8px 0;
    }
    
    .container nav::before,
    .container nav::after {
        width: 20px;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skill-name {
        margin-bottom: 0.5rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        grid-template-columns: 1fr;
    }
    
    .contact-social {
        grid-column: span 1;
    }
}

/* Ensure date-highlight and year-highlight have the same styling */
.date-highlight, .year-highlight {
    display: inline-block;
    background-color: #e1f5fe;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Services Section */
.services-content {
    margin-top: 2rem;
}

.service-category {
    margin-bottom: 2.5rem;
}

.service-category h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.service-category h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.service-list {
    list-style-type: none;
    padding-left: 0;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-list li {
    padding: 0.5rem 0.9rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.25rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    display: block;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-list li:hover {
    transform: translateX(5px);
    background-color: rgba(0, 102, 204, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 102, 204, 0.1);
}

@media (max-width: 768px) {
    .service-list {
        gap: 0.5rem;
    }
    
    .service-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Location Section */
.location-content {
    margin-top: 1.25rem;
}

.address-container {
    margin-bottom: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.address-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.address-info p {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.address-info i {
    color: var(--primary-color);
}

.address-description {
    color: var(--light-text);
    font-size: 0.95rem !important;
    margin-left: 1.5rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

@media (max-width: 768px) {
    .address-info p {
        font-size: 1rem;
    }
    
    .address-description {
        font-size: 0.9rem !important;
    }
}

/* Visitors Section */
.visitors-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.visitors-section .section-title {
    margin: 0 auto 2rem;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.student-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.5rem 1rem;
    transition: box-shadow 0.2s;
    text-align: left;
}

.student-info {
    flex: 1;
}

.student-info h3 {
    margin-bottom: 0.5rem;
    color: #324789;
}

.student-photo {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    margin-left: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .students-grid {
        grid-template-columns: 1fr;
    }
    .student-card {
        flex-direction: row;
    }
}
@media (max-width: 600px) {
    .student-card {
        flex-direction: column-reverse;
        align-items: flex-start;
        text-align: left;
    }
    .student-photo {
        margin-left: 0;
        margin-bottom: 1rem;
        align-self: flex-end;
    }
}

.pdf-viewer {
    width: 100%;
}
.pdf-viewer iframe {
    width: 100%;
    display: block;
}