* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    /* overflow: hidden; */ /* agar kerak bo‘lsa, olib tashlang */
}

body {
    background: black;
    color: white;
    overflow-x: hidden;
}

.video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.612);
    backdrop-filter: blur(1px);
    z-index: -1;
}

/* ── ASOSIY SECTION (profil) ── */
section {
    min-height: 100vh;
    display: flex;
    /* flex-direction: column; */
    justify-content: space-between;
    align-items: center;
    padding: 80px 100px;
    gap: 80px;
}

.left {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: 350px;
}

.left img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .2);
}

.mini {
    font-size: 11px;
    opacity: .4;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
}

.job {
    font-size: 14px;
    opacity: .6;
    letter-spacing: 2px;
}

.right {
    width: 500px;
    padding: 25px;
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;  /* tuzatildi: flex yo‘nalishi column bo‘lishi kerak */
    align-items: stretch;    /* ichidagi bloklar to‘liq enni egallaydi */
}

.block {
    display: flex;
    flex-direction: column !important;
    margin-bottom: 45px;
}
.block:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.block p {
    line-height: 30px;
    opacity: .7;
    font-size: 15px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .02);
    transition: .2s;
}

.links a:hover {
    background: rgba(255, 255, 255, .08);
}

.links svg {
    width: 17px;
    height: 17px;
    opacity: .8;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projects a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .02);
    transition: .2s;
}

.projects a:hover {
    background: rgba(255, 255, 255, .06);
    padding-left: 30px;
}

.projects span {
    font-size: 15px;
    letter-spacing: 1px;
}

.projects svg {
    width: 18px;
    height: 18px;
    opacity: .5;
}

/* ── BLOG QISMI (3 ta flex karta, bir tekisda) ── */
.blog-section {
    min-height: auto;        /* balandlikni majburlamaydi */
    padding: 60px 100px 80px;
    gap: 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;    /* bolalarni to‘liq eniga yozadi */
}

.blog-section .section-label {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: .35;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
}

.blog-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.blog-card {
    flex: 1 1 240px;          /* moslashuvchan, lekin minimal 240px */
    min-width: 200px;
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 28px 24px 32px;
    transition: .25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* matn va linkni pastga surish uchun */
}

.blog-card:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .15);
}

.blog-card .tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .06);
    margin-bottom: 16px;
    opacity: .5;
    align-self: flex-start;   /* yorliq chapda */
}

.blog-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card .excerpt {
    font-size: 14px;
    line-height: 1.7;
    opacity: .55;
    margin-bottom: 18px;
    flex-grow: 1;            /* bo‘sh joyni egallaydi, link pastga tushadi */
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    opacity: .5;
    transition: .2s;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
}

.blog-card .read-more:hover {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, .3);
}

.blog-card .read-more svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
}

/* ── RESPONSIVE ── */
@media(max-width:900px) {
    section {
        padding: 40px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .left {
        flex-direction: column;
        align-items: flex-start;
        min-width: auto;
        width: 100%;
    }
    .right {
        width: 100%;
    }
    h1 {
        font-size: 40px;
    }
    .left img {
        width: 100px;
        height: 100px;
    }

    .blog-section {
        padding: 40px;
    }
    .blog-grid {
        flex-direction: column;   /* kichik ekranda ustun bo‘lib chiqadi */
    }
    .blog-card {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media(max-width:500px) {
    section {
        padding: 25px;
    }
    .links {
        flex-direction: column;
    }
    .links a {
        width: 100%;
    }
    .projects a {
        padding: 15px;
    }
    h1 {
        font-size: 30px;
    }
    .blog-section {
        padding: 20px;
    }
    .blog-card {
        padding: 22px 18px 26px;
    }
}