/* Professional Tech Portfolio Styling for Nguyen Minh Khang (AI Game Dev) */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;600;800;900&display=swap');

:root {
  --font-primary: 'Be Vietnam Pro', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --bg-light: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --border-color: rgba(226, 232, 240, 0.9);
  --text-main: #0f172a;
  --text-sub: #475569;
  --accent-blue: #2563eb;
  --accent-emerald: #059669;
  --accent-sky: #0284c7;
  --accent-amber: #d97706;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-light);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.65;
}

/* Background animated subtle light glow */
.bg-glow-1 {
  position: absolute;
  top: -80px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(255,255,255,0) 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.bg-glow-2 {
  position: absolute;
  top: 500px;
  right: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, rgba(255,255,255,0) 70%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

/* Developer Tech Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
}

/* Tech Badges */
.tech-badge {
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Glowing text gradients for Developer Theme */
.text-gradient-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Code Snippet Styling */
.code-block {
  font-family: var(--font-code);
  background: #0f172a;
  color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Custom Light Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Game Canvas Styling with Grass Texture Frame */
#gameCanvas {
  background: #2e7d32;
  border: 3px solid #1b5e20;
  border-radius: 1rem;
  box-shadow: 0 12px 28px -8px rgba(5, 150, 105, 0.2);
  cursor: crosshair;
}
