/* ==========================================================================
   DEVPULSE MAIN CSS — Global Variables, Reset & Typography
   ========================================================================== */

:root {
  /* Color Palette - Dark Cyber Glass Theme */
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 34, 0.65);
  --bg-card-hover: rgba(28, 34, 52, 0.85);
  --bg-nav: rgba(11, 14, 23, 0.75);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7b2cbf;
  --accent-violet: #9d4edd;
  --accent-emerald: #00f5d4;
  --accent-gold: #ffb703;
  --accent-rose: #ff0055;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(0, 242, 254, 0.3);

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Toggle */
body.light-theme {
  --bg-dark: #f0f4f9;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-nav: rgba(240, 244, 249, 0.85);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-glow: rgba(0, 100, 255, 0.3);
  --shadow-glow: 0 0 25px rgba(0, 102, 255, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Layout Shell */
.layout-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* Typography Headings */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(123, 44, 191, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.05);
}

/* Tabs Display logic */
.tab-pane {
  display: none;
  animation: fadeIn 0.35s ease-out forwards;
}

.tab-pane.active {
  display: block;
}

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

/* Utility Helpers */
.margin-top-lg { margin-top: 2rem; }
.hidden { display: none !important; }

/* Responsive Breaks */
@media (max-width: 1024px) {
  .layout-container { padding: 1rem; }
  h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  .btn { width: 100%; justify-content: center; }
}
