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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 45px;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #007bff;
}

.nav-menu a.active {
    border-bottom: 2px solid #007bff;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.user-icon {
    font-size: 18px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
}

.about-text {
    padding-right: 40px;
}

.about-title {
    font-size: 48px;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 30px;
    color: #222;
}

.about-paragraph {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #444;
    text-align: justify;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Research Interests Section */
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.research-interests {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 30px;
}

/* Education Section */
.education-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.education-item {
    display: flex;
    gap: 15px;
    align-items: baseline;
    padding: 8px 0;
    font-size: 14px;
}

.edu-years {
    font-weight: 500;
    color: #333;
    min-width: 100px;
    flex-shrink: 0;
    text-align: left;
}

.edu-details {
    color: #333;
    line-height: 1.6;
}

.uni-red {
    color: #d32f2f;
    font-weight: 500;
}

.uni-blue {
    color: #1976d2;
    font-weight: 500;
}

/* Social links in profile card */
.profile-card .social-links {
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.profile-card .social-icon {
    width: 30px;
    height: 30px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Profile Card */
.profile-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: sticky;
    top: 120px;
}

.profile-image {
    width: 250px;
    height: 250px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.greeting {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: 10px;
    color: #222;
}

.name-intro {
    font-size: 22px;
    font-style: italic;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.4;
}

.profile-details {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.profile-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.profile-link {
    margin-bottom: 12px;
}

.profile-link a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.profile-link a:hover {
    text-decoration: underline;
}

.profile-dept {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.profile-university {
    font-size: 15px;
    color: #d32f2f;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 80px;
}

/* Publications Page Styles */
.publications-header {
    text-align: center;
    margin-bottom: 60px;
}

.publications-header h1 {
    font-size: 42px;
    font-weight: 600;
    color: #222;
    margin-bottom: 25px;
    line-height: 1.3;
}

.social-links-pub {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.pub-section {
    margin-bottom: 50px;
}

.pub-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    text-decoration: underline;
}

.pub-item {
    margin-bottom: 20px;
}

.pub-item p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.pub-item strong {
    font-weight: 600;
}

.pub-item em {
    font-style: italic;
}

.pub-item a {
    color: #1976d2;
    text-decoration: underline;
}

.pub-item a:hover {
    color: #0d47a1;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.page-header .social-links-pub {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: nowrap;
}

.page-header .social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.page-header .social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-header .social-icon:hover {
    transform: translateY(-3px);
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 32px;
    color: #222;
    margin-bottom: 30px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

/* Publications & Presentations */
.publications-list,
.presentations-list,
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publication-item,
.presentation-item,
.project-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover,
.presentation-item:hover,
.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.publication-item h3,
.presentation-item h3,
.project-item h3 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 10px;
}

.authors,
.journal,
.conference,
.project-role,
.project-duration {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.description {
    color: #444;
    line-height: 1.6;
    margin-top: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* Blog Section */
.blog-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.post-excerpt {
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Gallery Section (My Toon World) */
.gallery-section {
    padding: 20px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-title {
    font-size: 20px;
    color: #222;
    padding: 20px 20px 10px;
}

.gallery-description {
    color: #666;
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Tools Section */
.tools-section {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.tools-category h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 25px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.tool-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
}

.tool-card h3 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 10px;
}

.tool-type {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.tool-description {
    color: #444;
    line-height: 1.6;
}

/* Knowledge & Practice */
.methodology-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.methodology-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.methodology-item h3 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 15px;
}

.methodology-item p {
    color: #444;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 20px;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    padding: 10px 0;
    color: #444;
    border-bottom: 1px solid #eee;
}

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

.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.area-card h3 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 15px;
}

.area-card p {
    color: #444;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .profile-card {
        position: relative;
        top: 0;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-logo {
        order: -1;
        margin-bottom: 10px;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-content {
        padding: 0 20px;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .publications-header h1 {
        font-size: 32px;
    }
    
    .pub-item p {
        font-size: 14px;
        text-align: left;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .research-areas {
        grid-template-columns: 1fr;
    }
    
    .education-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .edu-years {
        min-width: auto;
    }
}

/* Research Projects Page Styles */
.research-project {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
}

.research-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-infographic {
    width: 40%;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-infographic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.research-project:hover .project-infographic img {
    transform: scale(1.05);
}

.project-details {
    width: 40%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.project-details h2 {
    font-size: 24px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.project-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.project-year {
    font-weight: 500;
    color: #007bff;
}

.project-status {
    background-color: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.project-description {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.project-highlights {
    margin: 20px 0;
}

.project-highlights h3 {
    font-size: 16px;
    color: #222;
    margin-bottom: 12px;
    font-weight: 600;
}

.project-highlights ul {
    list-style: none;
    padding-left: 0;
}

.project-highlights li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #444;
    line-height: 1.2;
    font-size: 13px;
}

.project-highlights li::before {
    content: "✹";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
}

.project-links {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.project-btn:hover {
    background-color: #E491C9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.project-btn.secondary {
    background-color: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.project-btn.secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.project-collaborators {
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.project-collaborators strong {
    color: #333;
    font-weight: 600;
}

/* Responsive Design for Research Projects */
@media (max-width: 768px) {
    .research-project {
        flex-direction: column;
    }
    
    .project-infographic {
        width: 100%;
        min-height: 250px;
    }
    
    .project-details {
        width: 100%;
        padding: 25px;
    }
    
    .project-details h2 {
        font-size: 24px;
    }
    
    .project-description {
        text-align: left;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .project-infographic {
        width: 55%;
    }
    
    .project-details {
        width: 45%;
        padding: 30px;
    }
    
    .project-details h2 {
        font-size: 24px;
    }
}

/* Status Badge Variations */
.project-status.published {
    background-color: #28a745;
}

.project-status.ongoing {
    background-color: #007bff;
}

.project-status.completed {
    background-color: #6c757d;
}

.project-status.in-progress {
    background-color: #ffc107;
    color: #333;
}
