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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: left;
}

/* Hero: avatar left, name/title right aligned with content column */
.hero {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

/* Profile Picture */
.profile-section {
    margin-bottom: 0;
    width: 96px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.profile-picture {
    width: 80px;
    height: 80px;
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

/* Header Section */
.header-section {
    margin-bottom: 24px;
}

.name {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
    letter-spacing: -0.5px;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #000000;
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: -0.15em;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.title {
    font-size: 18px;
    color: #6b7280;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Content Sections */
.content-section {
    margin-bottom: 28px;
    text-align: left;
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 24px;
    align-items: start;
}

.section-label {
    font-size: 12px;
    color: #999999;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    padding-top: 2px;
}

.section-content {
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.section-content p {
    margin-bottom: 12px;
}

.link {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-color: #0066cc;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.link:hover {
    color: #0052a3;
    text-decoration-color: #0052a3;
}

.signature {
    margin-top: 12px;
    font-style: italic;
    color: #666666;
}

/* Marker-like highlight */
.marker, mark.hl {
    background: linear-gradient(transparent 55%, #fff59d 55%);
    padding: 0 2px;
    border-radius: 2px;
}

/* Code block styling */
.code-block {
    margin: 16px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    overflow-x: auto;
    white-space: pre;
}

.code-block code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.code-comment {
    color: #6a737d;
}

/* Typewriter cursor */
.typewriter-cursor {
    color: #333;
    font-weight: 300;
    animation: typewriter-blink 0.7s infinite;
    margin-left: 1px;
}

@keyframes typewriter-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.code-block code {
    min-height: 5.2em;
}

/* Footer Buttons */
.footer-buttons-wrapper {
    margin-top: 40px;
    text-align: center;
}

.footer-buttons {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background-color: #f5f5f5;
    color: #333333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.footer-button svg:first-child {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.footer-button:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.footer-button svg {
    flex-shrink: 0;
}

/* Colored hover states */
.footer-button--telegram:hover {
    background-color: #e6f6ff;
    border-color: #bfe7ff;
    color: #229ED9;
}

.footer-button--email:hover {
    background-color: #ecfdf5;
    border-color: #bbf7d0;
    color: #16a34a;
}

.footer-button--linkedin:hover {
    background-color: #e8f1fb;
    border-color: #c7dcf6;
    color: #0a66c2;
}
/* Site Logo (top-left) */


/* Footer Copyright */
.footer-copyright {
    margin-top: 28px;
    padding-top: 16px;
    text-align: center;
}

.footer-copyright p {
    font-size: 14px;
    color: #666666;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Collapsible Principles Section */
.collapsible-section {
    width: 100%;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    transition: color 0.2s ease;
}

.collapsible-header:hover {
    color: #000000;
}

.collapsible-header span {
    flex: 1;
}

.toggle-icon {
    margin-left: 8px;
    color: #666666;
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}

.collapsible-header:hover .toggle-icon {
    color: #333333;
}

.collapsible-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 16px;
}

/* Markdown block styling */
.markdown-block {
    margin: 0;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.3;
    color: #333;
    overflow-x: auto;
    white-space: pre;
}

.markdown-block code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    padding: 0;
}

/* Markdown syntax highlighting */
.markdown-block code {
    display: block;
}

/* Style markdown headers (##) */
.markdown-block {
    counter-reset: principle-counter;
}

.markdown-block code::before {
    content: '';
}

/* Make headers stand out visually */
.markdown-block code {
    font-weight: 400;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 20px 15px;
        align-items: flex-start;
    }

    .hero {
        grid-template-columns: 72px 1fr;
        column-gap: 16px;
        margin-bottom: 32px;
    }

    .profile-section {
        width: 72px;
    }

    .profile-picture {
        width: 72px;
        height: 72px;
    }

    .name {
        font-size: 28px;
        line-height: 1.2;
    }

    .title {
        font-size: 16px;
    }

    .content-section {
        grid-template-columns: 72px 1fr;
        column-gap: 16px;
        margin-bottom: 32px;
    }

    .section-label {
        font-size: 11px;
    }

    .section-content {
        font-size: 14px;
    }

    .code-block {
        font-size: 12px;
        padding: 12px;
        overflow-x: auto;
        word-break: break-word;
        white-space: pre-wrap;
    }

    .markdown-block {
        font-size: 10px;
        padding: 14px;
        line-height: 1.4;
    }

    .footer-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .footer-button {
        justify-content: center;
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        row-gap: 16px;
        margin-bottom: 32px;
    }

    .profile-section {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .profile-picture {
        width: 80px;
        height: 80px;
    }

    .header-section {
        text-align: center;
        margin-bottom: 0;
    }

    .name {
        font-size: 24px;
        text-align: center;
    }

    .title {
        font-size: 15px;
        text-align: center;
    }

    .content-section {
        grid-template-columns: 1fr;
        row-gap: 8px;
        margin-bottom: 32px;
    }

    .section-label {
        font-size: 11px;
        margin-bottom: 4px;
        text-align: left;
    }

    .section-content {
        font-size: 14px;
        width: 100%;
    }

    .code-block {
        font-size: 11px;
        padding: 10px;
        word-break: break-word;
    }

    .markdown-block {
        font-size: 9px;
        padding: 12px;
        line-height: 1.4;
    }

    .footer-buttons-wrapper {
        margin-top: 32px;
    }

    .footer-button {
        width: 100%;
        padding: 12px 14px;
    }

    .footer-copyright {
        margin-top: 24px;
        padding-top: 12px;
    }

    .footer-copyright p {
        font-size: 13px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    body {
        padding: 12px 10px;
    }

    .name {
        font-size: 22px;
    }

    .title {
        font-size: 14px;
    }

    .section-content {
        font-size: 13px;
    }

    .code-block {
        font-size: 10px;
        padding: 8px;
    }
}

