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

:root {
    --bg-color: #fff;
    --text-color: #000;
    --border-color: #ddd;
    --secondary-text: #666;
}

html.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --border-color: #444;
    --secondary-text: #999;
}

html {
    background: var(--bg-color);
    transition: background 0.3s ease;
}

body {
    font-family: monospace;
    line-height: 1.6;
    color: var(--text-color);
    background: transparent;
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 1rem;
    transition: color 0.3s ease;
}

a {
    color: var(--text-color);
    text-decoration: underline;
}

a:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

header {
    margin-bottom: 0;
}

.header-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.links {
    margin: 1rem 0;
}

.links a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin: 0 0 1rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 0.25rem;
}

.experience,
.projects {
    list-style: none;
}

.job,
.project {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    position: relative;
}

.job:last-child,
.project:last-child {
    border-bottom: none;
}

.company-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    padding: 4px;
    background: var(--bg-color);
}

.job-details {
    flex: 1;
}

.job h3,
.project h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.company {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.job p,
.project p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.project-img-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    position: relative;
}

.project-details {
    flex: 1;
}

.project img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease-out;
}

.project img:hover {
    width: auto;
    height: auto;
    max-width: 650px;
    max-height: 650px;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: var(--bg-color);
}

.project-links a {
    margin-right: 1rem;
    font-size: 0.85rem;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--secondary-text);
    text-decoration: underline;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.theme-toggle:hover {
    color: var(--text-color);
}
