:root {
    --grad-a: #667eea;
    --grad-b: #764ba2;
    --radius: 20px;
    --bg: #0b0e14;
    --muted: #0f1320;
    --text: #e9ecf1;
    --sub: #b8c0cc;
    --card: #101524;
    --line: #202636;
    --ok: #22c55e;
    --err: #ef4444;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

:root.light {
    --bg: #f6f7fb;
    --muted: #ffffff;
    --text: #0e1422;
    --sub: #5c6574;
    --card: #ffffff;
    --line: #e8eaf1;
    --shadow: 0 8px 24px rgba(10, 14, 30, .08);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    scroll-behavior: smooth
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    color: white;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 10px 30px rgba(118, 75, 162, .35);
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.1)
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none
}

.chip {
    padding: .45rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--sub);
    font-weight: 600;
    font-size: .8rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(14px);
    background: linear-gradient(180deg, rgba(10, 14, 26, .75), rgba(10, 14, 26, .45)) padding-box;
    border-bottom: 1px solid var(--line);
}

:root.light .navbar {
    background: rgba(255, 255, 255, .7)
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem
}

.logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    /* dumaloq shakl */
    background: conic-gradient(from 30deg, var(--grad-a), var(--grad-b));
    color: white;
    box-shadow: var(--shadow);
    font-weight: 800;
    font-size: 18px;
    transition: 0.3s ease;
}

/* hover effekti (ixtiyoriy, chiroyli ko‘rinadi) */
.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}


.brand h1 {
    font-size: 1.05rem;
    margin: 0
}

/* Desktop menu */
.menu {
    display: flex;
    align-items: center;
    gap: 18px
}

.menu a {
    padding: .6rem .85rem;
    border-radius: 12px;
    color: var(--sub);
    font-weight: 600
}

.menu a.active,
.menu a:hover {
    color: var(--text);
    background: rgba(123, 127, 255, .08)
}

/* Controls group */
.controls {
    display: flex;
    align-items: center;
    gap: 10px
}

/* Theme toggle */
.toggle {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: var(--line);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    transition: background .2s ease
}

.knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    transform: translateX(0);
    transition: transform .25s ease
}

:root.light .knob {
    transform: translateX(22px)
}

/* Language controls */
.lang-inline {
    display: flex;
    gap: 8px
}

.lang-inline button {
    border: 1px solid var(--line);
    background: var(--muted);
    color: var(--text);
    padding: .55rem .75rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700
}

.lang-inline button.active {
    border-color: rgba(123, 127, 255, .7)
}

.lang-mobile {
    display: none;
    position: relative
}

.lang-current {
    border: 1px solid var(--line);
    background: var(--muted);
    color: var(--text);
    padding: .55rem .75rem;
    border-radius: 12px;
    font-weight: 700
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: 110%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--muted);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
    min-width: 110px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

.lang-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: none
}

.lang-dropdown button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: .45rem .6rem;
    border-radius: 10px;
    text-align: left
}

.lang-dropdown button:hover {
    border-color: rgba(123, 127, 255, .6)
}

/* Burger + mobile panel */
.burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.burger span,
.burger:before,
.burger:after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    margin: 3px 0;
    border-radius: 2px
}

.nav-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--muted);
    overflow: hidden;
}

.nav-panel.open {
    display: block;
    animation: slideDown .22s ease forwards
}

.nav-panel a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-weight: 600
}

.nav-panel a:last-child {
    border-bottom: 0
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* HERO + SECTIONS (as before) */
.hero {
    position: relative;
    padding: 80px 0 40px;
    overflow: hidden;
    background:
        radial-gradient(800px 400px at 10% -10%, rgba(123, 127, 255, .15), transparent 60%),
        radial-gradient(700px 400px at 100% 0%, rgba(157, 123, 255, .12), transparent 60%);
    border-bottom: 1px solid var(--line);
}

.hero .row {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center
}

.h-title {
    font-size: clamp(30px, 6vw, 58px);
    line-height: 1.05;
    margin: 10px 0 16px;
    font-weight: 900;
    letter-spacing: -.4px
}

.h-sub {
    font-size: clamp(16px, 2.4vw, 20px);
    color: var(--sub);
    max-width: 760px
}

.cta {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.glass {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow)
}

.stat {
    display: flex;
    gap: 14px;
    align-items: center
}

.stat strong {
    font-size: 28px
}

.phone {
    aspect-ratio: 9/16;
    width: 100%;
    border-radius: 30px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    position: relative;
}

.phone .screen {
    position: absolute;
    inset: 10px;
    border-radius: 22px;
    background: var(--muted);
    border: 1px solid var(--line);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.msg {
    padding: 10px 12px;
    border-radius: 14px;
    max-width: 85%;
    width: fit-content
}

.msg.in {
    background: rgba(123, 127, 255, .15);
    border: 1px solid var(--line)
}

.msg.out {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    align-self: flex-end
}

@media (max-width:900px) {
    .hero .row {
        grid-template-columns: 1fr
    }
}

section {
    padding: 72px 0;
    border-bottom: 1px solid var(--line)
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 26px
}

.sec-title {
    font-size: 28px;
    margin: 0
}

.grid {
    display: grid;
    gap: 16px
}

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

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

@media (max-width:1100px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr)
    }

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

@media (max-width:660px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 127, 255, .5);
    box-shadow: 0 18px 50px rgba(118, 75, 162, .25)
}

.card .icon {
    font-size: 26px
}

.card h3 {
    margin: 8px 0 6px
}

.card p {
    margin: 0;
    color: var(--sub)
}

.proj {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.proj .meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--sub);
    font-size: .9rem
}

.pill {
    background: rgba(123, 127, 255, .14);
    border: 1px solid var(--line);
    padding: .25rem .6rem;
    border-radius: 999px
}

.list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0
}

.link {
    margin-top: 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700
}

.link svg {
    width: 18px;
    height: 18px
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px
}

@media (max-width:900px) {
    .contact-wrap {
        grid-template-columns: 1fr
    }
}

.form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

@media (max-width:600px) {
    .form .row {
        grid-template-columns: 1fr
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.field input,
.field textarea {
    background: var(--muted);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 14px;
    outline: none;
    transition: border .2s ease, box-shadow .2s ease
}

.field textarea {
    min-height: 130px;
    resize: vertical
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(123, 127, 255, .7);
    box-shadow: 0 0 0 6px rgba(123, 127, 255, .12)
}

.note {
    font-size: .9rem;
    color: var(--sub)
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 8px
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line)
}

.socials a:hover {
    border-color: rgba(123, 127, 255, .7)
}

footer {
    padding: 24px 0;
    color: var(--sub);
    font-size: .95rem
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s ease
}

.reveal.show {
    opacity: 1;
    transform: none
}

/* RESPONSIVE toggles */
@media (max-width:900px) {
    .menu {
        display: none
    }

    .burger {
        display: flex
    }

    .lang-inline {
        display: none
    }

    .lang-mobile {
        display: block
    }
}

.kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .86rem;
    background: var(--muted);
    border: 1px solid var(--line);
    padding: .2rem .45rem;
    border-radius: 8px
}

.corner {
    position: absolute;
    right: -60px;
    top: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .06), transparent 70%);
    transform: rotate(35deg)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    /* logo va matn orasida masofa */
}

/* Logo konteyneri */
.logo1 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* dumaloq shakl */
    overflow: hidden;
    /* rasmni doira ichida ushlab turadi */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Rasmning o‘zi */
.logo1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* rasmni dumaloqga to‘liq joylashtiradi */
}

/* Matn dizayni (ixtiyoriy) */
.brand h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Umumiy burger1 stili */
.burger1 {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    border-radius: 10px;
    padding: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Har bir chiziq */
.burger1 span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* 🟦 Light mode */
:root.light .burger1 {
    background: linear-gradient(135deg, #007bff, #ff003c);
    /* orqa fon gradient */
}

:root.light .burger1 span {
    background: #0b0e14;
    /* qora chiziqlar */
}

/* 🌑 Dark mode */
:root:not(.light) .burger1 {
    background: #ffffff;
    /* oq fon */
}

:root:not(.light) .burger1 span {
    background: linear-gradient(90deg, #ff003c, #007bff);
    /* gradientli chiziqlar */
}

/* 🔄 Ochilganda “X” effekti */
.burger1.open span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.burger1.open span:nth-child(2) {
    opacity: 0;
}

.burger1.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Responsive */
@media (min-width: 901px) {
    .burger1 {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .burger1 {
        display: flex !important;
    }
}


/* ==========================================================End of home page ================================================================================= =========================================
================================================================================================================================================*/


:root {
    --grad-a: #667eea;
    --grad-b: #764ba2;
    --bg: #0b0e14;
    --muted: #0f1320;
    --text: #e9ecf1;
    --sub: #b8c0cc;
    --card: #101524;
    --line: #202636;
    --ok: #22c55e;
    --err: #ef4444;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 0;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(123, 127, 255, .15), transparent 60%),
        var(--bg);
}

.header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 21, 36, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    /* rasm doira ichida chiqishi uchun */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* rasm markazdan kesilib, dumaloqqa mos chiqadi */
}

h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--sub);
    font-size: 14px;
    line-height: 1.5;
}

.form-container {
    padding: 20px;
    padding-bottom: 100px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
}

.required {
    color: #ef4444;
    margin-left: 4px;
}

.optional {
    color: var(--sub);
    font-weight: 400;
    font-size: 13px;
    margin-left: 6px;
}

input,
textarea {
    width: 100%;
    padding: 18px 16px;
    background: var(--muted);
    border: 2px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

input:focus,
textarea:focus {
    border-color: var(--grad-a);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    background: var(--card);
}

textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Telefon ikki qatorga bo'linadi */
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.submit-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: rgba(16, 21, 36, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 100;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-message {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    animation: slideIn 0.3s ease;
    text-align: center;
}

.status-message.show {
    display: block;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.4);
    color: var(--ok);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: var(--err);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.info-note {
    margin-top: 20px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 13px;
    color: var(--sub);
    text-align: center;
    line-height: 1.6;
}

.config-section {
    margin: 20px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 14px;
}

.config-section h3 {
    color: var(--err);
    font-size: 16px;
    margin-bottom: 12px;
}

.config-section code {
    background: var(--muted);
    padding: 6px 10px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--grad-a);
    display: inline-block;
    margin: 4px 0;
}

.config-section ul {
    list-style: none;
    padding: 0;
}

.config-section li {
    color: var(--sub);
    font-size: 13px;
    line-height: 2;
    padding-left: 20px;
    position: relative;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Katta ekranlar uchun cheklash */
@media (min-width: 768px) {
    .form-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .submit-section {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Juda kichik ekranlar */
@media (max-width: 360px) {
    .name-row {
        grid-template-columns: 1fr;
    }
}