* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 60px;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: black;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: black;
}

/* Main Content */
main {
    padding: 48px 0;
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 32px;
    margin-bottom: 64px;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
    margin-top: 40px;
}

.profile-image img {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: bold;
    color: black;
    margin-bottom: 8px;
}

.profile-title {
    display: flex;
    align-items: center;
    color: #666;
    margin-bottom: 16px;
}

.profile-title span:first-child {
    margin-right: 8px;
}

.profile-description {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}

.location {
    display: flex;
    align-items: center;
    color: #666;
    margin-bottom: 16px;
}

.location span:first-child {
    margin-right: 8px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.btn {
    padding: 8px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: black;
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    border: 1px solid black;
    color: black;
}

.btn-secondary:hover {
    background: black;
    color: white;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links a {
    color: #666;
    transition: color 0.3s;
}

.social-links a:hover {
    color: black;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Introduction */
.introduction {
    margin-bottom: 48px;
}

.introduction p {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
}

/* Projects Section */
.projects-section {
    margin-bottom: 48px;
}

.project {
    margin-bottom: 32px;
}

.project h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.project p {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.7;
}

.project a {
    color: #2563eb;
    text-decoration: underline;
}

.project a:hover {
    color: #1d4ed8;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Project Cards */
.project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

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

.project-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* If no image, show placeholder */
.project-image:empty::before {
    content: "🔬";
    font-size: 4rem;
    color: white;
}

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

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

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.project-date {
    font-size: 0.9rem;
    color: #666;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

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

.project-collaborators small {
    color: #888;
    font-style: italic;
}

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

.project-tags .tag {
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e0f2fe;
}

.project-achievements {
    margin-bottom: 1.25rem;
}

.achievement {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-demo, .btn-source {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-demo {
    background: #333;
    color: white;
}

.btn-demo:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn-source {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-source:hover {
    background: #333;
    color: white;
    transform: translateY(-1px);
}

/* Section Title */
.projects-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #333;
    letter-spacing: 1px;
}

/* Portfolio Note */
.portfolio-note {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.portfolio-note p {
    color: #666;
    font-size: 1.1rem;
}

.portfolio-note a {
    color: #0066cc;
    text-decoration: none;
}

.portfolio-note a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        height: 200px;
    }
    
    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-date {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .project-actions {
        flex-direction: column;
    }
}


/* Journey Section */
.journey-section {
    margin-bottom: 48px;
}

.journey-section h2 {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-bottom: 16px;
}

.journey-list {
    color: #666;
}

.journey-list div {
    margin-bottom: 8px;
}

/* Academic Section */
.academic-section {
    margin-bottom: 48px;
}

.academic-section h2 {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-bottom: 16px;
}

.academic-list {
    color: #666;
}

.academic-list div {
    margin-bottom: 8px;
}

/* Contact Section */
.contact-section {
    margin-bottom: 48px;
}

.contact-section h2 {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-bottom: 16px;
}

.contact-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.contact-section a {
    color: #2563eb;
    text-decoration: underline;
}

.contact-section a:hover {
    color: #1d4ed8;
}

/* Footer */
footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 32px;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.footer-social a {
    color: #666;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: black;
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
