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

:root {
    --bg: #0f0f0f;
    --text: #e8e8e8;
    --text-dim: #888;
    --text-dimmer: #555;
    --accent: #ddd;
    --line: #222;
    --hover-line: #333;
}

body {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    font-weight: 400;
    scroll-behavior: smooth;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 40px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

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

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

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

h1 {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    animation: underlineGrow 0.8s ease 0.5s forwards;
}

@keyframes underlineGrow {
    to {
        width: 100%;
    }
}

.subtitle {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 14px;
}

.contact {
    display: flex;
    gap: 24px;
    margin-bottom: 60px;
    font-size: 13px;
}

.contact a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.contact a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease;
}

.contact a:hover {
    color: var(--text);
}

.contact a:hover::before {
    width: 100%;
}

.download-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.download-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease;
}

.download-link:hover {
    color: var(--text);
}

.download-link:hover::before {
    width: 100%;
}

.section {
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--line);
    transition: background-color 0.3s ease;
}

.section:hover .section-title::after {
    background: var(--hover-line);
}

.item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.3s ease;
}

.item:hover {
    border-color: var(--hover-line);
}

.item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.item-title {
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.item-meta {
    color: var(--text-dimmer);
    font-size: 13px;
    transition: color 0.2s ease;
}

.item:hover .item-meta {
    color: var(--text-dim);
}

.item-subtitle {
    color: var(--text-dim);
    margin-bottom: 12px;
    font-size: 13px;
}

.item-content {
    color: var(--text-dim);
}

.item-content p {
    margin-bottom: 8px;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.project {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.project:hover {
    border-color: var(--hover-line);
    transform: translateY(-2px);
}

.project:nth-last-child(-n+2) {
    border-bottom: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.project-title {
    font-weight: 500;
    transition: color 0.2s ease;
}

.project:hover .project-title {
    color: var(--accent);
}

.ext-link {
    color: var(--text-dimmer);
    text-decoration: none;
    font-size: 11px;
    opacity: 0.7;
    transition: all 0.2s ease;
    position: relative;
}

.ext-link::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-dim);
    transition: width 0.3s ease;
}

.ext-link:hover {
    color: var(--text-dim);
    opacity: 1;
}

.ext-link:hover::before {
    width: 100%;
}

.project-tech {
    color: var(--text-dimmer);
    font-size: 12px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.project:hover .project-tech {
    color: var(--text-dim);
}

.project-desc {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.4;
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.skill-group {
    transition: transform 0.2s ease;
}

.skill-group:hover {
    transform: translateX(4px);
}

.skill-group h4 {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 13px;
    position: relative;
}

.skill-group h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.skill-group:hover h4::after {
    width: 20px;
}

.skill-list {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
}

.highlight {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.number {
    color: var(--accent);
    font-weight: 500;
    position: relative;
}

.section-content {
    overflow: hidden;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 24px;
    }

    .contact {
        flex-direction: column;
        gap: 8px;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project {
        border-bottom: 1px solid var(--line);
    }

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

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .skills {
        grid-template-columns: 1fr;
    }

    .skill-group:hover {
        transform: none;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }

    .download-link {
        display: none;
    }

    .ext-link {
        color: #666;
    }

    .section {
        opacity: 1;
        transform: none;
    }
}