/* ==========================================================================
   RTTM — mavzu ustidan zamonaviy qatlam
   --------------------------------------------------------------------------
   main.css (FlexStart mavzusi) o'zgartirilmaydi: barcha yangi uslublar shu
   faylda. Uni o'chirib qo'ysangiz sayt asl mavzu ko'rinishiga qaytadi.
   ========================================================================== */

:root {
  --rttm-radius: 14px;
  --rttm-radius-sm: 10px;
  --rttm-shadow: 0 6px 24px rgba(1, 41, 112, 0.08);
  --rttm-shadow-hover: 0 14px 36px rgba(1, 41, 112, 0.14);
  --rttm-gradient: linear-gradient(135deg, #4154f1 0%, #6c5ce7 55%, #0dcaf0 100%);
  --rttm-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }

/* Sticky header ostida langarlar (#about, #contact) yashirinib qolmasin */
section[id], [id].section { scroll-margin-top: 90px; }

::selection { background: rgba(65, 84, 241, .18); }

/* ── Klaviatura bilan foydalanish ─────────────────────────────────────── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--accent-color); color: #fff; padding: 10px 16px;
  border-radius: var(--rttm-radius-sm); font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
#main:focus { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(65, 84, 241, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.header {
  transition: box-shadow .3s var(--rttm-ease), background-color .3s;
}
.scrolled .header {
  background-color: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 4px 20px rgba(1, 41, 112, .08);
}
.header .btn-getstarted { border-radius: 999px; padding-inline: 22px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 6px 14px; margin-bottom: 18px;
  font-size: .82rem; font-weight: 600; letter-spacing: .2px;
  color: var(--accent-color);
  background: rgba(65, 84, 241, .08);
  border: 1px solid rgba(65, 84, 241, .18);
  border-radius: 999px;
}
.hero h1 { letter-spacing: -.5px; }
.hero .btn-get-started { border-radius: 999px; box-shadow: 0 10px 24px rgba(65, 84, 241, .28); }
.hero .btn-get-started:hover { transform: translateY(-2px); }

.hero-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 28px;
}
.hero-quick-label { font-size: .85rem; color: #6c757d; margin-right: 4px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: .85rem; font-weight: 500;
  color: var(--heading-color); background: #fff;
  border: 1px solid rgba(1, 41, 112, .1); border-radius: 999px;
  box-shadow: 0 2px 8px rgba(1, 41, 112, .05);
  transition: transform .2s var(--rttm-ease), box-shadow .2s, border-color .2s, color .2s;
}
.hero-chip i { color: var(--accent-color); }
.hero-chip:hover {
  color: var(--accent-color); border-color: rgba(65, 84, 241, .35);
  transform: translateY(-2px); box-shadow: 0 8px 18px rgba(65, 84, 241, .14);
}

/* ── Bo'lim sarlavhalari ──────────────────────────────────────────────── */
.section-title h2 {
  background: rgba(65, 84, 241, .08);
  border: 1px solid rgba(65, 84, 241, .15);
}

/* ── Kartochkalar: umumiy yumshoq ko'rinish ───────────────────────────── */
.values .card,
.services .service-item,
.team .team-member,
.recent-posts .post-item,
.stats .stats-item,
.contact .info-item,
.features .feature-box {
  border-radius: var(--rttm-radius);
  transition: transform .35s var(--rttm-ease), box-shadow .35s var(--rttm-ease);
}
.values .card:hover,
.team .team-member:hover,
.recent-posts .post-item:hover,
.stats .stats-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--rttm-shadow-hover);
}

/* Xizmatlar */
.services .service-item { overflow: hidden; }
.services .service-item .icon { transition: transform .35s var(--rttm-ease); }
.services .service-item:hover .icon { transform: scale(1.12) rotate(-4deg); }
.services .service-item:hover { transform: translateY(-6px); }

/* Jamoa: turli o'lchamdagi rasmlar bir xil ko'rinsin */
/* Kartochka ustun enini to'liq egallasin: aks holda flex ichida rasm
   eniga qarab qisqarib, har bir kartochka turli kenglikda chiqardi */
.team .team-member { width: 100%; display: flex; flex-direction: column; }
.team .team-member .member-info { flex: 1; }
.team .team-member .member-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s var(--rttm-ease);
}
.team .team-member:hover .member-img img { transform: scale(1.05); }
.team .team-member .member-info h4 { font-size: 1.02rem; line-height: 1.35; }

/* Statistika */
.stats .stats-item { box-shadow: var(--rttm-shadow); }
.stats .stats-item i {
  width: 58px; height: 58px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px; font-size: 28px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

/* Yangiliklar */
.recent-posts .post-item { overflow: hidden; box-shadow: var(--rttm-shadow); }
.recent-posts .post-item .post-img img { transition: transform .6s var(--rttm-ease); }
.recent-posts .post-item:hover .post-img img { transform: scale(1.06); }
.recent-posts .post-item .post-date { border-radius: 0 0 0 var(--rttm-radius-sm); }

/* FAQ */
.faq .faq-container .faq-item {
  border-radius: var(--rttm-radius-sm);
  transition: box-shadow .25s, border-color .25s;
}
.faq .faq-container .faq-active { box-shadow: var(--rttm-shadow); }

/* ── Bog'lanish formasi ───────────────────────────────────────────────── */
.contact .info-item { box-shadow: var(--rttm-shadow); background: #fff; }
.contact .info-item i {
  display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(65, 84, 241, .08);
}
.contact .php-email-form {
  border-radius: var(--rttm-radius);
  box-shadow: var(--rttm-shadow);
  background: #fff;
}
.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  border-radius: var(--rttm-radius-sm);
  padding: 12px 16px;
  background-color: #f8f9fc;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(65, 84, 241, .12);
}
/* Asl mavzuda placeholder kontrasti ~1.7:1 edi — o'qish qiyin */
.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder { color: #6c757d; }
.contact .php-email-form button[type=submit] {
  border-radius: 999px; padding: 12px 34px; font-weight: 600;
  box-shadow: 0 10px 22px rgba(65, 84, 241, .25);
}
.contact .php-email-form button[type=submit]:hover { transform: translateY(-2px); }
.contact .php-email-form button[type=submit]:disabled { opacity: .65; transform: none; }

/* ── Sahifa sarlavhasi (ichki sahifalar) ──────────────────────────────── */
.page-title .heading {
  background:
    radial-gradient(1200px 300px at 10% -10%, rgba(65, 84, 241, .10), transparent 60%),
    radial-gradient(900px 260px at 95% 0%, rgba(13, 202, 240, .10), transparent 60%);
}

/* ── Blog ─────────────────────────────────────────────────────────────── */
.blog .post-item .post-img img,
.blog-details .post-img img { transition: transform .6s var(--rttm-ease); }
.blog .post-item:hover .post-img img { transform: scale(1.03); }
.blog .widgets-container,
.blog-details .widgets-container { border-radius: var(--rttm-radius); }
.pagination .page-link { border-radius: 10px !important; margin: 0 3px; border: 0; }
.pagination .page-item.active .page-link { box-shadow: 0 6px 14px rgba(13, 110, 253, .3); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer .social-links a { transition: transform .2s, background-color .2s, color .2s; }
.footer .social-links a:hover { transform: translateY(-3px); }

/* ── Yuqoriga ko'tarilish tugmasi ─────────────────────────────────────── */
.scroll-top { border-radius: 50%; box-shadow: 0 8px 20px rgba(65, 84, 241, .35); }

/* ── Harakatni kamaytirish so'ralgan bo'lsa (OS sozlamasi) ────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ── Mobil ────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .header .logo .sitename { font-size: 24px; }
  .header .btn-getstarted { padding: 6px 14px; font-size: .82rem; margin-left: 8px; }
  .hero-quick { margin-top: 22px; }
  .hero-quick-label { width: 100%; }
  .hero-chip { font-size: .8rem; padding: 6px 12px; }
  .hero-eyebrow { font-size: .75rem; }
}
