/* KISHEA TECHNOLOGIES - Dark Theme Design System */
:root {
  /* AdBlastr Dark Theme Colors */
  --background: #0a0f1c;
  --foreground: #f1f5f9;
  --primary: #10b981;
  --accent: #6366f1;
  --surface: #111827;
  --surface-light: #1f2937;
  --border: #1e293b;
  --muted: #94a3b8;
  --gold: #f59e0b;
  
  /* Additional semantic colors */
  --surface-hover: #374151;
  --primary-dark: #059669;
  --accent-dark: #4f46e5;
  --danger: #ef4444;
  --success: var(--primary);
  --warning: var(--gold);
  
  /* Glassmorphism values */
  --glass-bg: rgba(17, 24, 39, 0.8);
  --glass-border: rgba(148, 163, 184, 0.2);
  --glass-light-bg: rgba(31, 41, 55, 0.6);
  --glass-light-border: rgba(148, 163, 184, 0.15);
  
  /* Shadows */
  --shadow-primary: rgba(16, 185, 129, 0.2);
  --shadow-accent: rgba(99, 102, 241, 0.2);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border radius */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  
  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;
}

/* Reset and Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.dark body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom scrollbar */
.dark ::-webkit-scrollbar {
  width: 8px;
}

.dark ::-webkit-scrollbar-track {
  background: var(--surface);
}

.dark ::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Noise texture overlay */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Typography */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.dark h1 { font-size: var(--font-size-3xl); }
.dark h2 { font-size: var(--font-size-2xl); }
.dark h3 { font-size: var(--font-size-xl); }

.display-4 { 
  font-size: var(--font-size-4xl); 
  font-weight: 800; 
  letter-spacing: -0.05em;
}
.display-5 { 
  font-size: var(--font-size-3xl); 
  font-weight: 700; 
  letter-spacing: -0.025em;
}
.display-6 { 
  font-size: var(--font-size-2xl); 
  font-weight: 700; 
}
.display-7 { 
  font-size: var(--font-size-7xl); 
  font-weight: 900; 
  letter-spacing: -0.05em;
}

@media (max-width: 768px) {
  .display-4 { font-size: var(--font-size-3xl); }
  .display-5 { font-size: var(--font-size-2xl); }
  .display-7 { font-size: var(--font-size-4xl); }
}

.dark p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

/* Text utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--muted) !important;
}

.text-sm {
  font-size: var(--font-size-sm);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

/* Section labels */
.section-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

/* Glassmorphism classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-light {
  background: var(--glass-light-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-light-border);
}

/* Gradient mesh backgrounds */
.gradient-mesh {
  background: 
    radial-gradient(ellipse 800px 600px at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
}

/* Grid pattern overlay */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Gradient border effect */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.7;
}

/* Bootstrap Overrides for Dark Theme */
.dark .bg-primary {
  background-color: var(--primary) !important;
}

.dark .text-primary {
  color: var(--primary) !important;
}

.dark .bg-light {
  background-color: var(--surface) !important;
  border-color: var(--border) !important;
}

.dark .bg-dark {
  background-color: var(--surface-light) !important;
}

.dark .text-light {
  color: var(--foreground) !important;
}

.dark .text-dark {
  color: var(--foreground) !important;
}

.dark .border-light {
  border-color: var(--border) !important;
}

.dark .border {
  border-color: var(--border) !important;
}

/* Buttons */
.dark .btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 2px solid transparent;
  font-size: var(--font-size-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.dark .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.dark .btn-primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 25px -8px var(--shadow-primary);
}

.dark .btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--shadow-primary);
}

.dark .btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.dark .btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.dark .btn-light {
  background-color: var(--surface-light);
  color: var(--foreground);
  border-color: var(--border);
}

.dark .btn-light:hover {
  background-color: var(--surface-hover);
  border-color: var(--border);
  color: var(--foreground);
  transform: translateY(-2px);
}

.dark .btn-outline-light {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.dark .btn-outline-light:hover {
  background-color: var(--surface-light);
  border-color: var(--border);
  color: var(--foreground);
  transform: translateY(-2px);
}

.dark .btn-success {
  background-color: var(--success);
  color: white;
  border-color: var(--success);
}

.dark .btn-success:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
}

.dark .btn-danger {
  background-color: var(--danger);
  color: white;
  border-color: var(--danger);
}

.dark .btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: white;
  transform: translateY(-2px);
}

.dark .btn-outline-danger {
  background-color: transparent;
  color: var(--danger);
  border-color: var(--border);
}

.dark .btn-outline-danger:hover {
  background-color: var(--danger);
  border-color: var(--danger);
  color: white;
  transform: translateY(-2px);
}

.dark .btn-outline-secondary {
  background-color: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.dark .btn-outline-secondary:hover {
  background-color: var(--surface-light);
  border-color: var(--primary);
  color: var(--foreground);
  transform: translateY(-2px);
}

.dark .btn-lg {
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
}

.dark .btn-sm {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
}

/* Modern Navbar */
.dark .navbar {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  padding: 1.5rem 0;
  transition: all var(--transition-slow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(0px);
}

.dark .navbar-scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(10, 15, 28, 0.8);
  border-bottom-color: var(--border);
}

.dark .navbar-brand {
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--foreground) !important;
  text-decoration: none;
  transition: all var(--transition);
}

.dark .navbar-brand:hover {
  color: var(--primary) !important;
}

.dark .nav-link {
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--muted) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  margin: 0 0.25rem;
  position: relative;
  text-transform: none;
}

.dark .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.dark .nav-link:hover,
.dark .nav-link.active {
  color: var(--foreground) !important;
}

.dark .nav-link:hover::after,
.dark .nav-link.active::after {
  width: 80%;
}

/* Modern Cards */
.dark .card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  transition: all var(--transition-slow);
  overflow: hidden;
}

.dark .card.glass-light {
  background: var(--glass-light-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--glass-light-border);
}

.dark .card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px var(--shadow-dark);
}

.dark .card-body {
  padding: 2rem;
  color: var(--foreground);
}

/* Feature cards specific styling */
.dark .feature-card {
  border-left: 4px solid var(--primary);
}

/* Testimonial cards specific styling */
.dark .testimonial-card {
  border-left: 4px solid var(--accent);
}

/* Footer */
.dark footer {
  background-color: var(--background);
  border-top: 1px solid var(--border);
  color: var(--foreground);
}

.dark footer a {
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
}

.dark footer a:hover {
  color: var(--primary);
}

.dark footer h5, .dark footer h6 {
  color: var(--foreground);
  font-weight: 600;
}

/* Forms */
.dark .form-control {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: all var(--transition);
  background-color: var(--surface);
  color: var(--foreground);
}

.dark .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  outline: none;
  background-color: var(--surface);
  color: var(--foreground);
}

.dark .form-control::placeholder {
  color: var(--muted);
}

/* Accordion */
.dark .accordion {
  --bs-accordion-bg: var(--surface);
  --bs-accordion-border-color: var(--border);
  --bs-accordion-active-bg: var(--surface-light);
  --bs-accordion-active-color: var(--foreground);
  --bs-accordion-color: var(--foreground);
}

.dark .accordion-button {
  background-color: var(--surface);
  color: var(--foreground);
  border: none;
  border-bottom: 1px solid var(--border);
}

.dark .accordion-button:not(.collapsed) {
  background-color: var(--surface-light);
  color: var(--foreground);
  border-bottom-color: var(--border);
  box-shadow: none;
}

.dark .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  border-color: var(--border);
}

.dark .accordion-body {
  background-color: var(--surface);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Badges */
.dark .badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.025em;
}

.dark .bg-primary.text-white {
  background-color: var(--primary) !important;
  color: white !important;
}

/* Icons */
.fa, .fas, .fab {
  transition: all var(--transition);
}

/* Icon containers */
.icon-container {
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Utilities */
.rounded-2xl {
  border-radius: var(--radius) !important;
}

.border-y {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Stats section styling */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Newsletter gradient border */
.newsletter-section {
  position: relative;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.7;
}

/* Floating blur orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero-orb-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
  bottom: 20%;
  left: 15%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Trust indicators */
.trust-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--primary);
}

/* CTA sections */
.cta-section {
  background: 
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 600px 300px at 20% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

/* Mobile responsive */
@media (max-width: 576px) {
  .dark h1, .display-4 { font-size: var(--font-size-2xl); }
  .dark h2, .display-5 { font-size: var(--font-size-xl); }
  .dark h3 { font-size: var(--font-size-lg); }
  
  .dark .btn {
    width: 100%;
    justify-content: center;
  }
  
  .dark .btn + .btn {
    margin-top: 0.5rem;
  }
  
  .dark .card-body {
    padding: 1.5rem;
  }
  
  .dark .navbar .btn {
    margin-top: 0.5rem;
    width: auto;
  }
}

/* Print styles */
@media print {
  .dark .navbar,
  .dark footer,
  .dark .btn {
    display: none !important;
  }
  
  .dark body {
    background: white !important;
    color: black !important;
  }
  
  .dark .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border: #4b5563;
    --muted: #d1d5db;
  }
}