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

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    --border-radius: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--text-primary);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    max-width: 700px;
    margin-bottom: 4rem;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
}

.social-links a:hover {
    color: var(--text-primary);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

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

/* Blog Posts */
.blog-posts {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.blog-post {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 150px;
}

.blog-post h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.blog-post h2 a:hover {
    color: var(--accent);
}

.blog-post p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-icon {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .blog-post {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .post-date {
        min-width: auto;
    }

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

    .contact {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

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

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