/* ==========================================================================
   ПАЙВАСТ КАРДАНИ ШРИФТИ ROBOTO АЗ GOOGLE FONTS (КИРИЛЛӢ)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --text-muted: #475569;
  /* Шаффофияти заминаи менюро барои намуди равшан (Light) беҳтар мекунем */
  --navbar-bg: rgba(248, 250, 252, 0.6); 
  --border-color: rgba(0, 0, 0, 0.06);
  --primary-color: #0070f3;
  --primary-hover: #0051b3;
  --badge-bg: #e0f2fe;
  --badge-text: #0284c7;
  --shadow-color: rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   ДИЗАЙНИ НАВ ВА ПРЕМИУМИ СКРОЛЛБАР
   ========================================================================== */

/* 1. Барои браузерҳои Webkit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 10px; /* Борикии скроллбар */
  background-color: transparent; /* Заминаи асосӣ шаффоф */
}

/* Натиҷаи ҳаракаткунанда (Трак/Хат) */
::-webkit-scrollbar-track {
  background: var(--bg-track, rgba(0, 0, 0, 0.05));
  border-radius: 10px;
}

/* Худи "тиллоча"-и скроллбар (Бегунок) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #007bff, #00d2ff); /* Градиенти кабуди неонӣ */
  border-radius: 10px;
  border: 2px solid transparent; /* Фосила дар байни хат */
  background-clip: padding-box;
  transition: all 0.3s ease;
}

/* Вақте ки мушро болои скроллбар мебаред */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0056b3, #00a2ff); /* Ранги ториктар ва дурахшонтар */
  border: 1px solid transparent;
}

/* 2. Барои браузери Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #007bff transparent;
}

/* Адаптатсия барои Мавзӯи Торик (Dark Mode) */
[data-theme="dark"] {
  --bg-track: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d2ff, #7000ff); /* Градиенти кабуд-бунафши футуристӣ */
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00a2ff, #5a00cc);
}


[data-theme="dark"] {
  --bg-color: #0b0f19;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  /* Шаффофияти заминаи менюро барои намуди торик (Dark) беҳтар мекунем */
  --navbar-bg: rgba(11, 15, 25, 0.6); 
  --border-color: rgba(255, 255, 255, 0.06);
  --badge-bg: #1e293b;
  --badge-text: #38bdf8;
  --shadow-color: rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   СКРОЛЛБАР БО АНИМАТСИЯИ БЕОХИРИ НЕОНӢ (НАМОЁНТАР ВА УСТУВОРТАР)
   ========================================================================== */

/* Андозаи умумии скроллбар - паҳнои онро ба таври намоён зиёд кардем */
::-webkit-scrollbar {
  width: 16px; /* Аз 10px ба 14px зиёд шуд, то қапидан ва диданаш осон бошад */
}

/* Хатти замина (Трак) - онро каме равшантар кардем, то сӯрохии скроллбар маълум бошад */
::-webkit-scrollbar-track {
  background: var(--bg-track, rgba(0, 0, 0, 0.06));
  border-radius: 12px;
}

/* "Тиллоча"-и намоён ва мудаввари скроллбар бо ҳаракати беохири ранг */
::-webkit-scrollbar-thumb {
  border-radius: 12px;
  /* Фосилаи 2px дар атрофи скроллбар барои эффекти зебои лавҳа (pill effect) */
  border: 3px solid transparent; 
  background-clip: padding-box;
  
  /* Градиенти дурахшони неонӣ */
  background-image: linear-gradient(180deg, #007bff, #00d2ff, #7000ff, #007bff);
  background-size: 100% 300%;
  
  /* Аниматсияи равони рангҳо */
  animation: neonScrollWave 5s linear infinite;
  
  /* Сояи сабуки дурахшанда */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Ҳангоми hover кардани муш, скроллбар боз ҳам дурахшонтар ва ҷолибтар метобад */
::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg, #0056b3, #00a2ff, #5a00cc, #0056b3);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.8); /* Эффекти дурахшиши қавӣ */
}

/* ==========================================================================
   АНИМАТСИЯИ БЕОХИРИ МАВҶИ РАНГ
   ========================================================================== */
@keyframes neonScrollWave {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 300%;
  }
}

/* СТИЛҲО БАРОИ РЕЖИМИ ШАБОНА (DARK MODE) */
[data-theme="dark"] {
  --bg-track: rgba(255, 255, 255, 0.08); /* Дар заминаи торик сӯрохӣ намоёнтар мешавад */
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background-image: linear-gradient(180deg, #00d2ff, #7000ff, #ff007f, #00d2ff);
  background-size: 100% 300%;
  box-shadow: 0 0 5px rgba(0, 210, 255, 0.4);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg, #00a2ff, #5a00cc, #cc0066, #00a2ff);
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.9); /* Дурахшиши сурх-бунафш дар режими шабона */
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100vh; 
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: hidden; 
  transition: background-color 0.4s ease;
  
  /* Истифодаи шрифти Roboto */
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   МЕНЮИ БОЛО (NAVBAR) БО ЭФФЕКТИ ШАФФОФИЯТ ВА BLUR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--navbar-bg) !important; /* Маҷбуран татбиқ кардани ранги шаффоф */
  
  /* Эффекти хирашавӣ (Blur) */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5px 40px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 157px;
  height: 82px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 15px;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.theme-btn svg {
  width: 20px;
  height: 20px;
}

.custom-dropdown {
  position: relative;
  user-select: none;
  cursor: pointer;
}

.dropdown-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: transparent;
  color: var(--text-color);
  font-weight: 600;
  font-size: 14px;
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 110px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-color);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1100;
}

.dropdown-options.show {
  display: flex;
}

.option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.option:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.option.active {
  background-color: rgba(0, 112, 243, 0.08);
  color: var(--primary-color);
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.menu-bars {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-bars span {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
}

.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 92px; 
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #0070f3;
  border-radius: 50%;
}

.hero-title {
  font-size: 46px;
  font-weight: 900; 
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 16px;
}

.text-blue {
  color: var(--primary-color);
}

.hero-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-filled {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.2);
}

.btn-filled:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outlined {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outlined:hover {
  background-color: rgba(0, 112, 243, 0.04);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-slider-wrapper {
  position: relative;
  width: 566px;
  height: 440px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-color);
  justify-self: end;
}

.slider-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.slide {
  width: 33.3333%;
  height: 100%;
}

.slider-img {
  width: 566px;
  height: 440px;
  display: block;
  object-fit: cover;
}

.slider-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 56px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #ffffff;
}

.indicator.active .progress-bar {
  animation: progressAnim 5s linear forwards;
}

@keyframes progressAnim {
  0% { width: 0%; }
  100% { width: 100%; }
}

@media (max-width: 1024px) {
  html, body { height: auto; overflow-y: auto; }
  .hero-section { height: auto; padding: 120px 0 60px; }
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-badge, .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .hero-slider-wrapper { justify-self: center; }
}

@media (max-width: 768px) {
  html, body { height: auto; overflow-y: auto; }
  
  /* Эффекти матовии меню дар телефонҳо низ кор кунад */
  .navbar { 
    background-color: var(--navbar-bg) !important; 
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    
    /* ИСЛОҲИ АСОСӢ: Ранги заминаро каме зичтар мекунем (0.85), то матнҳои пушти он тамоман халал нарасонанд */
    background-color: rgba(248, 250, 252, 0.85); 
    
    /* Барномарезии ҷудогона барои Dark Theme дар мобилӣ */
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    display: none; 
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: left;
  }

  /* Ислоҳ барои менюи торик дар мобилӣ, то дар кушодашавӣ заминаи торики зич дошта бошад */
  [data-theme="dark"] .nav-menu {
    background-color: rgba(11, 15, 25, 0.85);
  }
  
  .nav-menu.open { display: flex; }
  .menu-bars { display: flex; }
  .menu-bars.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .menu-bars.open span:nth-child(2) { opacity: 0; }
  .menu-bars.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-section { height: auto; padding: 100px 0 40px 0; }
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-badge, .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .hero-slider-wrapper { justify-self: center; width: 100%; max-width: 440px; height: auto; aspect-ratio: 566 / 440; }
  .slider-img { width: 100%; height: 100%; }
}

#neonStormCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999; 
  pointer-events: none; 
  mix-blend-mode: screen; 
}

/* ИН ҚИСМҲО ИСЛОҲ ШУДАНД, ТО БА BLUR-И NAVBAR ХАЛАЛ НАРАСОНАНД */
:root { --main-bg: #f1f5f9; }
[data-theme="dark"] { --main-bg: #030712; }

body { 
  background-color: var(--bg-color); 
  transition: background-color 0.3s ease; 
  font-family: 'Roboto', sans-serif;
}

.hero-section { background: transparent !important; }

/* ==========================================================================
   ИЛОВАҲО БАРОИ СЛАЙДЕРИ СУРАТҲО (TOUCH & DRAG)
   ========================================================================== */
.hero-slider-wrapper {
  cursor: grab;
  touch-action: pan-y; 
  user-select: none;
}

.hero-slider-wrapper:active {
  cursor: grabbing;
}

.slider-img {
  pointer-events: none; 
  -webkit-user-drag: none;
}

.slider-track.grabbing {
  transition: none !important;
}

/* ==========================================================================
   МАСХУС БАРОИ АНИМАТСИЯИ ПАЙДОШАВИИ НАРМ (SMOOTH FADE-IN)
   ========================================================================== */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px); 
  transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1), 
              transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1);
  will-change: opacity, transform;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-section { /* ё кадом классе ки секцияи аввали шумо дорад */
  padding-bottom: 120px; /* Фосилаи калон ва муосир барои нафас гирифтани сайт */
}

/* Барои телефонҳо фосиларо каме хурдтар мекунем */
@media (max-width: 768px) {
  .hero-section {
    padding-bottom: 60px;
  }
}
















/* ==========================================================================
   СТИЛҲОИ МАСХУС БАРОИ МИНИ-ЧАТБОТ
   ========================================================================== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000; /* Дар болои Canvas ва Navbar меистад */
  font-family: 'Roboto', sans-serif;
}

/* Тугмаи асосии чат */
.chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 112, 243, 0.35);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-trigger:hover {
  transform: scale(1.08);
}

.chat-icon-svg {
  width: 26px;
  height: 26px;
}

/* Аниматсияи палсатсияи тугма */
.chat-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: chatPulse 2.2s infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes chatPulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { opacity: 0.3; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Равзанаи чат (Glassmorphism) */
.chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  height: 500px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 12px 40px var(--shadow-color);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.chat-window.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* Сарлавҳаи чат */
.chat-header {
  background: var(--navbar-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--badge-bg);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
}

.chat-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border: 2px solid var(--bg-color);
  border-radius: 50%;
}

.chat-bot-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
}

.chat-bot-status {
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.chat-close-btn:hover {
  color: var(--text-color);
}

/* Паёмҳо */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgFadeIn 0.35s ease forwards;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background-color: var(--badge-bg);
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background-color: var(--primary-color);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Тугмаҳои омодашуда */
.chat-quick-replies {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.01);
}

.chat-btn {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-color);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chat-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateX(4px);
}

/* Мобилӣ */
@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 120px);
    bottom: 70px;
  }
}


/* ==========================================================================
   Ислоҳшуда: РАВЗАНАИ ЧАТ (ИСТИҚЛОЛИЯТИ РАНГ ВА БАЛАНДИИ ДУРУСТ)
   ========================================================================== */
.chat-window {
  position: absolute;
  /* Ба ҷои bottom: 76px, мо масофаро устувор мекунем, то аз экран берун наравад */
  bottom: 75px;
  right: 0;
  width: 360px;
  /* Баландии максималиро 450px мекунем, то дар ҳама гуна экранҳои компютер комилан ҷой гирад */
  height: 450px; 
  
  /* Ранги замина (АКНУН ОМЕХТА НАМЕШАВАД): Дар Light намуди сафеди тоза ва дар Dark намуди панели махсус */
  background-color: #ffffff; 
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  
  /* Сояи амиқ ва касбӣ (Drop Shadow) барои ҷудо шудан аз заминаи сайт */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
  
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
}

/* Навсозии ранги равзанаи чат барои НАМУДИ ТОРИК (Dark Mode) */
[data-theme="dark"] .chat-window {
  background-color: #151d30; /* Ранги кабуди торики бой, ки аз заминаи сайт фарқ мекунад */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 112, 243, 0.1); /* Эффекти дурахши сусти кабуд */
}

/* Сарлавҳаи чат (Header) */
.chat-header {
  /* Ранги сарлавҳаро каме ҷиддитар мекунем, то аз ҷисми чат ҷудо шавад */
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .chat-header {
  background-color: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Қисми паёмҳо */
.chat-messages {
  flex: 1;
  padding: 16px; /* Каме хурдтар мекунем, то паёмҳо зиёдтар ҷой гиранд */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  /* Барои он ки заминаи паёмҳо тоза бошад */
  background-color: transparent;
}

/* ПАЁМИ БОТ (Ҷудошавии ранг аз замина) */
.chat-msg.bot {
  background-color: #f1f5f9; /* Ранги хокистарии равшани мулоим */
  color: #0f172a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

[data-theme="dark"] .chat-msg.bot {
  background-color: #222e4a; /* Ранги фарқкунанда дар Dark Mode */
  color: #f1f5f9;
}

/* ТУГМАҲОИ САВОЛҲОИ ЗУД */
.chat-quick-replies {
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #fafafa;
}

[data-theme="dark"] .chat-quick-replies {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-color: #121826;
}

/* Стили тугмаҳо */
.chat-btn {
  width: 100%;
  padding: 9px 12px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 112, 243, 0.3); /* Сарҳадҳои мулоими кабуд */
  color: #0070f3;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .chat-btn {
  background-color: #1a233a;
  border: 1px solid rgba(0, 112, 243, 0.4);
  color: #38bdf8;
}

.chat-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff !important;
  border-color: var(--primary-color);
  transform: translateX(3px);
}


/* ==========================================================================
   МАЙДОНИ НАВИШТАНИ САВОЛ БАРОИ КОРБАР (INPUT AREA)
   ========================================================================== */
.chat-input-container {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  gap: 10px;
}

[data-theme="dark"] .chat-input-container {
  background-color: #151d30;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-input-container input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f8fafc;
  color: var(--text-color);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

[data-theme="dark"] .chat-input-container input {
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-container input:focus {
  border-color: var(--primary-color);
  background-color: #ffffff;
}

[data-theme="dark"] .chat-input-container input:focus {
  background-color: #1a233a;
}

/* Тугмаи фиристодан (Сарватманди кабуд) */
#chatSendBtn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#chatSendBtn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.03);
}

#chatSendBtn:active {
  transform: scale(0.97);
}

#chatSendBtn svg {
  width: 18px;
  height: 18px;
  transform: translate(-1px, 1px); /* Барои марказикунонии визуалии нишонаи ракета */
}



















/* Ислоҳи умумӣ барои имконияти scroll шудан ба поёни сайт */
html, body {
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* ===== SERVICES SECTION STYLES (LIQUID GLASS IMPLEMENTATION) ===== */
.services-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
  background-color: transparent; /* Трансферент барои дидани видео */
}

/* Контейнери заминаи видеоӣ */
.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none; /* Ба скролл ва клик халал намерасонад */
}

.video-bg-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Оверлейи сояафкан барои контрасти матни болоӣ */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.4) 0%, rgba(11, 15, 25, 0.2) 100%);
}

.container-services {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

/* Эффекти Асосии ШИШАИ МОЕЪ (LIQUID GLASS) */
.scard {
  /* Заминаи шаффофи равшан/торик мутобиқ ба iOS 26 */
  background: rgba(255, 255, 255, 0.45);
  
  /* Сарҳади шишагин, ки нурро мешиканад */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 36px;
  
  /* Хирагии баланд барои заминаи видео */
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  
  position: relative;
  overflow: hidden;
  
  /* Сояи мулоими шишагин */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05),
              0 4px 12px 0 rgba(0, 0, 0, 0.03);
              
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Мутобиқсозии Эффекти Шиша барои Темаи Торик (Dark Theme) */
[data-theme="dark"] .scard {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2),
              0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

/* Линияи дурахшони болои корт (Градиенти Нарм) */
.scard::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Эффектҳои Hover барои Liquid Glass */
.scard:hover { 
  transform: translateY(-8px) scale(1.01); 
  border-color: rgba(0, 112, 243, 0.4);
  box-shadow: 0 20px 40px rgba(0, 112, 243, 0.15),
              0 8px 16px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .scard:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 8px 24px rgba(56, 189, 248, 0.08);
}

.scard:hover::after { 
  transform: scaleX(1); 
}

.scard:hover .scard-icon { 
  background: var(--primary-color); 
  color: #ffffff; 
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 20px rgba(0, 112, 243, 0.3);
}

/* Иконкаҳо дар даруни корт */
.scard-icon { 
  width: 52px;
  height: 52px;
  background: rgba(0, 112, 243, 0.1);
  color: var(--primary-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  margin-bottom: 24px; 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 112, 243, 0.15);
}

[data-theme="dark"] .scard-icon {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.15);
}

.scard-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scard-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.scard-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.3s;
}

/* Рӯйхати имконот */
.scard-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scard-list li {
  font-size: 0.875rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.list-check {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
}

/* Адаптивӣ барои планшет ва телефон */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 60px 0;
  }
  .container-services {
    padding: 0 24px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .scard {
    padding: 28px;
  }
}


















/* ==========================================================================
   СТИЛҲОИ СЕКЦИЯИ МАҲСУЛОТҲО ВА АНИМАТСИЯИ 3D FLIP (2 КОРТ ДАР РАВЗАНА)
   ========================================================================== */
.products-section {
  padding: 80px 0;
  background-color: var(--bg-color, #ffffff);
  position: relative;
  scroll-margin-top: 80px;
  transition: background-color 0.4s ease;
}

.container-products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Сарлавҳаҳо */
.products-header {
  text-align: center;
  margin-bottom: 40px;
}

.products-main-title {
  font-size: 42px;
  font-weight: 800;
  color: #007bff;
  margin-bottom: 15px;
  font-family: system-ui, -apple-system, sans-serif;
}

.products-sub-text {
  font-size: 18px;
  color: #444444;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
  font-family: system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] .products-sub-text {
  /* Ранг барои режими шабона (сафед ё хокистарии равшан) */
  color: #e0e0e0;
}

/* Слайдер ва Контейнери Маҳдудшуда барои 2 Корт */
.products-slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-carousel-wrapper {
  /* Ҳар як корт 480px аст. 480 * 2 = 960px. Ин танҳо 2 кортро дар равзана ҷой медиҳад */
  width: 960px;
  overflow: hidden;
  padding: 20px 0;
}

.products-track {
  display: flex;
  width: max-content;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card-holder {
  width: 480px; /* Паҳнои устувори корт */
  display: flex;
  justify-content: center;
  padding: 0 11px; /* Масофаи байни кортҳо мутаносиб шуд */
  box-sizing: border-box;
}

/* Сохтори Аниматсияи 3D Flip */
.flip-card {
  background-color: transparent;
  width: 457px;
  height: 485px;
  perspective: 1500px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

/* ИСЛОҲШУДА: Вақте ки муш дар болои корт меистад (Hover), он чаппа мешавад */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.flip-card-front {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-card-back {
  background-color: #fff;
  transform: rotateY(180deg);
  position: relative;
}

/* ИСЛОҲШУДА: Танзим барои нишон додани тугмаи скачат дар тарафи қафои корт */
.flip-card-back::after {
  content: "⬇ Скачать PDF";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: system-ui, sans-serif;
  font-weight: bold;
  font-size: 14px;
  opacity: 1; /* Опасити 1 шуд, чунки худи корт танҳо дар hover намоён мешавад */
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.prod-img, .prod-img-back {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Тасмаҳои ранга */
.prod-tag-bar {
  width: 100%;
  padding: 15px 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
}

.tag-green { background-color: #73cd00; }
.tag-blue { background-color: #0099ff; }

/* Тугмаҳои Навигатсия */
.prod-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  background-color: #007bff;
  border: none;
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.prod-nav-btn:hover {
  background-color: #0056b3;
  transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* Адаптатсия барои экранҳои хурд */
@media (max-width: 1060px) {
  .products-carousel-wrapper {
    width: 480px; /* Дар экранҳои миёна танҳо 1 корт нишон медиҳад */
  }
}

@media (max-width: 520px) {
  .products-carousel-wrapper {
    width: 100%;
  }
  .product-card-holder {
    width: calc(100vw - 40px);
  }
  .flip-card {
    width: 100%;
    height: 420px;
  }
  .prev-btn { left: -10px; }
  .next-btn { right: -10px; }
}




















/* ===== PLATFORM MAIN REVISION ===== */
#platform {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: system-ui, -apple-system, sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* СТИЛИ САРЛАВҲАҲО МИСЛИ РАСМ */
.section-tag {
  background: #e1efff;
  color: #0079fe;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e2640;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.section-sub {
  font-size: 1rem;
  color: #69758d;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

/* ГРИД БАРОИ ТАРАФИ ЧАП ВА РОСТ */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

/* ТАРАФИ ЧАП: РӮЙХАТ */
.plist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plist li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  /* Аниматсияи мулоим барои hover */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

/* АНИМАТСИЯИ HOVER БАРОИ РӮЙХАТ */
.plist li:hover {
  border-color: rgba(0, 121, 254, 0.25);
  box-shadow: 0 12px 30px rgba(0, 121, 254, 0.06);
  transform: translateX(6px); /* Корт мулоим ба рост ҳаракат мекунад */
}

.plist li:hover .pl-icon {
  color: #0079fe;
  transform: scale(1.1); /* Иконка каме калон мешавад */
}

.pl-icon {
  width: 24px;
  height: 24px;
  color: #1e2640;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.pl-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pl-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e2640;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.pl-desc {
  font-size: 0.88rem;
  color: #69758d;
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* ТАРАФИ РОСТ: СОХТОРИ КОРТҲО */
.platform-screens-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.pscreen {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  box-sizing: border-box;
  /* Аниматсияи мулоими кортҳо */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* АНИМАТСИЯИ HOVER БАРОИ КОРТҲОИ ОНГӮША */
.pscreen:hover {
  border-color: rgba(0, 121, 254, 0.3);
  box-shadow: 0 20px 40px rgba(0, 121, 254, 0.08);
  transform: translateY(-6px); /* Корт мулоим ба боло мехезад */
}

.pscreen:hover .pscreen-icon {
  transform: scale(1.12) rotate(3deg); /* Иконка каме калон ва тоб мехӯрад */
}

.pscreen:hover .pscreen-tag,
.pscreen:hover .pscreen-subtag {
  color: #0056b3; /* Ранги линкҳо ҳангоми ховер тиратар мешавад */
}

/* Корти болоии Веб-панел */
.pscreen.web-panel-card {
  background: #e8f3ff; /* Ранги заминаи кабуди нозук */
  padding: 50px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Қисми поёнӣ: Ду корт дар як саф */
.mobile-apps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pscreen.app-card {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* СТИЛИ ИКОНКАҲО ДАР ТАРАФИ РОСТ */
.pscreen-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pscreen-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Рангҳои иконкаҳо */
.icon-web { color: #0079fe; }
.icon-android { color: #3ddc84; }
.icon-apple { color: #000000; transition: color 0.3s ease; }

.pscreen-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e2640;
  transition: color 0.3s ease;
}

.pscreen-tag {
  font-size: 0.85rem;
  color: #0079fe;
  text-decoration: none;
  margin-top: 8px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.pscreen-subtag {
  font-size: 0.85rem;
  color: #0079fe;
  margin-top: 6px;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* АДАПТИВНОСТЬ БАРОИ ТЕЛЕФОНҲО ВА ТАБЛЕТҲО */
@media (max-width: 992px) {
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .mobile-apps-row {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   ФУНКСИЯИ МОҲТОБ ВА ОФТОБ (DARK MODE СТИЛҲО)
   Адаптатсияи пиксел ба пиксел барои режими шабона
   ========================================================================== */
[data-theme="dark"] #platform {
  background-color: #0b0f19; /* Заминаи торики футуристӣ */
}

[data-theme="dark"] .section-tag {
  background: rgba(0, 121, 254, 0.15);
  color: #3b9eff;
}

[data-theme="dark"] .section-title {
  color: #ffffff;
}

[data-theme="dark"] .section-sub {
  color: #8a99ad;
}

/* Рӯйхати чап дар Режими Торик */
[data-theme="dark"] .plist li {
  background: #131926;
  border-color: #1f293d;
}

[data-theme="dark"] .plist li:hover {
  border-color: rgba(0, 121, 254, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pl-icon {
  color: #ffffff;
}

[data-theme="dark"] .plist li:hover .pl-icon {
  color: #3b9eff;
}

[data-theme="dark"] .pl-title {
  color: #ffffff;
}

[data-theme="dark"] .pl-desc {
  color: #8a99ad;
}

/* Кортҳои рост дар Режими Торик */
[data-theme="dark"] .pscreen.web-panel-card {
  background: rgba(0, 121, 254, 0.08); /* Градиент ё заминаи нозуки торики неонӣ */
  border-color: rgba(0, 121, 254, 0.2);
}

[data-theme="dark"] .pscreen.app-card {
  background: #131926;
  border-color: #1f293d;
}

[data-theme="dark"] .pscreen:hover {
  border-color: rgba(0, 121, 254, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pscreen-name {
  color: #ffffff;
}

[data-theme="dark"] .icon-apple {
  color: #ffffff; /* Иконкаи Apple дар мавзӯи торик сафед мешавад */
}

[data-theme="dark"] .pscreen-tag,
[data-theme="dark"] .pscreen-subtag {
  color: #3b9eff;
}

[data-theme="dark"] .pscreen:hover .pscreen-tag,
[data-theme="dark"] .pscreen:hover .pscreen-subtag {
  color: #6faeff;
}


















/* ===== 3-COLUMN REVIEWS LAYOUT (DIZAYNI NAV БО АНИМАТСИЯИ ПРЕМИУМ) ===== */
#reviews {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  font-family: system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.reviews-grid-3x {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  perspective: 1000px; /* Барои эффектҳои 3D дар ховер */
}

/* Адаптатсия ба телефонҳо */
@media (max-width: 992px) {
  .reviews-grid-3x {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .reviews-grid-3x {
    grid-template-columns: 1fr;
  }
}

.review-card-premium {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  
  /* Аниматсияи бениҳоят мулоим барои ҳамаи хосиятҳо */
  transition: 
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

/* Эффекти Ховери асосии корт */
.review-card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 121, 254, 0.08);
  border-color: rgba(0, 121, 254, 0.2);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.review-stars {
  color: #ffb800;
  font-size: 1.15rem;
  letter-spacing: 2px;
  transition: transform 0.3s ease;
}

.review-card-premium:hover .review-stars {
  transform: scale(1.05);
}

.quote-icon {
  font-size: 2.8rem;
  color: #0079fe;
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
  transform: rotate(0deg) scale(1);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Эффекти пружина */
}

/* Ороиши ховер барои иконкаи нохунак */
.review-card-premium:hover .quote-icon {
  opacity: 0.35;
  transform: rotate(-15deg) scale(1.2);
  color: #0079fe;
}

.review-text-content {
  font-size: 0.98rem;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 rgba(0, 121, 254, 0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ороиши ховер барои аватари мизоҷ */
.review-card-premium:hover .user-avatar-circle {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(0, 121, 254, 0.2);
}

.user-main-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a202c;
  transition: color 0.3s ease;
}

.user-city-company {
  font-size: 0.82rem;
  color: #718096;
  margin-top: 2px;
}

/* ===== СТИЛҲО БАРОИ DARK MODE ===== */
[data-theme="dark"] .review-card-premium {
  background: #131926;
  border-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .review-card-premium:hover {
  border-color: rgba(0, 121, 254, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  background: #171f30;
}

[data-theme="dark"] .review-text-content {
  color: #cbd5e1;
}

[data-theme="dark"] .user-main-name {
  color: #ffffff;
}

[data-theme="dark"] .user-city-company {
  color: #94a3b8;
}

[data-theme="dark"] .quote-icon {
  color: #38bdf8;
}

/* АНИМАТСИЯИ ПАЙДОИШҲОИ НАВБАТӢ (STAGGERED DELAYS) */
.reviews-grid-3x .review-card-premium:nth-child(1) { transition-delay: 0s; }
.reviews-grid-3x .review-card-premium:nth-child(2) { transition-delay: 0.1s; }
.reviews-grid-3x .review-card-premium:nth-child(3) { transition-delay: 0.2s; }




























/* ==========================================================================
   FAQ SECTION - PREMIUM ACCORDION
   ========================================================================== */
/* ==========================================================================
   FAQ SECTION - PREMIUM ACCORDION (UPDATED WITH ADVANCED HOVER & ANIMATIONS)
   ========================================================================== */
.faq-container-premium {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-title-line {
  width: 60px;
  height: 4px;
  background-color: #0079fe; /* Ранги кабуди бренди шумо */
  margin: 12px auto 40px auto;
  border-radius: 2px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 18px; /* Масофаи байни кортҳо андаке калонтар шуд */
  margin-top: 20px;
}

/* Асоси корт ва аниматсияи гузариши умумӣ */
.faq-item {
  background: var(--card-bg, #ffffff);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0 4px cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s ease,
              background-color 0.4s ease;
}

/* Ҳолати Dark-Тема */
[data-theme="dark"] .faq-item {
  background: #18191a;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

/* 1. ЭФФЕКТИ HOVER БАРОИ КОРТ (Ҳаракат ба боло ва амиқшавии соя) */
.faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 121, 254, 0.3);
  box-shadow: 0 12px 30px rgba(0, 121, 254, 0.08);
  background: var(--card-hover-bg, #fafcff);
}

[data-theme="dark"] .faq-item:hover {
  border-color: rgba(0, 121, 254, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  background: #1f2124;
}

/* Тугмаи савол */
.faq-question-btn {
  width: 100%;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  font-size: 19px; /* Андаке калонтар барои хондани осон */
  font-weight: 600;
  color: var(--text-color, #1d1d1f);
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

[data-theme="dark"] .faq-question-btn {
  color: #f5f5f7;
}

/* Тағйири ранги матни савол дар Hover */
.faq-item:hover .faq-question-btn {
  color: #0079fe;
}

/* Нишонаи тирча (Arrow Icon) */
.faq-arrow-icon {
  width: 22px;
  height: 22px;
  color: #86868b; /* Ранги нейтралӣ дар ҳолати оддӣ */
  fill: none;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              color 0.3s ease,
              transform-origin 0.3s ease;
}

/* Ранги тирча дар вақти hover кардани корт */
.faq-item:hover .faq-arrow-icon {
  color: #0079fe;
  animation: arrowBounce 1s infinite alternate; /* Аниматсияи микро-ҳаракат */
}

/* 2. ЭФФЕКТИ ACTIVE (Вақте савол кушода аст) */
.faq-item.active {
  border-color: #0079fe;
  box-shadow: 0 10px 35px rgba(0, 121, 254, 0.12);
  background: var(--card-active-bg, #f4f8ff);
}

[data-theme="dark"] .faq-item.active {
  border-color: #0079fe;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  background: #151a22; /* Кабудтоби торик барои дизайни премиум */
}

/* Вақте кушода аст, матн ҳамеша кабуд мемонад */
.faq-item.active .faq-question-btn {
  color: #0079fe;
}

/* Чарх задани тирча дар ҳолати кушода ва қатъ шудани аниматсияи bounce */
.faq-item.active .faq-arrow-icon {
  color: #0079fe;
  transform: rotate(180deg) !important;
  animation: none !important; 
}

/* Сохтори махсус барои аниматсияи баландии ҷавоб */
.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer-content {
  padding: 0 30px 28px 30px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #515154;
  /* Аниматсияи пайдошавии матн аз поён ба боло ҳангоми кушода шудан */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-theme="dark"] .faq-answer-content {
  color: #a1a1a6;
}

/* Вақте аккордеон фаъол аст, матни ҷавоб бо плавность пайдо мешавад */
.faq-item.active .faq-answer-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s; /* Интизорӣ то кушода шудани баландӣ */
}

/* 3. МИКРО-АНИМАТСИЯ БАРОИ ТИРЧА ДАР HOVER */
@keyframes arrowBounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px); /* Андаке ба поён ҳаракат мекунад, ки ишора ба кушодашавӣ аст */
  }
}
























/* ==========================================================================
   ABOUT & INSTAGRAM WIDGET STYLES (UPDATED)
   ========================================================================== */
.about-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--body-bg, #ffffff);
}

/* Контейнери марказӣ барои маҳдуд кардани паҳно мувофиқи хати сурх */
.about-container {
  max-width: 1200px; /* Паҳнои максималӣ мувофиқи тарҳи умумии сомона */
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .about-container {
    grid-template-columns: 2fr 1fr; /* Таносуби устувор барои видео ва инстаграм */
  }
}

.about-header {
  margin-bottom: 30px;
}

.about-main-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 10px;
  color: var(--text-color, #111827);
}

[data-theme="dark"] .about-main-title {
  color: #ffffff;
}

/* Сеткаи навшуда барои маҳз 2 видео */
.videos-grid.two-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .videos-grid.two-videos {
    grid-template-columns: repeat(2, 1fr); /* Танҳо 2 сутун мешавад */
  }
}

/* Картаи Видео */
.video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  aspect-ratio: 9 / 16; 
}

.video-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 142, 240, 0.2);
}

.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Оверлей ва Тугмаи Play */
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.play-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, color 0.3s;
}

.play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

.video-card:hover .play-btn {
  transform: scale(1.1);
  background: #ffffff;
  color: #008ef0;
}

.video-card.playing .play-btn {
  opacity: 0;
  transform: scale(0.5);
}

.video-card.playing:hover .play-btn {
  opacity: 1;
  transform: scale(1);
}

/* КОНТЕЙНЕРИ ИНСТАГРАМ */
.about-instagram-sidebar {
  position: sticky;
  top: 100px;
}

.instagram-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
}

[data-theme="dark"] .instagram-card {
  background: #111c2a;
  border-color: rgba(255, 255, 255, 0.05);
}

.insta-banner-bg {
  height: 90px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.insta-profile-wrapper {
  margin-top: -50px;
  display: flex;
  justify-content: center;
}

.insta-avatar-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.insta-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.insta-info {
  padding: 24px;
}

.insta-username-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.insta-username {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .insta-username {
  color: #ffffff;
}

.insta-verified-badge {
  color: #0095f6;
  width: 18px;
  height: 18px;
}

.insta-stats {
  margin-bottom: 16px;
}

.stat-count {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
}

[data-theme="dark"] .stat-count {
  color: #ffffff;
}

.stat-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.insta-bio {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 24px;
}

[data-theme="dark"] .insta-bio {
  color: #9ca3af;
}

.insta-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: #008ef0;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

/* Тугмаи Обуна Шавӣ (Instagram Button) */
.insta-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px; /* Паддингҳои мутаносиб барои тугма */
  border-radius: 12px;
  background: #008ef0; /* Ранги бренди кабуд */
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 142, 240, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
}

/* Ислоҳи асосӣ: Маҳдуд кардани андозаи иконкаи даруни тугма */
.insta-follow-btn .arrow-icon {
  width: 18px;  /* Андозаи устувори иконка */
  height: 18px; /* Андозаи устувори иконка */
  display: inline-block;
  flex-shrink: 0; /* То ин ки иконка фишурда нашавад */
  transition: transform 0.3s ease;
}

/* Эффектҳо ҳангоми наздик бурдани муш (Hover) */
.insta-follow-btn:hover {
  background: #0077ca; /* Ранги каме тиратар барои фидбек */
  box-shadow: 0 6px 20px rgba(0, 142, 240, 0.4);
  transform: translateY(-2px); /* Ба боло хестани тугма */
}

/* Ҷунбиши тирча ба самти рост ҳангоми hover */
.insta-follow-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Эффект ҳангоми пахш кардан (Active) */
.insta-follow-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 142, 240, 0.2);
}
body {
  padding-top: 80px; /* Айнан баробари баландии менюи шумо */
}






















/* ==========================================================================
   CONTACT SECTION PREMIUM STYLES
   ========================================================================== */
/* ==========================================================================
   CONTACT SECTION PREMIUM STYLES (UPDATED & FULLY RESPONSIVE)
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  background-color: var(--body-bg, #ffffff);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .contact-section {
  background-color: #0b131f;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px; /* Адаптив барои телефонҳо */
  box-sizing: border-box;
}

/* Сарлавҳа */
.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 142, 240, 0.1);
  color: #008ef0;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.contact-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px 0;
}

[data-theme="dark"] .contact-main-title {
  color: #ffffff;
}

.contact-subtitle {
  font-size: 1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

[data-theme="dark"] .contact-subtitle {
  color: #9ca3af;
}

/* Сетка (Grid) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px; /* Кам кардани масофа дар мобилӣ */
  align-items: start;
}

@media (min-width: 992px) {
  .contact-section {
    padding: 100px 0;
  }
  .contact-header {
    margin-bottom: 60px;
  }
  .contact-main-title {
    font-size: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
  }
  .contact-container {
    padding: 0 20px;
  }
}

/* ТАРАФИ ЧАП: Кортҳо */
.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px; /* Паддинги хурдтар барои телефонҳо */
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s;
}

[data-theme="dark"] .info-card {
  background: #111c2a;
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.info-card:not(.non-clickable):hover {
  transform: translateY(-4px);
  border-color: rgba(0, 142, 240, 0.3);
  box-shadow: 0 12px 30px rgba(0, 142, 240, 0.12);
}

.info-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 142, 240, 0.08);
  color: #008ef0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.info-card:not(.non-clickable):hover .info-icon-wrapper {
  background: #008ef0;
  color: #ffffff;
}

.info-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden; /* Барои он ки матнҳои дароз дар телефон берун набароянд */
}

.info-label {
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Стили зебо агар email дароз бошад */
}

[data-theme="dark"] .info-value {
  color: #ffffff;
}

.info-card:not(.non-clickable):hover .info-value {
  color: #008ef0;
}

/* ТАРАФИ РОСТ: Форма */
.contact-form-wrapper {
  background: #ffffff;
  padding: 24px; /* Оптимизатсия барои мобилӣ */
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .contact-form-wrapper {
  background: #111c2a;
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

@media (min-width: 576px) {
  .contact-form-wrapper {
    padding: 40px;
    border-radius: 24px;
  }
}

.form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px 0;
}

[data-theme="dark"] .form-title {
  color: #ffffff;
}

.main-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
}

[data-theme="dark"] .input-group label {
  color: #9ca3af;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}

[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group textarea,
[data-theme="dark"] .input-group select {
  border-color: rgba(255, 255, 255, 0.1);
  background: #162231;
  color: #ffffff;
}

/* Ислоҳи кашолакунии паём (Textarea Resize Disable) */
.input-group textarea {
  resize: none; /* Манъи калон ва хурд кардан бо муш */
}

/* Фокус эффектҳо */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: #008ef0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 142, 240, 0.1);
}

[data-theme="dark"] .input-group input:focus,
[data-theme="dark"] .input-group textarea:focus,
[data-theme="dark"] .input-group select:focus {
  background: #111c2a;
}

/* Услуби махсус барои теги Select ва Option */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.input-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

/* Дизайни рӯйхати Option */
.input-group select option {
  padding: 12px;
  background-color: #ffffff;
  color: #111827;
}

[data-theme="dark"] .input-group select option {
  background-color: #162231;
  color: #ffffff;
}

/* Тугмаи Фиристодан */
.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #008ef0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 142, 240, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-submit-btn:hover {
  background: #0077ca;
  box-shadow: 0 6px 20px rgba(0, 142, 240, 0.35);
  transform: translateY(-2px);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.submit-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.form-submit-btn:hover .submit-arrow {
  transform: translateX(4px);
}
















/* ===== FOOTER MODERN DESIGN BY NAZARZODA ===== */
footer {
  background: #0b111e; /* Заминаи ниҳоят гаронбаҳо ва торик (Premium Dark Slate) */
  color: #94a3b8;
  padding: 85px 0 35px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Эффекти дурахши заминаи футер (Subtle Glow Background) */
footer::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* СЕТКАИ АСОСӢ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

/* СУТУНИ БРЕНД */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-logo-wrapper {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.footer-logo-wrapper:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.footer-custom-logo {
  width: 190px;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 300px;
}

/* СУТУНҲОИ ЛИНКҲО */
.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  position: relative;
}

/* Хатти нозуки зери заголовок */
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 18px;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-links-col:hover .footer-col-title::after {
  width: 32px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Эффекти олии Hover барои Линкҳо */
.footer-links-list a {
  font-size: 0.92rem;
  color: #94a3b8;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links-list a::before {
  content: '→';
  position: absolute;
  left: -12px;
  opacity: 0;
  color: #38bdf8;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(-5px);
}

.footer-links-list a:hover {
  color: #38bdf8;
  transform: translateX(14px);
}

.footer-links-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* БАХШИ ИНТЕРАКТИВИИ АЛОҚА */
.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #94a3b8;
  group: hover;
  transition: color 0.25s ease;
}

/* Контейнери махсус барои иконкаҳо */
.footer-icon-wrapper {
  width: 34px;
  height: 34px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-icon-wrapper svg {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-contact-text {
  font-size: 0.92rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-email-text {
  font-size: 0.88rem;
}

/* Аниматсияи муштараки сутун дар ховер */
.footer-contact-link:hover .footer-icon-wrapper {
  background: #38bdf8;
  border-color: #38bdf8;
  transform: scale(1.08) rotate(5deg);
}

.footer-contact-link:hover .footer-icon-wrapper svg {
  color: #0b111e;
}

.footer-contact-link:hover .footer-contact-text {
  color: #f8fafc;
  transform: translateX(2px);
}

/* САТРИ ПОЁНӢ (BOTTOM BAR) */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: #475569;
}

.footer-legal-links {
  display: flex;
  gap: 32px;
}

.footer-legal-link, .footer-author-link {
  font-size: 0.85rem;
  color: #475569;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.footer-legal-link:hover {
  color: #94a3b8;
}

/* Стили махсус ва аниматсия барои имзои худатон */
.footer-author-link {
  font-weight: 500;
}
.footer-author-link:hover {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* АДАПТИВНОСТЬ (RESPONSIVE) */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 65px 0 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-brand-col {
    align-items: center;
    text-align: center;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links-list, .footer-contact-info {
    align-items: center;
  }
  .footer-links-list a:hover {
    transform: translateX(4px);
  }
  .footer-links-list a::before {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-legal-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}