/* ==========================================================================
   RAFIO PORTFOLIO & AUTHORITY HUB DESIGN SYSTEM
   Modern, Obsidian Minimalist, High-End Engineering Aesthetic
   ========================================================================== */

:root {
  --bg-primary: #030712;
  --bg-secondary: #080d1a;
  --bg-card: rgba(12, 19, 36, 0.7);
  --bg-card-hover: rgba(17, 27, 51, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-glow: rgba(245, 158, 11, 0.35);
  
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.15);
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-violet: #818cf8;
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #0d1527 0%, #030712 70%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Utilities */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* Glassmorphism & Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.glass-card-interactive {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card-interactive:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6), 0 0 24px -6px rgba(245, 158, 11, 0.15);
}

/* Subtle glow badge */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.badge-tech i {
  font-size: 0.8rem;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* High-Quality Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #030712;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Breadcrumbs Styling */
.breadcrumb-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb-container a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-container a:hover {
  color: var(--accent-amber);
}

.breadcrumb-container .separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb-container .current {
  color: var(--accent-amber);
  font-weight: 500;
}

/* Pro Article & Case Study Styling */
.article-prose {
  color: #d1d5db;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-prose h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

.article-prose h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
}

.article-prose p {
  margin-bottom: 1.5rem;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-prose strong {
  color: #f9fafb;
  font-weight: 600;
}

.article-prose a {
  color: var(--accent-amber);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.article-prose a:hover {
  color: #fde68a;
}

.article-prose blockquote {
  border-left: 3px solid var(--accent-amber);
  background: rgba(245, 158, 11, 0.05);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #f3f4f6;
}

.article-prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  color: #fcd34d;
}

.article-prose pre {
  background: #02040a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-prose pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #e2e8f0;
}

/* Callout Box */
.callout-box {
  background: rgba(14, 22, 41, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid var(--accent-amber);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

/* Ambient glow background accents */
.bg-ambient-amber {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
}

.bg-ambient-cyan {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.09) 0%, rgba(56, 189, 248, 0) 70%);
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
}

/* Header & Nav */
.nav-link {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  padding: 0.375rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-amber);
  border-radius: 9999px;
  box-shadow: 0 0 8px var(--accent-amber);
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
