:root {
    --bg: #0f1724;
    --card: rgba(255, 255, 255, 0.06);
    --muted: #9aa4b2;
    --accent: linear-gradient(135deg, #6b8cff, #8b5cf6);
    --glass: rgba(255, 255, 255, 0.03);
    --max-width: 1100px;
    --ff: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--ff);
    background: linear-gradient(180deg, #061024 0%, #071428 60%);
    color: #e6eef6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

.topbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(6, 10, 20, 0.6), rgba(6, 10, 20, 0.3));
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 40
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem
}

.logo {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem
}

.logo span {
    color: #9fb5ff
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: .45rem .6rem;
    border-radius: 8px
}

.nav a:hover {
    color: #e8f0ff;
    background: rgba(255, 255, 255, 0.02)
}

.icon-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: .4rem;
    border-radius: 8px;
    color: var(--muted)
}

.burger {
    display: none;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 1.4rem
}

.hero {
    padding: 4rem 0 5rem
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: center
}

.hero-left h1 {
    font-size: 2.1rem;
    margin: 0 0 .6rem
}

.hero-left h1 span {
    background: linear-gradient(90deg, #cfe0ff, #d7c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.lead {
    color: var(--muted);
    margin-bottom: 1rem;
    max-width: 46ch
}

.cta-row {
    display: flex;
    gap: .8rem;
    margin-bottom: 1rem
}

.btn {
    display: inline-block;
    padding: .6rem .9rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer
}

.btn.primary {
    background: var(--accent);
    color: white;
    font-weight: 600;
    border: 0
}

.btn.ghost {
    background: transparent;
    color: var(--muted)
}

.stats {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1rem;
    color: var(--muted)
}

.card {
    background: var(--card);
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6)
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.profile h3,
.profile p {
    margin: 2px 0;
    /* kam spacing */
    line-height: 1.3;
    /* text ko compact karo */
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-right .contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .8rem
}

.hero-right .contact-links a {
    color: var(--muted);
    text-decoration: none;
    padding: .35rem .6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01)
}

.section {
    padding: 3rem 0
}

.soft-bg {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent)
}

#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
}



.quick-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted)
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem
}

.skill {
    padding: 1rem
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem
}

.project p.meta {
    color: var(--muted);
    margin-top: .8rem;
    font-size: .85rem
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.contact-form label {
    display: block;
    margin-bottom: .6rem;
    font-size: .9rem
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    color: inherit
}

.form-row {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: .6rem
}

.footer {
    padding: 1.2rem 0;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: 2rem
}

/* small */
@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem
    }

    .about-grid {
        grid-template-columns: 1fr
    }

    .projects-grid {
        grid-template-columns: 1fr
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .two-col {
        grid-template-columns: 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .nav {
        display: none
    }

    .burger {
        display: block
    }
}

/* accessible focus */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid rgba(111, 125, 255, 0.12);
    outline-offset: 2px
}