/* ============================================================
   TopCam.kz — Glow · Glass · Background Effects
   v1.0 — overlay on existing dark theme
   ============================================================ */

/* ── CLEAN BACKGROUND — subtle top aurora + vignette ──── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(29,144,40,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% -5%, rgba(59,130,246,.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(0,0,0,.3) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="light"] body::before,
:root:not([data-theme="dark"]) body::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(29,144,40,.03) 0%, transparent 60%);
}

/* Hide orbs & stars — clean mode */
#tc-orbs, #tc-stars { display: none !important; }


/* ── GLASSMORPHISM ──────────────────────────────────────── */

/* Glass card base — only homepage-specific elements (hp-*) */
.glass,
.hp-stats,
.hp-solution,
.hp-step-card,
.hp-service,
.hp-review,
.hp-cta-calc,
.hp-why-card {
  background: rgba(22,32,51,.55) !important;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.04);
}

/* Product cards: keep solid bg, only add subtle glass border */
.product-card {
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.04);
}

/* Light theme glass */
[data-theme="light"] .glass,
[data-theme="light"] .hp-stats,
[data-theme="light"] .hp-solution,
[data-theme="light"] .hp-step-card,
[data-theme="light"] .hp-service,
[data-theme="light"] .hp-review,
[data-theme="light"] .hp-cta-calc,
[data-theme="light"] .hp-why-card {
  background: rgba(255,255,255,.65) !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.8);
}

/* Navbar glass upgrade */
.tc-top-nav {
  background: rgba(12,18,34,.75) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
}
[data-theme="light"] .tc-top-nav {
  background: rgba(255,255,255,.78) !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
}

/* (hero glass removed — selector leaked to contacts/other pages) */


/* ── GLOW EFFECTS ───────────────────────────────────────── */

/* Green accent glow on hover for cards */
.hp-solution:hover,
.hp-service:hover,
.hp-step:hover .hp-step-card,
.product-card:hover {
  border-color: rgba(29,144,40,.35) !important;
  box-shadow:
    0 0 30px rgba(29,144,40,.12),
    0 0 60px rgba(29,144,40,.06),
    0 20px 48px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

[data-theme="light"] .hp-solution:hover,
[data-theme="light"] .hp-service:hover,
[data-theme="light"] .hp-step:hover .hp-step-card,
[data-theme="light"] .product-card:hover {
  border-color: rgba(29,144,40,.25) !important;
  box-shadow:
    0 0 30px rgba(29,144,40,.08),
    0 0 60px rgba(29,144,40,.04),
    0 16px 48px rgba(0,0,0,.08) !important;
}

/* Hero heading glow — scoped to homepage via hp- parent */
.hp-stats ~ section h1 span,
.hp-cta-calc ~ section h1 span {
  text-shadow: 0 0 40px rgba(29,144,40,.3), 0 0 80px rgba(29,144,40,.15);
}

/* Stats number glow */
.hp-stat .num {
  filter: drop-shadow(0 0 12px rgba(34,197,94,.25));
}

/* Steps dot glow pulse */
.hp-step-dot {
  box-shadow: 0 4px 16px rgba(29,144,40,.3), 0 0 40px rgba(29,144,40,.15) !important;
}
.hp-step:hover .hp-step-dot {
  box-shadow: 0 4px 24px rgba(29,144,40,.5), 0 0 60px rgba(29,144,40,.25) !important;
}

/* Button glow */
.btn-tc {
  box-shadow: 0 2px 12px rgba(29,144,40,.2), 0 0 40px rgba(29,144,40,.1);
}
.btn-tc:hover {
  box-shadow: 0 6px 24px rgba(29,144,40,.35), 0 0 60px rgba(29,144,40,.15) !important;
}

/* Nav green line glow */
.tc-top-nav::after {
  background: linear-gradient(90deg, transparent, rgba(29,144,40,.5), transparent) !important;
  box-shadow: 0 0 20px rgba(29,144,40,.3);
  height: 2px !important;
}

/* WhatsApp float glow */
.wa-float {
  box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 60px rgba(37,211,102,.15) !important;
}

/* Review card subtle top glow */
.hp-review::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29,144,40,.3), transparent);
}

/* CTA section glow */
.hp-cta-calc {
  box-shadow:
    0 0 60px rgba(29,144,40,.06),
    0 4px 24px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
}

/* Brands track glow on hover */
.hp-brands-track span:hover {
  text-shadow: 0 0 20px rgba(29,144,40,.4);
  color: var(--tc-accent) !important;
}


/* (section blobs removed — caused artifacts on contacts/other pages) */

/* (section-title underline removed — leaked to all pages) */


/* ── GALLERY GLASS OVERLAY ──────────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after {
  opacity: 1;
}


/* ── SCROLL REVEAL ENHANCEMENT ──────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── PRODUCT CARD HOVER GLOW ─────────────────────────────── */
.product-card:hover {
  border-color: rgba(29,144,40,.3) !important;
  box-shadow:
    0 0 24px rgba(29,144,40,.1),
    0 16px 48px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
}


/* ── LIQUID GLASS SUBTLE (for stats) ────────────────────── */
.liquid-glass-subtle {
  position: relative;
  overflow: hidden;
}
.liquid-glass-subtle::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(29,144,40,.4),
    rgba(34,197,94,.3),
    rgba(59,130,246,.3),
    transparent
  );
  box-shadow: 0 0 20px rgba(29,144,40,.2);
}
.liquid-glass-subtle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(59,130,246,.3),
    rgba(29,144,40,.4),
    transparent
  );
  box-shadow: 0 0 20px rgba(29,144,40,.15);
}


/* (stars removed — clean mode) */


/* ── MOBILE ───────────────────────────────────────── */
@media (max-width: 768px) {
  body::before {
    background:
      radial-gradient(ellipse 100% 40% at 50% -10%, rgba(29,144,40,.05) 0%, transparent 60%);
  }
}

/* ── REDUCED MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
  .reveal-on-scroll { transition: none !important; opacity: 1; transform: none; }
}
