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

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #6c63ff;
    --accent-hover: #7f78ff;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* --- Header --- */
.header {
    text-align: center;
    padding: 80px 20px 40px;
}

.header__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--border);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
}

.header__name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.header__role {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.header__links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.header__links a {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}

.header__links a:hover {
    border-color: var(--accent);
}

/* --- Sections --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    margin-bottom: 48px;
}

.section__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* --- Skills --- */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills__tag {
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

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

.project-card__cover {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    background: var(--bg);
    padding: 12px;
}

.project-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-card__role {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.project-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex: 1;
}

.project-card__stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.project-card__stack span {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: var(--bg);
    border-radius: 4px;
    color: var(--text-muted);
}

.project-card__link {
    display: inline-block;
    font-size: 0.85rem;
    padding: 6px 14px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.project-card__link:hover {
    background: var(--accent);
    color: #fff;
}

/* --- Experience --- */
.timeline-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.timeline-item__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-item__company {
    font-weight: 600;
}

.timeline-item__period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-item__role {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.timeline-item__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Contact --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: var(--accent-hover);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

@media (max-width: 480px) {
    .header {
        padding: 48px 16px 32px;
    }

    .header__name {
        font-size: 1.5rem;
    }

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