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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --border-color: #ddd;
    --max-width: 800px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
}

.header-art {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-art img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.hero {
    background: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.location {
    color: #666;
}

.bio, .patents, .links, .blog-header, .blog-posts {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.bio h2, .patents h2, .links h2, .blog-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bio h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.bio p {
    margin-bottom: 1rem;
}

.additional-links .patent-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.additional-links .patent-list li {
    margin-bottom: 0.75rem;
}

.additional-links .patent-list li:last-child {
    margin-bottom: 0;
}

.additional-links .patent-list a {
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.additional-links .patent-list a:hover {
    text-decoration: underline;
}

.additional-links .patent-list i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.patent-number {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-left: 2rem;
}

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

.link-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.link-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.link-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.link-card p {
    color: #666;
    font-size: 0.9rem;
}

.calendar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.additional-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.additional-links h2, .additional-links h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.additional-links h3 {
    margin-top: 2rem;
    font-size: 1.3rem;
}

.social-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.social-list li {
    margin: 0;
}

.social-list a {
    display: block;
    padding: 1rem;
    background: var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.social-list a:hover {
    background: var(--secondary-color);
    color: white;
}

.social-list i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

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

.post-preview {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview h2 {
    margin-bottom: 0.5rem;
}

.post-preview h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-preview h2 a:hover {
    color: var(--secondary-color);
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    margin-bottom: 1rem;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-post {
    background: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.post-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-content {
    margin-bottom: 2rem;
}

.post-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-footer a:hover {
    text-decoration: underline;
}

.education {
    max-width: var(--max-width);
    margin: 3rem auto 2rem;
    padding: 0 2rem;
}

.education-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.edu-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.edu-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.edu-badge i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.edu-badge span {
    font-weight: 500;
    white-space: nowrap;
}

footer {
    text-align: center;
    padding: 2rem;
    color: white;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .social-list {
        grid-template-columns: 1fr;
    }

    .education-badges {
        flex-direction: column;
        align-items: center;
    }

    .edu-badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
