/* =========================================================
   TẠ MINH AN {X:)} - PERSONAL WEBSITE STYLESHEET (ULTRA FAST)
   Theme: Monochromatic Black & White Ghost Wolf Aesthetic
   ========================================================= */

:root {
  --bg-primary: #08080a;
  --bg-secondary: #121216;
  --bg-card: #1a1a20;
  --bg-card-hover: #22222c;
  
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --text-dark: #111115;
  
  --border-light: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 255, 255, 0.4);
  
  --accent-white: #ffffff;
  --accent-gray: #71717a;
  
  --font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-gray);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 12px auto 0;
  font-size: 1rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--text-main), transparent);
  margin: 16px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--text-dark);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background-color: #e2e2e8;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--text-main);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm:hover {
  background: white;
  color: black;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wolf-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
}

.highlight-link {
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  text-align: center;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(8,8,10,0.3) 0%, rgba(8,8,10,0.95) 90%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.wolf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}

.glow-text {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255,255,255,0.6);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #e0e0e0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Stats */
.stats-bar {
  background: var(--bg-secondary);
  border-y: 1px solid var(--border-light);
  padding: 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
}

.about-card-avatar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.avatar-frame {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #ffffff, #444444);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.about-card-info {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Hobbies Grid */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.hobby-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.hobby-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.wolf-sound-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.coca-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 8px 0;
}

.coca-fill {
  width: 100%;
  height: 100%;
  background: white;
}

.food-result {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
}

.vinyl-disc {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #222;
  border: 2px solid white;
  margin-bottom: 10px;
}

/* Canvas Studio */
.canvas-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(0,0,0,0.4);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.color-btn.active {
  border-color: white;
  transform: scale(1.1);
}

.btn-tool {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border-light);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-tool.highlight {
  background: white;
  color: black;
}

.canvas-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a0a0d;
  display: flex;
  justify-content: center;
  border: 1px solid var(--border-light);
}

#drawingCanvas {
  background: #0a0a0d;
  cursor: crosshair;
  max-width: 100%;
}

.canvas-hint {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  color: var(--accent-gray);
}

/* Lego */
.lego-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.lego-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-lego {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  color: white;
  cursor: pointer;
}

.btn-lego.active {
  background: white;
  color: black;
}

.btn-lego-action {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
}

.lego-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
  max-width: 580px;
  margin: 0 auto;
  background: #000;
  padding: 10px;
  border-radius: var(--radius-md);
}

.lego-cell {
  aspect-ratio: 1;
  background: #1a1a1a;
  border-radius: 3px;
  cursor: pointer;
}

.lego-cell.black { background: #000000; border: 1px solid #333; }
.lego-cell.white { background: #ffffff; }
.lego-cell.gray  { background: #777777; }
.lego-cell.empty { background: #1a1a1a; }

/* Q&A */
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.qa-card-questions, .qa-card-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.question-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.question-list li {
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #000;
  border: 1px solid var(--border-light);
  color: white;
}

.feedback-messages {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.msg-item {
  background: rgba(255,255,255,0.04);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer {
  background: #040405;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .about-grid, .qa-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}
