/* ==========================================================================
   UB-MODE DOMAIN STYLE SYSTEM & ADVANCED MOTION ENGINE
   Integrated with:
   - landing-page-design (conversion architecture, crisp typography, tokens)
   - design-to-motion (story loops, smooth interactions, animated counters)
   - replica-diff (interactive before/after slider)
   - high-contrast starfield canvas
   ========================================================================== */

:root {
  --bg-main: #030712;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-main);
}

/* Starfield Background Canvas */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Cursor Glow */
.interactive-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  z-index: 2;
  filter: blur(40px);
}

/* ==========================================================================
   NAVIGATION BAR WITH EXACT DARK CAPSULE TABS
   ========================================================================== */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px;
}

.nav-container {
  width: min(1140px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-badge {
  padding: 2px 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.dark-nav-capsule {
  display: flex;
  align-items: center;
  background: #121316;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 5px;
  gap: 3px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.capsule-tab {
  padding: 8px 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

.capsule-tab:hover {
  color: #ffffff;
}

.capsule-tab.active {
  background: #23252b;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-contact-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  font-size: 13.5px !important;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              background 0.22s ease;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.38);
}

.btn-contact-nav:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.58);
}

/* ==========================================================================
   MAIN CONTAINER & SECTIONS
   ========================================================================== */
.main-container {
  position: relative;
  z-index: 10;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 140px;
}

.section-header {
  margin-bottom: 36px;
  text-align: left;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 620px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 50px 0 90px;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
}

.hero-pill {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.hero-title {
  position: relative;
  z-index: 5;
  font-size: clamp(38px, 6.2vw, 70px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  color: #ffffff;
}

.hero-description {
  position: relative;
  z-index: 5;
  font-size: clamp(16px, 2vw, 19.5px);
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 42px;
}

.hero-cta-group {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 30px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 25px rgba(56, 189, 248, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  outline: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 35px rgba(56, 189, 248, 0.65);
}

.btn-secondary {
  padding: 14px 28px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(31, 41, 55, 0.85);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* ==========================================================================
   PART 3: INFINITE MARQUEE (Social Proof)
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 24px 0;
  margin-bottom: 70px;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13.5px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.marquee-item span {
  color: #fff;
  font-weight: 600;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   STATS METRICS
   ========================================================================== */
.stats-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 110px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.stat-number {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PART 1: BENTO SHOWCASE (LIVE STORY LOOPS & MOTION)
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-bottom: 120px;
  perspective: 1000px;
}

.portfolio-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease-out, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
}

.portfolio-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(56, 189, 248, 0.15);
}

.card-span-7 { grid-column: span 7; }
.card-span-5 { grid-column: span 5; }
.card-span-6 { grid-column: span 6; }

.work-preview-screen {
  height: 250px;
  background: #090e1a;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.work-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}

.portfolio-card:hover .work-preview-img {
  transform: scale(1.04);
}

.work-preview-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.live-url-pill {
  padding: 5px 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 11px;
  font-family: var(--font-mono);
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.portfolio-card:hover .live-url-pill {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
}

.work-hover-action {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.portfolio-card:hover .work-hover-action {
  opacity: 1;
}

.btn-hover-visit {
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  transform: translateY(6px);
  transition: transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-card:hover .btn-hover-visit {
  transform: translateY(0);
}

.live-visit-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.live-visit-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Interactive Story Loop Screens inside Cards */
.story-screen {
  width: 90%;
  height: 86%;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Dashboard live chart */
.live-dashboard-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.dash-metrics-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.dash-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 95px;
  padding-top: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-bar-interactive {
  flex: 1;
  background: linear-gradient(180deg, var(--accent-cyan), rgba(56, 189, 248, 0.2));
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.portfolio-card:hover .chart-bar-interactive {
  background: linear-gradient(180deg, #38bdf8, #818cf8);
}

/* Keyboard Typing Live Simulation */
.keyboard-interactive-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
}

.typing-demo-box {
  background: #0f172a;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #38bdf8;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.keyboard-key-row {
  display: flex;
  gap: 8px;
}

.key-glow-pill {
  padding: 8px 14px;
  background: #1e293b;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.portfolio-card:hover .key-glow-pill {
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

/* News Ticker Loop */
.news-ticker-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
}

.news-item-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0f172a;
  border-radius: 8px;
  font-size: 12.5px;
  border-left: 3px solid #38bdf8;
  color: #cbd5e1;
}

.work-details {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tech-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.work-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.work-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}

.work-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: gap 0.25s, color 0.2s;
  cursor: pointer;
}

.work-link:hover {
  gap: 12px;
  color: #7dd3fc;
}

/* ==========================================================================
   PART 4: BEFORE / AFTER INTERACTIVE SLIDER (Replica-Diff)
   ========================================================================== */
.diff-slider-wrapper {
  margin-bottom: 120px;
}

.diff-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.diff-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.diff-before {
  background: #0f172a;
  color: #ef4444;
}

.diff-after {
  background: radial-gradient(circle at 60% 40%, #0369a1 0%, #020617 80%);
  color: #10b981;
}

.diff-inner-card {
  max-width: 480px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.diff-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 12px;
}

.diff-badge-before {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.diff-badge-after {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.diff-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
  cursor: ew-resize;
  z-index: 30;
}

.diff-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  border: 3px solid #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}

/* ==========================================================================
   PART 2: INTERACTIVE PRICING & COST CALCULATOR
   ========================================================================== */
.calculator-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 120px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.calc-label {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: block;
}

.calc-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.calc-type-btn {
  padding: 12px 10px;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.calc-type-btn:hover {
  border-color: #38bdf8;
  color: #fff;
}

.calc-type-btn.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #fff;
  font-weight: 600;
}

.calc-slider {
  width: 100%;
  accent-color: #38bdf8;
  margin-bottom: 20px;
  cursor: pointer;
}

.calc-result-panel {
  background: #090e1a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-price-display {
  font-size: 42px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.03em;
  margin: 10px 0;
}

.calc-approx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.calc-approx-tag {
  font-size: 11.5px;
  color: #f59e0b;
  font-weight: 600;
  margin-left: 6px;
}

.calc-note-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.65);
  border-left: 2px solid #f59e0b;
  border-radius: 4px;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.55;
}

.calc-count-badge {
  color: #38bdf8;
  font-weight: 700;
}

.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #cbd5e1;
  cursor: pointer;
}

.calc-check-input {
  accent-color: #38bdf8;
}

.calc-res-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: #94a3b8;
  text-transform: uppercase;
}

.calc-time-text {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 12px;
}

.calc-warranty-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.about-title-h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.about-desc-p {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ==========================================================================
   PART 5: ACCORDION FAQ
   ========================================================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 120px;
  max-width: 860px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  user-select: none;
}

.faq-icon {
  font-size: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--accent-cyan);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s;
  padding: 0 24px;
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 22px;
}

/* ==========================================================================
   PART 6: MODAL POPUP & TELEGRAM FORM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: min(520px, 100%);
  background: #0d1527;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #070b14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #38bdf8;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.6);
}

/* ==========================================================================
   SERVICES & FOOTER
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 110px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.service-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.service-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 27, 75, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px 30px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-sub {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 34px;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: #0088cc;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(0, 136, 204, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 136, 204, 0.65);
}

/* ==========================================================================
   HARMONIZED 48PX CTA ACTION BUTTON SYSTEM
   Unified height, pill curvature, typography & vector icon micro-interactions
   ========================================================================== */
.contact-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.cta-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.22s ease,
              border-color 0.22s ease,
              color 0.22s ease;
  outline: none;
}

.cta-action-btn svg {
  flex-shrink: 0;
  transition: transform 0.22s ease;
  vertical-align: middle;
}

.cta-action-btn:hover svg {
  transform: scale(1.08);
}

/* 1. Primary Action: Ariza qoldirish */
.cta-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.38);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.58);
}

/* 2. Telegram Messenger */
.cta-btn-telegram {
  background: #0088cc;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(0, 136, 204, 0.35);
}

.cta-btn-telegram:hover {
  transform: translateY(-2px);
  background: #0099e6;
  box-shadow: 0 8px 26px rgba(0, 136, 204, 0.55);
}

/* 3. Glass Outlines: Direct Call & Presentation PDF */
.cta-btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-btn-glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.22);
}

@media (max-width: 640px) {
  .contact-options {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cta-action-btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .dark-nav-capsule { display: none; }
  .card-span-7, .card-span-5, .card-span-6 { grid-column: span 12; }
  .calc-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ADVANCED EXPANSION SUITE: AUDIO, AUDIT, PORTFOLIO FILTER, CASE STUDY,
   TECH RADAR, TESTIMONIALS, MAGNETIC CURSOR & I18N
   ========================================================================== */

/* 1. Custom Magnetic Cursor */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.06s ease-out, background-color 0.2s;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.22s,
              border-color 0.22s,
              transform 0.12s ease-out;
}

.custom-cursor-ring.cursor-hover {
  width: 52px;
  height: 52px;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.85);
}

@media (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* 2. Nav Controls (Language Switcher & Sound Toggle) */
.nav-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-toggle-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sound-toggle-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
  transform: scale(1.06);
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 4px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.lang-btn:hover:not(.active) {
  color: #fff;
}

/* 3. Site Audit Simulator */
.audit-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin-bottom: 70px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.audit-box::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.audit-search-row {
  max-width: 680px;
  margin: 0 auto 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.audit-input {
  flex: 1;
  background: rgba(3, 7, 18, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 14px 22px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.25s;
}

.audit-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.audit-run-btn {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border: none;
  border-radius: var(--radius-full);
  color: #030712;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 26px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.4);
}

.audit-run-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.6);
}

.audit-presets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.preset-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

/* Audit Loading Animation */
.audit-progress-container {
  max-width: 680px;
  margin: 0 auto 30px;
  display: none;
}

.audit-progress-container.active {
  display: block;
}

.audit-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.audit-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.audit-status-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  text-align: center;
}

/* Audit Results Grid */
.audit-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
  display: none;
}

.audit-results-grid.visible {
  display: grid;
  animation: fadeInModal 0.4s ease-out;
}

.audit-card {
  border-radius: var(--radius-md);
  padding: 24px;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-subtle);
}

.audit-card.before {
  border-color: rgba(239, 68, 68, 0.3);
}

.audit-card.after {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.03);
}

.audit-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 700;
}

.audit-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.metric-score-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.metric-bad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.metric-good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 4. Portfolio Category Filter Bar */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.filter-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.22s;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.3);
}

.filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

/* 5. Case Study Modal */
.case-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.case-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.case-modal-card {
  background: #090d16;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 38px 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.case-metric-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.case-metric-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.case-metric-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.case-challenge-box {
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
}

.case-solution-box {
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
}

/* 6. Interactive Tech Stack Showcase */
.tech-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 70px;
}

@media (min-width: 1024px) {
  .tech-radar-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.tech-radar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.tech-radar-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-radar-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.tech-radar-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
}

.tech-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: var(--radius-full);
}

.tech-radar-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 7. Testimonials & Real ROI Metrics */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 70px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.28s;
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.client-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.client-role {
  font-size: 12px;
  color: var(--text-muted);
}

.roi-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .audit-results-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
}

/* 9. In-Page Toast Notification */
.toast-notification {
  position: fixed;
  top: 80px;
  right: 24px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(56, 189, 248, 0.3);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   THEME TOGGLE BUTTON (KUNDUZGI / TUNGI REJIM) — SLEEK HARDWARE SWITCH
   ========================================================================== */
.theme-toggle-btn {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: #94a3b8;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  user-select: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  transform: scale(1.06);
}

.theme-toggle-btn:active {
  transform: scale(0.96);
}

/* SVG icons styling & rotation */
.theme-svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

/* In Dark mode: show Sun SVG icon */
.theme-svg-sun {
  display: block;
  color: #94a3b8;
}
.theme-toggle-btn:hover .theme-svg-sun {
  color: #38bdf8;
  transform: rotate(30deg);
}

.theme-svg-moon {
  display: none;
}

/* ==========================================================================
   SCROLL TO TOP FLOATING BUTTON
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(56, 189, 248, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.55);
}

.scroll-top-btn:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 640px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   STUDIO PROJECTS HIGHLIGHT IN AUDIT SIMULATOR
   ========================================================================== */
.audit-card.studio-highlight {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.12);
}

.metric-studio {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   LIGHT MODE / DAYTIME THEME (KUNDUZGI REJIM) — HIGH CONTRAST & CRISP TYPOGRAPHY
   ========================================================================== */
html[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-focus: rgba(2, 132, 199, 0.6);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-emerald: #059669;
}

html[data-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

/* Remove canvas dots on light mode to prevent dirty dust specks */
html[data-theme="light"] #space-canvas {
  display: none !important;
}

/* Logo toggle: clean light version with crisp dark text on white */
.site-logo.logo-dark {
  display: block;
}
.site-logo.logo-light {
  display: none;
}

html[data-theme="light"] .site-logo.logo-dark {
  display: none !important;
}
html[data-theme="light"] .site-logo.logo-light {
  display: block !important;
  filter: none !important;
}

/* Header & Navigation in Light Mode */
html[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html[data-theme="light"] .dark-nav-capsule {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .capsule-tab {
  color: #475569;
  font-weight: 600;
}

html[data-theme="light"] .capsule-tab:hover {
  color: #0f172a;
}

html[data-theme="light"] .capsule-tab.active {
  background: #0f172a;
  color: #ffffff !important;
}

html[data-theme="light"] .btn-contact-nav {
  background: #0284c7;
  color: #ffffff !important;
  border: 1px solid rgba(2, 132, 199, 0.3);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

html[data-theme="light"] .btn-contact-nav:hover {
  background: #0369a1;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

html[data-theme="light"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #0284c7;
}

html[data-theme="light"] .theme-svg-sun {
  display: none !important;
}
html[data-theme="light"] .theme-svg-moon {
  display: block !important;
  color: #334155;
}
html[data-theme="light"] .theme-toggle-btn:hover .theme-svg-moon {
  color: #0284c7;
  transform: rotate(-20deg);
}

html[data-theme="light"] .lang-switcher {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .lang-btn {
  color: #475569;
  font-weight: 600;
}

html[data-theme="light"] .lang-btn.active {
  background: #0f172a;
  color: #ffffff;
}

/* Mouse Movement Animation in Light Mode */
html[data-theme="light"] .custom-cursor-dot {
  background-color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
}

html[data-theme="light"] .custom-cursor-ring {
  border-color: rgba(2, 132, 199, 0.45);
}

html[data-theme="light"] .custom-cursor-ring.cursor-hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.85);
}

html[data-theme="light"] .interactive-cursor-glow {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 70%);
}

/* Hero Section in Light Mode */
html[data-theme="light"] .hero-title {
  color: #0f172a;
  font-weight: 800;
}

html[data-theme="light"] .hero-pill {
  background: rgba(2, 132, 199, 0.09);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0369a1;
  font-weight: 600;
}

html[data-theme="light"] .hero-description {
  color: #334155;
  font-weight: 400;
  font-size: 18px;
}

html[data-theme="light"] .btn-primary {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  font-weight: 600;
}

html[data-theme="light"] .btn-primary:hover {
  background: #0369a1 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

html[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  font-weight: 600;
}

html[data-theme="light"] .btn-secondary:hover {
  border-color: #0284c7;
  color: #0284c7;
}

/* Marquee in Light Mode */
html[data-theme="light"] .marquee-container {
  border-color: rgba(15, 23, 42, 0.08);
  background: transparent;
}

html[data-theme="light"] .marquee-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .marquee-item span {
  color: #0284c7;
  font-weight: 700;
}

/* Stats Metrics in Light Mode */
html[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .stat-card:hover {
  border-color: #0284c7;
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(2, 132, 199, 0.15);
}

html[data-theme="light"] .stat-number {
  color: #0f172a;
}

html[data-theme="light"] .stat-label {
  color: #475569;
  font-weight: 600;
}

/* Common Section Headers in Light Mode */
html[data-theme="light"] .section-tag {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  font-weight: 700;
}

html[data-theme="light"] .section-title {
  color: #0f172a;
  font-weight: 800;
}

html[data-theme="light"] .section-subtitle {
  color: #334155;
  font-weight: 500;
}

/* Portfolio Section in Light Mode */
html[data-theme="light"] .portfolio-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .portfolio-card:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 30px -4px rgba(2, 132, 199, 0.15);
}

html[data-theme="light"] .work-title {
  color: #0f172a;
  font-weight: 700;
}

html[data-theme="light"] .work-desc {
  color: #334155;
  font-size: 13.5px;
  line-height: 1.6;
}

html[data-theme="light"] .tech-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-weight: 600;
}

html[data-theme="light"] .live-visit-link {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #0284c7;
  font-weight: 600;
}

html[data-theme="light"] .live-visit-link:hover {
  background: #0284c7;
  color: #ffffff;
}

html[data-theme="light"] .work-link {
  color: #475569;
  font-weight: 600;
}

html[data-theme="light"] .work-link:hover {
  color: #0284c7;
}

html[data-theme="light"] .filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 600;
}

html[data-theme="light"] .filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Services Section in Light Mode */
html[data-theme="light"] .service-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .service-name {
  color: #0f172a;
  font-weight: 700;
}

html[data-theme="light"] .service-desc {
  color: #334155;
  line-height: 1.6;
}

/* Audit Simulator in Light Mode */
html[data-theme="light"] .audit-box {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .audit-input {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
}

html[data-theme="light"] .audit-input:focus {
  background: #ffffff;
  border-color: #0284c7;
}

html[data-theme="light"] .preset-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-weight: 600;
}

html[data-theme="light"] .preset-chip:hover {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: #0284c7;
}

html[data-theme="light"] .audit-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}

html[data-theme="light"] .audit-card-title span {
  font-weight: 700;
}

html[data-theme="light"] .audit-metric-row span {
  color: #334155;
  font-weight: 500;
}

html[data-theme="light"] .audit-card.studio-highlight {
  background: rgba(16, 185, 129, 0.04);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

/* Calculator Section in Light Mode — CRISP, READABLE, HIGH CONTRAST */
html[data-theme="light"] .calc-grid {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .calc-label {
  color: #0f172a !important;
  font-weight: 700;
}

html[data-theme="light"] .calc-inputs label {
  color: #1e293b !important;
  font-weight: 500;
}

html[data-theme="light"] #pages-count-text {
  color: #0284c7 !important;
  font-weight: 700;
}

html[data-theme="light"] .calc-slider {
  background: #e2e8f0;
  accent-color: #0284c7;
}

html[data-theme="light"] .calc-type-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-weight: 600;
}

html[data-theme="light"] .calc-type-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

html[data-theme="light"] .calc-type-btn.active {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

html[data-theme="light"] .calc-result-panel {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .calc-result-panel span[style*="uppercase"] {
  color: #475569 !important;
  font-weight: 700;
}

html[data-theme="light"] .calc-price-display {
  color: #0284c7 !important;
  font-weight: 800;
}

html[data-theme="light"] #calc-time-estimate {
  color: #334155 !important;
  font-weight: 500;
}

html[data-theme="light"] #calc-time-estimate b {
  color: #0f172a !important;
}

html[data-theme="light"] .calc-result-panel div[style*="color:#94a3b8"],
html[data-theme="light"] .calc-warranty-text {
  color: #475569 !important;
  font-weight: 500;
}

html[data-theme="light"] .calc-approx-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #b45309 !important;
  font-weight: 700;
}

html[data-theme="light"] .calc-approx-tag {
  color: #d97706 !important;
  font-weight: 700;
}

html[data-theme="light"] .calc-note-box {
  background: #ffffff;
  border-left: 3px solid #d97706;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  color: #334155 !important;
}

html[data-theme="light"] .calc-note-box b {
  color: #0f172a !important;
}

html[data-theme="light"] #calc-order-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

html[data-theme="light"] #calc-order-btn:hover {
  background: #0369a1 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-2px);
}

/* Testimonials Section in Light Mode — CRISP, HIGH CONTRAST */
html[data-theme="light"] .testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .testimonial-quote {
  color: #1e293b !important;
  font-weight: 500;
  line-height: 1.65;
  font-size: 14.5px;
}

html[data-theme="light"] .client-name {
  color: #0f172a !important;
  font-weight: 700;
}

html[data-theme="light"] .client-role {
  color: #475569 !important;
  font-weight: 500;
}

html[data-theme="light"] .roi-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #059669;
  font-weight: 700;
}

/* About Section & Tech Tags in Light Mode */
html[data-theme="light"] .about-card,
html[data-theme="light"] .about-glass-box {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .about-title-h3,
html[data-theme="light"] .about-glass-box h3 {
  color: #0f172a !important;
  font-weight: 800;
}

html[data-theme="light"] .about-desc-p,
html[data-theme="light"] .about-glass-box p,
html[data-theme="light"] .about-p {
  color: #334155 !important;
  font-size: 15.5px;
  line-height: 1.75;
  font-weight: 400;
}

html[data-theme="light"] .about-card .tech-tag,
html[data-theme="light"] .about-glass-box .tech-tag {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
}

/* Diff Slider in Light Mode */
html[data-theme="light"] .diff-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .diff-content h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .diff-content p {
  color: #334155 !important;
}

/* FAQ in Light Mode */
html[data-theme="light"] .faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .faq-question {
  color: #0f172a !important;
  font-weight: 700;
}

html[data-theme="light"] .faq-answer {
  color: #334155 !important;
  line-height: 1.65;
}

/* CTA Banner in Light Mode — CRISP SUBTITLE & ACCENT BUTTONS */
html[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%) !important;
  border: 1.5px solid rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .cta-title {
  color: #0f172a !important;
  font-weight: 800;
}

html[data-theme="light"] .cta-sub,
html[data-theme="light"] .cta-subtitle {
  color: #334155 !important;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

html[data-theme="light"] #cta-direct-modal-btn,
html[data-theme="light"] .cta-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  font-weight: 600;
}

html[data-theme="light"] #cta-direct-modal-btn:hover,
html[data-theme="light"] .cta-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
  transform: translateY(-2px) !important;
}

html[data-theme="light"] .btn-telegram,
html[data-theme="light"] .cta-tg-btn,
html[data-theme="light"] .cta-btn-telegram {
  background: #0088cc !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 136, 204, 0.25) !important;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3) !important;
  font-weight: 600;
}

html[data-theme="light"] .btn-telegram:hover,
html[data-theme="light"] .cta-tg-btn:hover,
html[data-theme="light"] .cta-btn-telegram:hover {
  background: #0077b5 !important;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.45) !important;
  transform: translateY(-2px) !important;
}

html[data-theme="light"] .cta-btn-glass {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .cta-btn-glass:hover {
  background: #f8fafc !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.16) !important;
  transform: translateY(-2px) !important;
}

/* Modals in Light Mode */
html[data-theme="light"] .modal-card,
html[data-theme="light"] .case-modal-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

html[data-theme="light"] .case-metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
html[data-theme="light"] .case-metric-val {
  color: #0284c7;
}
html[data-theme="light"] .case-metric-lbl {
  color: #64748b;
  font-weight: 500;
}

html[data-theme="light"] .case-challenge-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #475569;
}
html[data-theme="light"] .case-challenge-box h4 {
  color: #dc2626 !important;
  font-weight: 700;
}

html[data-theme="light"] .case-solution-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #334155;
}
html[data-theme="light"] .case-solution-box h4 {
  color: #16a34a !important;
  font-weight: 700;
}

html[data-theme="light"] .modal-card h3,
html[data-theme="light"] .case-modal-card h2,
html[data-theme="light"] .case-modal-card h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .modal-card p,
html[data-theme="light"] .case-modal-card p {
  color: #334155 !important;
}

html[data-theme="light"] .form-label {
  color: #1e293b !important;
  font-weight: 600;
}

html[data-theme="light"] .form-input {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-weight: 500;
}

html[data-theme="light"] .form-input:focus {
  background: #ffffff;
  border-color: #0284c7;
}

html[data-theme="light"] .form-submit-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

html[data-theme="light"] .form-submit-btn:hover {
  background: #0369a1 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* Footer & Scroll-to-Top in Light Mode */
html[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-weight: 500;
}

html[data-theme="light"] .scroll-top-btn {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #cbd5e1;
  color: #0284c7;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .scroll-top-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* ==========================================================================
   WORK ROI PILL ON PORTFOLIO CARDS
   ========================================================================== */
.work-roi-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  white-space: nowrap;
}

html[data-theme="light"] .work-roi-pill {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.22);
}

/* ==========================================================================
   CALCULATOR ACTION GROUP & TELEGRAM DIRECT BUTTON
   ========================================================================== */
.calc-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.calc-tg-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3) !important;
  font-weight: 600;
  transition: all 0.25s ease;
}

.calc-tg-btn:hover {
  background: #0369a1 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
}

/* ==========================================================================
   GUARANTEE SECTION (XAVFNI NOLGA TUSHIRISH)
   ========================================================================== */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.guarantee-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guarantee-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.guarantee-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.guarantee-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.guarantee-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.guarantee-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  width: max-content;
}

/* Light mode for Guarantees */
html[data-theme="light"] .guarantee-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .guarantee-card:hover {
  border-color: #0284c7;
  box-shadow: 0 14px 35px rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .guarantee-icon-wrap {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
}

html[data-theme="light"] .guarantee-card-title {
  color: #0f172a;
}

html[data-theme="light"] .guarantee-card-desc {
  color: #334155;
}

html[data-theme="light"] .guarantee-pill {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

/* ==========================================================================
   MOBILE & TABLET BOTTOM FLOATING APP DOCK (MOBIL DOCK BAR)
   5-tab app-style floating capsule with safe-area support, active indicator,
   and floating Telegram quick contact button
   ========================================================================== */
.mobile-nav-bar {
  display: none;
}

@media (max-width: 960px) {
  /* Show Mobile Nav Bar on both Mobile and Tablets */
  .mobile-nav-bar {
    display: block;
    position: fixed;
    bottom: 12px;
    left: 0;
    right: 0;
    width: calc(100% - 24px);
    max-width: 500px;
    margin: 0 auto;
    z-index: 9998;
    pointer-events: none;
  }

  .mobile-nav-dock {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
  }

  .mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 16px;
    text-decoration: none;
    color: #94a3b8;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .mob-nav-icon {
    flex-shrink: 0;
    transition: transform 0.22s ease, stroke 0.22s ease;
  }

  .mob-nav-item:active .mob-nav-icon {
    transform: scale(0.9);
  }

  .mob-nav-item.active {
    color: #38bdf8;
  }

  .mob-nav-item.active .mob-nav-icon {
    stroke: #38bdf8;
    transform: translateY(-1px);
  }

  /* 5th Action Item: Ariza */
  .mob-nav-action {
    color: #ffffff;
  }

  .mob-action-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .mob-nav-action:active .mob-action-badge {
    transform: scale(0.92);
  }

  /* Scroll-To-Top button above Mobile Bar */
  .scroll-top-btn {
    bottom: 78px !important;
    right: 18px !important;
  }

  .site-footer {
    padding-bottom: 95px !important;
  }
}

/* Light Mode Mobile Dock */
html[data-theme="light"] .mobile-nav-dock {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .mob-nav-item {
  color: #64748b;
}

html[data-theme="light"] .mob-nav-item.active {
  color: #0284c7;
}

html[data-theme="light"] .mob-nav-item.active .mob-nav-icon {
  stroke: #0284c7;
}

html[data-theme="light"] .mob-action-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   WORK PROCESS TIMELINE (4-BOSQICHLI ISH JARAYONI)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.process-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.process-watermark {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 56px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  line-height: 1;
}

.process-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
  width: max-content;
}

.process-title {
  font-size: 17.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.process-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.process-duration-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  width: max-content;
}

/* Light mode for Process Cards */
html[data-theme="light"] .process-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .process-card:hover {
  border-color: #0284c7;
  box-shadow: 0 14px 35px rgba(2, 132, 199, 0.12);
}

html[data-theme="light"] .process-watermark {
  color: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .process-step-pill {
  background: rgba(2, 132, 199, 0.09);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

html[data-theme="light"] .process-title {
  color: #0f172a;
}

html[data-theme="light"] .process-desc {
  color: #334155;
}

html[data-theme="light"] .process-duration-pill {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* Trust Badges in CTA */
.trust-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}

html[data-theme="light"] .trust-badge {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155 !important;
}

html[data-theme="light"] .b2b-trust-box {
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .b2b-trust-box p {
  color: #64748b !important;
}

/* ==========================================================================
   ADVANCED TABLET & MOBILE RESPONSIVE SUITE
   Flawless layout across iPads, Android tablets, and all mobile smartphones
   ========================================================================== */

/* 1. TABLET SCREENS (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .site-header {
    padding: 12px 24px;
  }
  .hero-section {
    padding: 110px 0 60px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
  .guarantees-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
  .calc-grid {
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 24px !important;
  }
  .audit-results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
  .case-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 2. MOBILE PHONE SCREENS (<= 640px) */
@media (max-width: 640px) {
  .site-header {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 10px 16px !important;
    background: rgba(3, 7, 18, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  }

  .nav-container {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .brand-link {
    flex-shrink: 0;
  }

  .site-logo {
    height: 30px !important;
  }

  /* Hide redundant top contact button on mobile — mobile dock bar handles direct contact */
  .btn-contact-nav,
  .btn-discuss {
    display: none !important;
  }

  .nav-controls-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .theme-toggle-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .lang-switcher {
    height: 34px !important;
    padding: 2px 3px !important;
  }

  .lang-btn {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
  }
  .hero-section {
    padding: 95px 0 40px !important;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(26px, 7vw, 36px) !important;
    letter-spacing: -0.02em;
    line-height: 1.18 !important;
  }
  .hero-desc {
    font-size: 15px !important;
    padding: 0 4px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 32px !important;
  }
  .stat-card {
    padding: 16px 12px !important;
  }
  .stat-number {
    font-size: 26px !important;
  }
  .stat-label {
    font-size: 11.5px !important;
  }
  .portfolio-filters {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 4px 2px 10px 2px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .service-card {
    padding: 24px 18px !important;
  }
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .guarantees-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .calc-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 24px 16px !important;
  }
  .calc-box {
    padding: 20px 16px !important;
  }
  .audit-box {
    padding: 24px 16px !important;
  }
  .audit-input-group {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .audit-input-group input,
  .audit-input-group button {
    width: 100% !important;
    border-radius: var(--radius-full) !important;
  }
  .audit-results-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .cta-banner {
    padding: 40px 18px !important;
  }
  .contact-options {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .cta-action-btn {
    width: 100% !important;
    max-width: 360px !important;
    justify-content: center !important;
  }
  .modal-card,
  .case-modal-card {
    width: 94% !important;
    padding: 24px 16px !important;
    max-height: 90vh !important;
  }
  .mobile-nav-bar {
    width: calc(100% - 20px) !important;
    bottom: 10px !important;
  }
}
