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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid #333;
    margin-bottom: 60px;
    position: relative;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.site-description {
    font-size: 1.1rem;
    color: #888;
    font-weight: 400;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    right: 20px;
    z-index: 100;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 0 0 10px 10px;
    transition: all 0.3s ease;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #888;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffffff;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    outline: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #888;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger:hover span {
    background-color: #ffffff;
}

/* Mobile menu */
.mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-menu {
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-menu .nav-menu a {
    font-size: 1.2rem;
    color: #ffffff;
}

.mobile-menu .nav-menu a:hover {
    color: #888;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: #ffffff;
}

/* Main content */
main {
    margin-bottom: 80px;
}

/* Article styles */
article {
    margin-bottom: 60px;
    padding-bottom: 40px;
}

article:last-child {
    border-bottom: none;
}

.entry-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.3;
}

.entry-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #888;
}

.entry-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 2em 0 1em;
    color: #ffffff;
}

.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 1.5em 0 0.8em;
    color: #ffffff;
}

.read-more {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ffffff;
}

/* Description section */
.description-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.description-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 1.5em;
}

.description-section a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.description-section a:hover {
    color: #ffffff;
}

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

.projects-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #ffffff;
}

.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-list li a {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.project-list li a:hover {
    color: #ffffff;
}

.book-recommendations-section {
    margin-bottom: 60px;
}

.book-recommendations-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 45px;
    color: #ffffff;
}

.book-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

footer a {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

footer a:hover {
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 40px 0 30px;
        margin-bottom: 40px;
    }

    .site-title {
        font-size: 2rem;
    }

    /* Hide desktop nav, show hamburger */
    nav .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    article {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .entry-meta {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu .nav-menu {
        gap: 25px;
    }

    .mobile-menu .nav-menu a {
        font-size: 1.1rem;
    }
}