body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f4f4f5;
}

.container {
    text-align: center;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #18181b;
    letter-spacing: -0.03em;
}

.title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #71717a;
    margin: 0 0 2rem 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-height: 1.5rem;
}

.cursor {
    animation: blink 0.7s steps(1) infinite;
    color: #71717a;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.social-links {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    background: #e4e4e7;
}

.social-link svg {
    width: 28px;
    height: 28px;
}

.github-link:hover {
    color: #18181b;
}

.telegram-link {
    color: #a1a1aa;
}

.telegram-link:hover {
    color: #0088cc;
    background: #e4e4e7;
    box-shadow: 0 0 12px rgba(0, 136, 204, 0.15);
}

.telegram-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.telegram-link:hover::after {
    border-color: rgba(0, 136, 204, 0.3);
}

.stats {
    margin-top: 2rem;
    min-height: 120px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.stats.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.stats.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.loader {
    width: 24px;
    height: 24px;
    border: 2px solid #e4e4e7;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gh-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gh-card:hover {
    border-color: #d4d4d8;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.gh-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.gh-card-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
}

.gh-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.gh-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #18181b;
}

.gh-card-login {
    font-size: 0.875rem;
    color: #a1a1aa;
}

.gh-card-bio {
    font-size: 0.8rem;
    color: #71717a;
    margin-top: 0.25rem;
}

.gh-card-stats {
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 0.25rem;
    display: flex;
    gap: 0.75rem;
}

.langs-container {
    width: 100%;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.2s;
}

.langs-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.lang-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.lang-row.visible {
    opacity: 1;
    transform: translateX(0);
}

.lang-name {
    width: 70px;
    font-size: 0.875rem;
    color: #52525b;
    text-align: right;
}

.lang-bar {
    flex: 1;
    height: 6px;
    background: #e4e4e7;
    border-radius: 3px;
    overflow: hidden;
}

.lang-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
}

.lang-percent {
    width: 35px;
    font-size: 0.875rem;
    color: #a1a1aa;
    text-align: right;
}

.error {
    color: #ef4444;
    font-size: 0.875rem;
}

.terminal {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    width: 100%;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.7;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.terminal.show {
    opacity: 1;
    transform: translateY(0);
}

.terminal-header {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e4e4e7;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.terminal-body {
    color: #52525b;
    min-height: 1.7em;
    padding: 1rem 1.2rem;
}

.terminal-body .prompt {
    color: #6366f1;
}

.terminal-body .arg {
    color: #52525b;
}

.terminal-body .item {
    color: #52525b;
}

.terminal-body .num {
    color: #6366f1;
}

/* cursor styles defined above */

.terminal-hint {
    color: #a1a1aa;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: #18181b;
    caret-color: #6366f1;
    padding: 0;
}

.terminal-input::placeholder {
    color: #d4d4d8;
}

.terminal-input.done {
    color: #52525b;
}

.terminal-thinking {
    color: #a1a1aa;
}

.terminal-error {
    color: #ef4444;
    margin-top: 0.5rem;
}

.terminal-answer {
    color: #6366f1;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-answer.terminal-error {
    color: #ef4444;
}

.terminal-answer-prefix {
    margin-top: 0.5rem;
}

.terminal-cursor {
    color: #6366f1;
}

.terminal-cursor.blink {
    animation: blink 0.7s steps(1) infinite;
}

.content-row {
    display: flex;
    gap: 1.5rem;
    max-width: 860px;
    width: 100%;
    margin: 0 auto 1.5rem;
    align-items: stretch;
}

.content-column {
    flex: 1;
    min-width: 0;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 0.2rem 0.3rem;
    padding: 0.5rem;
    min-height: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.skills-cloud.show {
    opacity: 1;
    transform: translateY(0);
}

.tag {
    font-family: 'Share Tech Mono', monospace;
    color: #18181b;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.3;
    cursor: default;
}

.tag::before {
    content: "{ ";
    color: #6366f1;
}

.tag::after {
    content: " }";
    color: #6366f1;
}

.tag:hover {
    color: #6366f1;
}

.tag:hover::before,
.tag:hover::after {
    color: #6366f1;
}

.tag-xl {
    font-size: 1.3rem;
    padding: 0.35rem 0.8rem;
}

.tag-lg {
    font-size: 1.15rem;
    padding: 0.3rem 0.7rem;
}

.tag-md {
    font-size: 1rem;
    padding: 0.25rem 0.6rem;
}

.tag-sm {
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
}

@media (max-width: 640px) {
    .content-row {
        flex-direction: column;
    }
}

.skills {
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.dot {
    color: #d4d4d8;
    margin: 0 0.35rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.portfolio-link:hover {
    color: #6366f1;
    background: #e4e4e7;
}

.portfolio {
    width: 100%;
    max-width: 860px;
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

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

.portfolio.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.portfolio.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.portfolio-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-left: 3px solid #6366f1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.portfolio-card:hover {
    border-color: #d4d4d8;
    border-left-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

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

.portfolio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #18181b;
    line-height: 1.3;
}

.portfolio-stars {
    font-size: 0.8rem;
    color: #6366f1;
    white-space: nowrap;
    margin-left: 0.75rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.portfolio-tagline {
    margin: 0;
    font-size: 0.8rem;
    color: #a1a1aa;
    line-height: 1.4;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.portfolio-tag {
    font-size: 0.7rem;
    font-family: 'Share Tech Mono', monospace;
    padding: 0.2rem 0.55rem;
    background: #e4e4e7;
    color: #52525b;
    border-radius: 4px;
}

.portfolio-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    line-height: 1;
    border-radius: 3px;
    overflow: hidden;
}

.badge-label {
    padding: 0.25rem 0.45rem;
    background: #e4e4e7;
    color: #52525b;
}

.badge-value {
    padding: 0.25rem 0.45rem;
    background: #6366f1;
    color: #fff;
}

.badge--single {
    padding: 0.25rem 0.55rem;
    background: #6366f1;
    color: #fff;
}

.portfolio-divider {
    border: none;
    height: 1px;
    background: #e4e4e7;
    margin: 0;
}

.portfolio-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portfolio-features li {
    font-size: 0.85rem;
    color: #52525b;
    padding: 0.15rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.portfolio-features li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-size: 0.7rem;
    top: 0.3rem;
}

.portfolio-links {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.portfolio-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #a1a1aa;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.portfolio-link-icon:hover {
    color: #6366f1;
    background: #f4f4f5;
}
