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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    padding: 40px 20px 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

p {
    margin-bottom: 15px;
    color: #333;
}

a {
    color: #000;
    text-decoration: underline;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.6;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    font-size: 0.95rem;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Projects */
.project-link {
    display: block;
    margin: 10px 0;
    font-size: 1rem;
}

.project-description {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0;
    margin-top: 5px;
}

/* Writing Page */
.writing-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #000;
}

.writing-item:hover {
    background-color: #fafafa;
}

.writing-title {
    flex: 1;
}

.writing-date {
    color: #666;
    font-size: 0.9rem;
    margin-left: 20px;
}

.notes-section {
    background-color: #fffbf0;
    padding: 20px;
    margin: 30px 0;
    border-left: 3px solid #ffd700;
}

.notes-section h3 {
    margin-top: 0;
}

/* Images Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:nth-child(3n+1) {
    grid-row: span 2;
}

.gallery-item:nth-child(5n+2) {
    grid-column: span 2;
}

/* Media Lists */
.media-section {
    margin: 30px 0;
}

ul {
    list-style-position: inside;
    margin-left: 0;
}

li {
    margin: 8px 0;
    color: #333;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: #f5f5f5;
    opacity: 1;
}

.nav-link.active {
    font-weight: 600;
    background-color: #f0f0f0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 20px 15px 100px 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .social-links {
        gap: 15px;
    }

    .writing-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .writing-date {
        margin-left: 0;
        margin-top: 5px;
    }

    .bottom-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        gap: 10px;
        padding: 12px 15px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

