@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,600,700,800&display=swap');

@font-face {
  font-family: 'Minecraft';
  src: url('fonts/Minecraft.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   KBJS Studios — Design System (Dual Theme - Dark by Default)
   ============================================================ */

/* --- VARIABLES & TOKENS --- */
:root {
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Satoshi', sans-serif;

  /* Accent Colors (Consistent across themes) */
  --primary:        #5b4fff;
  --primary-glow:   rgba(91, 79, 255, 0.25);
  --secondary:      #00c2ff;
  --secondary-glow: rgba(0, 194, 255, 0.25);
  --accent:         #ff4d94;
  --accent-glow:    rgba(255, 77, 148, 0.25);

  /* Dark Color Palette (Default) */
  --bg-main:     #08090d;
  --bg-surface:  #10121a;
  --bg-elevated: #171a26;
  --bg-glass:    rgba(16, 18, 26, 0.65);
  --bg-glass-active: rgba(23, 26, 38, 0.9);

  /* Text */
  --text-main:    #f3f4f6;
  --text-sub:     #d1d5db;
  --text-muted:   #9ca3af;
  --text-faint:   #6b7280;

  /* Borders & Effects */
  --border-glass:      rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(91, 79, 255, 0.45);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 8px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(91, 79, 255, 0.25);
  --glass-blur:  blur(20px);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   all 0.2s ease;
}

/* Light Theme Variables */
body.light-theme {
  --bg-main:     #f5f6fa;
  --bg-surface:  #ffffff;
  --bg-elevated: #eef0f8;
  --bg-glass:    rgba(255, 255, 255, 0.65);
  --bg-glass-active: rgba(255, 255, 255, 0.9);

  /* Text */
  --text-main:    #111827;
  --text-sub:     #374151;
  --text-muted:   #6b7280;
  --text-faint:   #9ca3af;

  /* Borders & Effects */
  --border-glass:      rgba(0, 0, 0, 0.07);
  --border-glass-glow: rgba(91, 79, 255, 0.3);

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-md:   0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 32px rgba(91, 79, 255, 0.15);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-elevated); }
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border: 2px solid var(--bg-elevated);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }



/* --- CANVAS BACKGROUND --- */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(91, 79, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 194, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 10%, rgba(255, 77, 148, 0.05) 0%, transparent 50%),
    var(--bg-main);
  transition: background-color 0.4s ease;
}

/* --- UTILITY CLASSES --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px var(--primary-glow)) drop-shadow(0 0 25px var(--secondary-glow));
  animation: gradientShift 3s ease infinite;
}
.minecraft-font {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.1em;
  line-height: 1.4;
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-glow);
  box-shadow: var(--shadow-md);
}

/* --- BUTTONS --- */
.glow-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.glow-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.glow-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--primary-glow), 0 4px 12px var(--secondary-glow);
}

.glow-btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
}
.glow-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(91,79,255,0.07), transparent);
  transition: 0.5s;
}
.glow-btn-secondary:hover::before { left: 100%; }
.glow-btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}



/* --- HEADER --- */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}
header.scrolled {
  background: var(--bg-glass-active);
  border-color: var(--border-glass-glow);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 0 6px var(--primary-glow)); }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  padding: 5px 0;
}
.nav-links a:hover { color: var(--text-main); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

.nav-link.active {
  color: var(--text-main) !important;
}

.nav-discord-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition-fast) !important;
  text-decoration: none !important;
  padding: 0 !important;
}
.nav-discord-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 4px !important;
}
.nav-discord-btn::after { display: none !important; }
.nav-discord-btn:hover {
  background: #5865f2 !important;
  color: #fff !important;
  border-color: #5865f2 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 30px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(91, 79, 255, 0.08);
  border: 1px solid rgba(91, 79, 255, 0.2);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge span {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text-main);
  min-height: 1.2em;
}
.typing-cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 100;
  animation: blink 0.7s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.char-in {
  animation: fadeInUp 0.25s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.75;
}

.hero-ctas { display: flex; gap: 16px; }

/* Hero Console Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.console-container {
  width: 100%;
  aspect-ratio: 1.1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(91, 79, 255, 0.1);
}

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

.console-dots { display: flex; gap: 6px; }
.console-dot { width: 12px; height: 12px; border-radius: 50%; }
.console-dot.red    { background: #ff5f56; }
.console-dot.yellow { background: #ffbd2e; }
.console-dot.green  { background: #27c93f; }

.console-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.console-body {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: rgba(245, 246, 250, 0.6);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.console-line   { display: flex; gap: 8px; }
.console-prompt { color: var(--accent); user-select: none; }
.console-output { color: var(--text-sub); }

.glowing-globe {
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(91,79,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
  top: 5%; right: 5%;
  filter: blur(15px);
}

/* --- SECTION WRAPPER --- */
.section-wrapper {
  padding: 100px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

/* --- PAGE HERO (Sub-pages) --- */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 30px 60px;
}
.page-hero-content {
  max-width: 700px;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-main);
}
.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* --- SERVICE CARDS (Home & Sub-pages) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  background: var(--bg-surface);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.service-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.service-icon svg {
  stroke: currentColor;
}
.service-icon img {
  object-fit: contain;
  border-radius: 4px;
}
.service-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}
.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.service-arrow {
  margin-top: 16px;
  font-size: 1.3rem;
  color: var(--text-faint);
  transition: var(--transition-fast);
}
.service-card:hover .service-arrow {
  color: var(--primary);
  transform: translateX(6px);
}

/* --- WHY US SECTION --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 36px 28px;
  text-align: center;
  background: var(--bg-surface);
}
.why-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.why-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- GALLERY GRID (Thumbnails) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  background: var(--bg-surface);
  transition: box-shadow 0.3s ease;
}
.gallery-grid:hover .gallery-item:not(:hover) {
  filter: blur(1px);
}
.gallery-item:hover {
  box-shadow: 0 0 50px rgba(91, 79, 255, 0.6), 0 0 100px rgba(91, 79, 255, 0.2);
  border-color: rgba(91, 79, 255, 0.6);
}

.gallery-thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.gallery-thumb::after {
  content: "KBJS";
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.gallery-placeholder-icon {
  opacity: 0.5;
  filter: grayscale(0.3);
}
.gallery-info {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-info h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
}
.gallery-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(91, 79, 255, 0.08);
  color: var(--primary);
  font-weight: 600;
}

/* --- SPLIT CONTENT (Video page) --- */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.split-block {
  padding: 40px 32px;
  background: var(--bg-surface);
}
.split-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.split-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.soon-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(91, 79, 255, 0.1);
  color: var(--primary);
  vertical-align: middle;
  margin-left: 8px;
}
.coming-soon {
  opacity: 0.55;
  pointer-events: none;
}
.split-block > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  font-size: 0.88rem;
  color: var(--text-sub);
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.6rem;
  top: 4px;
}

/* --- CHANNELS GRID (About page) --- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--bg-surface);
}
.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.channel-icon {
  margin-bottom: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-icon img {
  object-fit: contain;
  border-radius: 4px;
}
.channel-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.channel-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--border-glass);
  transition: var(--transition-fast);
}
.channel-card:hover .channel-avatar {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* --- CONTACT CARD --- */
.contact-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--bg-surface);
}
.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-links .glow-btn {
  font-size: 0.8rem;
  padding: 12px 24px;
}

/* --- CTA SECTION --- */
.cta-section {
  text-align: center;
  padding: 40px 20px;
}

/* --- TOAST --- */
.toast-container {
  position: fixed;
  bottom: 30px; right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInLeft 0.3s ease forwards;
}
.toast.success { border-left-color: #10b981; }
.toast.error   { border-left-color: #ef4444; }

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-glass);
  background: var(--bg-surface);
  padding: 60px 30px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  color: var(--text-main);
}
.footer-col p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.social-links { display: flex; gap: 12px; }
.social-icon-btn {
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  text-decoration: none;
  padding: 0;
}
.social-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.social-icon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* --- KEYFRAMES --- */
@keyframes pulse {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(91,79,255,0.5); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(91,79,255,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(91,79,255,0); }
}
@keyframes float {
  0%   { transform: translateY(0px)   rotate(0deg); }
  50%  { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(0px)   rotate(0deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-badge, .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .page-hero-title { font-size: 2.6rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .split-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section-wrapper { padding: 80px 30px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.6rem; }
  .page-hero-title { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
  .page-hero-desc { font-size: 1rem; }
  .hero { padding: 100px 20px 60px; }
  .page-hero { padding: 120px 20px 50px; }
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    padding: 30px;
    gap: 20px;
    z-index: 200;
    animation: fadeIn 0.3s ease forwards;
  }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-wrapper { padding: 60px 20px; }
  .section-header { margin-bottom: 40px; }
  .service-card { padding: 28px 20px; }
  .why-card { padding: 28px 20px; }
  .console-container { aspect-ratio: auto; min-height: 240px; }
  .glowing-globe { width: 180px; height: 180px; filter: none; }
  .glass-panel, header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* --- LIKE WIDGET --- */
.like-widget {
  position: fixed;
  top: 80px; right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text-muted);
  user-select: none;
  transition: var(--transition-smooth);
}
.like-widget:hover {
  border-color: var(--border-glass-glow);
  box-shadow: var(--shadow-md);
}
.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 100px;
  transition: var(--transition-fast);
}
.like-btn:hover {
  color: var(--accent);
  background: rgba(255, 77, 148, 0.08);
}
.like-btn.liked {
  color: var(--accent);
}
.like-btn .heart {
  font-size: 1rem;
  transition: transform 0.3s ease;
  display: inline-block;
}
.like-btn.liked .heart {
  animation: heartPop 0.4s ease;
}
@keyframes heartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.like-count {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .page-hero-title { font-size: 1.6rem; }
  .section-title { font-size: 1.6rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .glow-btn { width: 100%; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
}

/* ============================================================
   KBJS Studios — Premium Animations & Optimization Styles
   ============================================================ */

/* --- CUSTOM CURSOR & MOUSE TRAIL --- */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none; /* Hide default cursor */
  }
  a, button, select, input, textarea, [role="button"], .glass-panel, .faq-question, .tier-card, .addon-item {
    cursor: none !important;
  }
  .custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
  }
  .custom-cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(91, 79, 255, 0.15);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease;
  }
  /* Active states on hover */
  body.cursor-hover .custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
  }
  body.cursor-hover .custom-cursor-ring {
    width: 48px;
    height: 48px;
    border-color: var(--secondary);
    background-color: rgba(0, 194, 255, 0.05);
  }
  body.cursor-click .custom-cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
  }
  body.cursor-click .custom-cursor-ring {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(91, 79, 255, 0.15);
  }
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.5s ease;
}
body.light-theme .theme-toggle-btn .moon-icon { display: block; }
body.light-theme .theme-toggle-btn .sun-icon { display: none; }
body:not(.light-theme) .theme-toggle-btn .moon-icon { display: none; }
body:not(.light-theme) .theme-toggle-btn .sun-icon { display: block; }

/* --- 3D TILT INTERACTION --- */
.glass-panel {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* --- GLOWING ORDER BUTTON --- */
.nav-order-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  border: none !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition-fast) !important;
  box-shadow: 0 4px 15px rgba(91, 79, 255, 0.3) !important;
}
.nav-order-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(91, 79, 255, 0.5), 0 0 10px rgba(255, 77, 148, 0.3) !important;
  color: #fff !important;
}

/* --- FAQ SECTION --- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.faq-item:hover {
  border-color: var(--border-glass-glow);
  box-shadow: var(--shadow-soft);
}
.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  color: var(--text-main);
  transition: var(--transition-fast);
}
.faq-question:hover {
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  padding-bottom: 20px;
}
.faq-arrow {
  font-size: 0.8rem;
  transition: transform 0.4s ease;
  color: var(--text-faint);
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-smooth);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-glow);
  box-shadow: var(--shadow-md);
}
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  object-fit: cover;
}
.testimonial-author-info h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}
.testimonial-author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.testimonial-rating {
  color: #fbbf24; /* Golden color for stars */
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* --- ORDER & PRICING CALCULATOR PAGE --- */
.order-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 992px) {
  .order-container {
    grid-template-columns: 1fr;
  }
}
.order-configurator {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.order-section {
  padding: 30px 28px;
}
.order-section h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}
.config-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.config-label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
}
.config-label span.value-display {
  color: var(--primary);
  font-weight: 700;
}
/* Slider */
.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: var(--bg-elevated);
  outline: none;
  transition: var(--transition-fast);
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--secondary);
}
/* Radio Cards & Tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.tier-card {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--bg-surface);
  position: relative;
}
.tier-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}
.tier-card.selected {
  border-color: var(--primary);
  background: rgba(91, 79, 255, 0.05);
  box-shadow: 0 0 16px rgba(91, 79, 255, 0.12);
}
.tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.tier-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tier-price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
body.light-theme .tier-card.selected {
  background: rgba(91, 79, 255, 0.03);
}

/* Checkbox Addons */
.addons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
  transition: var(--transition-fast);
}
.addon-item:hover {
  border-color: var(--primary-glow);
}
.addon-item.selected {
  border-color: var(--primary);
  background: rgba(91, 79, 255, 0.04);
}
.addon-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.addon-info input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.addon-name {
  font-size: 0.88rem;
  font-weight: 600;
}
.addon-price {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}
.addon-item.selected .addon-price {
  color: var(--primary);
}

/* Invoice Summary */
.invoice-panel {
  position: sticky;
  top: 100px;
  padding: 30px 24px;
}
.invoice-header {
  border-bottom: 1.5px dashed var(--border-glass);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.invoice-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.invoice-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100px;
  margin-bottom: 20px;
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-sub);
}
.invoice-row.total {
  border-top: 1.5px dashed var(--border-glass);
  padding-top: 16px;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}
.invoice-row.total span.total-price {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}
.invoice-empty {
  color: var(--text-faint);
  text-align: center;
  font-style: italic;
  padding: 24px 0;
}

/* Lead Intake Form inside Invoice */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}
.form-input:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: var(--shadow-glow);
}
textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  max-width: 480px;
  width: 90%;
  padding: 40px 32px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}
.modal-icon {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 16px;
  animation: pulseSuccess 2s infinite;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.order-summary-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
}

@keyframes pulseSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4)); }
  100% { transform: scale(1); }
}

/* Confetti Canvas overlay */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 10001;
  pointer-events: none;
}


