/* ==========================================================
   DESIGN SYSTEM & THEME TOKENS
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-dark: #070a13;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(26, 37, 66, 0.8);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-hover: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.35);
  --accent: #a855f7;
  --accent-pink: #ec4899;
  --success: #10b981;
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --grad-glow: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(6,182,212,0.05) 50%, transparent 70%);
  --grad-dark-card: linear-gradient(145deg, rgba(20, 29, 52, 0.7) 0%, rgba(11, 18, 33, 0.8) 100%);
  --grad-vip: linear-gradient(145deg, rgba(30, 20, 50, 0.85) 0%, rgba(15, 18, 35, 0.9) 100%);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --shadow-gold: 0 0 30px var(--gold-glow);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================
   LIGHT / WHITE MODE SYSTEM TOKENS
   ========================================================== */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-border: rgba(203, 213, 225, 0.85);
  --bg-card-border-hover: rgba(79, 70, 229, 0.45);

  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --secondary: #0284c7;
  --secondary-glow: rgba(2, 132, 199, 0.25);
  --accent: #9333ea;
  --accent-pink: #db2777;
  --success: #059669;
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.25);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  --grad-cyan: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-dark-card: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  --grad-vip: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 100%);

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.2);
}

/* Light Theme Component Overrides */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .glass-profile-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .status-badge {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0369a1;
}

[data-theme="light"] .chat-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .chat-bot-selector-bar {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .chat-mode-tab {
  background: #ffffff;
  color: #64748b;
  border-color: #e2e8f0;
}

[data-theme="light"] .chat-mode-tab.active {
  background: rgba(79, 70, 229, 0.12);
  border-color: #4f46e5;
  color: #4f46e5;
}

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

[data-theme="light"] .bubble-bot {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .chat-suggestions {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .suggestion-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .suggestion-chip:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

[data-theme="light"] .chat-input-bar {
  background: #ffffff;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .chat-input-field {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

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

[data-theme="light"] .filter-tab {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .filter-tab.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

[data-theme="light"] .vip-container-box {
  background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 15px 35px rgba(217, 119, 6, 0.08);
}

[data-theme="light"] .footer {
  border-top-color: #e2e8f0;
  color: #64748b;
}

/* Exhaustive Light Mode Visibility & Contrast Fixes */
[data-theme="light"] .section-title {
  color: #0f172a !important;
}

[data-theme="light"] .section-subtitle {
  color: #475569 !important;
}

[data-theme="light"] .section-tag {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.12) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  font-weight: 600;
}

[data-theme="light"] .btn-ai-trigger {
  background: rgba(79, 70, 229, 0.1) !important;
  border-color: #4f46e5 !important;
  color: #4338ca !important;
  font-weight: 700;
}

[data-theme="light"] .btn-ai-trigger:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-ai-trigger .sparkle-icon {
  color: #d97706 !important;
}

[data-theme="light"] .hero-roles {
  color: #334155 !important;
}

[data-theme="light"] .hero-description {
  color: #475569 !important;
}

[data-theme="light"] .btn-secondary {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

[data-theme="light"] .social-icon-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .social-icon-btn:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}

[data-theme="light"] .profile-info h3 {
  color: #0f172a !important;
}

[data-theme="light"] .metric-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .metric-number {
  color: #0f172a !important;
}

[data-theme="light"] .metric-label {
  color: #64748b !important;
  font-weight: 600;
}

[data-theme="light"] .about-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .skill-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .skill-title {
  color: #0f172a !important;
}

[data-theme="light"] .skill-badge {
  background: rgba(79, 70, 229, 0.1) !important;
  color: #4338ca !important;
  border-color: rgba(79, 70, 229, 0.3) !important;
  font-weight: 600;
}

[data-theme="light"] .skill-icon-wrap {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .skill-progress-bar {
  background: #e2e8f0 !important;
}

[data-theme="light"] .skill-percent-text {
  color: #64748b !important;
  font-weight: 600;
}

/* Learning Cards in Light Mode */
[data-theme="light"] .learning-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .learning-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .learning-title {
  color: #0f172a !important;
}

[data-theme="light"] .learning-badge {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  font-weight: 600;
}

[data-theme="light"] .learning-desc {
  color: #475569 !important;
}

[data-theme="light"] .learning-tag-pill {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 500;
}

[data-theme="light"] .learning-progress-label {
  color: #475569 !important;
  font-weight: 600;
}

[data-theme="light"] .learning-progress-label span:last-child {
  color: #0284c7 !important;
  font-weight: 700;
}

/* Resources Cards in Light Mode */
[data-theme="light"] .resource-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .resource-card:hover {
  border-color: #4f46e5 !important;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

[data-theme="light"] .resource-title {
  color: #0f172a !important;
}

[data-theme="light"] .resource-desc {
  color: #475569 !important;
}

[data-theme="light"] .resource-type-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .resource-icon-wrap {
  background: rgba(79, 70, 229, 0.1) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .resource-size {
  color: #64748b !important;
  font-weight: 600;
}

[data-theme="light"] .btn-download-resource {
  background: rgba(79, 70, 229, 0.1) !important;
  color: #4338ca !important;
  border-color: rgba(79, 70, 229, 0.3) !important;
  font-weight: 600;
}

[data-theme="light"] .btn-download-resource:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

/* Channels in Light Mode */
[data-theme="light"] .channel-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .channel-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .channel-meta h3 {
  color: #0f172a !important;
}

[data-theme="light"] .channel-desc {
  color: #475569 !important;
}

[data-theme="light"] .channel-icon-wrap {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .channel-members {
  color: #059669 !important;
  font-weight: 700;
}

[data-theme="light"] .btn-join-channel {
  color: #4f46e5 !important;
  font-weight: 700;
}

/* VIP Syndicate in Light Mode */
[data-theme="light"] .vip-badge-tag {
  background: rgba(217, 119, 6, 0.12) !important;
  color: #b45309 !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
}

[data-theme="light"] .vip-title {
  color: #0f172a !important;
}

[data-theme="light"] .vip-tagline {
  color: #b45309 !important;
  font-weight: 600;
}

[data-theme="light"] .vip-description {
  color: #475569 !important;
}

[data-theme="light"] .vip-perk-item {
  color: #0f172a !important;
  font-weight: 500;
}

[data-theme="light"] .vip-action-box {
  background: #ffffff !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.08);
}

[data-theme="light"] .vip-action-box p {
  color: #64748b !important;
}

[data-theme="light"] .vip-price-tag {
  color: #b45309 !important;
}

/* Projects in Light Mode */
[data-theme="light"] .project-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .project-card:hover {
  border-color: #4f46e5 !important;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

[data-theme="light"] .project-title {
  color: #0f172a !important;
}

[data-theme="light"] .project-desc {
  color: #475569 !important;
}

[data-theme="light"] .project-tag {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0369a1 !important;
  border: 1px solid rgba(2, 132, 199, 0.25);
  font-weight: 600;
}

[data-theme="light"] .project-link-btn {
  color: #64748b !important;
}

[data-theme="light"] .project-link-btn:hover {
  color: #4f46e5 !important;
}

/* Contact in Light Mode */
[data-theme="light"] .contact-wrapper {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .contact-info-col h3 {
  color: #0f172a !important;
}

[data-theme="light"] .contact-info-col p {
  color: #475569 !important;
}

[data-theme="light"] .contact-detail-icon {
  background: rgba(79, 70, 229, 0.1) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .contact-detail-text span {
  color: #64748b !important;
  font-weight: 600;
}

[data-theme="light"] .contact-detail-text a,
[data-theme="light"] .contact-detail-text p,
[data-theme="light"] #contact-location-val {
  color: #0f172a !important;
}

[data-theme="light"] .form-label {
  color: #334155 !important;
  font-weight: 600;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
}

/* Floating AI Button Label in Light Mode */
[data-theme="light"] .assistant-btn-label {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.12) !important;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #00f0ff;
  transform: rotate(25deg) scale(1.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

[data-theme="light"] .theme-toggle-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #d97706;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #e2e8f0;
  color: #b45309;
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Background Ambient Cyber Glow (Calm & Non-Distracting) */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.glow-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: 5%;
  left: -180px;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 40%;
  right: 15%;
  opacity: 0.12;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   NAVIGATION BAR
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
  z-index: 100;
  transition: var(--transition);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
}

.brand-avatar-mini {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-text span {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ai-trigger {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-ai-trigger:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-ai-trigger .sparkle-icon {
  color: #facc15;
  animation: pulseRotate 3s infinite linear;
}

@keyframes pulseRotate {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* ==========================================================
   HERO & BIO SECTION
   ========================================================== */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #6ee7b7;
  width: fit-content;
}

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

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

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.hero-roles {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.typing-text {
  color: var(--secondary);
  border-right: 2px solid var(--secondary);
  white-space: nowrap;
  animation: blinkCursor 0.8s infinite;
  padding-right: 4px;
}

@keyframes blinkCursor {
  0%, 100% { border-color: var(--secondary); }
  50% { border-color: transparent; }
}

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

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-icon-btn:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-3px);
}

/* Hero Visual Card */
.hero-card-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.glass-profile-card {
  position: relative;
  background: var(--grad-dark-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  transition: var(--transition);
  overflow: hidden;
}

.glass-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
}

.glass-profile-card:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
  transform: translateY(-4px);
}

.profile-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

.avatar-badge-live {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: #0f172a;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-badge-live i {
  color: var(--success);
  font-size: 1rem;
}

.profile-info {
  text-align: center;
}

.profile-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-info p {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 18px;
}

.profile-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-card-border);
}

.metric-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ==========================================================
   SECTIONS GENERAL
   ========================================================== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 12px auto 0;
}

/* About Story */
.about-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-card p {
  margin-bottom: 16px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-highlight-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--bg-card-border);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.highlight-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================
   SKILLS MATRIX
   ========================================================== */
.skills-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 36px;
}

.skills-filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.skills-search-box {
  position: relative;
  min-width: 260px;
}

.skills-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-full);
  padding: 10px 18px 10px 42px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.skills-search-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 15px var(--secondary-glow);
}

.skills-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--bg-card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.skill-icon-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--secondary);
}

.skill-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.skill-badge {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.skill-progress-wrap {
  margin-top: 10px;
}

.skill-progress-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: var(--grad-cyan);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.skill-percent-text {
  display: flex;
  justify-content: flex-end;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-code);
  margin-top: 6px;
}

/* ==========================================================
   CURRENTLY LEARNING ROADMAP
   ========================================================== */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.learning-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.learning-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
}

.learning-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.learning-badge {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.learning-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.learning-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.learning-progress-wrap {
  margin-bottom: 18px;
}

.learning-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.learning-progress-label span:last-child {
  font-family: var(--font-code);
  color: var(--secondary);
}

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

.learning-tag-pill {
  font-family: var(--font-code);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================
   RESOURCES & DOWNLOADS HUB
   ========================================================== */
.resources-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.resource-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.resource-card:hover {
  border-color: var(--bg-card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.resource-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.resource-type-badge {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
}

.resource-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.resource-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-card-border);
  padding-top: 16px;
  margin-top: auto;
}

.resource-size {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-code);
}

.btn-download-resource {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-download-resource:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* ==========================================================
   PUBLIC CHANNELS & COMMUNITIES
   ========================================================== */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.channel-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.channel-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.channel-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
}

.channel-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.channel-meta span {
  font-size: 0.8rem;
  color: var(--secondary);
  font-family: var(--font-code);
}

.channel-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.channel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
}

.channel-members {
  font-size: 0.82rem;
  font-weight: 600;
  color: #10b981;
}

.btn-join-channel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================
   VIP COMMUNITY / EXCLUSIVE CLUB
   ========================================================== */
.vip-container-box {
  background: var(--grad-vip);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.vip-container-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-gold);
}

.vip-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.vip-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.vip-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.vip-tagline {
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.vip-description {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.vip-perks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vip-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.vip-perk-item i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 4px;
}

.vip-action-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.vip-price-tag {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}

.btn-vip-join {
  background: var(--grad-gold);
  color: #000;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-vip-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

/* ==========================================================
   FEATURED PROJECTS
   ========================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  border-color: var(--bg-card-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

.project-folder-icon {
  font-size: 1.8rem;
  color: var(--secondary);
}

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

.project-link-btn {
  color: var(--text-muted);
  font-size: 1.15rem;
  text-decoration: none;
  transition: var(--transition);
}

.project-link-btn:hover {
  color: #fff;
  transform: scale(1.15);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================
   CONTACT SECTION
   ========================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--grad-dark-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.contact-info-col h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-info-col p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-detail-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.contact-detail-text a,
.contact-detail-text p {
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(7, 10, 19, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

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

.form-submit-btn {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit-btn:hover {
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-2px);
}

/* ==========================================================
   AI ASSISTANT (CHAT MODAL & FLOATING WIDGET)
   ========================================================== */
.floating-assistant-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--grad-primary);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 99999;
  transition: var(--transition);
}

.floating-assistant-btn * {
  pointer-events: none;
}

.floating-assistant-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.8), 0 0 25px rgba(0, 240, 255, 0.5);
}

.floating-assistant-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  transform: rotate(90deg);
}

.assistant-btn-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  animation: radarPulse 2.4s infinite ease-out;
  pointer-events: none;
}

.assistant-btn-label {
  position: absolute;
  right: 72px;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #f1f5f9;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 1;
  transition: var(--transition);
}

.assistant-btn-label .online-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}

.floating-assistant-btn.active .assistant-btn-label {
  opacity: 0;
}

@keyframes radarPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Matrix Background Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.45;
}

.chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 15, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chat-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chat-drawer {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 420px;
  max-width: calc(100vw - 40px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: rgba(8, 12, 24, 0.97);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  z-index: 100000;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease, visibility 0.25s ease;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Open Active State for Chat Drawer */
.chat-drawer.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

/* Dual Bot Mode Switcher Tabs */
.chat-bot-selector-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 8px 12px;
  gap: 8px;
}

.chat-mode-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.chat-mode-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.chat-mode-tab.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.chat-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-bot-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.chat-bot-meta h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.chat-bot-meta span {
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-bot-meta span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInBubble 0.25s ease-out;
}

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

.bubble-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.bubble-user {
  align-self: flex-end;
  background: var(--grad-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: bounceDot 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounceDot {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.chat-suggestions {
  padding: 8px 16px;
  background: rgba(7, 10, 19, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.suggestion-chip {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.suggestion-chip:hover {
  background: var(--primary);
  color: #fff;
}

.chat-input-bar {
  padding: 12px 16px;
  background: rgba(10, 15, 29, 0.95);
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-voice-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.chat-voice-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: scale(1.05);
}

.chat-voice-btn.listening {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
  animation: pulseMic 1.2s infinite ease-in-out;
}

@keyframes pulseMic {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
  50% { transform: scale(1.15); box-shadow: 0 0 20px rgba(239, 68, 68, 0.9); }
}

.chat-input-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.chat-input-field:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* ==========================================================
   FOOTER & STEALTH ADMIN TRIGGER
   ========================================================== */
.footer {
  border-top: 1px solid var(--bg-card-border);
  padding: 40px 0 30px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stealth-admin-trigger {
  color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.stealth-admin-trigger:hover {
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .vip-content-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }
}

/* ==========================================================
   SCROLL READING PROGRESS BAR (HUD STYLE)
   ========================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00f0ff 0%, #6366f1 50%, #a855f7 75%, #ec4899 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 0 20px rgba(99, 102, 241, 0.5);
  z-index: 10000;
  transition: width 0.1s cubic-bezier(0.2, 0.8, 0.4, 1);
  pointer-events: none;
}

/* ==========================================================
   SFX TOGGLE BUTTON
   ========================================================== */
.sfx-toggle-btn.active {
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* ==========================================================
   MOBILE HAMBURGER & DRAWER
   ========================================================== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  cursor: pointer;
  z-index: 101;
  transition: var(--transition);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-hamburger:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  height: 100vh;
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--bg-card-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.96);
  border-left-color: rgba(203, 213, 225, 0.85);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-card-border);
  margin-bottom: 20px;
}

.mobile-nav-header .brand-logo {
  gap: 10px;
  font-size: 1.15rem;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  color: #fff;
  background: var(--primary);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  color: var(--secondary);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

.mobile-nav-link.vip-link {
  color: var(--gold);
}

.mobile-nav-link.vip-link i {
  color: var(--gold);
}

.mobile-nav-footer {
  padding-top: 16px;
  border-top: 1px solid var(--bg-card-border);
}

/* ==========================================================
   PROJECTS CONTROLS
   ========================================================== */
.projects-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

/* ==========================================================
   COPY EMAIL CHIP
   ========================================================== */
.contact-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.btn-copy-chip {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-copy-chip:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================
   FLOATING BACK TO TOP BUTTON
   ========================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .back-to-top-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(203, 213, 225, 0.85);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-4px);
}

/* ==========================================================
   HUD TOAST NOTIFICATION CARDS
   ========================================================== */
.hud-toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.hud-toast {
  pointer-events: auto;
  min-width: 290px;
  max-width: 420px;
  background: rgba(13, 20, 39, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.hud-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.hud-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary);
}

.hud-toast.success::before { background: #00ff88; }
.hud-toast.warning::before { background: var(--gold); }
.hud-toast.danger::before { background: #ef4444; }

.hud-toast i {
  font-size: 1.25rem;
  color: var(--secondary);
}
.hud-toast.success i { color: #00ff88; }
.hud-toast.warning i { color: var(--gold); }
.hud-toast.danger i { color: #ef4444; }

[data-theme="light"] .hud-toast {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

/* ==========================================================
   CHAT HEADER ACTIONS
   ========================================================== */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.chat-header-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

/* ==========================================================
   MULTI-DEVICE RESPONSIVENESS (320px -> 4K OPTIMIZED)
   ========================================================== */

/* --- TABLETS & SMALL LAPTOPS (769px -> 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 36px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learning-grid,
  .resources-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- TABLETS PORTRAIT & LARGE PHONES (max-width: 768px) --- */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .hero-section {
    padding: 50px 0 35px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .hero-roles {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-card-container {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .glass-profile-card {
    max-width: 440px;
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .btn-ai-trigger {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

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

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .skills-controls,
  .resources-controls,
  .projects-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 24px;
  }

  .skills-filter-tabs,
  #resources-filter-tabs,
  #projects-filter-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 6px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .skills-filter-tabs::-webkit-scrollbar,
  #resources-filter-tabs::-webkit-scrollbar,
  #projects-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.85rem;
  }

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

  .learning-grid,
  .resources-grid,
  .projects-grid,
  .channels-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vip-container-box {
    padding: 28px 20px;
  }

  .vip-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .vip-action-box {
    padding: 24px 18px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .chat-drawer {
    left: 10px;
    right: 10px;
    bottom: 80px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 100px);
    height: 500px;
  }

  .back-to-top-btn {
    bottom: 85px;
    left: 18px;
    width: 44px;
    height: 44px;
  }

  .hud-toast-container {
    right: 15px;
    left: 15px;
    top: 15px;
  }

  .hud-toast {
    min-width: 100%;
  }
}

/* --- STANDARD & SMALL PHONES (max-width: 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .navbar .nav-container {
    height: 66px;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .brand-avatar-mini {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .theme-toggle-btn,
  .sfx-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .hero-section {
    padding: 40px 0 25px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.15rem);
    line-height: 1.25;
  }

  .hero-roles {
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .hero-description {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group a,
  .hero-cta-group button {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .glass-profile-card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }

  .profile-avatar-wrap {
    width: 110px;
    height: 110px;
  }

  .profile-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-item {
    padding: 10px 8px;
  }

  .metric-number {
    font-size: 1.25rem;
  }

  .metric-label {
    font-size: 0.72rem;
  }

  .section {
    padding: 45px 0;
  }

  .about-card {
    padding: 20px 14px;
  }

  .about-highlight-box {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-card {
    padding: 16px 14px;
  }

  .learning-card {
    padding: 20px 14px;
  }

  .resource-card {
    padding: 20px 14px;
  }

  .project-card {
    padding: 20px 16px;
  }

  .channel-card {
    padding: 18px 14px;
  }

  .vip-container-box {
    padding: 20px 14px;
  }

  .vip-title {
    font-size: 1.45rem;
  }

  .vip-price-tag {
    font-size: 1.15rem;
  }

  .vip-perk-item {
    font-size: 0.88rem;
  }

  .contact-form {
    padding: 20px 14px;
  }

  .floating-assistant-btn {
    bottom: 16px;
    right: 14px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .assistant-btn-label {
    display: none;
  }

  .back-to-top-btn {
    bottom: 16px;
    left: 14px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .chat-drawer {
    left: 8px;
    right: 8px;
    bottom: 74px;
    width: calc(100vw - 16px);
    height: min(490px, calc(100vh - 86px));
  }

  .chat-header {
    padding: 12px 14px;
  }

  .chat-bot-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .chat-bot-meta h4 {
    font-size: 0.85rem;
  }

  .chat-input-bar {
    padding: 8px 10px;
    gap: 6px;
  }

  .chat-voice-btn,
  .chat-send-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* --- ULTRA-COMPACT / FOLD SCREENS (max-width: 360px) --- */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .profile-avatar-wrap {
    width: 90px;
    height: 90px;
  }

  .profile-metrics-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .chat-mode-tab {
    font-size: 0.72rem;
    padding: 5px 6px;
  }
}

/* ==========================================================
   SERVICES & BUSINESS SOLUTIONS STYLES
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.18);
}

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

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.35rem;
}

.service-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-deliverables {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 22px;
}

.service-deliverables-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-deliverables-title i {
  color: var(--success);
}

.service-deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-deliverables-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-deliverables-list li i {
  font-size: 0.7rem;
  color: var(--secondary);
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
}

.service-turnaround {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-turnaround i {
  color: var(--gold);
}

.btn-service-inquire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  transition: var(--transition);
}

.btn-service-inquire:hover {
  background: var(--secondary);
  color: #000;
  transform: translateX(3px);
}

/* Business CTA Banner */
.business-cta-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 27, 75, 0.8) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

.business-cta-content {
  flex: 1;
}

.business-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.business-cta-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.business-cta-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 650px;
}

.business-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 868px) {
  .business-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .business-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .business-cta-actions .btn-primary,
  .business-cta-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================
   WORK TRACKER & LEARNING ROADMAP STYLES
   ========================================================== */
.tracker-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.tracker-metric-chip {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.tracker-metric-chip:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.metric-chip-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-hours { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.icon-milestones { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.icon-velocity { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.icon-streak { background: rgba(6, 182, 212, 0.15); color: var(--secondary); }

.metric-chip-info {
  display: flex;
  flex-direction: column;
}

.chip-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.chip-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Milestones inside Learning Cards */
.learning-hours-badge {
  font-size: 0.72rem;
  font-family: var(--font-code);
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.learning-milestones-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}

.milestones-header-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.milestones-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milestone-item {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  transition: var(--transition);
}

.milestone-item i {
  font-size: 0.78rem;
}

.milestone-item.completed {
  color: var(--text-main);
}

.milestone-item.completed i {
  color: #00ff88;
}

/* Work Logs Timeline */
.work-logs-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--bg-card-border);
}

.work-logs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.work-logs-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.work-logs-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.work-logs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.work-logs-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-log-item {
  display: flex;
  gap: 18px;
  position: relative;
}

.log-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.log-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  margin-top: 18px;
  flex-shrink: 0;
}

.log-line {
  width: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 6px;
}

.work-log-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.work-log-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.work-log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.log-date {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.log-category-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

.log-hours-pill {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.log-status-badge {
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-wip {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.work-log-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.work-log-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.work-log-proof {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-family: var(--font-code);
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

.btn-proof-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Core Arsenal Highlight */
.skill-card-core {
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: linear-gradient(145deg, rgba(30, 25, 45, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.skill-card-core:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.22) !important;
  transform: translateY(-4px);
}

/* ==========================================================
   3-DOT DECLUTTERED PREFERENCES & QUICK HUB MENU
   ========================================================== */
.nav-more-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dots-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.nav-dots-btn:hover,
.nav-dots-btn.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
  transform: rotate(90deg);
}

.nav-more-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 320px;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 240, 255, 0.12);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 250;
}

.nav-more-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.dropdown-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.dropdown-quick-switches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-switch-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.dropdown-switch-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateX(2px);
}

.switch-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #00f0ff;
  transition: all 0.2s ease;
}

.switch-item-text {
  display: flex;
  flex-direction: column;
}

.switch-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.switch-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.switch-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.switch-pill.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.dropdown-links-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.18s ease;
}

.dropdown-nav-row:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.nav-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.nav-row-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.row-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.row-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.row-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.dropdown-footer-action {
  padding-top: 4px;
}

.dropdown-admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dropdown-admin-link:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  transform: translateY(-1px);
}

/* Light Theme Overrides for 3-Dot Dropdown */
[data-theme="light"] .nav-dots-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="light"] .nav-dots-btn:hover,
[data-theme="light"] .nav-dots-btn.active {
  background: #e2e8f0;
  border-color: #6366f1;
  color: #4f46e5;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}
[data-theme="light"] .nav-more-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}
[data-theme="light"] .dropdown-switch-item {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
[data-theme="light"] .switch-title,
[data-theme="light"] .row-title {
  color: #0f172a !important;
}
[data-theme="light"] .switch-subtitle,
[data-theme="light"] .row-subtitle,
[data-theme="light"] .dropdown-title {
  color: #64748b !important;
}
[data-theme="light"] .dropdown-nav-row:hover {
  background: #f1f5f9;
}
[data-theme="light"] .nav-dropdown-divider {
  background: #e2e8f0;
}

/* ==========================================================
   MY DIARY & PERSONAL REFLECTIONS
   ========================================================== */
.diary-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.diary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.diary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #6366f1, #00f0ff);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.diary-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 25px rgba(168, 85, 247, 0.15);
}

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

.diary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.diary-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.diary-mood-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.diary-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}

.diary-snippet {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.diary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.diary-tag-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.diary-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.diary-card:hover .diary-read-more {
  transform: translateX(4px);
}

/* Privacy Assurance Card */
.diary-privacy-card {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.privacy-card-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.privacy-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.privacy-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.privacy-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.5;
}

.diary-write-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  white-space: nowrap;
}

.diary-write-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.45);
}

/* Diary Reader Modal */
.diary-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.diary-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.diary-modal-content {
  background: #0d1222;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(168, 85, 247, 0.2);
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.diary-modal-backdrop.open .diary-modal-content {
  transform: translateY(0) scale(1);
}

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

.diary-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.diary-modal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.diary-modal-mood {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.diary-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.diary-modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.diary-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.35;
}

.diary-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.diary-modal-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #e2e8f0;
  white-space: pre-wrap;
}

/* Light Mode Overrides for Diary */
[data-theme="light"] .diary-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .diary-card:hover {
  border-color: #a855f7 !important;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.12) !important;
}
[data-theme="light"] .diary-title {
  color: #0f172a !important;
}
[data-theme="light"] .diary-snippet {
  color: #475569 !important;
}
[data-theme="light"] .diary-privacy-card {
  background: #faf5ff !important;
  border-color: #e9d5ff !important;
}
[data-theme="light"] .privacy-card-title {
  color: #0f172a !important;
}
[data-theme="light"] .privacy-card-desc {
  color: #64748b !important;
}
[data-theme="light"] .diary-modal-content {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
}
[data-theme="light"] .diary-modal-title {
  color: #0f172a !important;
}
[data-theme="light"] .diary-modal-body {
  color: #334155 !important;
}

/* Light Mode Overrides for Work Logs & Learning Tracker */
[data-theme="light"] .tracker-metric-chip {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .tracker-metric-chip:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12) !important;
}
[data-theme="light"] .chip-val {
  color: #0f172a !important;
}
[data-theme="light"] .chip-lbl {
  color: #64748b !important;
}
[data-theme="light"] .work-log-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .work-log-card:hover {
  border-color: #4f46e5 !important;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.12) !important;
}
[data-theme="light"] .work-log-title {
  color: #0f172a !important;
}
[data-theme="light"] .work-log-desc {
  color: #475569 !important;
}
[data-theme="light"] .log-date {
  color: #64748b !important;
}
[data-theme="light"] .log-line {
  background: #e2e8f0 !important;
}
[data-theme="light"] .work-log-proof {
  border-top-color: #e2e8f0 !important;
}
[data-theme="light"] .learning-milestones-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .learning-hours-badge {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}
[data-theme="light"] .skill-card-core {
  background: linear-gradient(145deg, #ffffff 0%, #fef3c7 100%) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}
