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

:root {
    --bg-color: #fafafa;
    --text-color: #2d3748;
    --accent-color: #4a5568;
    --code-color: #1a202c;
    --link-color: #3182ce;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

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

header {
    margin-bottom: 60px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 12px;
    color: var(--code-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 20px;
}

.code-accent {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    background: var(--code-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--code-color);
    position: relative;
}

.section h2::before {
    content: '// ';
    color: var(--accent-color);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.9em;
}

.about-text,
.summary-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Project styles for landing page */
.project {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    background: white;
    transition: box-shadow 0.2s ease;
}

.project:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-name {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--link-color);
    margin-bottom: 4px;
}

.project-name a {
    color: inherit;
    text-decoration: none;
}

.project-name a:hover {
    text-decoration: underline;
}

.project h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--code-color);
}

.project-description {
    color: var(--accent-color);
    margin-bottom: 12px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #f7fafc;
    color: var(--code-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Links grid for landing page */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.link-item {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.link-item:hover {
    border-color: var(--link-color);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.1);
    transform: translateY(-1px);
}

.link-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--code-color);
}

.link-description {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* CV specific styles */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--link-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.experience-item,
.education-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.job-title,
.degree {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--code-color);
}

.company,
.school {
    color: var(--link-color);
    font-weight: 500;
}

.date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

.description {
    margin-top: 8px;
    color: var(--accent-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--code-color);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #f7fafc;
    color: var(--code-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Footer/Contact */
.contact {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.contact a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.contact a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 20px 16px;
    }

    h1 {
        font-size: 2rem;
    }

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

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

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