/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 16px;
    line-height: 1.6;
    color: #2a2a2a;
    background-color: #FFEEF4;  /* Brighter soft pink hue */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 50px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 30px;
    object-fit: cover;
    border: 3px solid #FFD6E8;  /* Slightly pinker border to complement background */
    background-color: #FFFFFF;  /* White background for image */
}

.profile h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.profile .tagline {
    font-size: 1.125rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 30px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    color: #333;
    font-size: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    position: relative;
}

.social-links a:hover {
    color: #E91E63;  /* Pink accent on hover */
    transform: translateY(-2px);
}

/* Social Media Tooltips */
.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-links a:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* X Logo SVG Styling */
.social-links a svg {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    margin-top: -2px; /* Fine-tune vertical alignment */
}

/* Navigation */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.nav-links a {
    font-size: 1.125rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    text-transform: lowercase;
}

.nav-links a:hover {
    color: #333;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #E91E63;  /* Pink underline */
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 60px;
    text-align: center;
    color: #999;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    color: #E91E63;  /* Pink on hover */
}

/* Blog Page Styles */
.blog-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.02em;
    font-family: 'JetBrains Mono', monospace;
}

/* Projects Page Styles */
.projects-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.02em;
    font-family: 'JetBrains Mono', monospace;
}

.project-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: transparent;
}

.project-item:hover {
    background-color: rgba(255, 214, 232, 0.1);
    padding-left: 34px;
    border-left: 3px solid #E91E63;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.project-info h3 a {
    color: #2a2a2a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-info h3 a:hover {
    color: #E91E63;
    text-decoration: underline;
}

.project-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: 'JetBrains Mono', monospace;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: rgba(233, 30, 99, 0.1);
    color: #E91E63;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(233, 30, 99, 0.2);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background-color: rgba(233, 30, 99, 0.15);
    transform: translateY(-1px);
}

/* Category Sections */
.blog-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-section {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-section:hover {
    border-color: #FFD6E8;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.1);
    transform: translateY(-2px);
}

/* Category Headers */
.category-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-header:hover {
    background-color: rgba(255, 214, 232, 0.2);
}

.category-icon {
    font-size: 1rem;
    margin-right: 15px;
    color: #666;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.category-title {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

.category-count {
    font-size: 0.875rem;
    color: #666;
    margin-right: 15px;
    background-color: rgba(233, 30, 99, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.category-toggle {
    color: #666;
    transition: transform 0.3s ease;
    font-size: 1rem;
}

/* Category Posts */
.category-posts {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-section.collapsed .category-posts {
    max-height: 0;
}


.category-posts .blog-post {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: transparent;
}

.category-posts .blog-post:hover {
    background-color: rgba(255, 214, 232, 0.1);
    padding-left: 34px;
    border-left: 3px solid #E91E63;
}

.category-posts .blog-post h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.category-posts .blog-post h3 a {
    color: #2a2a2a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-posts .blog-post:hover h3 a {
    color: #E91E63;
    text-decoration: underline;
}

.category-posts .blog-post .post-date {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #666;
    min-width: 100px;
    font-family: 'JetBrains Mono', monospace;
}

/* Category-specific hover colors */
.category-section[data-category="rust"] .blog-post:hover {
    border-left: 2px solid #CE422B;
}

.category-section[data-category="espresso"] .blog-post:hover {
    border-left: 2px solid #FF6B6B;
}

.category-section[data-category="web3"] .blog-post:hover {
    border-left: 2px solid #627EEA;
}

.category-section[data-category="zk"] .blog-post:hover {
    border-left: 2px solid #8B5A2B;
}

.category-section[data-category="tech"] .blog-post:hover {
    border-left: 2px solid #00D9FF;
}

.category-section[data-category="misc"] .blog-post:hover {
    border-left: 2px solid #9B6BFF;
}

/* About Page */
.about-content {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
}

.about-content p {
    margin-bottom: 20px;
    color: #444;
    font-family: 'JetBrains Mono', monospace;
}

/* Article Content Styling */
.container h1 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    margin-top: 20px;
    color: #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.3;
}

.container h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    margin-top: 45px;
    color: #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.4;
}

.container p {
    margin-bottom: 25px;
    color: #444;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.8;
}

.container ul, .container ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #444;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.8;
}

.container li {
    margin-bottom: 8px;
}

.container strong {
    color: #2a2a2a;
    font-weight: 600;
}

.container em {
    font-style: italic;
    color: #555;
}

/* Code Blocks */
.container pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.container code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.9em;
    color: #e83e8c;
    font-weight: 500;
}

.container pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    color: #2d3748;
    font-weight: normal;
}

/* Syntax highlighting overrides */
.highlighter-rouge {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.highlighter-rouge .highlight {
    background-color: transparent;
}

.highlighter-rouge .highlight pre {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.highlighter-rouge .highlight code {
    background-color: transparent;
    border: none;
    padding: 0;
    color: #2d3748;
    font-weight: normal;
}

/* Back link */
.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
}

.back-link a:hover {
    color: #E91E63;  /* Pink on hover */
}

/* Espresso Guide Styling */
.espresso-guide h1,
.espresso-guide h2 {
    color: #8B4513 !important;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.15);
    background: linear-gradient(135deg,
        rgba(245, 222, 179, 0.08) 0%,
        rgba(222, 184, 135, 0.12) 50%,
        rgba(139, 69, 19, 0.06) 100%);
    padding: 8px 12px !important;
    margin-bottom: 25px !important;
    margin-top: 40px !important;
    border-radius: 4px;
    border-left: 2px solid #D2B48C;
    border-bottom: 1px solid #C7853A;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.08);
}

/* Coffee emoji for subtopics on Espresso page */
.espresso-guide h3::before {
    content: '☕ ';
    color: #8B4513;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 60px 20px;
    }

    .profile h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 30px;
    }

    .social-links {
        gap: 15px;
    }

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

    .category-header {
        padding: 16px 20px;
    }

    .category-icon {
        font-size: 0.875rem;
        margin-right: 12px;
    }

    .category-title {
        font-size: 1.125rem;
    }

    .category-posts .blog-post {
        flex-direction: column;
        gap: 5px;
        padding: 12px 20px;
    }

    .category-posts .blog-post .post-date {
        min-width: auto;
    }

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

    .project-item {
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
    }

    .project-info h3 {
        font-size: 1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}