@import url("https://fonts.googleapis.com/css2?family=Clicker+Script&family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --bg-black-900: #f2f2fc;
  --bg-black-100: #fdf9ff;
  --bg-black-50: #e8dfec;
  --text-black-900: #302e4d;
  --text-black-700: #504e70;
  --shadow-color: rgba(48, 46, 77, 0.15);

  /* Skin fayli yuklanmasa ham sayt rangsiz qolib ketmasligi uchun zaxira qiymat */
  --skin-color: #ec1839;
}

html.dark {
  --bg-black-900: #151515;
  --bg-black-100: #222222;
  --bg-black-50: #393939;
  --text-black-900: #ffffff;
  --text-black-700: #e9e9e9;
  --shadow-color: rgba(0, 0, 0, 0.6);
}

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

::before,
::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  background: var(--bg-black-900);
  color: var(--text-black-900);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.main-container,
.main-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
}

/* Klaviatura bilan yuruvchilar uchun fokus halqasi ko'rinib turishi shart.
   Sichqoncha bilan bosganda ko'rinmaydi (:focus-visible) */
:focus-visible {
  outline: 2px solid var(--skin-color);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skrinrider uchun ko'rinadi, ekranda ko'rinmaydi */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tab bosilganda birinchi chiqadigan havola — menyuni o'tkazib yuborish uchun */
.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 0 0 5px 5px;
  background: var(--skin-color);
  color: #fff;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

.hidden {
  display: none !important;
}

.padd-15 {
  padding-left: 10px;
  padding-right: 10px;
  min-width: 0; /* flex child text overflow oldini oladi */
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: auto;
  overflow-x: clip;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
  position: relative;
  max-width: calc(100% + 20px);
  width: auto;
  box-sizing: border-box;
}

.section {
  background: var(--bg-black-900);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  width: auto;
  display: block;
  /* Padding shell ichida — bo'lim butun o'ng panelni qoplaydi */
  padding: 0;
  opacity: 1;
  position: fixed;
  left: 270px;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  transition: left 0.3s ease;
  contain: layout;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-black-50) transparent;
  box-sizing: border-box;
}

/* Barcha bo'limlar uchun umumiy to'liq-en shell */
.section-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 48px 28px 100px;
  display: flex;
  flex-direction: column;
}

.section-head {
  margin-bottom: 28px;
  flex: 0 0 auto;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text-black-900);
  font-weight: 700;
  position: relative;
  margin: 0;
  display: inline-block;
}

.section-head h2::before {
  content: "";
  height: 4px;
  width: 50px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
}

.section-head h2::after {
  content: "";
  height: 4px;
  width: 25px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
}

.section-head .section-lead {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-black-700);
  max-width: 720px;
}

.section::-webkit-scrollbar {
  width: 8px;
}

.section::-webkit-scrollbar-thumb {
  background: var(--bg-black-50);
  border-radius: 8px;
}

.section::-webkit-scrollbar-track {
  background: transparent;
}

.section.back-section {
  z-index: 1;
}

.section.active {
  z-index: 2;
  opacity: 1;
  animation: slideSection 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Kichik siljish — 100% translateX gorizontal scroll berardi */
@keyframes slideSection {
  0% {
    opacity: 0;
    transform: translateX(28px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.section .container {
  max-width: none;
  width: 100%;
  padding: 48px 28px 100px;
  box-sizing: border-box;
}

.section-title {
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 40px;
  color: var(--text-black-900);
  font-weight: 700;
  position: relative;
}

.section-title h2::before {
  content: "";
  height: 4px;
  width: 50px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
}

.section-title h2::after {
  content: "";
  height: 4px;
  width: 25px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
}

.btn {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 35px;
  color: white;
  border-radius: 40px;
  display: inline-block;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  background: var(--skin-color);
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

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

.shadow-dark {
  box-shadow: 0 0 20px var(--shadow-color);
}

/* Mobil menyu orqasidagi qora parda */

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.show {
  opacity: 1;
}

/* Kompyuterda yon menyu doim ochiq — parda hech qachon kerak emas */
@media (min-width: 1200px) {
  .nav-backdrop {
    display: none;
  }
}

/* Yuqoriga qaytish tugmasi */

.scroll-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 100;
  height: 45px;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  background: var(--skin-color);
  box-shadow: 0 4px 15px var(--shadow-color);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* aside */

.aside {
  width: 270px;
  background: var(--bg-black-100);
  position: fixed;
  left: 0px;
  top: 0px;
  padding: 30px;
  height: 100%;
  border-right: 1px solid var(--bg-black-50);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.aside .logo {
  position: absolute;
  top: 50px;
  font-size: 30px;
  text-transform: capitalize;
}

.aside .logo a {
  font-weight: 700;
  color: var(--text-black-900);
  padding: 15px 20px;
  font-size: 30px;
  letter-spacing: 5px;
  position: relative;
}

.aside .logo a span {
  font-family: "Clicker Script", cursive;
  font-size: 40px;
}

.aside .logo a::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-bottom: 5px solid var(--skin-color);
  border-left: 5px solid var(--skin-color);
  bottom: 0;
  left: 0;
}

.aside .logo a::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-top: 5px solid var(--skin-color);
  border-right: 5px solid var(--skin-color);
  top: 0;
  right: 0;
}

.aside .nav-toggler {
  height: 40px;
  width: 45px;
  border: 1px solid var(--bg-black-50);
  cursor: pointer;
  position: fixed;
  left: 300px;
  top: 20px;
  border-radius: 5px;
  background: var(--bg-black-100);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.aside .nav-toggler span {
  height: 2px;
  width: 18px;
  background: var(--skin-color);
  display: inline-block;
  position: relative;
}

.aside .nav-toggler.open span {
  background-color: transparent;
}

.aside .nav-toggler span::before {
  content: "";
  height: 2px;
  width: 18px;
  background: var(--skin-color);
  position: absolute;
  left: 0px;
  top: -6px;
  transition: all 0.3s ease;
}

.aside .nav-toggler.open span::before {
  transform: rotate(45deg);
  top: 0;
}

.aside .nav-toggler span::after {
  content: "";
  height: 2px;
  width: 18px;
  background: var(--skin-color);
  position: absolute;
  left: 0px;
  top: 6px;
  transition: all 0.3s ease;
}

.aside .nav-toggler.open span::after {
  transform: rotate(-45deg);
  top: 0;
}

.aside .nav {
  margin-top: 50px;
}

.aside .nav li {
  margin-bottom: 20px;
  display: block;
}

.aside .nav li a {
  font-size: 16px;
  font-weight: 600;
  display: block;
  border-bottom: 1px solid var(--bg-black-50);
  color: var(--text-black-900);
  padding: 5px 15px;
  transition: color 0.3s ease;
}

.aside .nav li a:hover,
.aside .nav li a.active {
  color: var(--skin-color);
}

.aside .nav li a i {
  margin-right: 15px;
}

/* Til almashtirgich — umumiy (sidebar + blog post) */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--bg-black-50);
  background: var(--bg-black-100);
}

.lang-switcher button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-black-700);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-switcher button:hover {
  color: var(--skin-color);
}

.lang-switcher button.active {
  background: var(--skin-color);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--skin-color) 35%, transparent);
}

.lang-switcher button:focus-visible {
  outline: 2px solid var(--skin-color);
  outline-offset: 2px;
}

/* Sidebar pastidagi joylashuv */
.aside .lang-switcher {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
}

.aside .aside-social {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}

.aside .aside-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bg-black-50);
  color: var(--text-black-700);
  font-size: 16px;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.aside .aside-social a:hover {
  color: #fff;
  border-color: var(--skin-color);
  background: var(--skin-color);
}

/* home — avvalgidek balandlik + rasm to'liq; faqat X o'qi ichida */

.home {
  min-height: 100%;
  color: var(--text-black-900);
}

.home-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px 80px;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  /* style-switcher tugmalari uchun o'ngda biroz joy — X scroll chiqmasin */
  padding-right: max(50px, 72px);
}

.home-layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
  min-height: calc(100dvh - 140px);
  box-sizing: border-box;
}

.home .home-info {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 580px;
  text-align: left;
}

h3.hello {
  font-size: 28px;
  margin: 15px 0;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text-black-900);
}

h3.hello .name {
  font-family: "Clicker Script", cursive;
  font-size: 40px;
  font-weight: 700;
  color: var(--skin-color);
  margin-left: 0.2em;
}

h3.my-profession {
  font-size: 30px;
  margin: 15px 0;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-black-900);
  min-height: 1.4em;
}

.typing,
.typed-cursor {
  color: var(--skin-color);
}

.typing {
  display: inline-block;
  min-width: 2ch;
}

.home-info p {
  margin: 0 0 40px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-black-700);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.home-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 35px;
  white-space: nowrap;
}

.home .home-img {
  flex: 0 0 340px;
  width: 340px;
  max-width: 38%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img::before,
.home-img::after {
  display: none;
}

.home .home-img img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  /* balandlikni qisqartirmaymiz — to'liq rasm */
  max-height: none;
  border-radius: 5px;
  object-fit: contain;
}

/* About */

.about .about-content {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
}

.about .about-content .about-text {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.about .about-content .about-text h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-black-900);
}

/* Faqat kasb nomi rangli — ism qora matnda qoladi */
.about .about-content .about-text h3 .role {
  color: var(--skin-color);
}

.about .about-content .about-text p {
  font-size: 16px;
  line-height: 25px;
  color: var(--text-black-700);
  margin-bottom: 15px;
}

.about .about-content .personal-info {
  flex: 0 0 50%;
  max-width: 50%;
  margin-top: 40px;
}

.about .about-content .personal-info .info-item {
  flex: 0 0 50%;
  max-width: 50%;
}

.about .about-content .personal-info .info-item p {
  font-weight: 600;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-black-900);
  border-bottom: 1px solid var(--bg-black-50);
  word-break: break-word;
}

.about .about-content .personal-info .info-item p span,
.about .about-content .personal-info .info-item p a {
  font-weight: 400;
  color: var(--text-black-700);
  margin-left: 4px;
  display: inline-block;
}

/* Chapdagi nom ("Email :", "Telefon :" ...) — qiymatdan farqli, quyuqroq */
.about .about-content .personal-info .info-item p .info-label {
  font-weight: 600;
  color: var(--text-black-900);
  margin-left: 0;
}

.about .about-content .personal-info .info-item p a:hover {
  color: var(--skin-color);
}

.about .about-content .personal-info .buttons {
  margin-top: 30px;
}

.about .about-content .personal-info .buttons .btn {
  margin-top: 10px;
}

.about .about-content .skills {
  flex: 0 0 50%;
  max-width: 50%;
  margin-top: 40px;
}

.about .about-content .skills .skill-item {
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 25px;
}

.about .about-content .skills .skill-item h5 {
  line-height: 40px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-black-900);
  text-transform: uppercase;
}

.about .about-content .skills .skill-item .progress {
  background: var(--bg-black-50);
  height: 7px;
  border-radius: 4px;
  width: 100%;
  position: relative;
}

/* Boshlang'ich kengligi 0 — About bo'limi ochilganda JS uni data-width qiymatiga
   yetkazadi, natijada barlar chiroyli to'lib boradi */
.about .about-content .skills .skill-item .progress .progress-in {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--skin-color);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about .about-content .skills .skill-item .skill-percent {
  position: absolute;
  right: 0;
  color: var(--text-black-900);
  top: -40px;
  line-height: 40px;
  font-weight: 400;
}

.about .about-content .education,
.about .about-content .experience {
  flex: 0 0 50%;
  max-width: 50%;
  margin-top: 30px;
}

.about .about-content h3.title {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--text-black-900);
}

.about .about-content .timeline-box {
  flex: 0 0 100%;
  max-width: 100%;
}

.about .about-content .timeline {
  background-color: var(--bg-black-100);
  padding: 30px 15px;
  border: 1px solid var(--bg-black-50);
  border-radius: 10px;
  width: 100%;
  position: relative;
}

.about .about-content .timeline .timeline-item {
  position: relative;
  padding-left: 37px;
  padding-bottom: 50px;
}

.about .about-content .timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.about .about-content .timeline .timeline-item::before {
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 7px;
  top: 0;
  background-color: var(--skin-color);
}

.about .about-content .timeline .circle-dot {
  position: absolute;
  left: 0;
  top: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--skin-color);
}

.about .about-content .timeline .timeline-date {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-black-700);
}

.about .about-content .timeline .timeline-date .fa,
.about .about-content .timeline .timeline-date [class*="fa-"] {
  margin-right: 5px;
}

.about .about-content .timeline .timeline-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: capitalize;
  color: var(--text-black-900);
}

.about .about-content .timeline .timeline-text {
  line-height: 25px;
  font-size: 16px;
  color: var(--text-black-700);
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  align-content: start;
}

.service .service-item {
  margin: 0;
  padding: 0;
  flex: none;
  max-width: none;
  width: 100%;
  min-width: 0;
}

.service .service-item .service-item-inner {
  background-color: var(--bg-black-100);
  border: 1px solid var(--bg-black-50);
  border-radius: 10px;
  padding: 30px 15px;
  height: 100%;
  transition: box-shadow 0.3s ease;
  text-align: center;
}

.service .service-item .service-item-inner:hover {
  box-shadow: 0 0 20px var(--shadow-color);
}

.service .service-item .service-item-inner .icon {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 30px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.service .service-item .service-item-inner .icon [class*="fa-"] {
  font-size: 40px;
  line-height: 60px;
  color: var(--skin-color);
  transition: color 0.3s ease;
}

.service .service-item .service-item-inner:hover .icon {
  background-color: var(--skin-color);
}

.service .service-item .service-item-inner:hover .icon [class*="fa-"] {
  color: white;
}

.service .service-item .service-item-inner h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-black-900);
  font-weight: 700;
}

.service .service-item .service-item-inner p {
  font-size: 16px;
  color: var(--text-black-700);
  line-height: 25px;
}

/* Portfolio */
.portfolio-shell,
.blog-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 48px 28px 100px;
  display: flex;
  flex-direction: column;
}

.portfolio-head {
  margin-bottom: 28px;
  flex: 0 0 auto;
}

.portfolio-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text-black-900);
  font-weight: 700;
  position: relative;
  margin: 0;
  display: inline-block;
}

.portfolio-head h2::before {
  content: "";
  height: 4px;
  width: 50px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
}

.portfolio-head h2::after {
  content: "";
  height: 4px;
  width: 25px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
}

.portfolio-head .section-lead {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-black-700);
  max-width: 720px;
}

.portfolio .portfolio-grid {
  display: grid;
  /* Keng ekranda 3 ta ustun — butun enni to'ldiradi */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  flex: 1 1 auto;
  align-content: start;
}

.portfolio .portfolio-item {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.portfolio .portfolio-item-inner {
  background-color: var(--bg-black-100);
  border: 1px solid var(--bg-black-50);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.portfolio .portfolio-item-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.portfolio .portfolio-item-inner .portfolio-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.portfolio .portfolio-item-inner .portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.portfolio .portfolio-item-inner:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio .portfolio-info {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
}

.portfolio .portfolio-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black-900);
  margin: 0;
}

.portfolio .portfolio-info p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-black-700);
  margin: 0;
  flex: 1 1 auto;
}

.portfolio .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio .tech-list li {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--skin-color);
  border: 1px solid var(--skin-color);
}

.portfolio .portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.portfolio .portfolio-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--skin-color);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--skin-color) 45%, transparent);
  background: color-mix(in srgb, var(--skin-color) 8%, transparent);
  transition: background 0.2s, transform 0.2s;
}

.portfolio .portfolio-links a:hover {
  background: color-mix(in srgb, var(--skin-color) 16%, transparent);
  transform: translateY(-1px);
}

.portfolio .portfolio-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-black-700);
  background: var(--bg-black-50);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Blog list — to'liq o'ng panel */

.blog-head {
  margin-bottom: 28px;
  flex: 0 0 auto;
}

.blog-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text-black-900);
  font-weight: 700;
  position: relative;
  margin: 0;
  display: inline-block;
}

.blog-head h2::before {
  content: "";
  height: 4px;
  width: 50px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
}

.blog-head h2::after {
  content: "";
  height: 4px;
  width: 25px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
}

.blog-head .section-lead {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-black-700);
  max-width: 720px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  align-content: start;
}

.blog-card {
  background: var(--bg-black-100);
  border: 1px solid var(--bg-black-50);
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow-color);
  border-color: color-mix(in srgb, var(--skin-color) 35%, var(--bg-black-50));
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--skin-color);
  background: color-mix(in srgb, var(--skin-color) 12%, var(--bg-black-100));
}

.blog-card-meta time,
.blog-post-meta time {
  font-size: 12px;
  color: var(--text-black-700);
  opacity: 0.85;
}

.blog-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black-900);
  line-height: 1.35;
}

.blog-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-black-700);
  flex: 1 1 auto;
}

.blog-read-link {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--skin-color);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-link::after {
  content: "→";
}

.blog-read-link:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .blog-shell {
    padding: 56px 20px 90px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .blog-shell {
    padding: 64px 16px 90px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ========== Alohida blog post sahifasi ========== */

body.blog-post-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-black-900);
  overflow-x: hidden;
}

.blog-post-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 28px clamp(20px, 6vw, 80px) 60px;
  display: flex;
  flex-direction: column;
}

.blog-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--bg-black-100);
  border: 1px solid var(--bg-black-50);
  box-sizing: border-box;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-black-900);
  font-weight: 600;
  font-size: 14px;
}

.blog-back:hover {
  color: var(--skin-color);
}

.blog-post-lang {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.blog-post-article {
  width: 100%;
  max-width: 900px;
  flex: 1 1 auto;
  animation: riseIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.blog-post-article h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.25;
  color: var(--text-black-900);
  font-weight: 700;
}

.blog-post-lead {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-black-700);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-black-50);
}

.blog-post-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-black-700);
}

.blog-post-body p {
  margin: 0 0 18px;
}

.blog-post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-black-50);
}

.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 767px) {
  .blog-post-shell {
    padding: 20px 16px 48px;
  }

  .blog-post-article h1 {
    font-size: 24px;
  }
}

/*
  Havolalar rasm ostida, doim ko'rinib turadi.
  Ilgari ular faqat hover'da chiqardi — telefonda hover yo'q,
  ya'ni mobil foydalanuvchi loyihani umuman ocha olmasdi.
*/
.portfolio .portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.portfolio .portfolio-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-black-700);
  background: var(--bg-black-900);
  border: 1px solid var(--bg-black-50);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.portfolio .portfolio-links a:hover {
  color: #fff;
  background: var(--skin-color);
  border-color: var(--skin-color);
}

/* Contact — tartibli 2 ustunli layout */

.contact-intro {
  max-width: none;
  width: 100%;
  margin: 0 0 32px;
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-black-700);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-block-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-black-900);
  margin: 0 0 8px;
}

.contact-form-note {
  font-size: 13px;
  color: var(--text-black-700);
  margin: 0 0 22px;
  opacity: 0.9;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-black-100);
  border: 1px solid var(--bg-black-50);
  color: inherit;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  min-width: 0;
}

a.contact-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--skin-color) 45%, var(--bg-black-50));
  box-shadow: 0 10px 24px var(--shadow-color);
}

.contact-card--static {
  cursor: default;
}

.contact-card-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--skin-color) 12%, var(--bg-black-100));
  color: var(--skin-color);
  font-size: 18px;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-black-700);
  opacity: 0.85;
}

.contact-card-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-black-900);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form-panel {
  background: var(--bg-black-100);
  border: 1px solid var(--bg-black-50);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 28px var(--shadow-color);
}

.contact .contact-form {
  width: 100%;
  max-width: 100%;
}

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

.contact .form-group {
  margin-bottom: 16px;
  min-width: 0;
}

.contact .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-black-900);
  margin-bottom: 8px;
}

.contact .form-control {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background-color: var(--bg-black-900);
  border: 1px solid var(--bg-black-50);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-black-700);
  transition:
    box-shadow 0.3s ease,
    border-color 0.25s ease;
}

.contact .form-control:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--skin-color) 50%, var(--bg-black-50));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--skin-color) 18%, transparent);
}

.contact .form-control:invalid:not(:placeholder-shown) {
  border-color: #e04141;
}

.contact textarea.form-control {
  height: auto;
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
}

.contact .form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.contact .btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  box-shadow: 0 8px 20px rgba(42, 171, 238, 0.28);
  border-radius: 40px;
}

.contact .btn-telegram:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 24px rgba(42, 171, 238, 0.35);
}

.contact .btn-telegram i {
  font-size: 18px;
}

.contact .btn-telegram:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* Honeypot — off-screen */
.contact .hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.portfolio .portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-black-700);
  background: var(--bg-black-900);
  border: 1px dashed var(--bg-black-50);
}

.portfolio .portfolio-badge::before {
  content: "🔒";
  font-size: 12px;
}

.contact .form-status {
  margin-top: 0;
  font-size: 15px;
  color: var(--text-black-700);
  min-height: 22px;
}

.contact .form-status.success {
  color: #2e9e5b;
}

.contact .form-status.error {
  color: #e04141;
}

@media (max-width: 991px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  position: fixed;
  left: 270px;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  text-align: center;
  padding: 8px 16px 10px;
  font-size: 12px;
  color: var(--text-black-700);
  opacity: 0.75;
  background: linear-gradient(transparent, var(--bg-black-900));
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.site-footer p {
  pointer-events: auto;
}

.site-footer a {
  color: var(--skin-color);
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1199px) {
  .site-footer {
    left: 0;
  }
}

/* Responsive */

@media (max-width: 1199px) {
  .section .container {
    padding-top: 70px;
  }

  .aside {
    left: -270px;
  }

  .aside.open {
    left: 0;
  }

  .aside .nav-toggler {
    display: flex;
    left: 30px;
  }

  .aside .nav-toggler.open {
    left: 300px;
  }

  .section {
    left: 0;
  }

  .section.open {
    left: 270px;
  }

  /* Tor ekranda qiymat o'z qatoriga tushadi, nom esa joyida qoladi */
  .about .about-content .personal-info .info-item p span:not(.info-label) {
    display: block;
    margin-left: 0px;
  }
}

@media (max-width: 991px) {
  .section-shell,
  .portfolio-shell,
  .blog-shell {
    padding: 56px 20px 90px;
  }

  .service-grid,
  .portfolio .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .aside .lang-switcher {
    bottom: 72px;
  }

  .home-shell {
    padding: 70px 24px 80px;
  }

  .home-layout {
    flex-wrap: wrap;
    min-height: auto;
    gap: 30px;
  }

  .home .home-info {
    max-width: 100%;
    flex: 1 1 100%;
  }

  /* 991px dan kichikda rasm yashirin (joy yetmasa) */
  .home .home-img {
    display: none;
  }

  .home-info p {
    margin-bottom: 30px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .section-shell,
  .portfolio-shell,
  .blog-shell {
    padding: 64px 16px 90px;
  }

  .service-grid,
  .portfolio .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about .about-content .education,
  .about .about-content .experience,
  .about .about-content .skills,
  .about .about-content .personal-info {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .portfolio .portfolio-item-inner .portfolio-img {
    height: 200px;
  }

  .section-title h2,
  .section-head h2 {
    font-size: 32px;
  }
}

/* Harakat kamaytirilgan rejim yoqilgan foydalanuvchilar uchun animatsiyalarni o'chiramiz */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
