/* ==================================================================
   KRANE DIGITAL HUB – MERGED STYLESHEET (FIXED)
   ==================================================================
   Fixes applied:
     - Reduced top spacing (hero padding)
     - Testimonials now show ALL cards in infinite horizontal scroll
     - Particles canvas size explicitly set
     - Removed stray text-shadow line
   ================================================================== */

/* ========== 1. ROOT VARIABLES & BASE ========== */
:root {
  /* dark mode (default) */
  --bg-main: #050914;
  --bg-glass: rgba(255,255,255,0.05);
  --bg-glass-strong: rgba(255,255,255,0.08);
  --text-main: #e6f0ff;
  --text-muted: #9fb2d9;
  --accent: #00f7ff;
  --accent-glow: #00e0ff;
  --radius: 16px;
  --blur: blur(18px);
  --neon-1: #00f6ff;
  --neon-2: #7b42ff;
  --neon-3: #6ad7ff;
  --muted: rgba(220,235,255,0.85);
  --card-bg: rgba(6,10,22,0.6);
  --transition-smooth: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #020418;
  color: #e8f4ff;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ========== 2. LIGHT MODE – OIL PAINT GREY PALETTE ========== */
html[data-theme="light"] {
  --bg-main: #ece8e0;
  --bg-glass: rgba(220, 210, 190, 0.65);
  --bg-glass-strong: rgba(230, 220, 200, 0.8);
  --text-main: #1e2a3a;
  --text-muted: #3a4a5a;
  --accent: #2c7da0;
  --accent-glow: #1e5a6e;
  --neon-1: #2c7da0;
  --neon-2: #3b5e7a;
  --neon-3: #4a6e8a;
  --muted: #2c3e4e;
  --card-bg: rgba(240, 235, 225, 0.7);
}
html[data-theme="light"] body {
  background: linear-gradient(145deg, #ece8e0 0%, #d6d2c4 100%);
  filter: brightness(1.0);  /* 20% dimmer */
}

html[data-theme="light"] .glass-card,
html[data-theme="light"] .matrix-card,
html[data-theme="light"] .nexus-card,
html[data-theme="light"] .aside-card,
html[data-theme="light"] .kdh-comments {
  background: rgba(245, 240, 230, 0.85);
  backdrop-filter: blur(12px);
  border-color: rgba(44, 125, 160, 0.3);
  color: #1e2a3a;
}
html[data-theme="light"] .hero-title,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
  color: #2c7da0;
  text-shadow: none;
}
html[data-theme="light"] .caption,
html[data-theme="light"] p,
html[data-theme="light"] li {
  color: #2c3e4e;
}
html[data-theme="light"] .site-header {
  background: rgba(230, 225, 215, 0.9);
  border-bottom: 1px solid rgba(44, 125, 160, 0.2);
}
html[data-theme="light"] .main-nav a {
  color: #2c3e4e;
}
html[data-theme="light"] .main-nav a:hover {
  color: #2c7da0;
}
html[data-theme="light"] .btn.primary {
  background: linear-gradient(90deg, #2c7da0, #3b5e7a);
  color: #f0f0f0;
}
html[data-theme="light"] .ai-orb {
  background: radial-gradient(circle at 30% 20%, #2c7da0, #1a4b66);
}
html[data-theme="light"] .chat-panel {
  background: rgba(230, 225, 215, 0.95);
  border-color: #2c7da0;
}
html[data-theme="light"] .chat-header {
  background: rgba(44, 125, 160, 0.8);
  color: #fff;
}
html[data-theme="light"] .message.user {
  background: #2c7da0;
  color: white;
}
html[data-theme="light"] .message.bot {
  background: rgba(44, 125, 160, 0.2);
  color: #1e2a3a;
}
html[data-theme="light"] .kdh-footer {
  background: #d6d2c4;
  border-top-color: #2c7da0;
}
html[data-theme="light"] .kdh-footer-copy {
  color: #2c3e4e;
}

/* Light mode: make final card text readable */
html[data-theme="light"] .kdh-final-card {
  background: rgba(245, 240, 230, 0.95);
  border-color: #2c7da0;
}
html[data-theme="light"] .kdh-final-card h3 {
  color: #1e5a6e;
}
html[data-theme="light"] .kdh-final-card li,
html[data-theme="light"] .kdh-final-card p,
html[data-theme="light"] .kdh-final-card .caption {
  color: #1e2a3a !important;
  text-shadow: none;
}
html[data-theme="light"] .kdh-final-card {
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* ============================================================
   LIGHT MODE: 3D GLOSSY CARDS (enhances all glass cards)
   ============================================================ */
html[data-theme="light"] {
  background: radial-gradient(circle at 20% 20%, rgba(0,180,255,0.08), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(120,0,255,0.06), transparent 70%),
              linear-gradient(135deg, #e8f1ff, #dfe9f5 40%, #e6edf7);
  background-attachment: fixed;
}

html[data-theme="light"] .glass-card,
html[data-theme="light"] .matrix-card,
html[data-theme="light"] .nexus-card,
html[data-theme="light"] .aside-card,
html[data-theme="light"] .kdh-comments,
html[data-theme="light"] .kdh-final-card,
html[data-theme="light"] .mon-card,
html[data-theme="light"] .chat-panel,
html[data-theme="light"] .testi-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(235,240,255,0.75)),
              radial-gradient(circle at 15% 25%, rgba(0,220,255,0.18), transparent 60%),
              radial-gradient(circle at 85% 75%, rgba(140,0,255,0.14), transparent 65%),
              radial-gradient(circle at 50% 100%, rgba(120,20,40,0.12), transparent 70%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 25px 45px -15px rgba(0,0,0,0.25),
              inset 0 0 0 1px rgba(255,255,255,0.35),
              inset 0 0 25px rgba(0,220,255,0.18),
              inset 0 0 30px rgba(140,0,255,0.15),
              inset 0 0 35px rgba(120,20,40,0.12),
              0 0 25px rgba(0,200,255,0.12),
              0 0 30px rgba(120,0,255,0.10);
  background-blend-mode: screen, overlay, soft-light, normal;
  transform: translateY(-2px);
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

html[data-theme="light"] .glass-card::before,
html[data-theme="light"] .matrix-card::before,
html[data-theme="light"] .nexus-card::before,
html[data-theme="light"] .aside-card::before,
html[data-theme="light"] .testi-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0,220,255,0.6), rgba(120,0,255,0.5), rgba(0,220,255,0.6));
  opacity: 0.15;
  filter: blur(12px);
  animation: abyssPulse 6s ease-in-out infinite;
}
@keyframes abyssPulse {
  0% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.02); }
  100% { opacity: 0.1; transform: scale(1); }
}

html[data-theme="light"] .glass-card::after,
html[data-theme="light"] .matrix-card::after,
html[data-theme="light"] .nexus-card::after,
html[data-theme="light"] .aside-card::after,
html[data-theme="light"] .testi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(0,220,255,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
html[data-theme="light"] .glass-card:hover::after,
html[data-theme="light"] .matrix-card:hover::after,
html[data-theme="light"] .nexus-card:hover::after,
html[data-theme="light"] .aside-card:hover::after,
html[data-theme="light"] .testi-card:hover::after {
  opacity: 1;
}

html[data-theme="light"] .glass-card:hover,
html[data-theme="light"] .matrix-card:hover,
html[data-theme="light"] .nexus-card:hover,
html[data-theme="light"] .aside-card:hover,
html[data-theme="light"] .testi-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 35px 55px -15px rgba(0,0,0,0.3),
              0 0 35px rgba(0,200,255,0.2),
              0 0 40px rgba(120,0,255,0.15);
}

/* ============================================================
   BUTTON STYLES (FIXED – removed orphaned text-shadow)
   ============================================================ */
button,
.slider-btn,
.arrow-btn {
  color: #ffffff;
  background: linear-gradient(170deg, #001a2e, #003a66, #0066cc);
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 200, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 12px rgba(0,200,255,0.25), inset 0 0 6px rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}
button:hover,
.slider-btn:hover,
.arrow-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #002a4d, #0059b3, #00c8ff);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 18px rgba(0,200,255,0.6), 0 0 25px rgba(120,0,255,0.25);
  transform: translateY(-2px) scale(1.02);
}

/* ========== 3. BACKGROUND LAYERS & PARTICLES ========== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.glow-gradients {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 500px at 20% 30%, rgba(0,230,255,0.08), transparent 60%),
              radial-gradient(700px 500px at 85% 70%, rgba(100,80,255,0.06), transparent 70%);
  animation: auroraShift 22s infinite alternate;
  z-index: 1;
  filter: blur(12px) saturate(120%);
}
@keyframes auroraShift {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}
.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
}
header, main, footer, .page-nav { position: relative; z-index: 10; }

/* ========== 4. HEADER & NAVIGATION ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(8px) saturate(140%);
  background: linear-gradient(180deg, rgba(2,6,18,0.65), rgba(2,6,18,0.3));
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,246,255,0.3), transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(0,246,255,0.04);
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 0.4s ease;
}
.brand-logo:hover { transform: translateY(-6px) rotate(-4deg); }
.logo-link { display: inline-block; border-radius: 50%; overflow: hidden; }
.brand-text { text-align: center; flex: 1; }
.brand-text h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 1000;
  letter-spacing: 1px;
  font-size: 2.10rem;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.main-nav { display: flex; align-items: center; justify-content: center; padding: 8px 18px; gap: 12px; }
.main-nav ul { list-style: none; display: flex; gap: 12px; align-items: center; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  position: relative;
  transition: all .18s;
  backdrop-filter: blur(4px);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  transition: width .28s;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--neon-1); transform: translateY(-3px); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--neon-2); }

/* ========== 5. HERO SECTION (reduced top padding) ========== */
.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
  gap: 28px;
  padding: 30px 6vw 60px;  /* <-- reduced top padding from 60px to 30px */
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 18px 60px rgba(2,6,24,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}
.glass-card {
  backdrop-filter: blur(6px) saturate(140%);
  background: var(--bg-glass);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: var(--transition-smooth);
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(0,247,255,0.3); }
.hero-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--neon-1);
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 4px 18px rgba(0,246,255,0.06);
}
.hero-lead { color: var(--muted); line-height: 1.5; }
.hero-ctas { margin-top: 14px; display: flex; gap: 10px; }
.hero-aside {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 22px;
  height: 100%;
}
.hero-aside .aside-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  background: var(--bg-glass-strong);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-aside .aside-card h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--accent); }
.hero-aside .aside-card .caption { font-size: 0.83rem; line-height: 1.5; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-aside { grid-template-rows: auto; }
}

/* ========== 6. MATRIX GRID (cards) ========== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.matrix-card {
  background: var(--bg-glass-strong);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.03);
}
.matrix-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.matrix-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}
.matrix-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--accent);
}
.caption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ========== 7. BUTTONS ========== */
.btn {
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s;
}
.btn.primary {
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  color: #021;
  box-shadow: 0 12px 36px rgba(123,66,255,0.12);
}
.btn.primary:hover { transform: translateY(-4px); box-shadow: 0 18px 60px rgba(123,66,255,0.18); }
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.04);
}

/* ========== 8. CONTENT SECTIONS ========== */
.content-section {
  max-width: 1200px;
  margin: 28px auto;
  padding: 20px;
  border-radius: 12px;
  background: transparent;
}
.content-section h2, .content-section h3 {
  color: var(--neon-1);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 12px;
}
.content-section p, .content-section li, .caption {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ========== 9. KDH RHOMBUS MATRIX ========== */
.rhombus-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
}
.rhombus-grid {
  position: relative;
  width: 420px;
  height: 420px;
}
.rhombus {
  position: absolute;
  width: 120px;
  height: 120px;
  transform: rotate(45deg);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.25);
  background: #2c2f9e;
  box-shadow: 0 0 25px rgba(0,255,255,0.25), inset 0 0 12px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rhombus img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 145%;
  height: 145%;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(-45deg);
  filter: saturate(110%) contrast(105%);
}
.rhombus:hover {
  box-shadow: 0 0 40px rgba(0,255,255,0.7), inset 0 0 20px rgba(0,0,0,0.6);
  z-index: 5;
}
.rhombus-center {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 3;
}
.r-top { top: 0; left: 50%; transform: translateX(-50%) rotate(45deg); }
.r-bottom { bottom: 0; left: 50%; transform: translateX(-50%) rotate(45deg); }
.r-left { left: 0; top: 50%; transform: translateY(-50%) rotate(45deg); }
.r-right { right: 0; top: 50%; transform: translateY(-50%) rotate(45deg); }
.r-top-left { top: 15%; left: 15%; }
.r-top-right { top: 15%; right: 15%; }
@media (max-width: 600px) { .rhombus-grid { transform: scale(0.85); } }

/* ========== 10. KDH NEXUS SEPTAGON GRID ========== */
.nexus-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}
.nexus-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.nexus-card {
  width: 280px;
  height: 290px;
  padding: 20px;
  color: #e6f7ff;
  text-align: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,255,255,0.15);
  box-shadow: 0 0 25px rgba(0,255,255,0.08);
  clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0% 50%, 15% 15%);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 35px 25px;
  box-sizing: border-box;
}
.nexus-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 40px rgba(0,200,255,0.2);
}
.nexus-card h3 { color: #00eaff; font-size: 16px; margin-bottom: 10px; }
.nexus-card strong { display: block; color: #ffffff; margin-bottom: 8px; font-size: 13px; }
.nexus-card p { font-size: 12px; line-height: 1.5; color: #cfd8dc; }
.nexus-row.center { justify-content: center; }
.nexus-card h3, .nexus-card strong, .nexus-card p { max-width: 85%; }

/* ========== 11. KDH HQ SECTION ========== */
.kdh-hq-section {
  position: relative;
  height: 80vh;
  width: 100%;
  background: url('IMG-20240831-WA0026 - Copy.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
  overflow: hidden;
}
.kdh-hq-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,10,20,0.7), rgba(5,10,20,0.9));
  backdrop-filter: blur(2px);
}
.kdh-hq-content { position: relative; text-align: center; z-index: 2; }
.kdh-hq-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  letter-spacing: 2px;
  color: #dfefff;
  text-shadow: 0 0 10px rgba(0,170,255,0.3);
  margin-bottom: 10px;
}
.kdh-hq-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: rgba(200,220,255,0.75);
  max-width: 600px;
  margin: auto;
}

/* ========== 13. FOOTER & SOCIAL ICONS ========== */
.kdh-footer {
  width: 100%;
  background: linear-gradient(180deg, rgba(5,12,20,0.95), rgba(2,6,12,1));
  border-top: 1px solid rgba(120,180,255,0.15);
  padding: 24px 12px;
  position: relative;
  z-index: 5;
}
.kdh-footer-inner { max-width: 1200px; margin: auto; text-align: center; }
.kdh-footer-label {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  color: #9cc9ff;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.kdh-social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}
.kdh-social-links a {
  display: inline-flex;
  width: 26px;
  height: 26px;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.kdh-social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(120,180,255,0.35));
}
.kdh-social-links a:hover { opacity: 1; transform: translateY(-3px) scale(1.12); }
.kdh-footer-copy { font-size: 12px; color: rgba(200,220,255,0.55); margin-top: 6px; }
.kdh-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(120,180,255,0.08), transparent 70%);
  pointer-events: none;
}
.neon-link {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
}
.neon-link img {
  width: 100%;
  height: 100%;
  z-index: 2;
  filter: drop-shadow(0 0 4px rgba(160,220,255,0.6)) drop-shadow(0 0 10px rgba(80,160,255,0.35));
  transition: transform 0.35s ease, filter 0.35s ease;
}
.neon-link:hover img {
  transform: scale(1.18);
  filter: drop-shadow(0 0 8px rgba(190,240,255,0.9)) drop-shadow(0 0 18px rgba(100,200,255,0.8)) drop-shadow(0 0 30px rgba(120,180,255,0.6));
}
.neon-trail {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(120,255,255,0), rgba(140,200,255,0.9), rgba(120,160,255,0), rgba(180,255,255,0.8), rgba(120,255,255,0));
  opacity: 0;
  filter: blur(8px);
  z-index: 1;
}
.neon-link:hover .neon-trail { opacity: 1; animation: neon-spin 1.8s linear infinite; }
@keyframes neon-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.neon-link img { animation: ice-pulse 5s ease-in-out infinite; }
@keyframes ice-pulse {
  0%,100% { filter: drop-shadow(0 0 4px rgba(120,180,255,0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(160,220,255,0.8)); }
}

/* ========== 14. KDH FINAL CARD & COMMENTS ========== */
.kdh-final-card {
  margin: 80px auto;
  max-width: 900px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(10,25,45,0.8), rgba(5,10,20,0.9));
  border: 1px solid rgba(0,200,255,0.25);
  box-shadow: 0 0 40px rgba(0,200,255,0.15);
  text-align: center;
}
.kdh-final-card h3 { color: #7fe9ff; margin-bottom: 20px; }
.kdh-final-card ul { list-style: none; padding: 0; }
.kdh-final-card li { margin: 12px 0; color: #d6ecff; }

.kdh-comments {
  max-width: 700px;
  margin: 60px auto;
  text-align: center;
}
.kdh-comments input, .kdh-comments textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid rgba(0,200,255,0.3);
  color: var(--text-main);
  border-radius: 20px;
}
.kdh-comments button {
  margin-top: 10px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #00d9ff, #007bff);
  border: none;
  border-radius: 40px;
  color: #00131f;
  cursor: pointer;
  font-weight: bold;
}
#formFeedback { margin-top: 12px; font-size: 0.9rem; }

/* ========== 15. TESTIMONIALS – INFINITE HORIZONTAL SCROLL (FIXED) ========== */
.testimonial-wrap {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  overflow: hidden;
  padding: 10px 0;
}
.testi-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scrollTestimonials 150s linear infinite;
}
.testi-track:hover {
  animation-play-state: paused;
}
.testi-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 16px 28px;
  min-width: 340px;
  width: auto;
  border: 1px solid rgba(0,255,255,0.2);
  transition: 0.25s;
  flex-shrink: 0;
}
.testi-card:hover {
  transform: translateY(-5px);
  border-color: cyan;
}
.testi-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid cyan;
  object-fit: cover;
}
@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .testi-card {
    min-width: 280px;
    padding: 12px 20px;
  }
}

/* ========== 16. LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(2,6,18,0.92);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 28px;
}
.lightbox img {
  max-width: 92%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
.lb-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ========== 17. THEME TOGGLE SWITCH ========== */
.theme-toggle {
  margin-left: 10px;
  display: flex;
  align-items: center;
}
.theme-toggle input { display: none; }
.theme-toggle label {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

/* ========== 18. AI ORB & CHAT PANEL ========== */
.ai-orb {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 30% 20%, var(--accent), #0066cc);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0,242,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}
.ai-orb:hover { transform: scale(1.08); }
.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  height: 500px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid rgba(0,242,255,0.3);
}
.chat-header {
  padding: 16px;
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 20px;
}
.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #021;
}
.message.bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.15);
}
.chat-input-area {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.chat-input-area input {
  flex: 1;
  padding: 10px;
  border-radius: 40px;
  border: none;
  background: rgba(0,0,0,0.3);
  color: white;
}

/* ========== 19. SCROLL ANIMATIONS & UTILITIES ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.btn, .matrix-card, .nexus-card, .testi-card { transition: all 0.3s cubic-bezier(0.2,0.9,0.4,1.1); }
img[loading="lazy"] { background: rgba(0,0,0,0.2); }
.float-slow { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }
.spin-slow { animation: spinSlow 18s linear infinite; transform-origin: center center; }
@keyframes spinSlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.nav-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 60px 0;
}
.nav-controls a, .nav-controls button {
  padding: 10px 20px;
  border-radius: 20px;
  background: rgba(0,200,255,0.15);
  color: #9fe8ff;
  border: 1px solid rgba(0,200,255,0.3);
  text-decoration: none;
  transition: all 0.2s;
}

/* Light mode override – makes buttons clearly visible */
html[data-theme="light"] .nav-controls a,
html[data-theme="light"] .nav-controls button {
  background: rgba(44, 125, 160, 0.2);
  color: #1e5a6e;
  border: 1px solid #2c7da0;
  font-weight: 600;
}

.adsense-placeholder { background: rgba(0,200,255,0.1); padding: 20px; border-radius: 20px; margin-top: 16px; font-size: 0.85rem; }