/* ===================================
   Academic Website Styles
   Clean, Professional Design
   =================================== */

/* ===================================
   1. CSS RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   2. HEADER SECTION
   =================================== */
.header {
    background: #ffffff;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    justify-content: center;
}

.profile-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
}

.profile-image {
    position: relative;
    flex-shrink: 0;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.profile-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 3px solid #f0f0f0;
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title {
    font-size: 1.3rem;
    color: #4a5568;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.affiliation {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.advisor {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.advisor a {
    color: #6c63ff;
    text-decoration: none;
}

.advisor a:hover {
    text-decoration: underline;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-item i {
    color: #6c63ff;
    width: 16px;
}

.contact-item a {
    color: #333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #6c63ff;
    text-decoration: underline;
}

/* ===================================
   3. NAVIGATION
   =================================== */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.nav-list li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #6c63ff;
    border-bottom-color: #6c63ff;
    background: rgba(108, 99, 255, 0.05);
}

/* ===================================
   4. MAIN CONTENT STRUCTURE
   =================================== */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.section {
    display: none;
    padding: 1rem 0 2rem;
}

.section.active {
    display: block;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #6c63ff;
    display: inline-block;
}

/* ===================================
   5. ABOUT SECTION
   =================================== */
.about-content {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.about-content a {
    color: #6c63ff;
    text-decoration: none;
}

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

.job-market-announcement {
    margin: 25px 0;
    padding: 16px 20px;
    background-color: #f2f7ff;
    border-left: 5px solid #4285f4;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
}

.announcement-icon {
    font-size: 24px;
    color: #4285f4;
    margin-right: 15px;
}

.announcement-text {
    font-size: 1.1em;
    line-height: 1.4;
}

.announcement-text strong {
    font-weight: 700;
    color: #0d47a1;
    font-size: 1.1em;
}

.announcement-text a {
    color: #4285f4;
    font-weight: 500;
    text-decoration: underline;
}

.announcement-text a:hover {
    color: #0d47a1;
}

/* ===================================
   6. NEWS SECTION
   =================================== */
.news-list {
    max-height: 400px;
    overflow-y: auto;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.news-date {
    font-weight: 600;
    color: #6c63ff;
    min-width: 80px;
    font-size: 0.9rem;
}

.news-content {
    color: #4a5568;
    line-height: 1.6;
}

.news-content strong {
    color: #1a1a1a;
}

/* ===================================
   7. PUBLICATIONS SECTION
   =================================== */
.publications-container {
    max-width: none;
}

.pub-category {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.pub-category:first-child {
    margin-top: 0;
}

.publication {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.publication:last-child {
    border-bottom: none;
}

.pub-title {
    margin-bottom: 0.5rem;
}

.pub-title a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: #ffa963;
    text-underline-offset: 3px;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.4;
}

.pub-title a:hover {
    color: #6c63ff;
    text-decoration: underline;
}

.pub-authors {
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.pub-authors strong {
    color: #1a1a1a;
}

.pub-venue {
    color: #4a5568;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.pub-venue em {
    font-weight: 500;
    color: #6c63ff;
}

.pub-year {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===================================
   8. RESEARCH SECTION
   =================================== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /*repeat(auto-fit, minmax(350px, 1fr));*/
    gap: 2rem;
    margin-top: 2rem;
}

.research-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.research-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.research-card:hover .research-image img {
    transform: scale(1.05);
}

.research-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.research-title {
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
}

.research-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.research-title a:hover {
    color: #6c63ff;
    border-bottom-color: #6c63ff;
    transform: translateY(-1px);
}

.research-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c63ff, #e17a47);
    transition: width 0.3s ease;
}

.research-title a:hover::after {
    width: 100%;
}

.research-title a[target="_blank"]:not([href=""]):not([href="#"])::before {
    content: '\f35d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8em;
    opacity: 0.6;
    margin-right: 0.5em;
    color: #6c63ff;
}

.research-authors {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.research-authors strong {
    color: #e17a47;
    font-weight: 600;
}

.research-venue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.research-venue i {
    color: #e17a47;
    font-size: 1rem;
}

.research-venue strong {
    color: #1a1a1a;
    font-weight: 600;
}

.research-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.95rem;
}

.research-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background: #e17a47;
    color: white;
    transform: translateY(-2px);
}

.pub-link i {
    font-size: 0.8rem;
}

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

.tag {
    background: #6c63ff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* ===================================
   9. EXPERIENCE SECTION
   =================================== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c63ff;
}

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

.exp-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.exp-date {
    color: #6c63ff;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.exp-organization {
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.exp-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.exp-description {
    color: #4a5568;
    line-height: 1.6;
}

/* ===================================
   10. AWARDS SECTION
   =================================== */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.award-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c63ff;
}

.award-year {
    color: #6c63ff;
    font-weight: 600;
    min-width: 80px;
    font-size: 0.95rem;
}

.award-details {
    flex: 1;
}

.award-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.3rem 0;
}

.award-organization {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   11. FOOTER
   =================================== */
.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ===================================
   12. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-image img,
    .profile-placeholder {
        width: 150px;
        height: 150px;
    }

    .profile-placeholder {
        font-size: 3rem;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .contact-info {
        justify-content: center;
        gap: 1rem;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .research-image {
        height: 160px;
    }

    .research-content {
        padding: 1rem;
    }

    .research-title a {
        font-size: 1rem;
    }

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

    .pub-link {
        justify-content: center;
        text-align: center;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .exp-date {
        order: -1;
    }

    .award-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .award-year {
        min-width: auto;
    }

    .news-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .news-date {
        min-width: auto;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 2rem 0 1.5rem;
    }

    .main-content {
        padding: 1.5rem 0;
    }

    .section {
        padding: 0.5rem 0 1.5rem;
    }

    .name {
        font-size: 1.8rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .research-card {
        max-width: 100%;
    }

    .research-links {
        gap: 0.5rem;
    }
}

/* ===================================
   13. ACCESSIBILITY & PRINT STYLES
   =================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}
@media (max-width: 1200px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.nav-link:focus,
a:focus,
button:focus {
    outline: 2px solid #6c63ff;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .experience-item,
    .award-item {
        border: 2px solid #000;
    }
}

@media print {
    body {
        font-size: 12px;
        line-height: 1.4;
    }

    .navbar,
    .footer {
        display: none;
    }

    .header {
        border-bottom: 2px solid #000;
        margin-bottom: 1rem;
    }

    .section {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .section-title {
        color: #000;
        border-bottom: 1px solid #000;
    }

    .profile-section {
        flex-direction: row;
    }

    .experience-item,
    .award-item {
        background: transparent;
        border-left: 2px solid #000;
        margin-bottom: 1rem;
    }

    a {
        color: #000 !important;
        text-decoration: none;
    }
}