:root {
  --bg: #f6f3ef;
  --surface: #ffffff;
  --surface-soft: #f3ede8;
  --text: #25211f;
  --muted: #6f6660;
  --brand: #b98a62;
  --brand-dark: #946948;
  --line: rgba(37, 33, 31, 0.08);
  --shadow: 0 18px 45px rgba(34, 28, 24, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(185, 138, 98, 0.2), transparent 32%),
    linear-gradient(180deg, #f8f5f1 0%, #f5f0ea 100%);
  color: var(--text);
}

a {
  text-decoration: none;
}

.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(20, 16, 13, 0.08);
}

.navbar-brand {
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 24px;
  height: 24px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
  display: inline-block;
  border-top: 2px solid var(--text);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
}

.navbar-toggler-icon::before {
  top: 6px;
}

.navbar-toggler-icon::after {
  top: 14px;
}

.nav-link {
  color: var(--text);
  font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
  color: var(--brand-dark);
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 10px 20px rgba(148, 105, 72, 0.24);
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(185, 138, 98, 0.12);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.98;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.hero-tags,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tags span,
.pill-list span {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(185, 138, 98, 0.16);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  color: var(--text);
}

.hero-tags i,
.pill-list i {
  color: var(--brand-dark);
  margin-right: 0.45rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-stats {
  margin-top: 1rem;
}

.stat-card,
.info-card,
.panel-card,
.skill-card,
.interest-card,
.contact-box,
.profile-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.stat-card {
  padding: 1.3rem;
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.profile-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(185, 138, 98, 0.18), transparent 35%);
  pointer-events: none;
}

.profile-badge {
  display: inline-block;
  background: rgba(37, 33, 31, 0.08);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.profile-avatar {
  margin: 1rem 0 1.5rem;
  position: relative;
}

.avatar-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 30px rgba(148, 105, 72, 0.2);
}

.avatar-photo,
.avatar-initials {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  background: #fdf8f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.3rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.profile-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  position: relative;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.8;
  position: relative;
}

.contact-mini li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.contact-mini li:last-child {
  border-bottom: 0;
}

.contact-mini i,
.icon-wrap i,
.skill-head i,
.interest-card h3 i {
  color: var(--brand-dark);
}

.section-padding {
  padding: 5.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.42);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading.left-aligned {
  margin: 0 0 2rem;
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.info-card,
.panel-card,
.interest-card {
  padding: 2rem;
}

.info-card h3,
.skill-card h3,
.interest-card h3,
.timeline-content h3,
.education-item h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.info-card p,
.timeline-content p,
.timeline-content li,
.education-item,
.skill-card p,
.interest-card p,
.contact-list a {
  color: var(--muted);
  line-height: 1.8;
}

.icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(185, 138, 98, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 140px;
  width: 2px;
  background: rgba(185, 138, 98, 0.3);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.timeline-year {
  font-weight: 800;
  color: var(--brand-dark);
  position: relative;
  padding-top: 0.6rem;
}

.timeline-year::after {
  content: "";
  position: absolute;
  top: 0.95rem;
  right: -31px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 8px rgba(185, 138, 98, 0.16);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.timeline-content ul {
  padding-left: 1rem;
  margin-bottom: 0;
}

.education-item + .education-item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.school {
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.education-item span {
  color: var(--muted);
  font-weight: 600;
}

.language-item + .language-item {
  margin-top: 1.2rem;
}

.progress {
  height: 10px;
  background: #ede5de;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.6rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: 999px;
}

.skill-card {
  padding: 1.7rem;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skill-head i {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(185, 138, 98, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-head h3 {
  margin-bottom: 0.15rem;
}

.skill-head span {
  color: var(--brand-dark);
  font-weight: 700;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-box {
  padding: 2.4rem;
  background: linear-gradient(135deg, rgba(37, 33, 31, 0.95), rgba(84, 60, 42, 0.94));
  color: #fff;
}

.contact-box h2,
.contact-box p,
.contact-box .eyebrow {
  color: #fff;
}

.contact-box .eyebrow {
  background: rgba(255, 255, 255, 0.12);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
}

.contact-list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.contact-list i {
  width: 24px;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
  }

  .hero-section {
    min-height: auto;
    padding-top: 7rem;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 2rem;
    gap: 0.7rem;
  }

  .timeline-year::after {
    left: -29px;
    right: auto;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.7rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .avatar-ring {
    width: 150px;
    height: 150px;
  }

  .avatar-photo,
  .avatar-initials {
    width: 140px;
    height: 140px;
    font-size: 2.6rem;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .contact-box,
  .profile-card,
  .info-card,
  .panel-card,
  .skill-card,
  .interest-card {
    padding: 1.5rem;
  }
}

/* ===== Aloqa formasi ===== */
.contact-form .form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: 0.2s ease;
}

.contact-form .form-control::placeholder {
  color: #9a908a;
}

.contact-form .form-control:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(185, 138, 98, 0.3);
}

/* Honeypot maydonini yashirish */
.cf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Yuborish tugmasi + spinner */
#cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

#cf-submit .cf-spinner {
  width: 0;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: width 0.15s ease, opacity 0.15s ease;
}

#cf-submit.is-loading {
  cursor: progress;
  opacity: 0.9;
}

#cf-submit.is-loading .cf-spinner {
  width: 18px;
  opacity: 1;
  animation: cf-spin 0.7s linear infinite;
}

@keyframes cf-spin {
  to { transform: rotate(360deg); }
}

/* ===== Natija modali ===== */
.result-modal {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(34, 28, 24, 0.25);
  overflow: hidden;
}

.result-modal .modal-body {
  padding: 2.5rem 2rem 2rem;
}

.result-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  animation: cf-pop 0.4s cubic-bezier(0.22, 1.2, 0.4, 1);
}

.result-icon.is-success {
  background: linear-gradient(135deg, #34c759, #16a34a);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35);
}

.result-icon.is-error {
  background: linear-gradient(135deg, #ff6b6b, #e11d48);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.35);
}

@keyframes cf-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.result-title {
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.result-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ===== Brend logo ===== */
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(148, 105, 72, 0.28);
}

.navbar-brand span {
  font-weight: 800;
}

/* ===== Navbar ikonkalar ===== */
.navbar-nav .nav-link i {
  color: var(--brand);
  margin-right: 0.25rem;
  font-size: 0.9em;
}

.navbar .btn-brand i {
  margin-right: 0.3rem;
}

/* ===== Til tanlash dropdown ===== */
.lang-dropdown .lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  color: var(--text);
  transition: 0.2s ease;
}

.lang-dropdown .lang-current:hover {
  border-color: var(--brand);
  background: #fff;
}

.lang-dropdown .lang-current img {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.lang-dropdown .lang-current::after {
  margin-left: 0.15rem;
  color: var(--brand);
}

.lang-menu {
  min-width: 190px;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(34, 28, 24, 0.16);
  margin-top: 0.5rem !important;
}

.lang-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  transition: 0.15s ease;
}

.lang-menu .dropdown-item img {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lang-menu .dropdown-item:hover {
  background: var(--surface-soft);
}

.lang-menu .dropdown-item.active {
  background: rgba(185, 138, 98, 0.14);
  color: var(--brand-dark);
}

.lang-menu .dropdown-item .fa-check {
  font-size: 0.8rem;
  color: var(--brand);
}

@media (max-width: 991.98px) {
  .lang-dropdown {
    margin-top: 0.6rem;
  }
  .lang-dropdown .lang-current {
    width: fit-content;
  }
}
