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

html, body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Main Layout */
.main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Sidebar */
.sidebar {
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #4d6e79 0%, #102073 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Profile Section */
.profile {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar {
    margin-bottom: 1rem;
}

.avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    background: linear-gradient(45deg, #ffeaa7, #fdcb6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Inline links in profile */
.inline-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.inline-link:hover {
    text-decoration-color: rgba(255, 255, 255, 1);
}

/* Navigation Links */
.nav-links {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    display: block;
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link:hover {
    color: #ffeaa7;
    text-decoration-color: #ffeaa7;
    transform: translateX(3px);
}

/* Related Links */
.related-links {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.related-links h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.related-link {
    display: block;
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.related-link:hover {
    color: #ffeaa7;
    text-decoration-color: #ffeaa7;
    transform: translateX(3px);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    text-decoration: none;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main-content {
    margin-left: 350px;
    width: calc(100% - 350px);
    min-height: 100vh;
    background: #f8f9fa;
}

/* Content Sections */
.content-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Headers */
.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

.content-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.content-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4d6e79, #102073);
    border-radius: 2px;
}

.content-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Small Content Headers */
.content-header-small {
    text-align: center;
    margin-bottom: 2rem;
}

.content-header-small h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.75rem;
    position: relative;
}

.content-header-small h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.content-header-small p {
    font-size: 1rem;
    color: #666;
}

/* About Me - Simple Style */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem 0;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Achievements List - Simple Style */
.achievements-list {
    max-width: 900px;
    margin: 0 auto;
}

.achievement-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.achievement-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.achievement-date {
    flex: 0 0 80px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.achievement-content {
    flex: 1;
}

.achievement-content p {
    color: #333;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.achievement-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.achievement-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-image {
    height: 160px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 1.25rem;
}

.project-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-tech {
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    background: #f1f3f4;
    color: #667eea;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4d6e79, #102073);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Footer */
.content-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.content-footer p {
    margin-bottom: 0.5rem;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Publication Page Styles - Add to existing CSS */
.publication-section {
    margin-bottom: 3rem;
}

.publication-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #102073;
    font-weight: 600;
}

.publication-note {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

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

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

.publication-item::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0;
    color: #333;
    font-weight: bold;
}

.publication-item .authors {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.publication-item .title {
    font-weight: 600;
    color: #333;
    margin: 0.2rem 0;
}

.publication-item .venue {
    font-style: italic;
    color: #555;
    margin: 0.2rem 0;
}

.publication-item .details {
    color: #666;
    font-size: 0.9rem;
}

.publication-item .links {
    margin-top: 0.3rem;
}

.publication-item .links a {
    color: #667eea;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.85rem;
    border: 1px solid #667eea;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.publication-item .links a:hover {
    background: #667eea;
    color: white;
}

/* Research Interests - Additional Styles */
.research-topic {
    margin-bottom: 2rem;
}

.research-topic h3 {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 700;
}

.research-content {
    margin-left: 1rem;
}

.research-content p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.skill-list {
    margin-left: 1rem;
    line-height: 1.6;
}

.application-list {
    margin-left: 2rem;
    line-height: 1.6;
}

.application-list li {
    margin-bottom: 0.5rem;
}

.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4d6e79;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-home:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #ddd;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.simple-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    min-height: 100vh;
    line-height: 1.6;
}

.publication-item .paper-title {
    font-weight: bold;
    color: #333;
    margin: 0.2rem 0;
}

/* Contact Page - Additional Styles */
.contact-info-section {
    margin-bottom: 2rem;
}

.contact-item-detail {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 3px solid #667eea;
    background: #f9f9f9;
}

.contact-item-detail h3 {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item-detail p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.map-container {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-note {
    background: #f0f8ff;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.social-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.social-item h3 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.social-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.social-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.collaboration-list {
    margin-left: 2rem;
    line-height: 1.6;
}

.collaboration-list li {
    margin-bottom: 0.5rem;
}

/* Responsive design for contact page */
@media (max-width: 768px) {
    .social-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 300px;
    }
    
    .main-content {
        margin-left: 300px;
        width: calc(100% - 300px);
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .content-header h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .achievement-date {
        flex: none;
    }
}

@media (max-width: 480px) {
    .sidebar-content {
        padding: 1.5rem 1rem;
    }
    
    .avatar img {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 1.3rem;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
    }
    
    .content-header h2 {
        font-size: 1.8rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-links {
        flex-direction: column;
    }
}
