/* ===================================================
   AgroUstoz 2.0 — Modern AgTech Design System
   High-performance Vanilla CSS (Light & Dark Mode)
   =================================================== */

:root {
  /* Brand Green Colors */
  --primary: #0b6b33;
  --primary-hover: #075225;
  --primary-light: #eaf6ee;
  --primary-glow: rgba(16, 185, 129, 0.22);
  --accent: #10b981;
  --accent-gold: #f59e0b;
  --accent-blue: #0284c7;

  /* Surfaces & Ink (Light Mode) */
  --bg-main: #ffffff;
  --bg-surface: #f7faf7;
  --bg-card: #ffffff;
  --bg-subtle: #edf4ed;
  --ink: #0f1f17;
  --ink-soft: #4a5d52;
  --ink-muted: #788a80;
  --border: rgba(15, 31, 23, 0.08);
  --border-strong: rgba(15, 31, 23, 0.16);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.09);
  --shadow-glow: 0 12px 40px var(--primary-glow);

  /* Layout & Font */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Theme Tokens */
body.dark-mode {
  --bg-main: #080f0b;
  --bg-surface: #0e1913;
  --bg-card: #13221a;
  --bg-subtle: #192c22;
  --ink: #f0f7f2;
  --ink-soft: #a2b8ab;
  --ink-muted: #6e8477;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --primary-light: rgba(34, 197, 94, 0.12);
  --primary-glow: rgba(34, 197, 94, 0.28);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select {
  font-family: inherit;
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   Navigation Bar
   =================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

body.dark-mode .nav {
  background: rgba(8, 15, 11, 0.85);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2px 0;
}

body.dark-mode .nav.scrolled {
  background: rgba(8, 15, 11, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  transition: height 0.3s ease;
}

.nav.scrolled .nav-inner {
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand:hover .brand-logo {
  transform: rotate(10deg) scale(1.08);
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-soft);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.sun-icon { display: block; }
.moon-icon { display: none; }

body.dark-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: block; }

/* Language Switcher */
.lang-switch {
  display: flex;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 99px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Primary Nav CTA */
.btn-nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.btn-nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.hamburger svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-main);
  z-index: 999;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer .drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer .drawer-links a {
  font-size: 18px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--ink);
}

.mobile-drawer .drawer-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ===================================================
   Hero Section
   =================================================== */
.hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
  background: 
    radial-gradient(80% 50% at 50% -10%, var(--primary-light) 0%, transparent 80%),
    radial-gradient(40% 30% at 85% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

body.dark-mode .hero {
  background: 
    radial-gradient(80% 50% at 50% -10%, rgba(34, 197, 94, 0.15) 0%, transparent 80%),
    radial-gradient(40% 30% at 85% 15%, rgba(34, 197, 94, 0.06) 0%, transparent 70%),
    var(--bg-main);
}

.hero-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #059669 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--primary-glow);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 60px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item .stars {
  color: #f59e0b;
  font-size: 14px;
}

/* Hero Phone Cluster */
.hero-showcase {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.phone-cluster {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  padding: 20px 0;
}

.phone-cluster .phone-card {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  will-change: transform;
}

.phone-cluster .phone-card img {
  border-radius: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.8);
}

body.dark-mode .phone-cluster .phone-card img {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.phone-cluster .p1 {
  width: 220px;
  transform: translateY(35px) rotateY(18deg) rotateX(4deg) rotateZ(-3deg);
  z-index: 1;
}

.phone-cluster .p2 {
  width: 260px;
  transform: translateY(0) scale(1.05);
  z-index: 3;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
}

.phone-cluster .p3 {
  width: 220px;
  transform: translateY(35px) rotateY(-18deg) rotateX(4deg) rotateZ(3deg);
  z-index: 1;
}

.phone-cluster:hover .p1 {
  transform: translateY(10px) translateX(-25px) rotateY(8deg) scale(0.98);
}

.phone-cluster:hover .p2 {
  transform: translateY(-15px) scale(1.08);
}

.phone-cluster:hover .p3 {
  transform: translateY(10px) translateX(25px) rotateY(-8deg) scale(0.98);
}

/* Floating Glass Badges */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  animation: floatSlow 5s ease-in-out infinite alternate;
}

body.dark-mode .floating-badge {
  background: rgba(19, 34, 26, 0.9);
}

.fb-1 {
  top: 15%;
  left: 2%;
  animation-delay: 0s;
}

.fb-2 {
  bottom: 20%;
  right: 2%;
  animation-delay: 2.5s;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon svg {
  width: 20px;
  height: 20px;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* ===================================================
   Section Components
   =================================================== */
section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ===================================================
   Interactive Feature 1: AI Plant Scanner Simulator
   =================================================== */
.scanner-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.scanner-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.scanner-samples {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sample-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sample-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.scanner-viewport {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d1912;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Laser Scanning Beam */
.laser-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #22c55e, #10b981, transparent);
  box-shadow: 0 0 16px #22c55e, 0 0 32px #10b981;
  z-index: 10;
  animation: laserScan 2.4s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 4%; }
  100% { top: 96%; }
}

.scanner-overlay-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(34, 197, 94, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.scanner-corners {
  position: absolute;
  inset: 16px;
  border: 2px dashed rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  pointer-events: none;
}

/* Scanner Results Card */
.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.confidence-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.dark-mode .confidence-badge {
  color: #22c55e;
}

.result-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.result-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.6;
}

.treatment-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.treatment-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 6px;
}

.treatment-text {
  font-size: 14px;
  color: var(--ink);
}

/* ===================================================
   Video Showcase Section & Enhanced Media Player
   =================================================== */
.video-section {
  text-align: center;
}

.video-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.video-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.video-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-strong);
  background: #000000;
}

.video-player {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
  background: #000000;
}

/* Floating Subtitle / Step Caption Badge */
.video-live-caption {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  background: rgba(11, 33, 20, 0.88);
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 15;
  transition: all 0.3s ease;
  pointer-events: none;
}

.video-live-caption .caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.8s infinite;
}

/* Center Play Overlay */
.video-controls-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.video-container.playing .video-controls-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-circle svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.video-controls-overlay:hover .play-circle {
  transform: scale(1.12);
}

/* Bottom Controls Bar */
.video-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 12;
  color: #ffffff;
}

.video-ctrl-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
}

.video-ctrl-btn:hover {
  color: var(--accent);
  transform: scale(1.15);
}

.video-ctrl-btn svg {
  width: 20px;
  height: 20px;
}

.video-progress-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  position: relative;
  transition: width 0.1s linear;
}

.video-time-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.ambient-audio-pill {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.ambient-audio-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ===================================================
   Partners Infinite Marquee Carousel (Hamkorlarimiz)
   =================================================== */
.partners-section {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
  padding: 10px 0;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

.partner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.partner-logo-img {
  height: 44px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  transition: var(--transition);
}

.partner-card:hover .partner-logo-img {
  transform: scale(1.06);
}

.partner-info {
  display: flex;
  flex-direction: column;
}

.partner-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.partner-tag {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ===================================================
   Features Grid
   =================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===================================================
   Interactive Feature 2: Weather & Irrigation Widget
   =================================================== */
.weather-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.weather-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.region-select-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.region-select {
  padding: 10px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.region-select:focus {
  border-color: var(--primary);
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.weather-temp {
  font-size: 56px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.weather-condition {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-chip {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-chip-label {
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.stat-chip-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.irrigation-advice-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.advice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.advice-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.advice-text {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* ===================================================
   Interactive Feature 3: Market Prices Ticker
   =================================================== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.crop-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crop-icon {
  font-size: 28px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.crop-region {
  font-size: 12px;
  color: var(--ink-muted);
}

.price-info {
  text-align: right;
}

.price-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.price-trend {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.trend-up { color: #16a34a; }
.trend-down { color: #dc2626; }
.trend-stable { color: var(--ink-muted); }

/* ===================================================
   Stats Counter Section
   =================================================== */
.stats-section {
  background: var(--primary);
  color: #ffffff;
  padding: 70px 0;
  border-radius: var(--radius-xl);
  margin: 40px auto;
  max-width: var(--container);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-num {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ===================================================
   Testimonials Section
   =================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.test-stars {
  color: #f59e0b;
  margin-bottom: 16px;
  font-size: 14px;
}

.test-quote {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.author-role {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ===================================================
   FAQ Section
   =================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

/* ===================================================
   Download CTA Section
   =================================================== */
.download-section {
  padding: 80px 0;
}

.cta-banner {
  background: linear-gradient(135deg, #075225 0%, #033618 100%);
  border-radius: var(--radius-xl);
  padding: 70px 48px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

body.dark-mode .cta-banner {
  background: linear-gradient(135deg, #0d2918 0%, #07170e 100%);
  border: 1px solid var(--border-strong);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cta-actions .btn-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-primary:hover {
  background: var(--bg-surface);
  transform: translateY(-2px);
}

.cta-actions .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

/* ===================================================
   Footer
   =================================================== */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 36px;
  transition: background-color 0.4s ease;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-about {
  max-width: 340px;
}

.footer-about p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 16px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===================================================
   Modal Popup (QR Code & Direct Download)
   =================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: center;
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--ink);
  transform: rotate(90deg);
}

.qr-frame {
  width: 200px;
  height: 200px;
  margin: 24px auto;
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================
   Toast Notification
   =================================================== */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f1f17;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast-msg.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===================================================
   Sub-pages Specific Styling (About, Support, Legal)
   =================================================== */
.subpage-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: radial-gradient(80% 60% at 50% 0%, var(--primary-light) 0%, transparent 80%);
}

.subpage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 80px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 32px 0 12px;
}

.legal-content p, .legal-content li {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
  margin: 12px 0 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Founder Profile Card in About Page */
.founder-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

.founder-img {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--bg-card);
  flex-shrink: 0;
}

/* Virtual Payment Card in Support Page */
.humo-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 250px;
  margin: 32px auto 28px;
  border-radius: 22px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #094721 0%, #032410 100%);
  color: #ffffff;
  box-shadow: 0 25px 50px rgba(7, 82, 37, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.humo-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px rgba(7, 82, 37, 0.45);
}

.humo-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.card-num-text {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ===================================================
   Responsive Media Queries
   =================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .scanner-box, .weather-widget {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .market-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero {
    padding: 130px 0 60px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .phone-cluster .p1 {
    width: 120px;
  }
  .phone-cluster .p2 {
    width: 150px;
  }
  .phone-cluster .p3 {
    width: 120px;
  }
  .floating-badge {
    display: none;
  }
  .features-grid, .market-grid, .testimonials-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .founder-card {
    flex-direction: column;
    text-align: center;
  }
  .subpage-card {
    padding: 32px 20px;
  }
}

/* ===================================================
   Video Showcase Section & Custom Enhanced Player
   =================================================== */
.video-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.video-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.video-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.video-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.video-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 107, 51, 0.25);
}

.video-container {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
  background: #000000;
}

/* Step-by-step Subtitle Pill */
.video-live-caption {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* Big Center Play Overlay */
.video-controls-overlay {
  position: absolute;
  inset: 0;
  bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.video-container.playing .video-controls-overlay,
.video-container.is-playing .video-controls-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.play-circle svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.video-controls-overlay:hover .play-circle {
  transform: scale(1.12);
  background: #ffffff;
}

/* Custom Bottom Player Bar */
.video-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.video-ctrl-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.video-ctrl-btn svg {
  width: 20px;
  height: 20px;
}

.video-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.video-progress-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.2s ease;
}

.video-progress-wrap:hover {
  height: 9px;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #22c55e 100%);
  border-radius: 99px;
  position: relative;
  transition: width 0.1s linear;
}

.video-time-text {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  min-width: 96px;
  text-align: center;
}

.ambient-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.ambient-audio-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.ambient-audio-pill.is-playing {
  background: rgba(34, 197, 94, 0.3);
  border-color: #22c55e;
  color: #86efac;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* ===================================================
   Partners Infinite Marquee Carousel (Hamkorlarimiz)
   =================================================== */
.partners-section {
  padding: 80px 0;
  background: var(--bg-body);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

.partner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
  cursor: default;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.partner-logo-img {
  height: 42px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

.partner-info {
  display: flex;
  flex-direction: column;
}

.partner-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.partner-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .video-bottom-bar {
    padding: 8px 12px;
    gap: 8px;
  }
  .video-time-text {
    min-width: 70px;
    font-size: 11px;
  }
  .ambient-audio-pill {
    padding: 4px 10px;
    font-size: 11px;
  }
  .partner-card {
    padding: 12px 18px;
  }
  .partner-logo-img {
    height: 34px;
  }
}
