/* RakshGlobal – Theme CSS */
/* 1) Theme Variables */
:root{
  --rk-bg:#0b1020;        /* dark background */
  --rk-surface:#121a2b;   /* surface panels */
  --rk-primary:#8b5cf6;   /* violet */
  --rk-secondary:#22d3ee; /* cyan accent */
  --rk-danger:#ff4d6d;
  --rk-success:#22c55e;
  --rk-text:#ffffff;      /* pure white */
  --rk-muted:#94a3b8;     /* warmer muted slate */
  --rk-border:rgba(226,232,240,.08); /* subtle borders */
}
/* 2) Base */
body{background-color:var(--rk-bg);color:var(--rk-text);} 
.bg-surface{background-color:var(--rk-surface);}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--rk-bg) 0%, var(--rk-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  margin-bottom: 2rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader-bar-container {
  width: 300px;
  margin: 0 auto 1rem;
  position: relative;
}

.loader-bar {
  height: 6px;
  background-color: rgba(139,92,246,.2);
  border-radius: 10px;
  overflow: visible;
  position: relative;
  box-shadow: 0 0 10px rgba(139,92,246,.3);
}

.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--rk-primary), var(--rk-secondary), var(--rk-primary));
  background-size: 200% 100%;
  border-radius: 10px;
  animation: loading-progress 2s ease-in-out forwards, gradient-shift 1.5s linear infinite;
  box-shadow: 0 0 15px rgba(139,92,246,.6), 0 0 30px rgba(34,211,238,.4);
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  animation: sparkle-move 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px white, 0 0 12px var(--rk-secondary);
}

.sparkle-1 {
  animation-delay: 0s;
}

.sparkle-2 {
  animation-delay: 0.5s;
}

.sparkle-3 {
  animation-delay: 1s;
}

.loader-text {
  color: var(--rk-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes loading-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes sparkle-move {
  0% {
    left: 0%;
    opacity: 0;
    transform: translateY(-50%) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.5);
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: translateY(-50%) scale(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(139,92,246,0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(34,211,238,0.7));
  }
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Force all text elements to use theme colors */
* {
  color: var(--rk-text);
}
h1, h2, h3, h4, h5, h6, p, li, span, div, label, strong, b, em, i, small {
  color: var(--rk-text) !important;
}
.text-dark, .text-black {
  color: var(--rk-text) !important;
}
/* Override Bootstrap text utilities to respect theme */
.card-title, .card-text, .card-body, .card-body * {
  color: var(--rk-text) !important;
}
.lead, .lead * {
  color: var(--rk-text) !important;
}
ul li, ol li {
  color: var(--rk-text) !important;
}
/* Make text-muted use theme variable - more aggressive */
.text-muted, small.text-muted, p.text-muted, div.text-muted, .text-muted * {
  color: var(--rk-muted) !important;
}
/* Feature box and similar content */
.feature-box, .feature-box * {
  color: var(--rk-text) !important;
}
.feature-box .text-muted {
  color: var(--rk-muted) !important;
}
/* Testimonial content */
.testimonial-card, .testimonial-card *, .testimonial-author, .testimonial-author * {
  color: var(--rk-text) !important;
}
.testimonial-card .text-muted {
  color: var(--rk-muted) !important;
} 
/* Hide default cursor when 3D cursor is active */
html, body {
  cursor: none;
}

/* Show cursor in text inputs for usability */
input[type="text"], input[type="email"], input[type="search"], input[type="password"],
input[type="tel"], input[type="url"], input[type="number"], textarea {
  cursor: text;
}

/* 3D Cursor Canvas */
#cursor-3d-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

@media (hover: none) {
  html, body {
    cursor: auto;
  }
  #cursor-3d-canvas {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html, body {
    cursor: auto;
  }
  #cursor-3d-canvas {
    display: none;
  }
}

/* Animated Cursor Trail */
.cursor-trail {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  background: radial-gradient(circle, var(--rk-primary), transparent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: cursor-pulse 2s ease-in-out infinite;
}

.cursor-trail.active {
  opacity: 0.4;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes cursor-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(139,92,246,0.3), 0 0 20px rgba(34,211,238,0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(139,92,246,0.5), 0 0 30px rgba(34,211,238,0.3);
  }
}

/* Cursor Spotlight Effect */
.cursor-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: screen;
  will-change: left, top;
}

.cursor-spotlight.spotlight-active {
  opacity: 1;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.25) 0%, rgba(34,211,238,.1) 40%, transparent 70%);
}

@media (hover: none) {
  .cursor-spotlight {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-spotlight {
    display: none;
  }
}

/* ========== Hero Enhanced Styles ========== */
.hero-enhanced {
  position: relative;
  overflow: hidden;
}

.hero-enhanced .hero-3d-container {
  width: 100%;
  height: 500px;
  position: relative;
}

.hero-enhanced .headline-glow {
  text-shadow: 0 0 20px rgba(139,92,246,0.3),
               0 0 40px rgba(139,92,246,0.2);
  animation: headline-pulse 3s ease-in-out infinite;
}

@keyframes headline-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(139,92,246,0.3), 0 0 40px rgba(139,92,246,0.2); }
  50% { text-shadow: 0 0 30px rgba(139,92,246,0.5), 0 0 60px rgba(139,92,246,0.3); }
}

@media (max-width: 991px) {
  .hero-enhanced .hero-3d-container {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .hero-enhanced .hero-3d-container {
    height: 300px;
  }
}

/* ========== Service Card Enhancements ========== */
.service-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--rk-border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(139,92,246,.3),
              0 4px 12px rgba(34,211,238,.2);
}

/* ========== Threat Intelligence Dashboard ========== */
.threat-dashboard-section {
  background: linear-gradient(180deg, var(--rk-bg) 0%, rgba(18,26,43,.8) 100%);
}

.stat-card {
  background: var(--rk-surface);
  border: 1px solid var(--rk-border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rk-primary), var(--rk-secondary));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(139,92,246,.2);
}

.stat-icon {
  display: inline-block;
}

.stat-number {
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-bar {
  height: 6px;
  background: rgba(139,92,246,.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  width: var(--width, 0%);
  border-radius: 3px;
  animation: stat-bar-fill 2s ease-out forwards;
}

@keyframes stat-bar-fill {
  from { width: 0%; }
  to { width: var(--width); }
}

/* Threat Map */
.threat-map-container {
  background: var(--rk-surface);
  border: 1px solid var(--rk-border);
  border-radius: 1rem;
  padding: 2rem;
}

.threat-map {
  width: 100%;
  height: 400px;
  background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.05), transparent),
              linear-gradient(180deg, rgba(18,26,43,.5) 0%, rgba(11,16,32,.8) 100%);
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139,92,246,.2);
}

.threat-map canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.threat-pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: threat-pulse 2s ease-out infinite;
}

.threat-pulse.high {
  background: radial-gradient(circle, #ef4444, transparent);
  box-shadow: 0 0 20px #ef4444;
}

.threat-pulse.medium {
  background: radial-gradient(circle, #f59e0b, transparent);
  box-shadow: 0 0 15px #f59e0b;
}

.threat-pulse.low {
  background: radial-gradient(circle, #10b981, transparent);
  box-shadow: 0 0 10px #10b981;
}

@keyframes threat-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

.threat-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px currentColor;
}

/* Cursor glow on hover */
a:hover, button:hover, .btn:hover {
  filter: drop-shadow(0 0 8px rgba(139,92,246,0.4));
  transition: filter 0.3s ease;
}
/* 3) Navbar */
.navbar-glass{
  background-color: rgba(11,16,32,.55); /* translucent surface */
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rk-border);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.navbar-dark .navbar-brand{color:var(--rk-primary);} 
.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rk-primary), var(--rk-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
a{color:var(--rk-secondary);} 
.navbar-dark .nav-link{
  color:rgba(226,232,240,.88); 
  position:relative; 
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.navbar-dark .nav-link svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.navbar-dark .nav-link:hover svg {
  opacity: 1;
}
.navbar-dark .nav-link:hover,.navbar-dark .nav-link:focus{
  color:var(--rk-secondary);
  text-shadow: 0 0 10px rgba(34,211,238,0.5), 
               0 0 20px rgba(34,211,238,0.3),
               0 0 30px rgba(34,211,238,0.2);
  transform: translateY(-2px);
}
.navbar-dark .nav-link.active {
  color:var(--rk-secondary);
  text-shadow: 0 0 8px rgba(34,211,238,0.4);
}
.navbar-dark .nav-link::after{
  content:""; position:absolute; left:0; right:0; bottom:.25rem; height:2px;
  background: linear-gradient(90deg, var(--rk-primary), var(--rk-secondary));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navbar-dark .nav-link:hover::after, .navbar-dark .nav-link.active::after{ transform: scaleX(1); }
/* Scrolled state: increase opacity */
body.nav-scrolled .navbar-glass{ background-color: rgba(11,16,32,.85); }
/* Advanced Dropdown Menu */
.dropdown-menu-advanced {
  min-width: 320px;
  padding: 0.75rem 0;
  background-color: var(--rk-surface);
  border: 1px solid var(--rk-border);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  margin-top: 0.5rem;
}
.dropdown-menu-advanced .dropdown-header {
  color: var(--rk-primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
}
.dropdown-menu-advanced .dropdown-item {
  padding: 0.75rem 1rem;
  color: var(--rk-text);
  transition: all 0.2s ease;
}
.dropdown-menu-advanced .dropdown-item:hover {
  background-color: rgba(139,92,246,.1);
  color: var(--rk-primary);
  padding-left: 1.25rem;
}
.dropdown-menu-advanced .dropdown-item strong {
  color: var(--rk-text);
  font-size: 0.95rem;
}
.dropdown-menu-advanced .dropdown-item small {
  color: var(--rk-muted);
  font-size: 0.8rem;
  display: block;
  margin-top: 0.15rem;
}
.dropdown-divider {
  border-color: var(--rk-border);
  margin: 0.5rem 0;
}
.text-muted, small{color:var(--rk-muted) !important;} 
.lead{color:var(--rk-text);} 
.form-label{color:var(--rk-text);} 
.btn-primary{
  background-color:var(--rk-primary);
  border-color:var(--rk-primary);
  color:#0b1020;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,92,246,.4);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Ripple Effect */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
  transition: width 0s, height 0s;
}

.btn-outline-light,
.btn-outline-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-outline-light:hover,
.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,.3);
}

/* Button Success State */
.btn-success-state {
  background-color: var(--bs-success) !important;
  border-color: var(--bs-success) !important;
}

.btn-success-state::after {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  animation: check-pop 0.5s ease;
}

@keyframes check-pop {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Ripple Span Animation */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========== 3D Button Enhancements ========== */
.btn-3d {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-3d .btn-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.btn-3d > span,
.btn-3d > i,
.btn-3d > svg {
  position: relative;
  z-index: 2;
}

/* Enhanced button hover states for 3D effect */
.btn-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,92,246,.4),
              0 4px 12px rgba(34,211,238,.2);
}

.btn-3d:active {
  transform: translateY(0);
}

/* ========== 3D Icon Container Styles ========== */
.icon-3d-container {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
}

.icon-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Micro icons (navigation) */
.icon-3d-micro {
  width: 16px;
  height: 16px;
}

/* Feature icons */
.icon-3d-feature {
  width: 56px;
  height: 56px;
}

/* Social icons */
.icon-3d-social {
  width: 20px;
  height: 20px;
}

/* Mobile - disable 3D effects on small icons */
@media (max-width: 767px) {
  .icon-3d-micro .icon-3d-canvas,
  .icon-3d-social .icon-3d-canvas {
    display: none;
  }
  
  .btn-3d .btn-3d-canvas {
    display: none;
  }
  
  .btn-3d {
    overflow: visible;
  }
}

/* ========== Text Enhancement Animations ========== */

/* Split-text 3D reveal */
@keyframes char-3d-reveal {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.char-reveal {
  transform-origin: 50% 100%;
}

/* Gradient sweep text */
.gradient-text {
  background: linear-gradient(90deg,
    var(--rk-primary) 0%,
    var(--rk-secondary) 25%,
    var(--rk-primary) 50%,
    var(--rk-secondary) 75%,
    var(--rk-primary) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-sweep 4s linear infinite;
}

@keyframes gradient-sweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Glow pulse effect */
.glow-pulse {
  animation: glow-pulse-anim 2s ease-in-out infinite;
}

@keyframes glow-pulse-anim {
  0%, 100% {
    text-shadow: 
      0 0 10px currentColor,
      0 0 20px currentColor;
  }
  50% {
    text-shadow: 
      0 0 20px currentColor,
      0 0 40px currentColor,
      0 0 60px currentColor;
  }
}

/* 3D depth text */
.text-3d-depth {
  text-shadow: 
    1px 1px 0 rgba(139,92,246,0.8),
    2px 2px 0 rgba(139,92,246,0.6),
    3px 3px 0 rgba(139,92,246,0.4),
    4px 4px 0 rgba(139,92,246,0.2),
    5px 5px 10px rgba(0,0,0,0.5);
}

/* Blur to focus reveal */
.blur-reveal {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blur-reveal.blur-revealed,
.blur-reveal.text-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* Wave animation for characters */
@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.char-wave {
  animation: wave 0.6s ease-in-out;
}

/* Shimmer button effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

.btn-shimmer:hover::before {
  left: 100%;
}

/* Neon flicker effect */
.neon-flicker {
  animation: neon-subtle-glow 3s ease-in-out infinite;
}

@keyframes neon-flicker-once {
  0%, 19%, 21%, 23%, 25%, 100% {
    text-shadow: 
      0 0 10px var(--rk-primary),
      0 0 20px var(--rk-primary),
      0 0 30px var(--rk-secondary);
    opacity: 1;
  }
  20%, 24% {
    text-shadow: none;
    opacity: 0.6;
  }
}

@keyframes neon-subtle-glow {
  0%, 100% {
    text-shadow: 
      0 0 10px var(--rk-primary),
      0 0 20px var(--rk-primary);
  }
  50% {
    text-shadow: 
      0 0 15px var(--rk-primary),
      0 0 30px var(--rk-primary),
      0 0 40px var(--rk-secondary);
  }
}

/* Glitch effect */
.glitch-text {
  position: relative;
}

/* GPU acceleration hints */
.char-reveal,
.char-wave,
.gradient-text,
.glow-pulse {
  will-change: transform, opacity;
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .char-reveal,
  .char-wave,
  .text-3d-depth {
    animation: none !important;
    text-shadow: none !important;
  }
  
  .glow-pulse {
    animation-duration: 3s;
  }
  
  .gradient-text {
    animation-duration: 6s;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .char-reveal,
  .char-wave,
  .gradient-text,
  .glow-pulse,
  .neon-flicker,
  .blur-reveal {
    animation: none !important;
    transition: none !important;
  }
  
  .blur-reveal {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.section{padding:3rem 0;}
/* Override any remaining Bootstrap text colors */
p, .card-body p {
  color: inherit !important;
} 
/* 4) Hero */
.hero{
  background:radial-gradient(1200px 600px at 10% -10%, rgba(139,92,246,.15), transparent),
             radial-gradient(1200px 600px at 90% 110%, rgba(34,211,238,.12), transparent),
             url('../img/og-default.svg') center/cover no-repeat;
  border-bottom:1px solid var(--rk-border);
  padding:5rem 0;
}
.hero .container{min-height:60vh;}
.hero h1{letter-spacing:.2px;}
.hero .btn{box-shadow:0 0 0 1px rgba(255,255,255,.08) inset;}
/* 5) Cards */
.card{background-color:var(--rk-surface);border:1px solid var(--rk-border);} 
.card-title{color:var(--rk-text);} 
.card-text{color:var(--rk-muted);} 
/* 6) Footer */
footer{border-top:1px solid var(--rk-border);} 

/* Advanced Footer Styles */
.footer-advanced {
  background: linear-gradient(180deg, var(--rk-bg) 0%, var(--rk-surface) 100%);
  border-top: 1px solid var(--rk-border);
}

.footer-heading {
  color: var(--rk-primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-links {
  margin: 0;
  padding: 0;
}

.footer-link {
  color: var(--rk-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--rk-secondary);
  padding-left: 0.5rem;
  transform: translateX(5px);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(139,92,246,.1);
  color: var(--rk-primary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--rk-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(139,92,246,.3);
}

.footer-divider {
  border-color: var(--rk-border);
  opacity: 0.5;
}

.footer-copyright {
  color: var(--rk-muted);
  font-size: 0.95rem;
} 

/* 10) Effects */
.headline-glow{
  /* Animated gradient text that sweeps left -> right */
  background-image: linear-gradient(90deg,
    rgba(139,92,246,0) 0%,
    rgba(139,92,246,1) 15%,
    rgba(34,211,238,1) 40%,
    rgba(139,92,246,1) 70%,
    rgba(139,92,246,0) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rk-glow-sweep 4.5s linear infinite;
  text-shadow:
    0 0 8px rgba(34,211,238,.35),
    0 0 16px rgba(139,92,246,.25),
    0 2px 24px rgba(0,0,0,.35);
}

@keyframes rk-glow-sweep{
  0%{background-position: 0% 50%;}
  100%{background-position: 100% 50%;}
}

/* 11) Matrix background canvas */
#matrix-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Ensure page content sits above the canvas */
body > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce){
  .headline-glow{ animation: none; }
}

/* Hero Enhanced */
.hero-enhanced {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(139,92,246,.15), transparent),
             radial-gradient(1200px 600px at 90% 110%, rgba(34,211,238,.12), transparent),
             url('../img/og-default.svg') center/cover no-repeat;
  border-bottom: 1px solid var(--rk-border);
  padding: 6rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-3d {
  min-height: 700px;
}

/* 3D Hero Container */
.hero-3d-container {
  width: 100%;
  height: 500px;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.hero-3d-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 991.98px) {
  .hero-3d-container {
    height: 400px;
    margin-top: 2rem;
  }
  
  .hero-3d {
    min-height: auto;
  }
}

/* Trust Metrics */
.trust-metric {
  transition: transform 0.3s ease;
}
.trust-metric:hover {
  transform: translateY(-5px);
}
.metric-value {
  line-height: 1;
}

/* Product Cards */
.product-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--rk-primary), var(--rk-secondary), var(--rk-primary));
  background-size: 300% 300%;
  border-radius: 0.5rem;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
  animation: gradient-rotate 4s ease infinite;
}

.product-card:hover::before {
  opacity: 0.6;
}

.product-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 12px 32px rgba(139,92,246,.3),
              0 4px 12px rgba(34,211,238,.2);
}

@keyframes gradient-rotate {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.product-card .card-body {
  position: relative;
  background-color: var(--rk-surface);
  border-radius: 0.4rem;
}

/* 3D Product Icons */
.product-icon-3d {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(139,92,246,.4));
}

.product-icon-3d::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover .product-icon-3d::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .product-icon-3d {
    width: 100px;
    height: 100px;
  }
}

.product-icon img {
  filter: drop-shadow(0 4px 8px rgba(139,92,246,.3));
  transition: transform 0.3s ease;
}

.product-card:hover .product-icon img {
  transform: scale(1.1) rotateY(5deg);
}

/* Feature Boxes */
.feature-box {
  transition: background-color 0.3s ease;
}
.feature-box:hover {
  background-color: rgba(139,92,246,.05);
}

/* Testimonial Cards */
.testimonial-card {
  height: 100%;
  transition: transform 0.3s ease;
}
.testimonial-card:hover {
  transform: scale(1.02);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Product Tabs */
#productTabs {
  position: relative;
}

#productTabs .nav-link {
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

#productTabs .nav-link:hover {
  border-color: var(--rk-border);
  background-color: rgba(139,92,246,.05);
  transform: translateY(-2px);
}

#productTabs .nav-link.active {
  background-color: var(--rk-primary);
  color: var(--rk-bg);
  box-shadow: 0 4px 12px rgba(139,92,246,.3);
  transform: translateY(-2px);
}

/* Tab Content Fade Animation */
.tab-content > .tab-pane {
  animation: tab-fade-in 0.4s ease;
}

@keyframes tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Sidebar */
.product-sidebar {
  background-color: var(--rk-surface);
  border: 1px solid var(--rk-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

/* Timeline Horizontal */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.timeline-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
}
.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--rk-primary), var(--rk-secondary));
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Timeline Vertical */
.timeline-vertical {
  position: relative;
  padding-left: 2rem;
}
.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rk-primary), var(--rk-secondary));
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-marker {
  position: absolute;
  left: -2.5rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--rk-bg);
  border: 3px solid var(--rk-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--rk-primary);
  z-index: 2;
}
.timeline-content {
  padding-left: 1.5rem;
}

/* Pricing Cards */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(139,92,246,.25);
}

/* Process Timeline */
.process-timeline {
  position: relative;
}
.process-step {
  position: relative;
}
.step-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--rk-primary), var(--rk-secondary));
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Service Cards */
.service-card,
.use-case-card,
.package-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.service-card::before,
.use-case-card::before,
.package-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--rk-primary), var(--rk-secondary));
  background-size: 200% 200%;
  border-radius: 0.5rem;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
  animation: gradient-shift 3s ease infinite;
}

.service-card:hover::before,
.use-case-card:hover::before,
.package-card:hover::before {
  opacity: 0.5;
}

.service-card:hover,
.use-case-card:hover,
.package-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(139,92,246,.25);
}

.service-card .card-body,
.use-case-card .card-body,
.package-card .card-body {
  position: relative;
  background-color: var(--rk-surface);
  border-radius: 0.4rem;
}

/* Team Cards */
.team-card {
  transition: transform 0.3s ease;
}
.team-card:hover {
  transform: translateY(-5px);
}
.team-photo {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rk-border);
}

/* Mission/Vision/Values Cards */
.mvv-card {
  background-color: rgba(139,92,246,.03);
  border: 1px solid var(--rk-border);
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}
.mvv-card:hover {
  background-color: rgba(139,92,246,.08);
}

/* Contact Methods */
.contact-method {
  transition: background-color 0.3s ease;
}
.contact-method:hover {
  background-color: rgba(139,92,246,.05);
}

/* Stat Boxes */
.stat-box {
  padding: 1rem;
  background-color: rgba(139,92,246,.05);
  border-radius: 0.5rem;
  text-align: center;
}

/* Press Logos */
.press-logo {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.press-logo:hover {
  opacity: 1;
}

/* Accordion Enhancements */
.accordion-button {
  background-color: var(--rk-surface);
  color: var(--rk-text);
  border: 1px solid var(--rk-border);
  position: relative;
  transition: all 0.3s ease;
}

.accordion-button::after {
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  color: var(--rk-primary);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(139,92,246,.1);
  color: var(--rk-primary);
  box-shadow: 0 4px 12px rgba(139,92,246,.15);
}

.accordion-button:hover {
  background-color: rgba(139,92,246,.08);
  transform: translateX(4px);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(139,92,246,.25);
}

.accordion-item {
  background-color: transparent;
  border: 1px solid var(--rk-border);
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(139,92,246,.4);
}

.accordion-collapse {
  transition: height 0.35s ease;
}

.accordion-body {
  background-color: var(--rk-surface);
  color: var(--rk-muted);
  animation: accordion-fade-in 0.4s ease;
}

@keyframes accordion-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Table Enhancements */
.table {
  color: var(--rk-text);
}
.table-dark {
  --bs-table-bg: var(--rk-surface);
  --bs-table-border-color: var(--rk-border);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .hero-enhanced {
    min-height: auto;
    padding: 4rem 0;
  }
  .timeline-horizontal {
    flex-direction: column;
  }
  .process-timeline .row {
    flex-direction: column;
  }
  .nav-pills {
    flex-direction: column;
  }
}

/* Utility Classes */
.bg-dark-subtle {
  background-color: rgba(18,26,43,.6) !important;
}

/* ========== Enhanced Form Inputs ========== */
.form-floating {
  position: relative;
}

.form-control,
.form-select {
  background-color: rgba(18,26,43,.8);
  border: 2px solid var(--rk-border);
  color: var(--rk-text);
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(18,26,43,.95);
  border-color: var(--rk-primary);
  box-shadow: 0 0 0 0.25rem rgba(139,92,246,.15),
              0 0 20px rgba(139,92,246,.3),
              0 4px 12px rgba(0,0,0,.2);
  transform: translateY(-2px);
  color: var(--rk-text);
}

.form-control::placeholder {
  color: var(--rk-muted);
  opacity: 0.6;
}

.form-label {
  color: var(--rk-text);
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  display: block;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  color: var(--rk-primary);
}

/* Floating Label Animation */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: var(--rk-primary);
}

/* Input Validation States */
.form-control.is-valid {
  border-color: var(--bs-success);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322d3ee' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  animation: input-success 0.5s ease;
}

.form-control.is-invalid {
  border-color: var(--bs-danger);
  animation: input-shake 0.4s ease;
}

@keyframes input-success {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.7); }
  50% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Select Dropdown Enhancement */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238b5cf6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

/* Textarea Specific */
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

textarea.form-control:focus {
  min-height: 150px;
  transition: min-height 0.3s ease, all 0.3s ease;
}

/* Submit Button Loading State */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary.btn-loading {
  color: transparent;
  pointer-events: none;
}

.btn-primary.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Form Group Spacing */
.row.g-3 > * {
  animation: fade-in-up 0.5s ease backwards;
}

.row.g-3 > *:nth-child(1) { animation-delay: 0.05s; }
.row.g-3 > *:nth-child(2) { animation-delay: 0.1s; }
.row.g-3 > *:nth-child(3) { animation-delay: 0.15s; }
.row.g-3 > *:nth-child(4) { animation-delay: 0.2s; }
.row.g-3 > *:nth-child(5) { animation-delay: 0.25s; }
.row.g-3 > *:nth-child(6) { animation-delay: 0.3s; }
.row.g-3 > *:nth-child(7) { animation-delay: 0.35s; }

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Scroll-Triggered Animations ========== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation delays for grid items */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(7) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(8) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
:focus-visible {
  outline: 2px solid var(--rk-primary);
  outline-offset: 2px;
}

/* ===== LIGHT THEME VARIANT ===== */
body.light-theme {
  --rk-bg: #f8fafc;           /* light background */
  --rk-surface: #ffffff;       /* surface panels */
  --rk-primary: #7c3aed;       /* deeper violet for contrast */
  --rk-secondary: #0891b2;     /* darker cyan for readability */
  --rk-danger: #dc2626;
  --rk-success: #16a34a;
  --rk-text: #000000;          /* pure black */
  --rk-muted: #64748b;         /* muted text */
  --rk-border: rgba(30,41,59,.12); /* subtle borders */
}

/* Light Theme Navbar */
body.light-theme .navbar-glass {
  background-color: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--rk-border);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

body.light-theme .navbar-dark .navbar-brand {
  color: var(--rk-primary);
}

body.light-theme .navbar-dark .nav-link {
  color: rgba(30,41,59,.8);
}

body.light-theme .navbar-dark .nav-link:hover,
body.light-theme .navbar-dark .nav-link:focus {
  color: var(--rk-primary);
}

body.light-theme.nav-scrolled .navbar-glass {
  background-color: rgba(255,255,255,.95);
}

/* Light Theme Hero */
body.light-theme .hero,
body.light-theme .hero-enhanced {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124,58,237,.08), transparent),
             radial-gradient(1200px 600px at 90% 110%, rgba(8,145,178,.06), transparent),
             linear-gradient(to bottom, #f8fafc, #e0f2fe);
  border-bottom: 1px solid var(--rk-border);
}

/* Light Theme Buttons */
body.light-theme .btn-primary {
  background-color: var(--rk-primary);
  border-color: var(--rk-primary);
  color: #ffffff;
}

body.light-theme .btn-primary:hover {
  background-color: #6d28d9;
  border-color: #6d28d9;
}

/* Light Theme Cards */
body.light-theme .card,
body.light-theme .product-sidebar,
body.light-theme .mvv-card {
  background-color: var(--rk-surface);
  border: 1px solid var(--rk-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

body.light-theme .product-card:hover,
body.light-theme .service-card:hover,
body.light-theme .use-case-card:hover,
body.light-theme .package-card:hover {
  box-shadow: 0 8px 24px rgba(124,58,237,.15);
}

/* Light Theme Footer */
body.light-theme footer {
  background-color: var(--rk-surface);
  border-top: 1px solid var(--rk-border);
}

/* Light Theme Accordion */
body.light-theme .accordion-button {
  background-color: var(--rk-surface);
  color: var(--rk-text);
}

body.light-theme .accordion-button:not(.collapsed) {
  background-color: rgba(124,58,237,.08);
  color: var(--rk-primary);
}

body.light-theme .accordion-body {
  background-color: #fafafa;
}
