/* ============================================
   Academic Personal Website - Clean & Minimal
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --link-color: #2980b9;
    --link-hover: #1a5276;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: rgba(52, 152, 219, 0.2);
}

a:hover,
a:active {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background-color: #ffffff;
}

/* Header Section */
header {
    background-color: var(--light-gray);
    border-bottom: 3px solid var(--primary-color);
    padding: 3rem 2rem;
}

.header-content {
    max-width: 100%;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.profile-photo {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border: none;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

.chinese-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.institution {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.research-interest {
    font-size: 0.95rem;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.5;
}

.header-contact {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-top: 0.8rem;
    line-height: 1.6;
}

.header-contact a {
    color: var(--link-color);
    text-decoration: none;
}

.header-contact a:hover {
    text-decoration: underline;
}

.header-contact i {
    margin-right: 0.2rem;
    color: var(--secondary-color);
}

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

/* Hamburger Menu Button - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-weight: 400;
    transition: background-color 0.3s ease;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

nav ul li a:hover,
nav ul li a:active {
    background-color: var(--secondary-color);
    text-decoration: none;
}

nav ul li a:focus {
    outline: 2px solid #3498db;
    outline-offset: -2px;
}

/* Main Content */
main {
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

.content-box {
    background-color: #ffffff;
    padding: 1.5rem 0;
}

/* About Section */
#about p {
    margin-bottom: 1rem;
    text-align: justify;
}

#about strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Education Section */
.education-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.date {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-style: italic;
}

.degree {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.minor {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.gpa {
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.transcript-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 1rem;
    padding: 0.3rem 0.6rem;
    background-color: #e8f4f8;
    color: var(--link-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.transcript-link:hover {
    background-color: #d0e8f2;
    text-decoration: none;
    transform: translateY(-1px);
}

.transcript-link i {
    font-size: 0.9rem;
}

.honors {
    font-style: italic;
    color: var(--text-color);
}

/* Research Section */
.research-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.role {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.research-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.research-item ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.research-statement {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-left: 4px solid var(--accent-color);
}

.interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
    margin-left: 1.5rem;
}

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

.interest-category {
    padding: 1.2rem;
    background-color: var(--light-gray);
    border-radius: 6px;
    border-top: 3px solid var(--accent-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interest-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.interest-category h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.interest-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.interest-category ul li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.interest-category ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Publications Section */
.pub-summary {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--secondary-color);
    padding: 1rem;
    background-color: var(--light-gray);
    border-left: 4px solid var(--accent-color);
}

.pub-category {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.publication-item {
    margin-bottom: 2rem;
    padding: 1.2rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-color);
    background-color: #fafafa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.publication-item.patent {
    border-left-color: #9b59b6;
}

.pub-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--primary-color);
}

.pub-authors {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.5;
}

.pub-authors strong {
    color: var(--accent-color);
    font-weight: 600;
}

.pub-venue {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

.pub-venue em {
    font-weight: 500;
    color: var(--primary-color);
}

.pub-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    margin-left: 0.5rem;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
    background-color: #e0e0e0;
    color: var(--text-color);
}

.pub-badge.accepted {
    background-color: #d4edda;
    color: #155724;
}

.pub-badge.published {
    background-color: #d1ecf1;
    color: #0c5460;
}

.pub-badge.submitted {
    background-color: #fff3cd;
    color: #856404;
}

.pub-badge.if {
    background-color: #e7e7ff;
    color: #4a4a9e;
}

.pub-links {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.pub-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-link:hover,
.pub-link:active {
    background-color: var(--link-hover);
    text-decoration: none;
}

.pub-link:active {
    transform: scale(0.98);
}

/* Small inline publication links */
.pub-links-inline {
    margin-left: 0.5rem;
    display: inline;
}

.pub-link-small {
    display: inline;
    padding: 0.2rem 0.5rem;
    background-color: #e8f4f8;
    color: var(--link-color);
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.3rem;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.pub-link-small:hover {
    background-color: #d0e8f2;
    text-decoration: none;
}

.pub-note {
    font-size: 0.95rem;
    color: var(--text-color);
    font-style: italic;
}

.pub-note-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Experience Section */
.experience-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.experience-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.experience-item ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 1rem;
    background-color: var(--light-gray);
    border-left: 3px solid var(--accent-color);
}

.skill-category h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.skill-category p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Awards Section */
.awards-list {
    list-style: none;
    margin-left: 0;
}

.awards-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

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

.awards-list li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-item {
    padding: 0.8rem;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive Design */

/* Tablet Devices (Portrait) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }

    main {
        padding: 2rem 1.5rem;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet & Large Phones (Portrait) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0;
    }

    header {
        padding: 2rem 1.5rem;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-photo {
        width: 140px;
        height: 175px;
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Mobile Navigation with Hamburger Menu */
    nav {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 0.5rem;
        right: 1rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav ul.active {
        display: flex;
        max-height: 500px;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        text-align: left;
    }

    main {
        padding: 1.5rem 1.2rem;
    }

    section {
        margin-bottom: 2.5rem;
    }

    .content-box {
        padding: 1rem 0;
    }

    /* Publication items */
    .publication-item {
        padding: 1rem;
        padding-left: 1.2rem;
    }

    .pub-title {
        font-size: 1rem;
    }

    .pub-authors,
    .pub-venue {
        font-size: 0.9rem;
    }

    .pub-links {
        gap: 0.6rem;
    }

    .pub-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }

    .pub-badge {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }

    /* Research interests */
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .interest-category {
        padding: 1rem;
    }

    /* Headers */
    .edu-header,
    .research-header,
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .date {
        margin-top: 0.2rem;
        font-size: 0.9rem;
    }

    /* Grids */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .interests {
        grid-template-columns: 1fr;
    }

    /* Lists */
    .research-item ul,
    .experience-item ul {
        margin-left: 1.2rem;
    }

    .awards-list li {
        padding: 0.7rem 0;
        padding-left: 1.3rem;
        font-size: 0.95rem;
    }

    /* Contact in About - Tablet */
    .contact-grid-inline {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .contact-item-inline {
        padding: 0.7rem;
    }

    .contact-item-inline i {
        font-size: 1rem;
    }

    /* Skills Scroll - Tablet */
    .skill-icon {
        min-width: 100px;
        padding: 1.2rem 0.8rem;
    }

    .skill-icon img {
        width: 50px;
        height: 50px;
    }

    .skill-icon span {
        font-size: 0.85rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 1.5rem 1rem;
    }

    .profile-photo {
        width: 120px;
        height: 150px;
    }

    h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .chinese-name {
        font-size: 1.3rem;
        display: block;
        margin-top: 0.3rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    h4 {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .institution {
        font-size: 0.9rem;
    }

    .research-interest {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Navigation remains hidden until toggled */
    nav ul li a {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    main {
        padding: 1.2rem 1rem;
    }

    section {
        margin-bottom: 2rem;
    }

    /* About section */
    #about p {
        text-align: left;
        font-size: 0.95rem;
    }

    /* Publication items */
    .pub-summary {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .pub-category {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .publication-item {
        padding: 0.9rem;
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }

    .pub-title {
        font-size: 0.95rem;
    }

    .pub-authors {
        font-size: 0.85rem;
    }

    .pub-venue {
        font-size: 0.85rem;
    }

    .pub-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pub-link {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .pub-badge {
        display: inline-block;
        margin: 0.2rem 0.3rem 0.2rem 0;
        font-size: 0.7rem;
        padding: 0.15rem 0.45rem;
    }

    /* Research statement */
    .research-statement {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    /* Interest categories */
    .interest-category {
        padding: 0.9rem;
    }

    .interest-category h4 {
        font-size: 0.95rem;
    }

    .interest-category ul li {
        padding: 0.3rem 0;
        padding-left: 1rem;
        font-size: 0.9rem;
    }

    /* Education, Research, Experience */
    .education-item,
    .research-item,
    .experience-item {
        padding-bottom: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .degree,
    .role {
        font-size: 0.95rem;
    }

    .minor,
    .gpa,
    .honors {
        font-size: 0.85rem;
    }

    /* Transcript link - mobile */
    .transcript-link {
        display: inline-flex;
        margin-left: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .transcript-link i {
        font-size: 0.85rem;
    }

    .research-item ul,
    .experience-item ul {
        margin-left: 1rem;
        font-size: 0.9rem;
    }

    /* Skills */
    .skill-category {
        padding: 0.9rem;
    }

    .skill-category h4 {
        font-size: 1rem;
    }

    .skill-category p {
        font-size: 0.85rem;
    }

    /* Awards */
    .awards-list li {
        padding: 0.6rem 0;
        padding-left: 1.2rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Contact */
    .contact-item {
        padding: 0.7rem;
    }

    .contact-item strong {
        font-size: 0.9rem;
    }

    .contact-item a {
        font-size: 0.9rem;
        word-break: break-word;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    .footer-note {
        font-size: 0.85rem;
    }

    /* Contact in About - Mobile */
    .contact-in-about h3 {
        font-size: 1.2rem;
    }

    .contact-item-inline {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Skills Grid - Mobile */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 1rem;
    }

    .skill-icon {
        padding: 1rem 0.6rem;
    }

    .skill-icon img {
        width: 45px;
        height: 45px;
    }

    .skill-icon span {
        font-size: 0.8rem;
    }

    /* Research Details - Mobile */
    .project-title,
    .advisor,
    .abstract,
    .my-work {
        font-size: 0.9rem;
    }
}

/* Very Small Phones */
@media (max-width: 360px) {
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .profile-photo {
        width: 100px;
        height: 125px;
    }

    main {
        padding: 1rem 0.8rem;
    }

    .publication-item,
    .interest-category,
    .skill-category {
        padding: 0.8rem;
    }
}

/* Contact Information in About Section */
.contact-in-about {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.contact-in-about h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-grid-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.contact-item-inline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item-inline:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-item-inline i {
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item-inline strong {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.contact-item-inline a {
    color: var(--link-color);
    word-break: break-word;
}

/* Research Item Additions */
.project-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.advisor {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-style: italic;
}

.abstract {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-align: justify;
}

.my-work {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Inline publication links */
.inline-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px dashed var(--accent-color);
}

.inline-link:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
    text-decoration: none;
}

/* Awards Proof Link */
.awards-proof {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-left: 4px solid var(--accent-color);
    text-align: center;
}

.awards-proof a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.awards-proof a:hover {
    color: var(--link-hover);
}

.awards-proof i {
    font-size: 1.2rem;
}

/* Skills Grid - Simple Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.skill-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.skill-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.skill-icon span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
}

/* Print Styles */
@media print {
    nav {
        display: none;
    }

    .container {
        max-width: 100%;
    }

    section {
        page-break-inside: avoid;
    }

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

    .contact-item a:after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
    }

    .mobile-menu-toggle {
        display: none;
    }
}
