/* ============================================
   Kiboko Tech Solutions — Custom Stylesheet
   Primary: #0D6EFD  |  Accent: #14B8A6
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #0D6EFD; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #0b5ed7; }

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #0D6EFD 0%, #14B8A6 100%);
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar-scrolled {
  background: rgba(10, 10, 20, 0.97) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-link { transition: color 0.2s ease, background 0.2s ease; border-radius: 8px; }
.nav-link.active { color: #fff !important; background: rgba(13,110,253,0.15); }

/* Mobile menu */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.mobile-menu.open { max-height: 520px; }

/* ============================================
   HERO
   ============================================ */
.hero-bg {
  background: radial-gradient(ellipse at 20% 50%, rgba(13,110,253,0.18) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(20,184,166,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 80%, rgba(99,102,241,0.1) 0%, transparent 40%),
              #050814;
}

/* Grid pattern overlay */
.hero-grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #93c5fd 40%, #14B8A6 70%, #fff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #0D6EFD, #14B8A6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero badge */
.hero-badge {
  background: rgba(13,110,253,0.12);
  border: 1px solid rgba(13,110,253,0.3);
  backdrop-filter: blur(8px);
}

/* ============================================
   PARTICLES
   ============================================ */
#particles { pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(13,110,253,0.6);
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.4; }
  100% { transform: translateY(-120px) scale(1.5); opacity: 0; }
}

/* Floating blobs */
.blob {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob-morph 12s ease-in-out infinite;
  filter: blur(60px);
  opacity: 0.15;
}
.blob-2 { animation-delay: -4s; animation-duration: 16s; }
.blob-3 { animation-delay: -8s; animation-duration: 10s; }
@keyframes blob-morph {
  0%,100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25%      { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50%      { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75%      { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Float animation for decorative elements */
.float { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 8s ease-in-out infinite reverse; }
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-20px); }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right { opacity: 0; transform: translateX(32px);  transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delay helpers */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(13,110,253,0.12);
  border-color: rgba(13,110,253,0.2);
}

/* Service card with gradient border on hover */
.service-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(13,110,253,0.14);
  border-color: #0D6EFD;
}
.service-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon-wrap { transform: scale(1.1) rotate(-5deg); }

/* Project / portfolio card */
.project-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.15);
}
.project-card .card-overlay {
  background: linear-gradient(to top, rgba(5,8,20,0.95) 0%, rgba(5,8,20,0.3) 60%, transparent 100%);
  transition: opacity 0.3s ease;
}

/* Testimonial card */
.testimonial-card {
  background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
  border: 1px solid rgba(13,110,253,0.08);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(13,110,253,0.1);
}

/* Client logo card */
.client-logo-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all 0.3s ease;
  filter: grayscale(0.4);
}
.client-logo-card:hover {
  filter: grayscale(0);
  border-color: #0D6EFD;
  box-shadow: 0 8px 24px rgba(13,110,253,0.12);
  transform: scale(1.04);
}

/* Tech badge */
.tech-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.tech-badge:hover {
  background: rgba(13,110,253,0.08);
  border-color: rgba(13,110,253,0.3);
  transform: translateY(-2px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0D6EFD;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13,110,253,0.35);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #fff;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #0D6EFD;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid #0D6EFD;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: #0D6EFD;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13,110,253,0.3);
}

/* ============================================
   FORMS
   ============================================ */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.form-input:focus {
  border-color: #0D6EFD;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}
.form-input::placeholder { color: #9ca3af; }

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,110,253,0.08);
  border: 1px solid rgba(13,110,253,0.2);
  color: #0D6EFD;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Stats counter */
.stat-number { font-variant-numeric: tabular-nums; }

/* Stats section gradient bg */
.stats-bg {
  background: linear-gradient(135deg, #050814 0%, #0a1628 50%, #050814 100%);
}

/* Process timeline */
.process-connector {
  background: linear-gradient(to bottom, #0D6EFD, #14B8A6);
}

/* ============================================
   DARK SECTIONS
   ============================================ */
.section-dark {
  background: linear-gradient(135deg, #060b1a 0%, #0d1b38 100%);
}
.section-dark-2 {
  background: #050814;
}
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 20px;
}
.glass-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(13,110,253,0.3);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}
@keyframes whatsapp-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
}

/* ============================================
   PAGE HERO (non-home pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, #060b1a 0%, #0d1b38 60%, #0a1628 100%);
  background-color: #060b1a;
  padding: 160px 0 80px;
}
/* Stack grid pattern ON TOP of the dark gradient — both layers preserved */
.page-hero-pattern {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #060b1a 0%, #0d1b38 60%, #0a1628 100%);
  background-color: #060b1a;
}

/* ============================================
   TYPEWRITER
   ============================================ */
.typewriter-cursor::after {
  content: '|';
  color: #14B8A6;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ============================================
   TABS (Portal)
   ============================================ */
.tab-btn { transition: all 0.2s ease; }
.tab-btn.active {
  background: #0D6EFD;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

/* Sidebar nav (Portal dashboard) */
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}
.sidebar-link:hover { background: rgba(13,110,253,0.1); color: #fff; }
.sidebar-link.active { background: rgba(13,110,253,0.15); color: #60a5fa; border-left: 3px solid #0D6EFD; }

/* ============================================
   TRAINING CARDS
   ============================================ */
.course-card {
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(13,110,253,0.12);
  border-color: #0D6EFD;
}
.course-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  border-color: rgba(13,110,253,0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-gradient {
  background: linear-gradient(135deg, #0D6EFD 0%, #0891b2 50%, #14B8A6 100%);
}

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-gradient { background: linear-gradient(135deg,#0D6EFD,#14B8A6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bg-grid { background-image: radial-gradient(circle, rgba(13,110,253,0.08) 1px, transparent 1px); background-size: 32px 32px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(13,110,253,0.3), transparent); }
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.shine { position: relative; overflow: hidden; }
.shine::after { content: ''; position: absolute; top: -50%; left: -75%; width: 50%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transform: skewX(-15deg); transition: left 0.6s ease; }
.shine:hover::after { left: 125%; }

/* Notification dot */
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; position: absolute; top: -2px; right: -2px; }

/* Status badges */
.badge-active   { background: rgba(20,184,166,0.1); color: #0d9488; border: 1px solid rgba(20,184,166,0.3); }
.badge-pending  { background: rgba(251,191,36,0.1); color: #d97706; border: 1px solid rgba(251,191,36,0.3); }
.badge-done     { background: rgba(34,197,94,0.1);  color: #16a34a; border: 1px solid rgba(34,197,94,0.3); }
.badge-review   { background: rgba(13,110,253,0.1); color: #0D6EFD; border: 1px solid rgba(13,110,253,0.3); }

/* Responsive video embed */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ============================================
   RESPONSIVE FIXES
   ============================================ */
@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem !important; line-height: 1.15 !important; }
  .btn-primary, .btn-secondary, .btn-outline { padding: 12px 22px; font-size: 14px; }
}
