/* Clean, minimal personal website design */

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

html {
    background-color: #0a0a0a;
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e5e5e5;
    background-color: #0a0a0a;
    font-size: 18px;
    font-weight: 300;
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: 100vh;
    font-display: swap;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent layout shift during font load (without hiding content) */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent font size shifts during loading */
* {
    font-synthesis: none;
}

/* Ensure consistent font metrics */
.name, .nav-links, .contact-links, .bio, .experience {
    font-feature-settings: "kern" 1, "liga" 1;
    font-variant-ligatures: common-ligatures;
}

.container {
    max-width: 100%;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    height: 49px;
    will-change: auto;
    contain: layout style;
}

.name {
    font-size: 2.5em;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    height: 49px;
    display: flex;
    align-items: center;
    contain: layout style;
    transform: translateZ(0);
}

.name a {
    display: block;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    height: 49px;
    contain: layout style;
    transform: translateZ(0);
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-weight: 300;
    font-size: 16px;
    transition: color 0.2s ease;
    line-height: 1;
    display: inline-block;
}

.nav-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Contact section */
.contact-section {
    margin-bottom: 30px;
    height: 24px;
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 24px;
}

.contact-links a {
    color: #999;
    text-decoration: none;
    font-weight: 300;
    font-size: 16px;
    transition: color 0.2s ease;
    line-height: 1;
    display: inline-block;
}

.contact-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.separator {
    color: #666;
    font-weight: 300;
    line-height: 1;
    user-select: none;
}

/* Bio section */
.bio {
    margin-bottom: 40px;
}

.bio p {
    font-size: 18px;
    line-height: 1.7;
    color: #e5e5e5;
    font-weight: 300;
}

.bio a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 400;
}

.bio a:hover {
    color: #ccc;
}

/* Section headings */
h2 {
    font-size: 16px;
    font-weight: 300;
    color: #e5e5e5;
    margin: 40px 0 20px 0;
    font-style: italic;
}

/* Experience section */
.experience {
    margin-bottom: 40px;
}

.exp-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
}

.exp-item:not(:last-child) {
    border-bottom: 1px solid #222;
}

.exp-item strong {
    font-weight: 400;
    color: #ffffff;
    font-size: 16px;
}

.exp-item em {
    color: #999;
    font-style: italic;
    font-weight: 300;
    display: block;
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 15px;
}

.exp-item ul {
    margin: 12px 0 0 20px;
    padding: 0;
}

.exp-item li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #c5c5c5;
    font-size: 15px;
    font-weight: 300;
}

.exp-item li strong {
    color: #ffffff;
    font-weight: 400;
}


/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.footer p {
    color: #666;
    font-style: italic;
    font-size: 15px;
    font-weight: 300;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 40px 20px;
        font-size: 15px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        height: auto;
        margin-bottom: 30px;
    }

    .name {
        font-size: 2em;
        height: auto;
    }

    .nav-links {
        order: 2;
        height: auto;
        width: 100%;
    }

    .contact-section {
        order: 1;
        margin-bottom: 20px;
        height: auto;
    }
    
    .contact-links {
        height: auto;
    }

    .bio p {
        font-size: 15px;
    }

    h2 {
        font-size: 15px;
        margin: 30px 0 15px 0;
    }

    .exp-item {
        margin-bottom: 25px;
    }

    .exp-item ul {
        margin-left: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 30px 15px;
    }
    
    .header {
        margin-bottom: 25px;
    }
    
    .name {
        font-size: 1.8em;
    }
    
    .nav-links {
        flex-wrap: nowrap;
        gap: 6px;
        font-size: 14px;
    }
    
    .nav-links a {
        font-size: 14px;
    }

    .contact-links {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Print styles for professional appearance */
@media print {
    body {
        background-color: white;
        color: black;
        font-size: 11pt;
        line-height: 1.4;
        padding: 20px;
    }
    
    .name {
        color: black;
    }
    
    h2 {
        color: black;
    }
    
    .exp-item strong {
        color: black;
    }
    
    .nav-links a,
    .contact-links a {
        color: black;
        text-decoration: none;
    }
    
    .contact-links a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .exp-item li,
    .bio p {
        color: black;
    }
    
    .nav-links {
        display: none;
    }
}