/* =========================================================================
   Figma 1:1 Design System - Portfolio & Resume Landing Page
   Exact recreation of Figma Community File 1287502706882772309
   Matte Charcoal Surfaces (#161922) • Vibrant Electric Cyan Accent (#38bdf8)
   ========================================================================= */

:root {
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg-canvas: #0c0e14;
  --bg-card: #151821;
  --bg-card-subtle: #1a1e29;
  --bg-dock: #11141b;
  --border-card: rgba(255, 255, 255, 0.07);
  --border-card-hover: rgba(255, 255, 255, 0.14);

  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #0ea5e9;
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);

  --text-white: #ffffff;
  --text-muted: #8b96a8;
  --text-dim: #5c6677;

  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Subtle Dark Carbon Canvas Texture */
.figma-canvas-bg {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(26, 32, 46, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(20, 26, 38, 0.3) 0%, transparent 40%);
}

/* Figma Card Frame */
.figma-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}

.figma-card:hover {
  border-color: var(--border-card-hover);
}

/* Figma Left Slim Dock */
.figma-dock {
  background: var(--bg-dock);
  border-right: 1px solid var(--border-card);
}

.figma-dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  color: var(--text-dim);
  transition: all 0.2s ease;
  position: relative;
}

.figma-dock-btn:hover {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.figma-dock-btn.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 16px -2px rgba(56, 189, 248, 0.25);
}

/* Exact Figma Skill Progress Bars */
.figma-progress-track {
  width: 100%;
  height: 4px;
  background-color: #222735;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.figma-progress-bar {
  height: 100%;
  background-color: var(--accent-cyan);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Headings from Figma ("resume", "skills", lowercase, bold) */
.figma-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1.1;
}

.figma-subtitle {
  color: var(--accent-cyan);
  font-style: italic;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.figma-section-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Social link icons on portrait card */
.figma-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.figma-social-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

/* Job item in Figma Jobs Matrix */
.figma-job-row {
  background: rgba(21, 24, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

.figma-job-row:hover {
  background: rgba(28, 32, 44, 0.85);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

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

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

::-webkit-scrollbar-thumb {
  background: #252b3b;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #39425a;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Markdown styling inside Figma Content card */
.markdown-body {
  color: var(--text-muted);
  line-height: 1.7;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: var(--text-white);
  font-family: var(--font-heading);
}

.markdown-body h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.5rem;
}

.markdown-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.markdown-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
}

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body ul, .markdown-body ol {
  margin-left: 1.4rem;
  margin-bottom: 1rem;
  list-style-type: disc;
}

.markdown-body pre {
  background: #0f1219;
  border: 1px solid var(--border-card);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
  color: #e2e8f0;
}

.markdown-body a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.markdown-body a:hover {
  color: #7dd3fc;
}

.markdown-body strong {
  color: var(--text-white);
  font-weight: 700;
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--border-card);
  margin: 1.75rem 0;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-dim);
  font-style: italic;
}

.markdown-body code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.85em;
  color: var(--accent-cyan);
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.825rem;
}

.markdown-body th, .markdown-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-card);
  text-align: left;
}

.markdown-body th {
  background: #11141c;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-weight: 700;
}

.markdown-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Hide scrollbar for clean horizontal mobile tab swipe */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Fluid widescreen container */
.figma-app-container {
  width: 100%;
  max-width: 2200px;
  margin: 0 auto;
}

/* =========================================================================
   V2: EXECUTIVE BENTO GRID (Linear / Raycast Style)
   ========================================================================= */
.bento-card {
  background: rgba(21, 24, 33, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(56, 189, 248, 0.15);
}
.bento-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
}
.portrait-aura {
  box-shadow: 0 0 50px -10px rgba(56, 189, 248, 0.4), 0 0 25px -5px rgba(99, 102, 241, 0.3);
}

/* =========================================================================
   V2: INTERACTIVE BENTO GRID & GLASSMORPHISM (Raycast / Linear Style)
   ========================================================================= */
.bento-shell {
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(10, 13, 20, 0) 70%), #08090d;
}
.bento-grid-item {
  background: rgba(17, 20, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-grid-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7), 0 0 24px -6px rgba(99, 102, 241, 0.25);
}
.bento-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}
.bento-pill:hover, .bento-pill.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

/* =========================================================================
   V3: CYBERPUNK / SCI-FI HUD COMMAND DECK (Star Citizen / Cyberpunk 2077)
   ========================================================================= */
.cyber-shell {
  background: radial-gradient(ellipse at 50% 10%, rgba(6, 182, 212, 0.15) 0%, rgba(5, 7, 13, 0.98) 75%), #05070d;
}
.cyber-hud-card {
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 0.85rem;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.15), inset 0 0 15px rgba(56, 189, 248, 0.05);
  transition: all 0.25s ease;
}
.cyber-hud-card:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.35), inset 0 0 20px rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
}
.cyber-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid #38bdf8;
}
.cyber-badge {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.cyber-magenta {
  color: #f43f5e;
  border-color: #f43f5e;
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

/* =========================================================================
   V4: SWISS EDITORIAL & MONOCHROMATIC DOSSIER (ReadCV / Vercel Press)
   ========================================================================= */
.editorial-shell {
  background-color: #09090b;
  color: #e4e4e7;
}
.editorial-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.editorial-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1a1aa;
}
.editorial-card {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}
.editorial-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: #141419;
}
.editorial-toc-item {
  transition: all 0.15s ease;
}
.editorial-toc-item:hover, .editorial-toc-item.active {
  color: #ffffff;
  padding-left: 0.5rem;
  border-left: 2px solid #ffffff;
}

/* =========================================================================
   V5: SPATIAL NODE CANVAS & ARCHITECTURE GRAPH (Obsidian / FigJam Canvas)
   ========================================================================= */
.canvas-shell {
  background-color: #07090e;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.canvas-node-card {
  background: rgba(15, 20, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.canvas-node-card:hover {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}
.canvas-node-card.selected {
  border-color: #38bdf8;
  background: rgba(14, 30, 50, 0.95);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.4);
}
.canvas-connector {
  stroke-dasharray: 6;
  animation: dash-flow 25s linear infinite;
}
/* =========================================================================
   V6: NOTION-STYLE DARK SYSTEMS WIKI & DATABASE (Notion / Obsidian Hub)
   ========================================================================= */
.notion-shell {
  background-color: #191919;
  color: #d4d4d4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
.notion-sidebar {
  background-color: #202020;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.notion-card {
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  transition: background 0.15s ease;
}
.notion-card:hover {
  background: #2b2b2b;
}
.notion-callout {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
}
.notion-tag {
  border-radius: 0.25rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* =========================================================================
   V7: EXECUTIVE KEYNOTE / 16:9 SLIDE PRESENTATION (Pitch Deck Mode)
   ========================================================================= */
.keynote-shell {
  background: radial-gradient(circle at 50% 50%, #131722 0%, #080a10 100%);
}
.keynote-slide {
  background: linear-gradient(145deg, rgba(25, 30, 45, 0.8) 0%, rgba(12, 16, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.keynote-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}
.keynote-dot.active {
  background-color: #38bdf8;
  width: 28px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* =========================================================================
   V8: NEO-BRUTALIST HIGH-TECH DARK (Figma Trend / Gumroad Dark)
   ========================================================================= */
.brutalist-shell {
  background-color: #0d0e12;
}
.brutalist-card {
  background-color: #161821;
  border: 2px solid #38bdf8;
  border-radius: 0.5rem;
  box-shadow: 5px 5px 0px #0284c7;
  transition: all 0.15s ease;
}
.brutalist-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #0284c7;
}
.brutalist-btn {
  background: #38bdf8;
  color: #000000;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 4px 4px 0px #ffffff;
  transition: all 0.1s ease;
}
.brutalist-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #ffffff;
}

/* =========================================================================
   V9: INTERACTIVE CAREER ROADMAP & MILESTONE TREE (Visual Progression)
   ========================================================================= */
.roadmap-shell {
  background: #090b12;
}
.roadmap-trunk {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8 0%, #818cf8 50%, #ec4899 100%);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.roadmap-node {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #0c0e14;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
  z-index: 10;
}

/* =========================================================================
   V10: MOBILE APP & IOS DYNAMIC ISLAND CARD DECK (Mobile-First Experience)
   ========================================================================= */
.ios-device-frame {
  max-width: 480px;
  margin: 0 auto;
  background: #000000;
  border: 4px solid #27272a;
  border-radius: 3rem;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.ios-island {
  background: #000000;
  border-radius: 9999px;
  height: 32px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ios-card {
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
}

/* =========================================================================
   FLOATING VERSION SWITCHER BAR
   ========================================================================= */
.floating-version-bar {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(10, 12, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 1px 1px rgba(255, 255, 255, 0.1);
}

