/* ==========================================================================
   CYBER-TECH & GLASSMORPHISM DESIGN SYSTEM
   Author: Trần Quốc Huy (williamtran207 / quochuyph)
   Specialization: Information Security @ HCMUTE
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-darker: #060911;
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  
  --bg-glass: rgba(15, 23, 42, 0.72);
  --bg-glass-hover: rgba(22, 33, 58, 0.88);
  --bg-glass-active: rgba(30, 41, 59, 0.95);
  
  --accent-cyan: #00f5d4;
  --accent-cyan-glow: rgba(0, 245, 212, 0.25);
  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.25);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(0, 245, 212, 0.35);
  --border-active: rgba(56, 189, 248, 0.4);
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-neon-cyan: 0 0 25px rgba(0, 245, 212, 0.25);
  --shadow-neon-blue: 0 0 25px rgba(56, 189, 248, 0.25);
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-darker);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ==========================================================================
   CANVAS & BACKGROUND AMBIENT EFFECTS
   ========================================================================== */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow-1 {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
}

.ambient-glow-2 {
  position: fixed;
  bottom: -150px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
}

.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-wrapper {
    padding: 48px 24px 80px 24px;
    gap: 40px;
  }
}

/* ==========================================================================
   GLASS CARD COMPONENT
   ========================================================================== */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-lg), var(--shadow-neon-cyan);
}

/* Section Header Styling */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.section-title span.title-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 100%;
}

/* ==========================================================================
   HERO / PROFILE HEADER CARD
   ========================================================================== */
.hero-card {
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .hero-card {
    padding: 40px 36px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: auto 1fr;
    gap: 36px;
  }
}

/* Avatar Showcase */
.avatar-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

@media (min-width: 768px) {
  .avatar-wrapper {
    width: 165px;
    height: 165px;
  }
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(0, 245, 212, 0.6);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.35);
  display: block;
}

.avatar-pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(56, 189, 248, 0.4);
  animation: rotateSlow 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.status-badge {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero Info */
.hero-content {
  text-align: center;
}

@media (min-width: 880px) {
  .hero-content {
    text-align: left;
  }
}

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

@media (min-width: 880px) {
  .hero-tags {
    justify-content: flex-start;
  }
}

.hero-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-cyber {
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 245, 212, 0.25);
}

.pill-hcmute {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.pill-sec {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.hero-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 2.5rem;
  }
}

.hero-handle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-handle span {
  color: var(--accent-cyan);
}

.hero-bio {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

@media (min-width: 880px) {
  .hero-bio {
    margin: 0 0 20px 0;
  }
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 880px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #041019;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   INTERACTIVE CYBER TERMINAL COMPONENT
   ========================================================================== */
.terminal-card {
  background: rgba(10, 15, 29, 0.92);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 245, 212, 0.1);
  overflow: hidden;
}

.terminal-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-actions-top {
  display: flex;
  gap: 8px;
}

.terminal-btn-icon {
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.terminal-btn-icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  min-height: 180px;
  max-height: 380px;
  overflow-y: auto;
  color: var(--text-secondary);
  line-height: 1.6;
}

.terminal-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terminal-line {
  word-break: break-word;
}

.terminal-prompt-prefix {
  color: var(--accent-cyan);
  font-weight: 700;
}

.terminal-prompt-user {
  color: var(--accent-emerald);
}

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

.terminal-output {
  margin-top: 4px;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.terminal-output.cyan { color: var(--accent-cyan); }
.terminal-output.green { color: var(--accent-emerald); }
.terminal-output.purple { color: var(--accent-purple); }
.terminal-output.red { color: var(--accent-rose); }
.terminal-output.muted { color: var(--text-dim); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* Quick Commands Chips */
.terminal-quick-chips {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-chip-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.quick-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-chip:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* ==========================================================================
   ACADEMIC & EDUCATION SECTION (HCMUTE)
   ========================================================================== */
.hcmute-card {
  border-left: 4px solid var(--accent-blue);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(20, 35, 65, 0.4) 100%);
}

.education-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .education-layout {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
  }
}

.edu-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 2.2rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  margin: 0 auto;
}

.edu-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-details .edu-meta {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.edu-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-tag-item {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* ==========================================================================
   TECHNICAL & CYBERSECURITY SKILLS GRID
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

@media (min-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-category-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  background: rgba(20, 30, 55, 0.75);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.skill-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.icon-cyan { background: rgba(0, 245, 212, 0.15); color: var(--accent-cyan); }
.icon-blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }

.skill-cat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.skill-pill:hover {
  background: rgba(0, 245, 212, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* ==========================================================================
   SOCIAL & BIO LINKS HUB
   ========================================================================== */
.social-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .social-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background var(--transition-fast);
}

.social-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--border-glass-hover);
  background: var(--bg-glass-hover);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-card.card-github:hover::before { background: #f0f6fc; }
.social-card.card-linkedin:hover::before { background: #0a66c2; }
.social-card.card-facebook:hover::before { background: #1877f2; }
.social-card.card-zalo:hover::before { background: #0068ff; }
.social-card.card-instagram:hover::before { background: #e1306c; }
.social-card.card-email:hover::before { background: var(--accent-cyan); }
.social-card.card-web:hover::before { background: var(--accent-emerald); }

.social-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-fast);
}

.social-card:hover .social-icon-box {
  transform: scale(1.1);
}

.icon-github { color: #f0f6fc; }
.icon-linkedin { color: #0a66c2; }
.icon-facebook { color: #1877f2; }
.icon-zalo { color: #0068ff; }
.icon-instagram { color: #e1306c; }
.icon-email { color: var(--accent-cyan); }
.icon-web { color: var(--accent-emerald); }

.social-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.social-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-card:hover .social-arrow {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* Action card (e.g. 1-click copy) */
.copy-badge-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-badge-btn:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   PROJECTS & SECURITY LABS SHOWCASE
   ========================================================================== */
.research-showcase-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(20, 30, 60, 0.5) 100%);
  border: 1px dashed rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.research-showcase-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-amber), transparent);
}

.research-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-beacon.amber {
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.pulse-beacon.cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.research-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.research-icon-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-main-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 12px rgba(0, 245, 212, 0.5));
}

.research-orbit-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px dashed rgba(0, 245, 212, 0.35);
  border-radius: 50%;
  animation: rotateSlow 15s linear infinite;
}

.research-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.research-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.research-topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
  text-align: left;
}

@media (min-width: 640px) {
  .research-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.research-topic-card {
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all var(--transition-fast);
}

.research-topic-card:hover {
  border-color: rgba(0, 245, 212, 0.3);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.85);
}

.topic-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.topic-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.research-terminal-preview {
  width: 100%;
  background: rgba(6, 9, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.terminal-log-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.log-tag {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 3px;
}

.tag-sys { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.tag-warn { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.tag-ok { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.log-text {
  color: var(--text-secondary);
}

.log-text .cyan { color: var(--accent-cyan); }
.log-text .amber { color: var(--accent-amber); }
.log-text .green { color: var(--accent-emerald); }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  background: rgba(20, 32, 58, 0.75);
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-link-btn {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.project-link-btn:hover {
  color: var(--accent-cyan);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  margin-bottom: 4px;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-sec-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 212, 0.06);
  border: 1px solid rgba(0, 245, 212, 0.15);
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 245, 212, 0.3);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.hiding {
  opacity: 0;
  transform: translateY(10px);
}

.toast-icon {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   FLOATING QUICK CONTROLS
   ========================================================================== */
.floating-controls {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  display: flex;
  gap: 10px;
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.floating-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

/* ==========================================================================
   MODAL DIALOG (PGP / SECURITY KEY / ABOUT)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 17, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 245, 212, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--accent-rose);
}

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.code-block-wrap {
  position: relative;
  background: var(--bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 10px;
}
