/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', 'Trajan Pro', serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    font-size: 18px;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.7;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #000000;
}

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

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

.name {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.8;
}

.bio {
    font-size: 20px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Quick links section */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.link-card {
    padding: 30px;
    border: 1px solid #e0e0e0;
}

.link-card:hover {
    border-color: #000000;
}

.link-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 400;
}

.link-card p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-link:hover {
    opacity: 0.7;
}

/* Contact section */
.contact {
    text-align: center;
    font-size: 18px;
}

.email-link {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
}

.email-link:hover {
    opacity: 0.7;
}

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

.page-title {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 20px;
    font-style: italic;
    opacity: 0.8;
}

/* Blog page styles */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-item {
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.blog-date {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 400;
}

.blog-title a {
    color: #000000;
    text-decoration: none;
}

.blog-title a:hover {
    opacity: 0.7;
}

.blog-excerpt {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #000000;
}

.read-more:hover {
    opacity: 0.7;
}

/* Projects page styles */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.project-item {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.project-title {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 400;
}

.project-tech {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 20px;
}

.project-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.project-links {
    display: flex;
    gap: 30px;
}

.project-link {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #000000;
}

.project-link:hover {
    opacity: 0.7;
}

/* Blog post styles */
.blog-post {
    max-width: 700px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-date {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 15px;
}

.post-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 400;
    margin: 40px 0 20px 0;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.back-link {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.back-link:hover {
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
        gap: 25px;
    }
    
    .main-content {
        padding: 100px 20px 40px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .bio {
        font-size: 18px;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .link-card {
        padding: 25px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .project-title {
        font-size: 26px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .name {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .bio {
        font-size: 16px;
    }
}

/* Table styles */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 16px;
}

.post-content table th,
.post-content table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.post-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.post-content table th:hover {
    background-color: #e8e8e8;
}

.post-content table tr:nth-child(even) {
    background-color: #fafafa;
}

.post-content table tr:hover {
    background-color: #f0f0f0;
}

.post-content table td {
    vertical-align: top;
}

@media (max-width: 768px) {
    .post-content table {
        font-size: 14px;
    }
    
    .post-content table th,
    .post-content table td {
        padding: 8px 10px;
    }
}
