:root {
    --bg-color: #0a0a0a;
    --text-primary: #ededed;
    --text-secondary: #8a8a8a;
    --accent: #ffffff;
    --border: #222222;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    padding: 4rem 2rem 6rem;
    position: relative;
    min-height: 100vh;
}

/* Subtle ambient light */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    left: 50%;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 60%);
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 640px;
    width: 100%;
}

header {
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
    color: var(--accent);
}

h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.95rem;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    position: relative;
}

a:hover {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

section {
    margin-bottom: 3.5rem;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

section:nth-child(2) {
    animation-delay: 0.15s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.45s;
}

section:nth-child(5) {
    animation-delay: 0.6s;
}

h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.about p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

.about strong {
    font-weight: 400;
    color: var(--text-primary);
}

.job {
    margin-bottom: 2rem;
}

.job:last-child {
    margin-bottom: 0;
}

.job-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

@media (min-width: 500px) {
    .job-header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

.job h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.job .company {
    color: var(--text-secondary);
    font-weight: 400;
}

.job .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0.7;
}

.job p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: default;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-shadow: none;
}

.project-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

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

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    animation: fadeIn 0.8s ease-out 0.75s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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