:root {
  --bg-dark: #070a12;
  --bg-primary: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);
  --border-focus: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'Fira Code', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 35px -5px rgba(59, 130, 246, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

/* AMBIENT GLOWS */
.ambient-glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  max-width: 100vw;
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
  top: -100px;
  left: -100px;
}
.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  top: 400px;
  right: -150px;
}
.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25), transparent 70%);
  bottom: 200px;
  left: 10%;
}

/* TYPOGRAPHY UTILITIES */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-secondary { color: var(--text-muted); }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.brand-terminal {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}
.brand-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 1;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-main);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Dropdown */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  padding: 0 12px;
  height: 34px;
  border-radius: 17px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}
.lang-dropdown-btn:hover,
.lang-dropdown-wrapper.open .lang-dropdown-btn {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.45);
  color: #ffffff;
}
.lang-dropdown-btn .icon-globe {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.lang-dropdown-btn .icon-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.lang-dropdown-wrapper.open .icon-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Popup */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: rgba(13, 19, 33, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.lang-dropdown-wrapper.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown Menu Items */
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transform: translateX(2px);
}
.lang-option.active {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.lang-flag {
  font-size: 0.95rem;
  line-height: 1;
}
.lang-text {
  flex: 1;
}
.lang-check {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-left: 4px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.btn .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.nav-actions .btn {
  padding: 0 14px;
  height: 34px;
  font-size: 0.82rem;
  border-radius: 17px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}
.btn-outline:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
  color: #ffffff;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-subtle {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-subtle:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.icon {
  width: 18px;
  height: 18px;
}

/* MAIN LAYOUT */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 10;
}
.section-container {
  margin-top: 90px;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 45px;
}
.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* HERO SECTION */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding: 40px 0 20px;
}
.hero-content {
  min-width: 0;
  max-width: 100%;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}
.hero-subtitle strong {
  color: var(--text-main);
}

/* HERO STATS */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
.stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.25s;
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.6);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.stat-unit {
  font-size: 1rem;
  color: var(--accent-blue);
  margin-left: 2px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* HERO PROFILE GLASS CARD */
.hero-card-wrapper {
  perspective: 1000px;
  width: 380px;
  max-width: 100%;
  justify-self: end;
  flex-shrink: 0;
}
.profile-card {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.profile-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-4px);
}
.avatar-container {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  position: relative;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
}
.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-dark);
}
.avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
  border: 2px solid var(--bg-primary);
}

.profile-info {
  text-align: center;
  margin-bottom: 20px;
}
.profile-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.profile-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 8px;
}
.profile-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.live-status-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.status-row:last-child {
  margin-bottom: 0;
}
.status-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.mini-dot.green { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.mini-dot.blue { background: var(--accent-blue); box-shadow: 0 0 6px var(--accent-blue); }
.mini-dot.purple { background: var(--accent-purple); box-shadow: 0 0 6px var(--accent-purple); }

.card-contact-strip {
  display: flex;
  gap: 8px;
}
.copy-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 7px 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.copy-chip:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: var(--text-main);
}

/* CERTIFICATIONS GRID */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}
.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}
.cert-card.aws-card:hover::before { background: #ff9900; }
.cert-card.k8s-sec-card:hover::before { background: #ef4444; }
.cert-card.k8s-adm-card:hover::before { background: #326ce5; }
.cert-card.linux-card:hover::before { background: #ee0000; }
.cert-card.itil-card:hover::before { background: #10b981; }

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cert-logo-box {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.aws-logo { background: rgba(255, 153, 0, 0.15); color: #ff9900; }
.k8s-logo { background: rgba(50, 108, 229, 0.15); color: #60a5fa; }
.rhel-logo { background: rgba(238, 0, 0, 0.15); color: #f87171; }
.itil-logo { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.cert-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.cert-tag.professional { background: rgba(255, 153, 0, 0.2); color: #fbbf24; }
.cert-tag.security { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.cert-tag.admin { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.cert-tag.linux { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }
.cert-tag.management { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.cert-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.cert-full-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 38px;
}
.cert-desc-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: auto;
}

/* CORE STRENGTHS GRID */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.strength-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: all 0.3s;
}
.strength-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.card-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.card-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.card-icon.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.card-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.card-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.card-icon.pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.strength-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.strength-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* INTERACTIVE TERMINAL SIMULATOR */
.terminal-container {
  background: #0d111a;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
}
.terminal-bar {
  background: #161c28;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-dots {
  display: flex;
  gap: 7px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 16px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
  flex: 1;
}
.terminal-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.terminal-presets {
  background: #111622;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.presets-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}
.cmd-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}
.cmd-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
  color: #ffffff;
}
.cmd-chip.chip-clear {
  color: #94a3b8;
  margin-left: auto;
}

.terminal-screen {
  padding: 18px 20px;
  min-height: 260px;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.86rem;
  line-height: 1.6;
}
.term-line {
  margin-bottom: 8px;
  word-break: break-all;
}
.term-cmd-echo {
  color: #38bdf8;
  font-weight: 600;
}
.term-output {
  color: #cbd5e1;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #111622;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.term-prompt {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 10px;
}
#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* PROJECTS LIST */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px;
  transition: all 0.3s;
}
.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.project-tag.aiops { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.project-tag.enterprise { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.project-tag.aiinfra { background: rgba(6, 182, 212, 0.15); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }
.project-tag.cloud { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.project-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.project-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.project-role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.project-highlights {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.highlight-item {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}
.highlight-item:last-child {
  margin-bottom: 0;
}
.highlight-item::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}
.highlight-item strong {
  color: var(--text-main);
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 4px;
}

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-blue) 0%, rgba(59, 130, 246, 0.1) 100%);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.timeline-dot.current {
  border-color: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
}
.timeline-dot.edu-dot {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all 0.25s;
}
.timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.timeline-card.edu-highlight {
  border-left: 3px solid var(--accent-purple);
}
.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.timeline-company {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}
.timeline-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-left: auto;
}
.timeline-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.25s;
}
.skill-category-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}
.cat-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
}
.pills-box {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.skill-pill.highlight {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-weight: 600;
}
.skill-pill:hover {
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-1px);
}

/* CONTACT BANNER */
.contact-card-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-xl);
  padding: 45px 35px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.15);
}
.contact-banner-content {
  max-width: 780px;
  margin: 0 auto;
}
.contact-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.contact-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}
.contact-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
}

.contact-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
.action-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
}
.action-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.action-value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.action-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}
.copy-btn, .link-btn {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.copy-btn:hover, .link-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

.final-cta-bar {
  display: flex;
  justify-content: center;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #060910;
  padding: 24px;
  margin-top: 80px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-sub {
  font-size: 0.75rem;
  margin-top: 4px;
}
.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.2s;
}
.footer-right a:hover {
  color: var(--accent-blue);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==================== RESUME DOWNLOAD ACCESS CODE MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(37, 99, 235, 0.18);
  transform: translateY(16px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.modal-overlay.show .modal-card {
  transform: translateY(0) scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.1rem;
}
.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.modal-contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
}
.modal-contact-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
  display: block;
}
.modal-contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.86rem;
}
.modal-contact-item:last-child {
  margin-bottom: 0;
}
.modal-contact-val {
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-weight: 600;
}
.modal-copy-link {
  font-size: 0.75rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-copy-link:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}
.modal-input-group {
  margin-bottom: 16px;
}
.modal-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.modal-input-row {
  display: flex;
  gap: 10px;
}
.modal-input {
  flex: 1;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  color: #ffffff;
  outline: none;
  transition: all 0.2s;
  letter-spacing: 2px;
}
.modal-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.modal-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: modalShake 0.4s ease-in-out;
}
@keyframes modalShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.modal-error-msg {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 6px;
  display: none;
}
.modal-error-msg.show {
  display: block;
}
.modal-btn-submit {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.modal-btn-submit:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & FULL H5 MOBILE OPTIMIZATION
   ========================================================================== */

/* 1. Small Desktop & Large Tablets (<= 1140px) */
@media (max-width: 1140px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
}

/* 2. Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .hero-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 36px;
    padding: 30px 0 16px;
    box-sizing: border-box;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .hero-card-wrapper {
    width: 100%;
    max-width: 400px;
    min-width: 0;
    margin: 0 auto;
    justify-self: center;
    box-sizing: border-box;
  }
  .certs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .strengths-grid, .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3. Phablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  .ambient-glow-wrapper {
    display: none !important;
  }
  /* Mobile H5: Instant rendering to guarantee 100% reliability across all mobile webviews */
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .content-wrapper {
    padding: 0 16px 60px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }
  .nav-container {
    padding: 8px 16px;
  }
  #nav-contact-btn {
    display: none;
  }
  .hero-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 20px 0 16px;
    gap: 24px;
    box-sizing: border-box;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .status-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    width: fit-content;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    font-size: 0.74rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .cyber-ticker {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    box-sizing: border-box;
    padding: 0 10px;
    margin-bottom: 18px;
    gap: 8px;
    overflow: hidden;
    contain: layout size;
  }
  .ticker-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    padding: 2px 6px;
    letter-spacing: 0.5px;
  }
  .ticker-stream {
    display: flex;
    align-items: center;
    flex: 1 1 0%;
    min-width: 0;
    width: 0;
    overflow: hidden;
  }
  .ticker-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.74rem;
  }
  .hero-title {
    width: 100%;
    max-width: 100%;
    font-size: 2rem;
    line-height: 1.22;
    margin-bottom: 14px;
    word-break: break-word;
    box-sizing: border-box;
  }
  .hero-subtitle {
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 22px;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  .hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 10px;
    margin-bottom: 22px;
    box-sizing: border-box;
  }
  .stat-card {
    min-width: 0;
    max-width: 100%;
    padding: 12px 10px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .stat-num {
    font-size: 1.55rem;
  }
  .stat-label {
    font-size: 0.72rem;
    white-space: normal;
    word-break: break-word;
  }
  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    box-sizing: border-box;
  }
  .hero-cta-group .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  .hero-card-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .profile-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 16px;
    box-sizing: border-box;
  }
  .card-contact-strip {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    box-sizing: border-box;
  }
  .card-contact-strip .copy-chip {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 8px 10px;
  }
  .certs-grid,
  .strengths-grid,
  .skills-grid,
  .contact-actions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 14px;
    box-sizing: border-box;
  }
  .project-card,
  .strength-card,
  .cert-card,
  .skill-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .timeline-wrapper {
    padding-left: 18px;
    box-sizing: border-box;
  }
  .timeline-wrapper::before {
    left: 6px;
  }
  .timeline-dot {
    left: -18px;
  }
}

/* 4. Standard H5 Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  .nav-container {
    padding: 8px 12px;
    gap: 8px;
  }
  .nav-brand .brand-tag {
    display: none;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .nav-actions {
    gap: 6px;
  }
  .lang-dropdown-btn {
    height: 30px;
    padding: 0 8px;
    font-size: 0.75rem;
    gap: 4px;
  }
  #nav-download-btn {
    height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .avatar-container {
    width: 76px;
    height: 76px;
    margin-bottom: 10px;
  }
  .profile-name {
    font-size: 1.25rem;
  }
  .profile-role {
    font-size: 0.8rem;
  }
  .profile-meta {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 3px;
  }
  .live-status-box {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .section-desc {
    font-size: 0.86rem;
  }
  .project-card {
    padding: 16px 12px;
  }
  .project-title {
    font-size: 1.1rem;
  }
  .modal-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 20px 14px;
    box-sizing: border-box;
  }
  .modal-title {
    font-size: 1.2rem;
  }
  .modal-input-row {
    flex-direction: column;
    gap: 8px;
  }
  .modal-btn-submit {
    width: 100%;
    justify-content: center;
  }
}

/* 5. Extremely Compact Mobile Screens (<= 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .brand-terminal {
    display: none;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .nav-container {
    padding: 6px 8px;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* 6. Touch-Device Friendly Adjustments (Prevent hover tilt shake) */
@media (hover: none) or (pointer: coarse) {
  .interactive-card {
    transform: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
  }
  .interactive-card:hover {
    transform: none !important;
  }
  .interactive-card::before {
    display: none !important;
  }
}

/* ==========================================================================
   DYNAMIC HIGH-TECH VISUAL EFFECTS & ANIMATIONS
   ========================================================================== */

/* 1. Top Reading Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple), var(--accent-green));
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.8), 0 0 20px rgba(139, 92, 246, 0.5);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* 2. Interactive Topology Mesh Canvas */
#topology-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Ensure proper layering over background canvas */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.lang-dropdown-menu {
  z-index: 1050;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
}

/* 3. Cyber HUD Terminal Ticker (Hero Section) */
.cyber-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  background: rgba(11, 15, 25, 0.88);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(6, 182, 212, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  contain: layout size;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cyber-ticker:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 4px 25px rgba(6, 182, 212, 0.25), inset 0 0 16px rgba(6, 182, 212, 0.15);
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.8px;
  flex-shrink: 0;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
}

.ticker-pulse {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: radar-ping 1.8s infinite cubic-bezier(0, 0, 0.2, 1);
}

.ticker-stream {
  display: flex;
  align-items: center;
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  overflow: hidden;
}

.ticker-text {
  flex: 1 1 auto;
  min-width: 0;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  font-weight: 500;
}

.ticker-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: var(--accent-cyan);
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
  animation: blink-cursor 0.9s infinite;
}

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

@keyframes radar-ping {
  0% { transform: scale(0.9); opacity: 0.9; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.9); opacity: 0.9; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* 4. 3D Tilt Cards & Holographic Spotlight Effect */
.interactive-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(59, 130, 246, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.interactive-card:hover::before {
  opacity: 1;
}

.interactive-card > * {
  position: relative;
  z-index: 2;
}

/* 5. Smooth Scroll-Reveal Fade Up Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delay for list grids */
.certs-grid .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.certs-grid .scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.certs-grid .scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
.certs-grid .scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
.certs-grid .scroll-reveal:nth-child(5) { transition-delay: 0.33s; }

.strengths-grid .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.strengths-grid .scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.strengths-grid .scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
.strengths-grid .scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
.strengths-grid .scroll-reveal:nth-child(5) { transition-delay: 0.33s; }
.strengths-grid .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }

/* 6. Live Status Ripple / Wave Effect */
.mini-dot.green {
  position: relative;
}
.mini-dot.green::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: inherit;
  animation: dot-ripple 2s infinite ease-out;
  pointer-events: none;
}

@keyframes dot-ripple {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}

/* 7. Button Hover Glow Waves */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
  transition: all 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==========================================================================
   10. AI COPILOT FLOATING ORB (FAB) & CHAT WINDOW
   ========================================================================== */

/* Floating Action Button (FAB) */
.ai-fab-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
}

.ai-fab-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: rgba(13, 22, 41, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  overflow: visible;
}

.ai-fab-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #00f0ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 28px rgba(0, 240, 255, 0.45);
}

.ai-fab-btn:active {
  transform: translateY(0) scale(0.98);
}

.ai-fab-glow {
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.5), rgba(168, 85, 247, 0.5));
  z-index: -1;
  opacity: 0.4;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.ai-fab-btn:hover .ai-fab-glow {
  opacity: 0.8;
  filter: blur(12px);
}

.ai-fab-ping {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: fab-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes fab-ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.ai-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

.ai-fab-icon svg {
  width: 18px;
  height: 18px;
}

.ai-fab-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.ai-fab-title {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #f1f5f9;
}

.ai-fab-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 600;
}

.ai-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-glow 1.8s infinite;
}

/* AI Chat Window Modal / Bottom Sheet */
.ai-chat-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 440px;
  height: 620px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: rgba(10, 15, 29, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 240, 255, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ai-chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ai-chat-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.ai-chat-avatar svg {
  width: 20px;
  height: 20px;
}

.ai-chat-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.ai-model-tag {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #38bdf8;
  letter-spacing: 0.4px;
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

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

.ai-chat-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(0, 240, 255, 0.3);
}

.ai-action-btn svg {
  width: 16px;
  height: 16px;
}

.ai-action-btn.ai-unlock-btn {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
  font-size: 0.85rem;
}

.ai-action-btn.ai-unlock-btn:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.ai-action-btn.ai-unlock-btn.unlocked {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
}

.ai-model-tag.unlocked {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

/* ========================================================
   AI COPILOT VIP UNLOCK MODAL & CYBERPUNK HUD AESTHETICS
   ======================================================== */
.ai-unlock-modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ai-unlock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ai-unlock-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(150deg, rgba(22, 33, 58, 0.96) 0%, rgba(10, 16, 32, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ai-unlock-modal.active .ai-unlock-card {
  transform: scale(1) translateY(0);
}

.ai-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
}

.ai-modal-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: rotate(90deg);
}

.ai-modal-close svg {
  width: 14px;
  height: 14px;
}

.ai-unlock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ai-unlock-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}

.ai-unlock-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.ai-unlock-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-input-wrap {
  position: relative;
  flex: 1 1 auto;
}

.ai-input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

.ai-passcode-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 15, 30, 0.9) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 10px !important;
  padding: 10px 12px 10px 34px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.84rem !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.ai-passcode-input:focus {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3) !important;
}

.ai-passcode-input::placeholder {
  color: #64748b;
  font-size: 0.8rem;
}

.ai-passcode-submit {
  flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #0b0f19 !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  transition: all 0.2s ease !important;
}

.ai-passcode-submit:hover {
  filter: brightness(1.15) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5) !important;
}

.ai-passcode-submit svg {
  width: 13px;
  height: 13px;
}

.ai-unlock-status {
  min-height: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: none;
}

.ai-unlock-status.show {
  display: block;
}

.ai-unlock-status.success {
  color: #10b981;
}

.ai-unlock-status.error {
  color: #ef4444;
}

.ai-unlock-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.ai-unlock-contact-tip {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.ai-unlock-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-copy-wechat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  color: #e2e8f0 !important;
  font-family: inherit !important;
  font-size: 0.78rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.ai-copy-wechat-btn:hover {
  background: rgba(40, 53, 76, 0.8) !important;
  border-color: #38bdf8 !important;
}

.ai-copy-wechat-btn .copy-tag {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 600;
}

.ai-copy-wechat-btn.copied .copy-tag {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.ai-quick-tip {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.4;
}

.ai-quick-tip code {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.ai-chip-btn.highlight-chip {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.ai-chip-btn.highlight-chip:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #fbbf24;
}

/* Quick Prompt Chips */
.ai-quick-chips {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 15, 29, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.ai-quick-chips::-webkit-scrollbar {
  height: 3px;
}
.ai-quick-chips::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 3px;
}

.ai-chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-chip-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Messages Container */
.ai-messages-list {
  flex: 1 1 auto;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.ai-messages-list::-webkit-scrollbar {
  width: 5px;
}
.ai-messages-list::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 4px;
}

/* Message Item */
.ai-msg {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: fadeIn 0.25s ease-out;
  box-sizing: border-box;
}

.ai-msg-bot {
  align-self: flex-start;
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-msg-avatar svg {
  width: 16px;
  height: 16px;
}

.ai-msg-user .ai-msg-avatar {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.ai-msg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-msg-sender {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.3px;
}

.ai-msg-user .ai-msg-sender {
  text-align: right;
}

.ai-msg-content {
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  word-break: break-word;
  box-sizing: border-box;
}

.ai-msg-bot .ai-msg-content {
  background: rgba(19, 29, 53, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-top-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ai-msg-user .ai-msg-content {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.9), rgba(124, 58, 237, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ai-msg-content p {
  margin: 0 0 8px 0;
}
.ai-msg-content p:last-child {
  margin-bottom: 0;
}

.ai-msg-content ul, .ai-msg-content ol {
  margin: 6px 0;
  padding-left: 20px;
}

.ai-msg-content li {
  margin-bottom: 4px;
}

.ai-msg-content code {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.82rem;
  color: #38bdf8;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.ai-msg-content strong {
  color: #38bdf8;
  font-weight: 700;
}

.ai-typing-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #00f0ff;
  margin-left: 4px;
  vertical-align: middle;
  animation: cursor-blink 0.8s infinite;
}

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

/* Chat Input Bar */
.ai-chat-input-area {
  padding: 12px 16px 14px;
  background: rgba(13, 22, 41, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ai-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  padding: 6px 8px 6px 14px;
  transition: all 0.2s ease;
}

.ai-chat-form:focus-within {
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.ai-chat-textarea {
  flex: 1 1 auto;
  background: transparent !important;
  border: none !important;
  color: #f1f5f9 !important;
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
  resize: none !important;
  max-height: 80px !important;
  min-height: 24px !important;
  outline: none !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  padding: 4px 0 !important;
  overflow-y: hidden !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ai-chat-textarea::-webkit-resizer {
  display: none !important;
}

.ai-chat-textarea::placeholder {
  color: #64748b;
  font-size: 0.82rem;
}

.ai-chat-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ai-chat-send-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
  transform: scale(1.05);
}

.ai-chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}

.ai-chat-send-btn svg {
  width: 18px;
  height: 18px;
}

.ai-input-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.2px;
}

/* Mobile Responsiveness for AI Copilot (<= 768px) */
@media (max-width: 768px) {
  .ai-fab-container {
    bottom: 20px;
    right: 16px;
  }

  .ai-fab-btn {
    padding: 8px 14px 8px 10px;
    gap: 8px;
  }

  .ai-fab-icon {
    width: 28px;
    height: 28px;
  }

  .ai-fab-icon svg {
    width: 16px;
    height: 16px;
  }

  .ai-fab-title {
    font-size: 0.78rem;
  }

  .ai-fab-badge {
    font-size: 0.64rem;
  }

  /* Bottom-sheet drawer on mobile */
  .ai-chat-window {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 86vh;
    max-height: 86vh;
    border-radius: 22px 22px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(100%);
  }

  .ai-chat-window.active {
    transform: translateY(0);
  }

  .ai-chat-header {
    padding: 14px 16px;
  }

  .ai-quick-chips {
    padding: 8px 12px;
  }

  .ai-messages-list {
    padding: 12px;
  }

  .ai-chat-input-area {
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

