/* ==========================================================================
   AI Product Manager Portfolio - Bespoke Cyber-Editorial Theme
   Inspired by sriponnada.com, whoisjuan.me & marta-puerto.com
   ========================================================================== */

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

:root {
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-hover: rgba(255, 255, 255, 1);
  --nav-bg: rgba(248, 250, 252, 0.82);
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --terminal-bg: #0f172a;
  --terminal-text: #e2e8f0;
}

.dark {
  /* Dark Theme Variables (Cyber-Editorial) */
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-tertiary: #141c2e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);
  --card-bg: rgba(13, 18, 31, 0.72);
  --card-hover: rgba(20, 28, 46, 0.9);
  --nav-bg: rgba(7, 9, 14, 0.82);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-glow: rgba(59, 130, 246, 0.22);
  --terminal-bg: #060911;
  --terminal-text: #f1f5f9;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.font-display {
  font-family: var(--font-display);
}

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

/* Background Grid Pattern */
.bg-grid-mesh {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
}

.dark .bg-grid-mesh {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

/* Glassmorphism Navigation */
.glass-nav {
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Glass Card with Glowing Border */
.glass-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background-color: var(--card-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -10px var(--accent-glow);
}

/* Featured Hero Bento Card */
.hero-bento-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%), var(--card-bg);
  border: 1px solid rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.dark .hero-bento-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%), var(--card-bg);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.hero-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

/* Interactive Terminal Mockup */
.terminal-card {
  background-color: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Pulsing Status Dot */
.pulsing-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
}

.pulsing-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Primary Action Buttons */
.btn-primary-action {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

/* Subtle Ambient Glow Blobs */
.glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-blue {
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.glow-purple {
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}
