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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: #dbe9e738;
    color: #000000;
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
}

header {
    padding: 20px 40px;
    border-bottom: 1px solid #000000;
    margin-bottom: 40px;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

header h1 {
    font-size: 74px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
}

.linkedin-link {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.linkedin-link:hover {
    opacity: 0.7;
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    font-size: 17px;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    font-weight: 700;
}

main {
    max-width: none;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.terminal-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.terminal-text p {
    margin-bottom: 8px;
}

h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
    text-align: center;
}

h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

/* Writeups Section */
.writeup-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.writeup {
    border-bottom: 1px solid #000000;
    padding-bottom: 20px;
}

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

.writeup p {
    font-size: 14px;
    line-height: 1.5;
}

/* Clickable writeups */
.writeup.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.writeup.clickable:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

/* Writeup detail pages */
.writeup-header {
    margin-bottom: 30px;
}

.back-button {
    background: none;
    border: 1px solid #000000;
    color: #000000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    background-color: #000000;
    color: #b8c8c6;
}

.writeup-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.writeup-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 14px;
}

/* Article formatting */
.article-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.lead {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0;
}

.section-lead {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.writeup-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    letter-spacing: -0.3px;
}

.writeup-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    letter-spacing: -0.2px;
}

.key-insight {
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 4px solid #000000;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
}

.strategy-quote {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid #000000;
    padding: 20px 25px;
    margin: 25px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.article-conclusion {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-conclusion p {
    font-size: 16px;
    line-height: 1.6;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.project {
    border: 1px solid #000000;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.02);
}

.project-thumbnail {
    margin-bottom: 15px;
    width: 100%;
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000000;
    background-color: #f5f5f5;
    padding: 0;
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
}

.project h3 {
    margin-bottom: 10px;
}

.project p {
    font-size: 13px;
    line-height: 1.4;
}

/* Bio Section */
.bio-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 900px;
    padding: 10px 0;
    margin: 0 auto;
    text-align: left;
}

.bio-text {
    flex: 2.2;
    min-width: 0;
}

.bio-text h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.bio-content p {
    margin-bottom: 42px;
    line-height: 1.65;
    font-size: 20px;
    font-weight: 400;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.bio-content p:first-child {
    font-weight: 500;
}

/* Fade-in Animation */
.fade-in-text {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.fade-in-text:nth-child(2) {
    animation-delay: 0.6s;
}

.fade-in-text:nth-child(3) {
    animation-delay: 1.2s;
}

.fade-in-text:nth-child(4) {
    animation-delay: 1.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio-logos {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 0px;
}

.logo-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
}

.logo-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100px;
    width: 160px;
}

.logo-item:hover {
    transform: translateY(-2px);
}

.logo-img {
    max-width: 140px;
    max-height: 90px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover .logo-img {
    filter: grayscale(0%);
}

/* Tooltip styles */
.logo-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-100%) translateX(-10px);
}

/* Large screen enhancements */
@media (min-width: 1024px) {
    .logo-column {
        gap: 30px;
        padding: 30px 0;
    }
    
    .logo-item {
        height: 120px;
        width: 180px;
    }
    
    .logo-img {
        max-width: 160px;
        max-height: 100px;
    }
    
    .logo-item::after {
        font-size: 13px;
        padding: 15px 20px;
        width: 320px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    
    .header-content {
        align-items: center;
    }
    
    .header-right {
        margin-top: 0;
    }
    
    main {
        padding: 0 20px;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .bio-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .bio-logos {
        order: 1;
        min-width: auto;
        justify-content: center;
    }
    
    .logo-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 20px 0;
        justify-items: center;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .logo-item {
        height: 120px;
        width: 140px;
        padding: 15px;
    }
    
    .logo-img {
        max-width: 110px;
        max-height: 80px;
    }
    
    .logo-item::after {
        font-size: 11px;
        padding: 10px 12px;
        width: 200px;
        left: 50%;
        bottom: 100%;
        top: auto;
        transform: translateX(-50%) translateY(-10px);
        margin-bottom: 5px;
    }
    
    .logo-item:hover::after {
        transform: translateX(-50%) translateY(-20px);
    }
    
    /* Ensure tooltips stay on screen for edge logos */
    .logo-item:first-child::after,
    .logo-item:nth-child(2)::after {
        left: 0;
        transform: translateY(-10px);
    }
    
    .logo-item:first-child:hover::after,
    .logo-item:nth-child(2):hover::after {
        transform: translateY(-20px);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    h3 {
        font-size: 14px;
    }
}