/* ==========================================================================
   TRIGYA AI - Modern Dark Styling & Layout System
   Netlify Static Ready - Pure CSS3
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* Base Reset & Variables */
:root {
  --bg-main: #030712;
  --bg-card: #0A0F1E;
  --bg-card-hover: #0d152a;
  --bg-accent-subtle: #141C30;
  
  --color-cyan: #06b6d4;
  --color-cyan-light: #22d3ee;
  --color-emerald: #10b981;
  --color-emerald-light: #34d399;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(6, 182, 212, 0.3);
}

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

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
}

::selection {
  background-color: rgba(6, 182, 212, 0.3);
  color: #a5f3fc;
}

/* Typography Utilities */
.font-mono {
  font-family: 'Space Grotesk', monospace, sans-serif;
}

/* Background Grids & Glows */
.tech-grid-bg {
  background-image: radial-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}

.gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ambient-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Cards and Panels */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px -10px rgba(6, 182, 212, 0.15);
}

/* Primary Button Gradients */
.btn-primary {
  background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
  color: #030712;
  font-weight: 700;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.08);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-cyan:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
  color: #030712;
  border-color: transparent;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Active Nav Links & Tabs */
.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: #141C30;
}

.tab-btn.active {
  background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
  color: #030712;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* Pulse animation */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
}

.pulse-dot {
  animation: pulse-slow 2s infinite ease-in-out;
}

/* Mobile drawer animation */
#mobile-drawer {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-drawer.hidden {
  display: none;
}
