/* ==============================================================================
   NGUYỄN MINH NGHĨA — 3D FUTURISTIC CYBER THEME DESIGN SYSTEM
   ============================================================================== */

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

/* --- COLOR TOKENS & VARIABLES --- */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #05070e;
  --bg-secondary: #0b0f19;
  --bg-tertiary: #111827;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-surface-hover: rgba(30, 41, 59, 0.85);
  --bg-card: rgba(13, 19, 33, 0.7);
  --bg-input: rgba(8, 13, 26, 0.8);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-emerald: #00ff87;
  --accent-amber: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #a855f7 100%);
  --gradient-cyber: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
  --gradient-purple: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-border: linear-gradient(135deg, rgba(0, 242, 254, 0.4), rgba(168, 85, 247, 0.2), rgba(255, 255, 255, 0.05));

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.04);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-glow-purple: 0 0 25px rgba(168, 85, 247, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'Fira Code', monospace;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- LIGHT THEME OVERRIDES (GIAO DIỆN SÁNG CAO CẤP) --- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.95);
  --bg-surface-hover: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-highlight: #020617;

  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #9333ea;
  --accent-pink: #db2777;
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  --border-color: rgba(203, 213, 225, 0.85);
  --border-focus: rgba(2, 132, 199, 0.7);
  --border-subtle: rgba(226, 232, 240, 0.8);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
  --shadow-glow-purple: 0 0 20px rgba(147, 51, 234, 0.15);
  --gradient-border: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(147, 51, 234, 0.2), rgba(0, 0, 0, 0.05));
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="light"] .glass-card {
  background: #ffffff;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .glass-card:hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .tool-textarea,
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .select-cyber {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .code-viewer-container {
  background: #ffffff;
  border-color: #cbd5e1;
}

[data-theme="light"] .code-viewer-header {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .syntax-code {
  color: #1e293b;
}

[data-theme="light"] .syntax-line:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .cyber-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .channel-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .channel-btn:hover {
  background: #ffffff;
  border-color: var(--accent-cyan);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

::selection {
  background: var(--accent-cyan);
  color: #05070e;
}

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

/* --- DYNAMIC GLOWING TOP LOADING BAR --- */
#page-progress-bar, .page-top-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, #4facfe, #a855f7, #ec4899, #00f2fe);
  background-size: 300% 100%;
  animation: shimmerLoader 2s linear infinite;
  z-index: 100001;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.9), 0 0 28px rgba(168, 85, 247, 0.6);
  transition: width 0.25s ease, opacity 0.4s ease;
  pointer-events: none;
}

@keyframes shimmerLoader {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* --- FULL-PAGE PRELOADER SCREEN (CYBER HUD SPINNER) --- */
#site-preloader {
  position: fixed;
  inset: 0;
  background: #05070e;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

[data-theme="light"] #site-preloader {
  background: #f8fafc;
}

#site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-hud-spinner {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-hud-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-cyan);
  border-bottom-color: var(--accent-purple);
  animation: preloaderSpin 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.preloader-hud-ring-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 242, 254, 0.6);
  animation: preloaderSpinRev 3s linear infinite;
}

.preloader-hud-core {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
  animation: preloaderPulse 1.5s ease-in-out infinite alternate;
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloaderSpinRev {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes preloaderPulse {
  0% { transform: scale(0.92); opacity: 0.8; box-shadow: 0 0 10px rgba(0, 242, 254, 0.3); }
  100% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 25px rgba(0, 242, 254, 0.7); }
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-highlight);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

[data-theme="light"] .preloader-brand {
  color: #0f172a;
}

.preloader-brand span {
  color: var(--accent-cyan);
}

.preloader-bar-wrap {
  width: 250px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  position: relative;
}

[data-theme="light"] .preloader-bar-wrap {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #4facfe, #a855f7);
  background-size: 200% 100%;
  animation: shimmerLoader 1.5s linear infinite;
  border-radius: inherit;
  transition: width 0.12s ease;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

[data-theme="light"] .preloader-status {
  color: #64748b;
}

.preloader-percent {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* --- BACKGROUND CANVAS & CYBER GRID --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
  position: relative;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-highlight);
  letter-spacing: -0.02em;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-highlight);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
}

.brand-text span {
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #05070e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-cyber {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--text-highlight);
}

.btn-cyber:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- CARD CONTAINER & GLASSMORPHISM (CLEAN FLAT & 2D HOVER) --- */
.card-3d-wrap {
  perspective: none;
}

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  transform-style: flat;
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent-cyan);
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tech-stack {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.tech-stack-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tech-stack-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.tech-stack-icons i {
  transition: all var(--transition-fast);
}

.tech-stack-icons i:hover {
  color: var(--accent-cyan);
  transform: translateY(-3px) scale(1.1);
}

/* --- HERO AVATAR & 3D CYBER HUD --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-3d-container {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glow-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(168, 85, 247, 0.15) 50%, transparent 75%);
  filter: blur(20px);
  z-index: 0;
  animation: float-glow 6s ease-in-out infinite alternate;
}

@keyframes float-glow {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 0.9; }
}

.avatar-orbit-circle {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.35);
  animation: rotate-orbit 35s linear infinite;
  pointer-events: none;
}

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

.avatar-img-box {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border: 3px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.25), inset 0 0 20px rgba(0, 242, 254, 0.15);
  transition: transform 0.4s ease;
}

.avatar-img-box img, .avatar-img-box svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  z-index: 2;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: float-badge 4s ease-in-out infinite alternate;
}

.badge-top-right {
  top: 10px;
  right: -20px;
  border-color: rgba(0, 242, 254, 0.3);
}

.badge-bottom-left {
  bottom: 10px;
  left: -20px;
  border-color: rgba(168, 85, 247, 0.3);
  animation-delay: -2s;
}

@keyframes float-badge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.floating-badge i {
  font-size: 1.2rem;
}
.badge-top-right i { color: var(--accent-cyan); }
.badge-bottom-left i { color: var(--accent-purple); }

.badge-text-top {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.badge-text-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-highlight);
}

/* --- STATS COUNTERS --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
}

.stat-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  display: inline-block;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-highlight);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- ABOUT ME SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.about-bio-card {
  padding: 36px;
}

.bio-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.bio-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.bio-item-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  width: 32px;
  text-align: center;
}

.bio-item-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.bio-item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-highlight);
}

/* Timeline */
.timeline-card {
  padding: 36px;
}

.timeline-wrap {
  position: relative;
  padding-left: 28px;
  margin-top: 24px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  transform: scale(1.3);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.timeline-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-highlight);
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- SKILLS SECTION --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.skill-card:hover .skill-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.skill-percent {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 4px;
}

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

.skill-progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* --- PROJECTS SECTION --- */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  height: 100%;
}

.project-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.project-code-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-highlight);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.project-links .btn {
  flex: 1;
}

/* --- TOOLS SECTION (ENC/DEC & VIEWER) --- */
.tools-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.tab-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab-nav-btn.active, .tab-nav-btn:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.15));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.tool-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tool-panel.active {
  display: block;
}

/* Tools Section Explicit Flat Styling (No 3D) */
.tools-section .glass-card,
.tools-page-section .glass-card,
.tool-panel .glass-card {
  transform: none !important;
  transform-style: flat !important;
  perspective: none !important;
}

.tools-section .glass-card:hover,
.tools-page-section .glass-card:hover,
.tool-panel .glass-card:hover {
  transform: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sub tabs inside Enc/Dec */
.sub-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.enc-dec-toggle-group {
  display: flex;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.enc-dec-btn {
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.enc-dec-btn.active {
  background: var(--accent-cyan);
  color: #05070e;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.4);
}

.method-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.method-label {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.method-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.method-pill:hover, .method-pill.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tool-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.tool-box {
  display: flex;
  flex-direction: column;
}

.tool-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tool-box-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-box-counter {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.tool-textarea {
  width: 100%;
  height: 240px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.tool-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.tool-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.tool-actions-left, .tool-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mode-switch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* --- CODE VIEWER --- */
.viewer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-cyber {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-highlight);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.select-cyber:focus {
  border-color: var(--accent-cyan);
}

.code-viewer-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  margin-bottom: 16px;
}

.code-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.red { background: #ff5f56; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #27c93f; }

.code-file-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-display-area {
  min-height: 320px;
  max-height: 500px;
  overflow: auto;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Fullscreen mode for code viewer */
.code-viewer-container.fullscreen {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-height: none;
  height: calc(100vh - 40px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

.code-viewer-container.fullscreen .code-display-area {
  max-height: calc(100vh - 120px);
  height: calc(100vh - 120px);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  padding: 36px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.channel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-highlight);
  font-weight: 600;
  transition: all var(--transition-fast);
}

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

.channel-icon {
  font-size: 1.3rem;
  width: 32px;
  text-align: center;
}

.channel-btn:hover {
  transform: translateX(6px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  color: var(--accent-cyan);
}

.contact-form-card {
  padding: 36px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* --- FOOTER --- */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
}

.footer-terminal {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-emerald);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.back-to-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

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

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  color: var(--text-highlight);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: rgba(0, 255, 135, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.2);
}
.toast.success i { color: var(--accent-emerald); }

.toast.error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}
.toast.error i { color: #ef4444; }

/* --- GLOBAL MOBILE SAFETY --- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  section { padding: 70px 0; }
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
    display: block;
  }
  .hero-title { font-size: 2.5rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content { align-items: center; }
  .hero-badge-row { justify-content: center; }
  .hero-role-wrapper { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-tech-stack { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .tool-work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-header {
    padding: 10px 0;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .nav-menu {
    position: fixed;
    top: 62px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
  }

  .hero-section {
    padding-top: 85px;
    padding-bottom: 40px;
    min-height: auto;
    display: block;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-badge-row {
    margin-bottom: 16px;
    gap: 8px;
  }

  .hero-status-pill {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero-role-wrapper {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 30px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .hero-tech-stack {
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
  }

  .avatar-3d-container {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .avatar-img-box {
    width: 200px;
    height: 200px;
  }

  .floating-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    gap: 6px;
  }

  .badge-top-right {
    top: 0;
    right: -10px;
  }

  .badge-bottom-left {
    bottom: 0;
    left: -10px;
  }

  .section-title {
    font-size: 1.85rem;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
  }

  .stat-card {
    padding: 18px 12px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

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

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

  .glass-card {
    padding: 20px;
  }

  .tools-tabs-nav {
    flex-direction: column;
    gap: 8px;
  }

  .tab-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .method-select-group {
    overflow-x: auto;
    padding-bottom: 6px;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .avatar-3d-container {
    width: 210px;
    height: 210px;
  }

  .avatar-img-box {
    width: 175px;
    height: 175px;
  }

  .floating-badge {
    display: none;
  }
}
