:root {
    --bg-main: #0d0f12;
    --bg-section: #161a1f;
    --bg-card: #1d2128;
    --accent: #2a2f38;
    --accent-hover: #363c48;
    --accent-dark: #e8eaed;
    --accent-light: #1a1e24;
    --text-main: #e8eaed;
    --text-muted: #9aa0a6;
    --primary: #8ab4f8;
    --primary-hover: #7aa3e5;
    --success: #81c995;
    --info: #78b9e6;
    --warning: #fdd663;
    --danger: #f28b82;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.3);
    --highlight: #1a1e24;
    --project-favorite: #1d2a28;
    --pulse: #81c995;
    --gradient-primary: linear-gradient(135deg, #2a2f38 0%, #1d2128 100%);
    --gradient-accent: linear-gradient(135deg, #2a2f38 0%, #1d2128 100%);
    --border-subtle: rgba(255, 255, 255, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-main);
    margin: 0;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

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

header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-section);
    color: var(--accent-dark);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-subtle);
}

.avatar {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.header-info h1 {
    margin: 0;
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.header-info p {
    margin: 0.75rem 0 0 0;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.location {
    font-size: 1rem;
    color: var(--info);
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

nav a {
    color: var(--text-main);
    background: var(--bg-section);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    transition: background 0.2s ease;
    font-size: 0.95rem;
    border: 1px solid var(--border-subtle);
}

nav a:hover {
    background: var(--bg-card);
}

.pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pulse);
    box-shadow: 0 0 0 0 var(--pulse);
    animation: pulse 2.5s infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(72, 187, 120, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

.advertising {
    margin: 2rem 0;
    background: var(--bg-section);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--success);
}

.advertising h2 {
    color: var(--success);
    font-size: 1.5rem;
    margin: 0 0 1.25rem 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.advertising-content {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.advertising-content strong {
    color: var(--primary);
}

.advertising-content h3 {
    color: var(--danger);
    margin: 1rem 0;
}

.advertising-content a {
    color: var(--danger);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--danger);
    transition: opacity 0.3s;
}

.advertising-content a:hover {
    opacity: 0.8;
}

.advertising-list ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.advertising-list li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.advertising-cta {
    font-size: 1.2rem;
    color: var(--success);
    font-weight: 600;
    margin: 1.5rem 0;
}

.advertising-payment {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--warning);
    font-weight: 600;
}

.advertising-steps {
    margin-top: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--accent);
}

.advertising-steps h3 {
    color: var(--success);
    margin-top: 0;
    font-size: 1.3rem;
}

.advertising-steps ol {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.advertising-steps li {
    margin-bottom: 1rem;
}

section {
    margin-bottom: 2rem;
    background: var(--bg-section);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

h2 {
    margin-top: 0;
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h2::before {
    content: '';
    width: 3px;
    height: 1.5rem;
    background: var(--accent);
    border-radius: 2px;
    display: inline-block;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.lang-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lang-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 2px solid var(--accent);
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.lang-card:hover {
    box-shadow: var(--shadow-md);
}

.lang-card.know {
    border-left-color: var(--info);
}

.lang-card.learn {
    border-left-color: var(--warning);
}

.lang-card.rust {
    border-left-color: var(--success);
}

.lang-card.go {
    border-left-color: var(--primary);
}

.lang-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.lang-status {
    font-size: 0.85rem;
    color: var(--text-main);
    background: var(--accent);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.lang-strengths {
    font-size: 0.95rem;
    margin-top: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.lang-strengths ul,
.lang-make ul,
.lang-future ul,
.proscons-list {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.lang-strengths li,
.lang-make li,
.lang-future li,
.proscons-list li {
    margin-bottom: 0.5rem;
}

.lang-make {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-main);
}

.lang-make strong {
    color: var(--primary);
}

.lang-future {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-main);
}

.lang-future strong {
    color: var(--success);
}

.proscons {
    margin-top: 1rem;
}

.proscons-title {
    color: var(--success);
    font-weight: 600;
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
}

.proscons-title:nth-of-type(2) {
    color: var(--danger);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.project-card.favorite {
    border-left: 2px solid var(--success);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.project-card.favorite .project-title {
    color: var(--text-main);
}

.project-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-meta {
    font-size: 0.9rem;
    color: var(--info);
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-links a {
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-section);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.project-links a:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact {
    font-size: 1.1rem;
    line-height: 2;
}

.contact strong {
    color: var(--primary);
}

.contact a {
    color: var(--info);
    text-decoration: none;
    border-bottom: 1px solid var(--info);
    transition: opacity 0.3s;
}

.contact a:hover {
    opacity: 0.7;
}

.footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 2rem;
}

.footer h6 {
    margin: 0.5rem 0 0 0;
    font-weight: 400;
    font-size: 0.85rem;
}

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

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .header-info h1 {
        font-size: 2rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        display: block;
        text-align: center;
    }

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

    h2 {
        font-size: 1.5rem;
    }
}
