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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #2d3748;
    min-height: 100vh;
}

/* Navigation */
nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

nav .nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

nav a {
    color: #2d3748;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: #667eea;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #2d3748;
    transition: all 0.3s ease;
}

/* Main Content Area */
main {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 100%;
    width: 100%;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #efeff0, #3f3f3f, #000000);
    border-radius: 20px 20px 0 0;
}

/* Sections */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1 {
    font-size: 42px;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 28px;
    color: #2d3748;
    margin: 30px 0 20px;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 22px;
    color: #2d3748;
    margin: 20px 0 15px;
}

p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #2d3748;
}

.label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 30px 0;
}

/* Home Section */
#home .header {
    text-align: center;
    margin-bottom: 40px;
}

/* About Section */
#about .bio {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
}

.profile-image-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }
}

/* Blog List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.blog-card {
    padding: 25px;
    background: #f7fafc;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.blog-meta {
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 12px;
}

.blog-excerpt {
    font-size: 15px;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
}

/* Blog Post */
#post-content {
    font-size: 16px;
    line-height: 1.8;
}

#post-content h1,
#post-content h2,
#post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

#post-content h1 {
    text-align: left;
}

#post-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

#post-content pre {
    background: #2d3748;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

#post-content pre code {
    background: transparent;
    padding: 0;
    color: #ffffff;
}

#post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #a0aec0;
}

#post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

#post-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

#post-content a:hover {
    color: #2d3748;
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #2d3748;
}

.back-link i {
    margin-right: 5px;
}

/* Contact */
.email-wrapper {
    text-align: center;
    margin: 30px 0;
}

.email {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 15px 0;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.email:hover {
    color: #667eea;
    transform: scale(1.02);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f7fafc;
    color: #2d3748;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.threads:hover {
    background: #000000;
    color: white;
}

.social-link.github:hover {
    background: #333333;
    color: white;
}

.social-link.x:hover {
    background: #000000;
    color: white;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

/* Responsive Design - Mobile First */

/* Tablet and up (600px+) */
@media (min-width: 600px) {
    .container {
        max-width: 700px;
        padding: 50px 40px;
    }

    nav .nav-container {
        max-width: 900px;
    }

    h1 {
        font-size: 48px;
    }

    #post-content {
        font-size: 17px;
        line-height: 1.9;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 60px 50px;
    }

    nav .nav-container {
        max-width: 1100px;
    }

    main {
        padding: 60px 40px;
    }

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 17px;
        line-height: 1.8;
    }

    #post-content {
        font-size: 18px;
        line-height: 2;
    }

    .blog-card {
        padding: 30px;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1000px;
    }

    nav .nav-container {
        max-width: 1200px;
    }
}

/* Mobile styles (below 600px) */
@media (max-width: 600px) {
    nav .nav-links {
        position: fixed;
        top: 61px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    nav .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .email {
        font-size: 22px;
    }
}
