/* =====================================================
   BITNEKA — HOME PAGE RESPONSIVE FIXES
   Desktop · Tablet · Mobile · Dark Mode
   Spacing · Alignment · Typography · Visibility
   ===================================================== */

/* ── Global resets ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; display: block; }

/* ── Section padding consistency ────────────────── */
.section-pad,
.tech-marquee-section,
.services-section,
.achievements-section,
.partners-section,
.testimonials,
.team-performance,
.faq-section,
.cta-section {
  padding: 80px 0;
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  /* Minimal gap below header */
  padding: 4px 0 24px;
  width: 100%;
}
/* Zoom out hero text */
.hero h1 {
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 20px;
  color: #cbd5e1;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hstat { display: flex; flex-direction: column; gap: 2px; }
.hstat b { font-size: 20px; font-weight: 800; color: #ffffff; line-height: 1; }
.hstat span { font-size: 11px; color: #94a3b8; font-weight: 500; }
.social-proof-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6b7280;
}
.proof-stars { color: #f59e0b; font-size: 13px; }
.proof-divider { width: 1px; height: 16px; background: #e5e7eb; }



/* ── TECH MARQUEE ─────────────────────────────────── */
.tech-marquee-section {
  padding: 48px 0;
}
.tech-marquee-head {
  text-align: center !important;
  margin-bottom: 28px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
}
.tech-marquee-head * {
  text-align: center !important;
}
.tech-marquee-head .eyebrow,
.tech-marquee-head > span:first-child {
  text-align: center !important;
  display: block;
  width: 100%;
}
.tech-marquee-head h2 {
  font-size: clamp(20px, 2.2vw, 30px);
  margin-top: 8px;
  text-align: center !important;
  width: 100%;
}

/* FIX: marquee animation */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tech-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}
/* Override prefers-reduced-motion animation:none from style.css */
.tech-track {
  display: flex !important;
  gap: 12px !important;
  animation: marquee 28s linear infinite !important;
  width: max-content !important;
  will-change: transform;
}
.tech-track:hover { animation-play-state: paused !important; }
.tech-track span {
  padding: 8px 18px;
  border-radius: 999px;
  background: #f0f4ff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  border: 1px solid rgba(13,91,255,0.1);
  flex-shrink: 0;
}


/* ── SERVICES SECTION ─────────────────────────────── */
.services-heading {
  text-align: center;
  margin-bottom: 40px;
}
.services-heading h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin-top: 8px;
}
.service-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d5bff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,91,255,0.2); }
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover img { transform: scale(1.06); }
.service-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,12,20,0.92) 0%, rgba(8,12,20,0.2) 60%, transparent 100%);
}
.service-card h3 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fff !important;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

/* ── ACHIEVEMENTS ─────────────────────────────────── */
.achievements-section { overflow: hidden; }
.achievements-section .wrap { max-width: 1200px; }

/* Outer 2-column grid: left text | right stats */
.achievement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Left side */
.achievement-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.achievement-content .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d5bff;
}
.achievement-content h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0b0f19;
}
.achievement-content p {
  font-size: 15px;
  line-height: 1.72;
  color: #6b7280;
  margin: 0;
  max-width: 420px;
}

/* Right side: 2×2 stat grid */
.achievement-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  border-radius: 18px;
  background: #f7f9fd;
  border: 1px solid rgba(13,91,255,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,91,255,0.12);
}
.stat-box h3 {
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 800;
  color: #0d5bff;
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.stat-box p {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

/* ── PARTNERS ─────────────────────────────────────── */
.partners-heading {
  text-align: center;
  margin-bottom: 36px;
}
.partners-heading .eyebrow { color: #0d5bff; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.partners-heading h2 { font-size: clamp(24px, 2.5vw, 36px); margin: 8px 0 12px; color: #0b0f19; }
.partners-heading p { font-size: 15px; color: #6b7280; max-width: 480px; margin: 0 auto; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: center;
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  border-radius: 14px;
  background: #0e1526;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all .25s ease;
  min-height: 80px;
}
.partner-card:hover {
  border-color: rgba(79,110,247,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}
.partner-card img {
  max-height: 38px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter .25s ease;
}
.partner-card:hover img { filter: brightness(1.1); }

/* ── TESTIMONIALS ─────────────────────────────────── */
.testimonials .center {
  text-align: center;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.testimonials .center h2 { font-size: clamp(24px, 2.8vw, 38px); color: #ffffff; margin-bottom: 10px; }
.testimonials .center p { font-size: 15px; color: #94a3b8; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background: #0e1526;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  border-color: rgba(79,110,247,0.3);
}
.stars { display: flex; gap: 3px; }
.stars i { color: #f59e0b; font-size: 14px; }
.testimonial-text {
  font-size: 14px;
  line-height: 1.72;
  color: #cbd5e1;
  margin: 0;
  flex: 1;
}
.client-info { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; }
.client-info h4 { font-size: 14px; font-weight: 700; color: #ffffff; margin: 0; }
.client-info span { font-size: 12px; color: #94a3b8; }

/* ═══════════════════════════════════════════════════
   DARK MODE OVERRIDES — GRIDS & TABLES
   ═══════════════════════════════════════════════════ */
[data-theme="dark"] .stat-box { background: #111827 !important; border-color: rgba(99,130,255,0.14) !important; }
[data-theme="dark"] .stat-box h3 { color: #7fa8ff !important; }
[data-theme="dark"] .stat-box p { color: #64748b !important; }
[data-theme="dark"] .achievement-content h2 { color: #f0f4ff !important; }
[data-theme="dark"] .achievement-content p { color: #94a3b8 !important; }
[data-theme="dark"] .achievement-content .eyebrow { color: #7fa8ff !important; }
[data-theme="dark"] .partners-heading h2 { color: #f0f4ff !important; }
[data-theme="dark"] .partners-heading p { color: #94a3b8 !important; }
[data-theme="dark"] .partner-card { background: #111827 !important; border-color: rgba(99,130,255,0.1) !important; }
[data-theme="dark"] .partner-card img { filter: brightness(0.9) !important; }
[data-theme="dark"] .partner-card img[src*="shopify"],
[data-theme="dark"] .partner-card img[alt*="Shopify"] { filter: invert(1) hue-rotate(180deg) brightness(1.1) !important; opacity: 1 !important; }
[data-theme="dark"] .partner-card:hover img { filter: brightness(1.1) !important; }
[data-theme="dark"] .testimonials .center h2 { color: #f0f4ff !important; }
[data-theme="dark"] .testimonials .center p { color: #94a3b8 !important; }
[data-theme="dark"] .testimonial-card { background: #111827 !important; border-color: rgba(99,130,255,0.12) !important; }
[data-theme="dark"] .testimonial-text { color: #94a3b8 !important; }
[data-theme="dark"] .client-info h4 { color: #e2e8f0 !important; }
[data-theme="dark"] .client-info span { color: #475569 !important; }
[data-theme="dark"] .client-info { border-color: rgba(99,130,255,0.1) !important; }

/* ═══════════════════════════════════════════════════
   TABLET (max-width: 1024px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .achievement-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .achievement-content { align-items: center; }
  .achievement-content p { max-width: 100%; }
  .achievement-stats { max-width: 480px; margin: 0 auto; width: 100%; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   MOBILE (max-width: 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .service-card { aspect-ratio: 1.25 / 1; border-radius: 12px; }
  .service-card h3 { font-size: 13px; bottom: 10px; left: 10px; right: 10px; font-weight: 700; }
  .achievement-grid { gap: 28px; }
  .achievement-stats { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 100%; }
  .stat-box { padding: 20px 14px; border-radius: 14px; }
  .stat-box h3 { font-size: 32px; }
  .stat-box p { font-size: 12px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .partner-card { padding: 16px 12px; min-height: 64px; border-radius: 10px; }
  .partner-card img { max-height: 30px; max-width: 90px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 14px; }
  .testimonial-card { padding: 18px; border-radius: 14px; }
  .testimonial-text { font-size: 13px; }
  .testimonials .center h2 { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════
   SMALL MOBILE (max-width: 480px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .service-card { aspect-ratio: 1.3 / 1; border-radius: 10px; }
  .service-card h3 { font-size: 11.5px; bottom: 8px; left: 8px; right: 8px; font-weight: 700; line-height: 1.25; }
  .achievement-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-box { padding: 16px 10px; }
  .stat-box h3 { font-size: 28px; margin-bottom: 6px; }
  .stat-box p { font-size: 11px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .partner-card { padding: 14px 10px; }
}

/* ── MOBILE HERO FIX ──────────────────────────────── */
@media (max-width: 980px) {
  .hero {
    align-items: flex-start;
    padding-top: 90px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 20px 0 40px;
  }
  .hero-content {
    text-align: center;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* Hide mockup card on tablet/mobile */
  .hero-mockup {
    display: none !important;
  }
  /* Eyebrow */
  .hero .eyebrow {
    text-align: center;
    display: block;
  }
  .hero h1 {
    font-size: clamp(28px, 6vw, 42px) !important;
    line-height: 1.12;
    text-align: center;
  }
  .hero-sub {
    font-size: 15px !important;
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas .btn,
  .hero-ctas a {
    width: auto;
    min-width: 180px;
    max-width: 240px;
    text-align: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 14px;
  }
  .hero-stats {
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  .hstat {
    align-items: center;
    text-align: center;
  }
  .social-proof-bar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  /* Robot video — center on mobile so it's fully visible */
  .hero-video {
    object-position: center center !important;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 80px;
  }
  .hero h1 {
    font-size: clamp(24px, 8vw, 32px) !important;
  }
  .hero-sub {
    font-size: 14px !important;
    line-height: 1.65;
  }
  .hero-stats {
    gap: 16px;
  }
  .hstat b {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: clamp(20px, 8vw, 28px) !important;
  }
  .hero-stats {
    gap: 12px;
  }
}

