/* Modern Brutalist Design - Minimal Colors */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --black: #000;
    --white: #fff;
    --gray: #666;
    --gray-light: #f7f3eb;
    --gray-medium: #ccc;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--gray-light);
    font-weight: 400;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 4px solid var(--black);
    margin-bottom: 4rem;
}
.profile-section { display: flex; align-items: center; gap: 3rem; width: 100%; }
.profile-image { flex-shrink: 0; }
.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--black);
    border-radius: 0;
    transition: transform 0.3s;
}
.profile-image img:hover { transform: scale(1.05); }
.profile-info { flex: 1; }
.name {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 0;
    text-transform: uppercase;
}
.title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin: 0.5rem 0 2rem 0;
    text-transform: uppercase;
}
.contact-links { display: flex; gap: 2rem; margin-top: 2rem; }
.contact-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--black);
    background: var(--white);
    transition: all 0.2s;
    display: inline-block;
}
.contact-link:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}
.content { padding-bottom: 4rem; }
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--black);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.current-work { margin-bottom: 4rem; }
.content-block {
    background: var(--white);
    padding: 2rem;
    border: 2px solid var(--black);
    margin-bottom: 2rem;
}
.content-block p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.content-block p:last-child { margin-bottom: 0; }
.content-block strong { font-weight: 600; }
.skills-section { margin-bottom: 4rem; }
.skill-dropdown {
    margin-bottom: 1.5rem;
    border: 2px solid var(--black);
    background: var(--white);
}
.dropdown-summary {
    padding: 1.5rem 2rem;
    background: var(--gray-light);
    border-bottom: 2px solid var(--black);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
}
.dropdown-summary:hover { background: var(--gray-medium); }
.dropdown-summary::-webkit-details-marker { display: none; }
.dropdown-summary::after {
    content: "+";
    float: right;
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.2s;
}
.skill-dropdown[open] .dropdown-summary::after { transform: rotate(45deg); }
.dropdown-content { padding: 2rem; background: var(--white); }
.skill-list { list-style: none; padding: 0; margin: 0; }
.skill-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-medium);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 400;
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li:before {
    content: "→";
    margin-right: 0.75rem;
    font-weight: bold;
    color: var(--black);
}
.featured-posts { margin: 3rem 0; }
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.blog-post-card {
    border: 3px solid var(--black);
    background: var(--white);
    transition: all 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--black);
}
.blog-post-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.blog-post-image {
    height: 200px;
    overflow: hidden;
    border-bottom: 3px solid var(--black);
}
.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.blog-post-card:hover .blog-post-image img { transform: scale(1.05); }
.blog-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-post-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--black);
    transition: color 0.2s;
}
.blog-post-link:hover .blog-post-title { color: var(--gray); }
.blog-post-description {
    margin: 0 0 1rem 0;
    color: var(--gray);
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}
.blog-post-publication {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    font-weight: 500;
}
.footer {
    border-top: 4px solid var(--black);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}
.footer p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
#badgeContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
#badgeContainer > div {
    display: flex;
    justify-content: center;
}
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .profile-section { flex-direction: column; text-align: center; gap: 2rem; }
    .profile-image img { width: 150px; height: 150px; }
    .contact-links { justify-content: center; flex-wrap: wrap; }
    .dropdown-summary { padding: 1rem 1.5rem; font-size: 1rem; }
    .dropdown-content { padding: 1.5rem; }
    .hero { min-height: auto; padding: 2rem 0; }
    .blog-posts-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
    .contact-link { padding: 0.5rem 1rem; font-size: 0.9rem; }
    .content-block { padding: 1.5rem; }
}
.contact-link:focus, .profile-image img:focus {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
html { scroll-behavior: smooth; }
::selection { background: var(--black); color: var(--white); }

/* 404 Page Specific Styles */
body.error-404 {
    background: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    border: 3px solid #fff;
    padding: 1.5rem 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}
.error-message {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}
.back-link {
    color: #000;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #fff;
    transition: background .2s, color .2s;
}
.back-link:hover {
    background: #000;
    color: #fff;
}