:root {
    --primary: #facc15;
    --primary-dark: #eab308;
    --bg: #0d0d0d;
    --bg-alt: #141414;
    --surface: #1a1a1a;
    --surface-elevated: #202020;
    --border: #2a2a2a;
    --text: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lang-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem;
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary);
    color: #000;
    font-weight: 500;
}

/* Header */
header {
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 3px solid var(--primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.alias {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.bio {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Links */
.links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.links a.secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.links a.secondary:hover {
    background: var(--surface-elevated);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 3rem 0;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-content {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

/* Experience */
.experience-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

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

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.exp-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.exp-company {
    color: var(--primary);
    font-size: 0.875rem;
}

.exp-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.exp-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.project {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.2s;
}

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

.project-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.project>*:not(.project-link) {
    position: relative;
    z-index: 2;
}

.project-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.project-stars {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.project-stars a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline;
    position: relative;
    z-index: 3;
}

.project-stars a:hover {
    color: var(--primary);
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.skill {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Contact */
.contact-content {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--surface-elevated);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

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

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .stats {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.75rem;
    }

    .links {
        flex-direction: column;
    }

    .exp-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}
/* Portfolio media previews */
.project {
    overflow: hidden;
    padding: 0;
}

.project>*:not(.project-link) {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.project-preview {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0 0 1.25rem 0 !important;
    border-bottom: 1px solid var(--border);
    background: var(--surface-elevated);
}

.project-name,
.project-desc,
.project-stars {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.project-stars {
    margin-bottom: 1.5rem;
}

.featured-project .project-preview {
    height: 180px;
}

.writing-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.writing-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-elevated);
}

.writing-card p {
    color: var(--text-secondary);
    margin: .5rem 0 1rem;
}

.writing-link {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: .7rem 1rem;
    border-radius: 8px;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 600px) {
    .project-preview,
    .featured-project .project-preview {
        height: 135px;
    }

    .writing-card {
        grid-template-columns: 1fr;
    }
}
