/* Custom styles and enhancements for VibeCoder CIS portal */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: #090d16;
  color: #f1f5f9;
  overflow-x: hidden;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b1120;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glow Effects & Gradients */
.glow-purple {
  box-shadow: 0 0 50px -10px rgba(168, 85, 247, 0.25);
}

.glow-cyan {
  box-shadow: 0 0 50px -10px rgba(6, 182, 212, 0.25);
}

.glow-card:hover {
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.4);
}

.hero-mesh {
  background-image: 
    radial-gradient(at 15% 15%, rgba(124, 58, 237, 0.22) 0px, transparent 60%),
    radial-gradient(at 85% 20%, rgba(6, 182, 212, 0.18) 0px, transparent 60%),
    radial-gradient(at 50% 80%, rgba(236, 72, 153, 0.14) 0px, transparent 60%);
}

.grid-bg {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glassmorphism */
.glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dropdown {
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* Mega-menu hover triggers */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth transitions */
.transition-all-custom {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pulse animation for live indicators */
@keyframes ping-slow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.3; }
  100% { transform: scale(2.2); opacity: 0; }
}

.animate-ping-slow {
  animation: ping-slow 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Comparison Table Styling */
.table-container {
  overflow-x: auto;
}

.table-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-container th, .table-container td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.table-container th {
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-container tr:hover td {
  background: rgba(30, 41, 59, 0.4);
}

/* Code container styling */
.code-container {
  counter-reset: line;
}

.code-line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2rem;
  margin-right: 1.25rem;
  color: #475569;
  text-align: right;
  user-select: none;
}
