* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --bg: #0a0f1e;
    --surface: #111827;
    --card: #161f32;
    --border: #1e2d4a;
    --gold: #f0b429;
    --blue: #3b82f6;
    --teal: #14b8a6;
    --text: #e8edf5;
    --muted: #7a8ba8;
    --green: #22c55e;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh
}

/* NAV */
nav {
    background: rgba(10, 15, 30, 0.97);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px)
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: .6rem
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%
}

.logo-nav span {
    font-size: .95rem;
    letter-spacing: .12em;
    color: var(--text);
    font-weight: 500
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s
}

.nav-links a:hover {
    color: var(--gold)
}

.nav-badge {
    background: var(--gold);
    color: #0a0f1e;
    font-size: .65rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle
}

/* HERO */
.hero {
    padding: 4rem 2rem 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .08) 0%, transparent 70%);
    pointer-events: none
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 180, 41, .06) 0%, transparent 70%);
    pointer-events: none
}

.avatar-container {
    flex-shrink: 0;
    position: relative
}

.avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--blue));
    padding: 3px
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -.05em
}

.status-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--bg)
}

.hero-info {
    flex: 1
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .25);
    color: var(--blue);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 20px;
    margin-bottom: .8rem
}

.hero-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.1;
    margin-bottom: .3rem
}

.hero-info h1 span {
    color: var(--gold)
}

.hero-role {
    color: var(--muted);
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .9rem
}

.hero-desc {
    color: #9aabbc;
    line-height: 1.75;
    font-size: .93rem;
    max-width: 480px;
    margin-bottom: 1.5rem
}

.hero-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap
}

.btn-gold {
    background: var(--gold);
    color: #0a0f1e;
    border: none;
    padding: .6rem 1.4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity .2s;
    text-decoration: none;
    display: inline-block
}

.btn-gold:hover {
    opacity: .85
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: .6rem 1.4rem;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color .2s, color .2s;
    text-decoration: none;
    display: inline-block
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold)
}

.hero-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 180px
}

.link-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .8rem;
    text-decoration: none;
    transition: color .2s;
    padding: .2rem 0
}

.link-pill:hover {
    color: var(--teal)
}

.link-icon {
    width: 28px;
    height: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem
}

/* STATS BAR */
.stats-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 1.2rem 2rem
}

.stat {
    text-align: center
}

.stat .n {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold)
}

.stat .l {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-top: .1rem
}

/* SECTIONS */
.sec {
    padding: 3rem 2rem
}

.sec-alt {
    background: var(--surface)
}

.sec-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 2rem
}

.sec-line {
    width: 3px;
    height: 22px;
    background: var(--gold);
    border-radius: 2px
}

.sec-head h2 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase
}

.sec-head .badge {
    margin-left: auto;
    background: rgba(240, 180, 41, .12);
    color: var(--gold);
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(240, 180, 41, .2)
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 2rem
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem
}

.about-card h3 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 1rem
}

.about-card p {
    line-height: 1.8;
    color: #9aabbc;
    font-size: .9rem
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem
}

.int-tag {
    background: rgba(20, 184, 166, .1);
    border: 1px solid rgba(20, 184, 166, .2);
    color: var(--teal);
    font-size: .75rem;
    padding: .25rem .7rem;
    border-radius: 20px
}

/* SKILLS */
.skills-2col {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 1rem
}

.skill-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem
}

.skill-block .s-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1rem
}

.skill-item {
    margin-bottom: .7rem
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: .3rem
}

.bar-bg {
    background: var(--border);
    border-radius: 20px;
    height: 5px
}

.bar-fill {
    height: 5px;
    border-radius: 20px
}

.bar-gold {
    background: var(--gold)
}

.bar-blue {
    background: var(--blue)
}

.bar-teal {
    background: var(--teal)
}

/* CERTS */
.certs-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 1rem
}

.cert-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    position: relative;
    overflow: hidden
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px
}

.cert-gold::before {
    background: var(--gold)
}

.cert-blue::before {
    background: var(--blue)
}

.cert-teal::before {
    background: var(--teal)
}

.cert-icon {
    font-size: 1.5rem;
    margin-bottom: .6rem
}

.cert-card h4 {
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .3rem
}

.cert-card p {
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.5
}

.cert-score {
    display: inline-block;
    margin-top: .5rem;
    background: rgba(240, 180, 41, .1);
    color: var(--gold);
    font-size: .7rem;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid rgba(240, 180, 41, .2)
}

/* EDU */
.edu-timeline {
    position: relative;
    padding-left: 1.5rem
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border)
}

.edu-item {
    position: relative;
    margin-bottom: 1.5rem
}

.edu-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--bg)
}

.edu-period {
    font-size: .72rem;
    color: var(--gold);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .2rem
}

.edu-school {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .2rem
}

.edu-detail {
    font-size: .82rem;
    color: var(--muted)
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 1rem
}

.proj-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit
}

.proj-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px)
}

.proj-body {
    padding: 1rem
}

.proj-body h4 {
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .3rem
}

.proj-body p {
    font-size: .77rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: .6rem
}

.tech-tag {
    display: inline-block;
    background: rgba(59, 130, 246, .1);
    color: var(--blue);
    font-size: .68rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 3px;
    border: 1px solid rgba(59, 130, 246, .15)
}

/* CONTACT */
.contact-wrap {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 2rem
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem
}

.contact-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
    padding: .6rem;
    border-radius: 8px;
    transition: background .2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit
}

.contact-row:hover {
    background: rgba(255, 255, 255, .03)
}

.ci {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0
}

.ci-gold {
    background: rgba(240, 180, 41, .12);
    color: var(--gold);
    border: 1px solid rgba(240, 180, 41, .2)
}

.ci-blue {
    background: rgba(59, 130, 246, .12);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, .2)
}

.ci-teal {
    background: rgba(20, 184, 166, .12);
    color: var(--teal);
    border: 1px solid rgba(20, 184, 166, .2)
}

.ci-green {
    background: rgba(34, 197, 94, .12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, .2)
}

.c-label {
    font-size: .72rem;
    color: var(--muted);
    margin-bottom: .1rem
}

.c-val {
    font-size: .85rem;
    font-weight: 500
}

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem
}

.form-card h3 {
    font-size: .85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem
}

.finput {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .6rem .8rem;
    border-radius: 6px;
    font-size: .85rem;
    margin-bottom: .6rem;
    outline: none;
    font-family: inherit;
    transition: border-color .2s
}

.finput:focus {
    border-color: var(--gold)
}

.finput::placeholder {
    color: var(--muted)
}

textarea.finput {
    height: 80px;
    resize: none
}

.fbtn {
    width: 100%;
    background: var(--gold);
    color: #0a0f1e;
    border: none;
    padding: .7rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    margin-top: .3rem;
    transition: opacity .2s
}

.fbtn:hover {
    opacity: .85
}

footer {
    background: #050810;
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.2rem;
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .06em
}

.footer-brand {
    color: var(--gold);
    font-weight: 600
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem
    }

    .hero-links {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: unset
    }

    .about-grid, .skills-2col, .contact-wrap {
        grid-template-columns:1fr
    }

    .certs-grid, .projects-grid {
        grid-template-columns:1fr 1fr
    }

    nav {
        padding: .8rem 1rem
    }

    .nav-links {
        gap: 1rem
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 1rem
    }
}
/* =============================================
   HAMBURGER MENU
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 30;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav scroll effekti */
nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* =============================================
   FORM STATUS
   ============================================= */
.form-status {
    font-size: .82rem;
    margin-bottom: .5rem;
    min-height: 1.2rem;
    border-radius: 6px;
    padding: 0;
    transition: all .3s;
}

.form-status.success {
    color: var(--green);
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.2);
    padding: .5rem .8rem;
}

.form-status.error {
    color: #f87171;
    background: rgba(248,113,113,.08);
    border: 1px solid rgba(248,113,113,.2);
    padding: .5rem .8rem;
}

/* =============================================
   EDU + PROJECTS GRID
   ============================================= */
.edu-proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* =============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================= */
@media (max-width: 900px) {
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {

    /* NAV */
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10, 15, 30, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 25;
        backdrop-filter: blur(12px);
    }

    .nav-links.open { display: flex; }

    .nav-links li { list-style: none; }

    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: .15em;
    }

    .nav-badge { display: none; }

    /* HERO */
    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 1rem 2rem;
    }

    .hero-info h1 { font-size: 1.8rem; }
    .hero-desc { font-size: .88rem; max-width: 100%; }

    .hero-links {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: unset;
        gap: .4rem;
    }

    .link-pill { font-size: .75rem; }

    /* STATS */
    .stats-bar {
        flex-wrap: wrap;
        gap: .8rem;
        justify-content: center;
        padding: 1rem;
    }

    .stat { min-width: 80px; }

    /* GRIDS */
    .about-grid,
    .skills-2col,
    .contact-wrap,
    .edu-proj-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* SECTIONS */
    .sec { padding: 2rem 1rem; }
    .sec-alt { padding: 2rem 1rem; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================= */
@media (max-width: 480px) {
    .certs-grid { grid-template-columns: 1fr; }

    .hero-info h1 { font-size: 1.5rem; }

    .hero-actions {
        flex-direction: column;
        gap: .6rem;
    }

    .btn-gold, .btn-ghost {
        text-align: center;
        width: 100%;
    }

    .stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================
   AVATAR PHOTO
   ============================================= */
.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    display: block;
}

/* Avatar ring ichini to'ldirish */
.avatar-ring {
    overflow: hidden;
}

/* =============================================
   AVATAR PHOTO — FIX
   ============================================= */
.avatar-ring {
    padding: 0 !important;
    width: 150px !important;
    height: 150px !important;
    border: 3px solid var(--gold);
    overflow: hidden !important;
    border-radius: 50% !important;
    background: none !important;
}

.avatar-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 50% !important;
    display: block !important;
}