/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 16px;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 60px 0 40px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.profile-text {
    flex: 1;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
    letter-spacing: -0.025em;
}

.bio {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #374151;
}

.links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.divider {
    color: #9ca3af;
    margin: 0 4px;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: translateY(-4px);
}

/* Navigation */
.navigation {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #6b7280;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
    text-decoration: none;
}

/* Sections */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #111827;
    border-bottom: none;
    padding-bottom: 0;
    width: 100%;
}

/* Section Header with notation */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 10px;
}

.section-notation {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin: 0;
    padding-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* About Section */
.about-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #374151;
}

.research-interests {
    list-style: none;
    padding-left: 0;
}

.research-interests li {
    font-size: 1.125rem;
    padding: 8px 0;
    color: #374151;
    position: relative;
    padding-left: 20px;
}

.research-interests li:before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Updates Section */
.updates-list {
    display: flex;
    flex-direction: column;
}

.update-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.update-date {
    font-weight: 600;
    color: #2563eb;
    min-width: 100px;
    font-size: 0.95rem;
}

.update-text {
    flex: 1;
    color: #374151;
    line-height: 1.6;
}

/* Research Section */
.research-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #374151;
}

.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.research-area {
    padding: 30px;
    background-color: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-area:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.research-area h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.research-area p {
    color: #6b7280;
    line-height: 1.6;
}

/* Publications Section */
.publications-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 50px 0 30px 0;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.publication-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background-color: #f9fafb;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pub-image {
    flex-shrink: 0;
    width: 240px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    /* background-color: #e5e7eb; */
}

.pub-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pub-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
    line-height: 1.4;
}

.pub-authors {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #6b7280;
}

.pub-venue {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #2563eb;
}

.pub-links {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pub-links a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pub-links a:hover {
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-color: #2563eb;
}

.pub-description {
    color: #374151;
    line-height: 1.6;
    font-size: 1rem;
}

/* Placeholder for unpublished papers */
.pub-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    min-height: 120px;
}

/* Projects Section */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-item {
    background-color: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e5e7eb;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.project-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-links a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-color: #2563eb;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 12px;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    padding: 25px;
    background-color: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #10b981;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.exp-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.exp-duration {
    font-size: 0.95rem;
    font-weight: 500;
    color: #10b981;
    background-color: #ecfdf5;
    padding: 4px 12px;
    border-radius: 16px;
}

.exp-organization {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 12px;
}

.exp-description {
    color: #374151;
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    background-color: #f9fafb;
    padding: 40px;
    border-radius: 12px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    font-size: 1.125rem;
    line-height: 1.6;
}

.contact-item strong {
    color: #374151;
    margin-right: 10px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 80px;
    text-align: center;
    color: #6b7280;
}

.template-credit {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pub-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pub-image img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .profile-image img {
        width: 160px;
        height: 200px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .navigation {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .publication-item,
    .project-item {
        flex-direction: column;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .research-areas {
        grid-template-columns: 1fr;
    }
    
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pub-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .links {
        justify-content: center;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .navigation {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}
