:root {
    --primary: #333;
    --secondary: #666;
    --accent: #3498db;
    --light-bg: #f9f9f9;
    --border: #eaeaea;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: white;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border);
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

nav {
    margin-top: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

/* Introduction */
.intro {
    padding: 60px 0 30px 0;
    text-align: center;
    background: white;
    position: relative;
}

.intro h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--primary);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: pixelReveal 1s ease-in-out 0.5s forwards;
}

/* Pixel reveal effect using CSS */
@keyframes pixelReveal {
    0% {
        opacity: 0;
        filter: blur(20px) brightness(0);
        transform: scale(0.8);
    }
    20% {
        opacity: 0.2;
        filter: blur(15px) brightness(0.3);
    }
    40% {
        opacity: 0.4;
        filter: blur(10px) brightness(0.6);
    }
    60% {
        opacity: 0.6;
        filter: blur(5px) brightness(0.8);
    }
    80% {
        opacity: 0.8;
        filter: blur(2px) brightness(0.9);
    }
    100% {
        opacity: 1;
        filter: blur(0px) brightness(1);
        transform: scale(1);
    }
}

.profile-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
    animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.profile-description {
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .profile-content {
        text-align: center;
        min-width: auto;
    }
    
    .intro h1 {
        font-size: 1.8rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
}

/* Page Header */
.page-header {
    padding: 60px 0 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Posts */
.posts {
    padding: 40px 0 60px;
}

.posts h2 {
    margin-bottom: 30px;
    font-size: 1.6rem;
    font-weight: 500;
}

.post {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

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

.post-date {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.post-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.post-excerpt {
    color: var(--secondary);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

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

/* Single Post */
.single-post {
    padding: 40px 0 60px;
}

.single-post-header {
    margin-bottom: 30px;
}

.single-post-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.single-post-content {
    line-height: 1.8;
}

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

.single-post-content h2 {
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.single-post-content h3 {
    margin: 25px 0 15px;
    font-size: 1.2rem;
}

.single-post-content ul, .single-post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

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


.single-post-content code {
    background-color: var(--light-bg);
    padding: 2px 5px;
    font-family: monospace;
    border-radius: 3px;
}

.single-post-content pre {
    background-color: var(--light-bg);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    overflow-x: auto;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.prev-post, .next-post {
    max-width: 45%;
}

.post-nav-label {
    font-size: 0.8rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
}

.post-nav-title {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.post-nav-title:hover {
    color: var(--accent);
}

/* About Section */
.about {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.about-text h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.about-text p {
    color: var(--secondary);
    margin-bottom: 15px;
}

.about-full {
    padding: 40px 0 60px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.about-section p {
    margin-bottom: 15px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background-color: var(--light-bg);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    padding: 40px 0 60px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--secondary);
    margin: 0 10px;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

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

.copyright {
    font-size: 0.9rem;
    color: var(--secondary);
}

.post-figure {
    text-align: center;
}

.post-image {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.figure-spacer {
    margin-bottom: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .prev-post, .next-post {
        max-width: 100%;
    }
} 