/* =========================================================
   KnowledgeUpgrad — Global Ambient Background
   Clean white with subtle floating 3D elements
   ========================================================= */

/* ── 1. White page foundation ─────────────────────────── */
html,
body {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* ── 2. Ambient canvas — very subtle, behind everything ── */
#ku-nebula-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
}

/* ── 3. Sections stay white/original colours ─────────── */
/* no overrides — keep existing light design intact */

/* ── 4. OpenAI-style dark hero banner ────────────────── */
.inner-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #04050d;
}

/* hide the old photo — we use pure dark + canvas */
.inner-banner > img {
  display: none;
}

/* animated canvas fills the banner */
.inner-banner-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* giant ghost watermark text "UPGRADE" */
.inner-banner-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.inner-banner-bg-text span {
  font-size: clamp(80px, 18vw, 220px);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.055);
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.12) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(56,189,248,0.10) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  animation: kuTextFloat 8s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes kuTextFloat {
  0%,100% { transform: translateY(0) scale(1); opacity: 1; }
  50%      { transform: translateY(-10px) scale(1.015); opacity: 0.75; }
}

/* fade to white at the bottom */
.inner-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 3;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
}

/* content on top */
.inner-banner .container {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #fff;
  padding: 90px 0 70px;
}

.inner-banner .container h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: #ffffff;
  margin: 0;
}

.inner-banner .container p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
  font-weight: 400;
}

.inner-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

/* ── 5. Floating word pills in banner ────────────────── */
.inner-banner-floats {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ibf {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(4px);
  animation: ibfFloat 6s ease-in-out infinite;
}

.ibf-1 { top: 18%; left: 8%;  animation-delay: 0s;    animation-duration: 7s; }
.ibf-2 { top: 25%; right: 10%; animation-delay: 1.2s;  animation-duration: 8s; }
.ibf-3 { top: 60%; left: 6%;  animation-delay: 2.4s;  animation-duration: 6s; }
.ibf-4 { bottom: 28%; right: 8%; animation-delay: 0.8s; animation-duration: 9s; }
.ibf-5 { bottom: 20%; left: 22%; animation-delay: 3s;   animation-duration: 7s; }

@keyframes ibfFloat {
  0%,100% { transform: translateY(0) translateX(0); opacity: 0.28; }
  33%      { transform: translateY(-12px) translateX(4px); opacity: 0.55; }
  66%      { transform: translateY(6px) translateX(-4px); opacity: 0.20; }
}

/* ── 6. Home hero floating tech word cloud ───────────── */
.ku-hero-word-cloud {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ku-wc-word {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px 11px;
  animation: wcFloat 8s ease-in-out infinite;
  white-space: nowrap;
}

/* positions spread across the hero */
.ku-wc-word:nth-child(1)  { top:12%; left:5%;   animation-delay:0s;   animation-duration:9s; }
.ku-wc-word:nth-child(2)  { top:20%; left:72%;  animation-delay:1.5s; animation-duration:8s; }
.ku-wc-word:nth-child(3)  { top:35%; left:88%;  animation-delay:0.8s; animation-duration:10s;}
.ku-wc-word:nth-child(4)  { top:55%; left:3%;   animation-delay:2.2s; animation-duration:7s; }
.ku-wc-word:nth-child(5)  { top:62%; left:80%;  animation-delay:1.0s; animation-duration:9s; }
.ku-wc-word:nth-child(6)  { top:75%; left:60%;  animation-delay:3.0s; animation-duration:8s; }
.ku-wc-word:nth-child(7)  { top:80%; left:18%;  animation-delay:0.4s; animation-duration:11s;}
.ku-wc-word:nth-child(8)  { top:8%;  left:40%;  animation-delay:2.8s; animation-duration:8s; }
.ku-wc-word:nth-child(9)  { top:45%; left:48%;  animation-delay:1.8s; animation-duration:9s; }
.ku-wc-word:nth-child(10) { top:28%; left:28%;  animation-delay:0.6s; animation-duration:10s;}

@keyframes wcFloat {
  0%,100% { transform: translateY(0) translateX(0); opacity: 0.22; }
  40%      { transform: translateY(-14px) translateX(5px); opacity: 0.50; }
  70%      { transform: translateY(8px) translateX(-3px); opacity: 0.15; }
}

/* ── 7. Reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #ku-nebula-canvas { display: none; }
  .inner-banner-bg-text span,
  .ibf,
  .ku-wc-word { animation: none; }
}

@media (max-width: 768px) {
  .inner-banner { min-height: 320px; }
  .inner-banner .container { padding: 70px 0 60px; }
  .ibf { display: none; }
  .ku-wc-word { display: none; }
}
