/* ============================================
   KUNEMIND INNOVATIONS — FINTECH IT REDESIGN
   Professional · Trustworthy · Modern
   ============================================ */

:root {
  /* Brand Colors — matched to KuneMind logo */
  --purple:        #6D28D9;
  --purple-mid:    #7C3AED;
  --purple-light:  #8B5CF6;
  --purple-dark:   #4C1D95;
  --gray-brand:    #9CA3AF;
  --gray-dark:     #6B7280;

  /* Backgrounds */
  --bg-white:      #FFFFFF;
  --bg-soft:       #F5F3FF;
  --bg-muted:      #FAFAF9;
  --bg-dark:       #1E0A3C;
  --bg-navy:       #2E1065;

  /* Text */
  --text-dark:     #1E1B4B;
  --text-body:     #374151;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --text-white:    #FFFFFF;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #4C1D95 0%, #6D28D9 60%, #8B5CF6 100%);
  --grad-hero:      linear-gradient(135deg, #1E0A3C 0%, #2E1065 50%, #4C1D95 100%);
  --grad-accent:    linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
  --grad-soft:      linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  --grad-card:      linear-gradient(145deg, #FFFFFF 0%, #F5F3FF 100%);
  --grad-footer:    linear-gradient(180deg, #1E0A3C 0%, #2E1065 100%);
  --grad-section:   linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(109,40,217,0.06), 0 1px 2px rgba(109,40,217,0.04);
  --shadow-md:  0 4px 16px rgba(109,40,217,0.08), 0 2px 6px rgba(109,40,217,0.04);
  --shadow-lg:  0 12px 40px rgba(109,40,217,0.10), 0 4px 12px rgba(109,40,217,0.06);
  --shadow-xl:  0 20px 60px rgba(109,40,217,0.12), 0 8px 24px rgba(109,40,217,0.06);
  --shadow-glow:0 0 30px rgba(109,40,217,0.18), 0 8px 32px rgba(109,40,217,0.10);

  /* Borders */
  --border:        1px solid #EDE9FE;
  --border-blue:   1px solid rgba(109,40,217,0.25);

  /* Typography */
  --font:         'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', sans-serif;

  /* Motion */
  --ease-fast:   all 0.2s ease;
  --ease-smooth: all 0.35s cubic-bezier(0.4,0,0.2,1);
  --ease-bounce: all 0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
  max-width: 100%;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 10px;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.2rem; }

p { color: var(--text-body); line-height: 1.8; }

a { color: var(--purple); text-decoration: none; transition: var(--ease-fast); }
a:hover { color: var(--purple-dark); }

.text-muted { color: var(--text-muted) !important; }
.lead { color: var(--text-body); font-size: 1.1rem; }

/* ============================================
   NAVIGATION
   ============================================ */

.navbar-premium {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15,35,87,0.06);
  padding: 0.85rem 0;
  transition: var(--ease-smooth);
}

.navbar-premium.scrolled {
  box-shadow: 0 2px 24px rgba(15,35,87,0.08);
  border-bottom-color: rgba(15,35,87,0.1);
}

.navbar-brand img {
  transition: var(--ease-smooth);
  filter: drop-shadow(0 1px 4px rgba(15,35,87,0.1));
}

.navbar-brand img:hover {
  filter: drop-shadow(0 2px 8px rgba(37,99,235,0.2));
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body) !important;
  margin: 0 0.2rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--ease-fast);
  letter-spacing: 0.01em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--purple) !important;
  background: rgba(109,40,217,0.06);
}

.btn-nav-cta {
  background: var(--grad-accent) !important;
  color: white !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 4px 14px rgba(109,40,217,0.3) !important;
  margin-left: 0.5rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border: none !important;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109,40,217,0.4) !important;
  color: white !important;
}

.navbar-toggler {
  border-color: rgba(37,99,235,0.3);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  transition: var(--ease-smooth);
  padding: 0.75rem 2rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn-gradient {
  background: var(--grad-accent);
  color: white;
  box-shadow: 0 4px 16px rgba(109,40,217,0.3);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(109,40,217,0.4);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--purple) !important;
  color: var(--purple) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--purple) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(109,40,217,0.25);
}

.btn-lg { font-size: 1.05rem; padding: 0.95rem 2.2rem; }

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge-premium {
  display: inline-block;
  background: rgba(109,40,217,0.08);
  color: var(--purple);
  border: 1px solid rgba(109,40,217,0.2);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-label {
  display: inline-block;
  background: rgba(109,40,217,0.08);
  color: var(--purple);
  border: 1px solid rgba(109,40,217,0.2);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text {
  background: var(--grad-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-premium {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px !important;
}

/* Abstract financial grid lines in background */
.hero-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Subtle radial glow center-right */
.hero-premium::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero tagline below greeting */
.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* Greeting badge hit — electric flicker then 2s powered-up bright */
@keyframes greetingHit {
  /* electric flicker phase — first 0.5s */
  0%    { transform: scale(1);    filter: brightness(1); }
  5%    { transform: scale(1.14); filter: brightness(4)   drop-shadow(0 0 24px rgba(216,180,254,1)); }
  9%    { transform: scale(1.08); filter: brightness(1.6); }
  13%   { transform: scale(1.18); filter: brightness(4.5) drop-shadow(0 0 32px rgba(255,255,255,1)); }
  17%   { transform: scale(1.11); filter: brightness(2); }
  20%   { transform: scale(1.2);  filter: brightness(3.8) drop-shadow(0 0 28px rgba(196,181,253,1)); }
  /* powered-up sustain — 0.5s to 2.5s (2 full seconds) */
  25%   { transform: scale(1.22); filter: brightness(3)   drop-shadow(0 0 22px rgba(196,181,253,0.9)); }
  80%   { transform: scale(1.2);  filter: brightness(2.8) drop-shadow(0 0 18px rgba(196,181,253,0.8)); }
  /* return to normal — last 0.5s */
  92%   { transform: scale(1.08); filter: brightness(1.5); }
  100%  { transform: scale(1);    filter: brightness(1); }
}
.hero-badge.badge-hit {
  animation: greetingHit 2s ease-out forwards !important;
}

/* Hero greeting badge — semi-white on dark background */
.hero-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  font-size: 2rem;
  letter-spacing: 0.06em;
  padding: 0.8rem 2.2rem;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

/* ── KuneMind → AI chip/eye launcher ── */
.km-launcher {
  display: inline-grid;
  place-items: center;
  position: relative;
  cursor: crosshair;
  padding-bottom: 1.4rem;
  user-select: none;
  width: 105px;
  height: 105px;
  margin-left: 3rem;
}
/* word and chip share the same grid cell — they overlap */
.km-word,
.km-gun-svg {
  grid-area: 1 / 1;
}
@keyframes kmWordBlink {
  0%, 100% { opacity: 1; filter: brightness(1.8) drop-shadow(0 0 10px rgba(196,181,253,0.9)); }
  50%       { opacity: 0.15; filter: brightness(1) drop-shadow(0 0 0px transparent); }
}
.km-word {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  opacity: 1;
  transform: scale(1);
  animation: kmWordBlink 1.1s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.km-gun-svg {
  width: 105px;
  height: 105px;
  overflow: visible;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.4s ease, transform 0.4s ease;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}
.hero-premium:hover .km-word {
  animation: none;
  opacity: 0;
  transform: scale(0.72);
}
.hero-premium:hover .km-gun-svg {
  opacity: 1;
  transform: scale(1);
}
@keyframes kmChipFire {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.km-launcher.firing {
  animation: kmChipFire 0.22s ease-out;
}
.km-launcher.firing .km-gun-svg {
  filter: drop-shadow(0 0 24px rgba(233, 213, 255, 1)) drop-shadow(0 0 8px rgba(139, 92, 246, 1));
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #C4B5FD 0%, #E9D5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-premium .lead {
  color: rgba(255,255,255,0.75);
}

.hero-premium .text-muted {
  color: rgba(255,255,255,0.6) !important;
}

.hero-stats {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-item h4 {
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Outline button in hero */
.hero-content .btn-outline-primary {
  border: 2px solid rgba(255,255,255,0.5) !important;
  color: white !important;
  background: transparent !important;
}

.hero-content .btn-outline-primary:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: white !important;
  color: white !important;
  box-shadow: none;
  transform: translateY(-2px);
}

/* ============================================
   HERO VISUAL (feature cards right column)
   ============================================ */

.hero-visual-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.visual-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.visual-blob-1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #8B5CF6 0%, #4C1D95 100%);
  top: -60px; right: -60px;
  animation-delay: 0s;
}

.visual-blob-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #A78BFA 0%, #6D28D9 100%);
  bottom: 30px; left: -40px;
  animation-delay: 3s;
}

.visual-blob-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #7C3AED 0%, #2E1065 100%);
  top: 45%; right: 5%;
  animation-delay: 6s;
}

@keyframes blobFloat {
  0%,100% { transform: translateY(0) translateX(0); }
  40%      { transform: translateY(-20px) translateX(12px); }
  70%      { transform: translateY(-8px) translateX(-12px); }
}

/* Feature cards in hero */
.feature-cards-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: var(--ease-smooth);
  animation: cardSlideUp 0.6s ease-out both;
  position: relative;
  overflow: hidden;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardSlideUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

/* ── Hit + Power-up ── */
@keyframes tileHitPower {
  /* electric hit + shake */
  0%   { transform: translate(0,0) rotate(0); border-color: rgba(255,255,255,0.18); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
  4%   { transform: translate(-8px,-5px) rotate(-2deg); border-color: rgba(216,180,254,1); box-shadow: 0 0 0 2px rgba(196,181,253,0.9), 0 0 45px rgba(139,92,246,1), 0 0 90px rgba(109,40,217,0.7); }
  8%   { box-shadow: 0 0 12px rgba(139,92,246,0.3); border-color: rgba(196,181,253,0.4); }
  12%  { transform: translate(8px,5px) rotate(2deg); border-color: rgba(216,180,254,1); box-shadow: 0 0 0 2px rgba(196,181,253,0.95), 0 0 55px rgba(139,92,246,1), 0 0 110px rgba(109,40,217,0.65); }
  16%  { box-shadow: 0 0 18px rgba(139,92,246,0.35); border-color: rgba(196,181,253,0.5); }
  20%  { transform: translate(-6px,3px) rotate(-1.5deg); border-color: rgba(216,180,254,0.95); box-shadow: 0 0 0 1px rgba(196,181,253,0.8), 0 0 40px rgba(139,92,246,0.95), 0 0 80px rgba(109,40,217,0.55); }
  27%  { transform: translate(6px,-3px) rotate(1.5deg); box-shadow: 0 0 22px rgba(139,92,246,0.45); }
  34%  { transform: translate(-4px,2px) rotate(-1deg); }
  40%  { transform: translate(4px,-1px) rotate(1deg); }
  47%  { transform: translate(0,0) rotate(0); }
  /* power-up glow sustain */
  54%  { border-color: rgba(196,181,253,0.9); box-shadow: 0 0 0 1px rgba(196,181,253,0.55), 0 0 35px rgba(139,92,246,0.85), 0 0 65px rgba(109,40,217,0.5); }
  75%  { border-color: rgba(196,181,253,0.5); box-shadow: 0 0 22px rgba(139,92,246,0.5), 0 0 40px rgba(109,40,217,0.3); }
  100% { transform: translate(0,0) rotate(0); border-color: rgba(255,255,255,0.18); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
}
@keyframes iconHitPower {
  0%   { transform: scale(1) rotate(0); filter: brightness(1); }
  12%  { transform: scale(1.45) rotate(-14deg); filter: brightness(3.5) drop-shadow(0 0 10px rgba(196,181,253,1)); }
  25%  { transform: scale(0.82) rotate(11deg); filter: brightness(1.8); }
  38%  { transform: scale(1.1) rotate(-5deg); }
  47%  { transform: scale(1) rotate(0); }
  /* power surge */
  55%  { transform: scale(1.22); filter: brightness(2.8) drop-shadow(0 0 12px rgba(196,181,253,0.95)); }
  72%  { transform: scale(1.08); filter: brightness(1.9) drop-shadow(0 0 6px rgba(139,92,246,0.7)); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes powerScan {
  from { transform: translateY(120%); opacity: 0.85; }
  to   { transform: translateY(-120%); opacity: 0; }
}
.feature-card.tile-hit {
  animation: tileHitPower 2s ease-out !important;
}
.feature-card.tile-hit .feature-card-icon {
  animation: iconHitPower 2s ease-out;
}
.feature-card.tile-hit .feature-card-icon i {
  color: #E9D5FF !important;
}
.feature-card.tile-hit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(196,181,253,0.22) 50%, transparent 100%);
  animation: powerScan 0.75s 0.5s ease-out both;
  pointer-events: none;
  z-index: 0;
}

.feature-card-icon {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  transition: var(--ease-smooth);
}

.feature-card:hover .feature-card-icon {
  background: rgba(255,255,255,0.28);
  transform: scale(1.08);
}

.feature-card-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.feature-card-text p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-premium { padding: 5.5rem 0; position: relative; }

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
}

.bg-light {
  background: var(--bg-soft) !important;
}

/* ============================================
   PREMIUM CARDS
   ============================================ */

.premium-card {
  background: var(--bg-white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--ease-smooth);
  box-shadow: var(--shadow-md);
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37,99,235,0.15);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: var(--ease-smooth);
  border: 4px solid var(--bg-white);
  outline: 1px solid rgba(109,40,217,0.12);
}

.about-image-wrapper img:hover {
  box-shadow: var(--shadow-glow);
}

.about-highlights { display: flex; flex-direction: column; gap: 1.25rem; }

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: var(--border);
  transition: var(--ease-smooth);
}

.highlight-item:hover {
  border-color: rgba(109,40,217,0.2);
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
}

.highlight-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--grad-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.highlight-item h5 { color: var(--text-dark); margin-bottom: 0.1rem; font-size: 1rem; }
.highlight-item p  { color: var(--text-muted) !important; font-size: 0.88rem; margin: 0; }

/* ============================================
   SERVICE CARDS
   ============================================ */

/* Compact icon-tile service card */
.service-card {
  text-align: left;
  padding: 1.4rem 1.4rem 1.2rem !important;
}

/* Coloured square with white icon image */
.svc-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(109,40,217,0.25);
  transition: var(--ease-smooth);
}

.svc-icon-wrap img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: invert(1) brightness(2);
}

.service-card:hover .svc-icon-wrap {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(109,40,217,0.35);
}

/* .service-icon kept for legacy reference — replaced by .svc-icon-wrap */

.gradient-bg-primary   { background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 100%); }
.gradient-bg-secondary { background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%); }
.gradient-bg-info      { background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 100%); }
.gradient-bg-success   { background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 100%); }
.gradient-bg-warning   { background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%); }
.gradient-bg-danger    { background: linear-gradient(135deg, #6D28D9 0%, #9333EA 100%); }

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.service-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

.service-features {
  list-style: none;
  padding: 0.6rem 0 0 0;
  border-top: 1px solid #EDE9FE;
  text-align: left;
  margin-top: 0.75rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: var(--text-body);
  font-size: 0.82rem;
}

.service-features i { color: var(--purple); font-size: 0.9rem; }

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-image-wrapper {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.product-image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-badge {
  display: inline-block;
  background: rgba(109,40,217,0.08);
  color: var(--purple);
  border: 1px solid rgba(109,40,217,0.2);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.product-badge.coming-soon {
  background: rgba(139,92,246,0.08);
  color: var(--purple-light);
  border-color: rgba(139,92,246,0.25);
}

.product-content h4 { color: var(--text-dark); margin-bottom: 0.4rem; }
.product-content p  { color: var(--text-muted); font-size: 0.9rem; }

.product-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.product-stats .badge {
  background: var(--bg-soft) !important;
  color: var(--text-body) !important;
  border: 1px solid #E2E8F0 !important;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  font-weight: 500;
}

/* ============================================
   CASE STUDIES
   ============================================ */

.case-study-card { overflow: hidden; }

.case-study-header {
  padding: 1.75rem 2rem !important;
  position: relative;
  overflow: hidden;
}

.case-study-header::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.bg-gradient-primary   { background: var(--grad-accent) !important; }
.bg-gradient-secondary { background: linear-gradient(135deg, #5B21B6 0%, #8B5CF6 100%) !important; }

.case-study-header h4 { color: white !important; font-size: 1.2rem; }
.case-study-header p  { color: rgba(255,255,255,0.75) !important; }

.case-study-body p { color: var(--text-body); font-size: 0.92rem; }
.case-study-body strong { color: var(--purple); }

.case-study-metrics {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F1F5F9;
}

.metric-item { text-align: center; }

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team-member-card { overflow: hidden; position: relative; }

.team-member-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.team-member-card:hover::after { transform: scaleX(1); }

.team-image-wrapper {
  position: relative;
  display: inline-block;
  width: 180px; height: 180px;
}

.team-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--grad-accent);
  z-index: 0;
}

.team-image {
  width: 174px !important;
  height: 174px !important;
  object-fit: cover;
  border-radius: 50% !important;
  position: relative;
  z-index: 1;
  border: 3px solid white;
}

.team-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(109,40,217,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.team-member-card:hover .team-overlay { opacity: 1; }

.social-icon { color: white; font-size: 1.5rem; transition: transform 0.2s; }
.social-icon:hover { color: white; transform: scale(1.15); }

.team-name     { color: var(--text-dark) !important; font-size: 1.2rem; }
.team-position { color: var(--purple) !important; }
.team-member-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--grad-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.info-content h5 { color: var(--text-dark); margin-bottom: 0.3rem; font-size: 1rem; }
.info-content p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.info-content a  { color: var(--purple); font-size: 0.9rem; display: block; }
.info-content a:hover { color: var(--purple-dark); }

/* Form */
.contact-form .form-label {
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.contact-form .form-control,
.contact-form .form-select {
  background: var(--bg-soft);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--ease-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: white;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.1);
  color: var(--text-dark);
  outline: none;
}

.contact-form .form-control::placeholder { color: var(--text-light); }

/* ============================================
   MAP
   ============================================ */

.map-container {
  border-radius: var(--radius-lg) !important;
  border: var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-premium {
  background: var(--grad-footer) !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-premium p { color: rgba(255,255,255,0.5) !important; }
.footer-premium h6 { color: rgba(255,255,255,0.9) !important; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
  transition: var(--ease-fast);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.9);
  padding-left: 4px;
}

.social-links { margin-top: 1rem; display: flex; gap: 0.5rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  transition: var(--ease-smooth);
}

.social-link:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(109,40,217,0.4);
}

.footer-premium hr { border-color: rgba(255,255,255,0.08) !important; }

.footer-brand img {
  filter: brightness(1.15);
}

/* ============================================
   SCROLL TOP
   ============================================ */

.scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--grad-accent);
  color: white;
  border-radius: var(--radius-sm);
  position: fixed;
  bottom: 2rem; right: 2rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(109,40,217,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: var(--ease-smooth);
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  color: white;
  box-shadow: 0 8px 24px rgba(109,40,217,0.5);
  transform: translateY(-3px);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

.alert-success {
  background: rgba(5,150,105,0.08);
  color: var(--emerald);
  border: 1px solid rgba(5,150,105,0.25);
}

.alert-danger {
  background: rgba(220,38,38,0.06);
  color: #DC2626;
  border: 1px solid rgba(220,38,38,0.2);
}

/* ============================================
   SECTION DIVIDERS (subtle top gradient line)
   ============================================ */

#services, #portfolio {
  position: relative;
}

#services::before, #portfolio::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109,40,217,0.2), transparent);
}

/* ============================================
   STATS ROW (numbers ticker bar)
   ============================================ */

.stats-ticker {
  background: var(--grad-accent);
  padding: 2rem 0;
}

.stats-ticker .stat-item h4 {
  color: white;
  font-size: 2.2rem;
  font-weight: 800;
}

.stats-ticker .stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .hero-title { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }
  h1 { font-size: 2.5rem; }

  .hero-visual-container { height: 360px; margin-top: 2rem; }
  .feature-cards-container { max-width: 330px; }

  /* Center KuneMind launcher on mobile */
  .hero-content {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .km-launcher {
    margin-left: 0 !important;
  }

  /* Tagline sits naturally below tiles with spacing */
  .hero-tagline-wrapper {
    margin-top: 5rem !important;
    padding-bottom: 2.5rem;
  }

  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    border: var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
  }

  .btn-nav-cta {
    margin-left: 0 !important;
    margin-top: 0.5rem;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .section-title { font-size: 1.75rem; }
  .section-premium { padding: 3.5rem 0; }

  .hero-badge {
    font-size: 1rem !important;
    padding: 0.6rem 1.2rem !important;
    letter-spacing: 0.04em !important;
  }

  .hero-stats { flex-wrap: wrap; gap: 1.5rem !important; }
  .stat-item h4 { font-size: 1.7rem; }

  .feature-cards-container { max-width: 290px; gap: 0.85rem; }
  .feature-card { padding: 1.1rem; }

  /* Space between KuneMind word and feature tiles */
  .hero-content { margin-bottom: 3rem; }

  /* Space above feature tiles */
  .hero-visual-container {
    height: 320px;
    margin-top: 0;
    padding-top: 1rem;
    margin-bottom: 2rem;
  }

  .case-study-metrics { flex-direction: column; gap: 0.75rem; }

  .team-image-wrapper { width: 160px; height: 160px; }
  .team-image { width: 154px !important; height: 154px !important; }

  .contact-form-wrapper { padding: 1.5rem !important; }

  .km-launcher { margin-left: 0 !important; }

  .visual-blob-1, .visual-blob-2, .visual-blob-3 { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-badge {
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
  }
  .d-flex.gap-3 { flex-direction: column; }
  .btn-lg { width: 100%; text-align: center; }
  .feature-cards-container { max-width: 260px; }
}
