:root {
  --bg-color: #030508;
  --bg-gradient: radial-gradient(circle at 50% 0%, #0c121e, #030508);
  --panel-bg: rgba(6, 10, 19, 0.75);
  --panel-hover-bg: rgba(10, 16, 30, 0.9);
  --border: rgba(0, 240, 255, 0.08);
  --border-hover: rgba(0, 240, 255, 0.4);
  
  --neon-blue: #00f0ff;
  --neon-purple: #bd00ff;
  --neon-pink: #ff007f;
  --text-primary: #e2e8f0;
  --text-muted: #64748b;
  --accent-glow: rgba(0, 240, 255, 0.15);
  
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* Background Cyber Grid */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  z-index: 0;
  pointer-events: none;
}

/* Background Glowing Nodes */
.glow-core {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.glow-blue {
  background: var(--neon-blue);
  top: -100px;
  left: -100px;
}

.glow-purple {
  background: var(--neon-purple);
  bottom: -100px;
  right: -100px;
}

/* Main Dashboard Wrapper */
.dashboard {
  width: 100%;
  max-width: 1100px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top Navigation Header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--neon-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-blue);
  animation: pulse 2s infinite;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.system-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-blue);
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

/* Bento Box Base Styling */
.bento-box {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-box:hover {
  border-color: var(--border-hover);
  background: var(--panel-hover-bg);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px 0 rgba(0, 240, 255, 0.05), 0 0 20px rgba(0, 240, 255, 0.05);
}

/* Card Header Labels */
.box-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.box-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

/* Hero Panel (Spans 2 columns) */
.panel-hero {
  grid-column: span 2;
  justify-content: center;
}

.panel-hero .box-label {
  color: var(--neon-blue);
}

.hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 40%, var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--neon-purple);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 580px;
}

/* Interactive Terminal Panel */
.panel-terminal {
  grid-row: span 2;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
}

.panel-terminal .box-label {
  color: var(--neon-purple);
}

.terminal-window {
  flex: 1;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.5;
  overflow-y: auto;
  margin-bottom: 12px;
}

.terminal-line {
  margin-bottom: 8px;
  word-break: break-all;
}

.terminal-line.command {
  color: var(--neon-blue);
}

.terminal-line.output {
  color: var(--text-muted);
}

.terminal-line.system {
  color: var(--neon-purple);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.terminal-prompt {
  color: var(--neon-blue);
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
}

.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.term-btn {
  background: rgba(189, 0, 255, 0.05);
  border: 1px solid rgba(189, 0, 255, 0.2);
  color: var(--neon-purple);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.term-btn:hover {
  background: rgba(189, 0, 255, 0.2);
  border-color: var(--neon-purple);
  color: white;
}

/* Cloud Drive Card (Interactive Radar) */
.panel-drive {
  text-decoration: none;
  color: inherit;
}

.panel-drive .box-label {
  color: var(--neon-blue);
}

.drive-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.drive-radar {
  position: relative;
  width: 60px;
  height: 60px;
}

.radar-circle {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
}

.radar-circle-2 {
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  animation: spin 10s linear infinite;
}

.radar-sweep {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.15) 0deg, transparent 90deg);
  animation: spin 3s linear infinite;
}

/* NotionMD Docs Card (Typing mockup) */
.panel-docs {
  text-decoration: none;
  color: inherit;
}

.panel-docs .box-label {
  color: var(--neon-purple);
}

.docs-typing-preview {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: auto;
  min-height: 54px;
  position: relative;
}

.docs-text-line {
  color: var(--text-muted);
  border-right: 2px solid var(--neon-purple);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 6s steps(30, end) infinite;
}

/* Resume Panel */
.panel-resume {
  text-decoration: none;
  color: inherit;
}

.panel-resume .box-label {
  color: var(--neon-pink);
}

.resume-download-status {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.download-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
  border-radius: 3px;
  transition: width 0.3s;
}

.panel-resume:hover .download-bar-fill {
  animation: fillBar 1.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

/* Systems Network Grid Footer Card (3 cols) */
.panel-network {
  grid-column: span 3;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.network-metrics {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-blue);
}

.metric-val.purple {
  color: var(--neon-purple);
}

.metric-val.pink {
  color: var(--neon-pink);
}

.metric-status-glow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Core Title Stylings inside Bento Cards */
.box-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.box-title svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.bento-box:hover .box-title svg {
  transform: translate(2px, -2px);
  color: var(--text-primary);
}

.box-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Footer Link Panel styles */
.dash-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  background: var(--panel-bg);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--neon-blue);
}

.footer-links svg {
  width: 12px;
  height: 12px;
}

/* Keyframe Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 5px var(--neon-blue); }
  50% { opacity: 1; box-shadow: 0 0 15px var(--neon-blue); }
}

@keyframes typing {
  0%, 100% { width: 0; }
  40%, 60% { width: 100%; }
}

@keyframes fillBar {
  from { width: 0%; }
  to { width: 85%; }
}

/* Responsive Dashboard layout styling */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-hero {
    grid-column: span 2;
  }
  .panel-network {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  body {
    padding: 20px 16px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .panel-hero {
    grid-column: span 1;
  }
  .panel-network {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-terminal {
    grid-row: span 1;
  }
  .dash-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .hero-name {
    font-size: 36px;
  }
  .dash-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
