html {
    color-scheme: dark;
    background-color: var(--bg);
}

:root {
    --bg: #0f1115;
    --bg-alt: #161a22;
    --text: #eef0f3;
    --muted: #a4acb6;
    --accent: #4ea2ff;
    --accent-strong: #2b78c8;
    --card: #171c24;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --radius-sm: 12px;
    --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    --font-display: 'Playfair Display', 'Times New Roman', serif;
}

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

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 15% 15%, rgba(78, 162, 255, 0.12), transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(233, 190, 108, 0.08), transparent 40%),
        linear-gradient(140deg, var(--bg), var(--bg-alt));
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(78, 162, 255, 0.14), transparent 40%),
        radial-gradient(circle at 86% 12%, rgba(233, 190, 108, 0.1), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(78, 162, 255, 0.08), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

body.dark {
    --bg: #0f1115;
    --bg-alt: #161a22;
    --text: #eef0f3;
    --muted: #a4acb6;
    --accent: #4ea2ff;
    --accent-strong: #2b78c8;
    --card: #171c24;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.35);
}

body.dark::before {
    background: radial-gradient(circle at 12% 18%, rgba(78, 162, 255, 0.14), transparent 40%),
        radial-gradient(circle at 82% 12%, rgba(233, 190, 108, 0.1), transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(78, 162, 255, 0.1), transparent 40%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 42px 24px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}


.profile {
    text-align: center;
    margin: 4px 0 6px;
    width: 100%;
    padding: 24px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.profile-img-container {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    padding: 3px;
    box-shadow: var(--shadow-soft);
    margin: 0 auto 10px;
    box-sizing: border-box;
    background: var(--card);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    margin: 4px 0;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

.profile-username {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.2;
}

.profile-role {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}


.social-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 18px 0 6px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.info-item {
    text-align: center;
    min-width: 90px;
}

.info-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0 6px;
    justify-content: center;
    width: 100%;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    height: 44px;
    box-sizing: border-box;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.button:hover {
    background-color: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-btn {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(78, 162, 255, 0.35), rgba(78, 162, 255, 0));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(78, 162, 255, 0.7);
}

.contact-btn:hover::before {
    opacity: 1;
}

.telegram-btn {
    color: #4ea2ff;
    border-color: rgba(78, 162, 255, 0.5);
}

.facebook-btn {
    border-color: #1877f2;
    color: #1877f2;
}

.facebook-btn:hover {
    border-color: #1877f2;
}

.tabs-card {
    display: inline-block;
    background-color: var(--card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 6px;
    margin: 22px 0 10px;
    width: auto;
    min-width: 280px;
}

.tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.tab {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    outline: none;
    border-radius: 9px;
}

.tab:hover {
    color: var(--text);
    background-color: rgba(78, 162, 255, 0.12);
}

.tab.active {
    color: #ffffff;
    background-color: var(--accent);
}

.tab-content {
    width: 100%;
    margin: 12px 0 18px;
    min-height: 120px;
}

.content {
    display: none;
    padding: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    box-sizing: border-box;
    width: 100%;
}

.content.active {
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 10px;
}

.section-lead {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.section-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.clean-list {
    list-style: none;
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.clean-list li {
    position: relative;
    padding-left: 14px;
    color: var(--muted);
}

.clean-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

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

.project-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.project-card h3 {
    font-size: 18px;
    margin: 8px 0;
}

.project-card p {
    color: var(--muted);
    line-height: 1.5;
}

.project-meta {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 12px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

.footer {
    margin-top: auto;
    padding: 22px 0 8px;
    text-align: center;
    color: var(--muted);
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reveal {
    animation: rise 0.6s ease both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        animation: none;
    }
}

@media (max-width: 720px) {
    .social-info {
        flex-wrap: wrap;
    }

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

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

    .profile-img-container {
        width: 110px;
        height: 110px;
    }

    .profile-name {
        font-size: 24px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1 1 90px;
    }

    .content {
        padding: 20px;
    }
}
