:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent-color: #007BFF;
    --border-color: #eaeaea;
    --max-width: 820px;
}

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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header — chiziqsiz, toza */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 0;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero — chapga tekislangan, markaziy balandlikda */
.hero {
    margin: auto 0;
    padding: 40px 0 80px;
    text-align: left;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
}

.avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f2f2;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.profile-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icons a {
    color: var(--text-primary);
    display: inline-flex;
    transition: opacity 0.15s ease;
}

.social-icons a:hover {
    opacity: 0.65;
}

.hero-bio {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 26px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 14px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.15s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-outline {
    background-color: #fff;
    color: var(--accent-color);
    border: 1px solid #cce3ff;
}

.btn-outline:hover {
    border-color: var(--accent-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 28px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Blog va Talks */
.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: var(--text-primary);
}

.post-item .arrow {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
    color: var(--accent-color);
}

.post-item:hover .post-title {
    color: var(--accent-color);
}

.post-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

.talk-item {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    text-decoration: none;
    color: inherit;
}

.talk-thumb {
    width: 160px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
    background: #f0f0f0;
}

@media (max-width: 640px) {
    .profile-header { flex-direction: column; align-items: flex-start; gap: 18px; }
    .avatar { width: 100px; height: 100px; }
    .profile-info h1 { font-size: 1.9rem; }
}
