/* ==========================================================================
   GLOBAL DESIGN SYSTEM & STYLESHEET
   Project: Nova Chen Creative Portfolio
   Design: Modern Software Engineer Landing Pages
   ========================================================================== */

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

/* CSS Variables */
:root {
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors - Light Mode (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(226, 232, 240, 0.8);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent: #3b82f6;
  --accent-hover: #1d4ed8;
  --accent-rgb: 59, 130, 246;
  --secondary-accent: #8b5cf6;
  --secondary-accent-rgb: 139, 92, 246;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent) 0%, var(--secondary-accent) 100%);
  --gradient-hero: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
  --gradient-glow-1: rgba(59, 130, 246, 0.06);
  --gradient-glow-2: rgba(139, 92, 246, 0.06);
  
  --tag-bg: #eef2ff;
  --navbar-height: 80px;
}

/* Dark Mode Variables */
body.dark {
  --bg-primary: #0b0f19;
  --bg-secondary: #0f1524;
  --bg-tertiary: #131c2e;
  --card-bg: rgba(22, 30, 49, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --accent-rgb: 96, 165, 250;
  --secondary-accent: #a78bfa;
  --secondary-accent-rgb: 167, 139, 250;
  
  --border-light: #1e293b;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(96, 165, 250, 0.2);
  
  --gradient-hero: linear-gradient(135deg, #0b0f19 0%, #0f1524 100%);
  --gradient-glow-1: rgba(96, 165, 250, 0.08);
  --gradient-glow-2: rgba(167, 139, 250, 0.08);
  
  --tag-bg: rgba(45, 58, 94, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Ambient Background Glow System */
.ambient-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 20s infinite alternate ease-in-out;
}

.glow-bubble-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-glow-1);
  top: 15%;
  right: -100px;
}

.glow-bubble-2 {
  width: 500px;
  height: 500px;
  background: var(--gradient-glow-2);
  bottom: 20%;
  left: -150px;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

/* Layout Elements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

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

/* Section Header Styling */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title-left {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.section-title-left::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Dynamic Page Hero Banner */
.page-hero {
  padding: 160px 0 100px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.page-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero .hero-badge {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Glassmorphic Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

body:not(.dark) .navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

body.dark .navbar {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  list-style: none;
  margin: 0 auto;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links a.active {
  color: var(--accent);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover {
  color: var(--accent);
}

.nav-dropdown-toggle i {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 240px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

body.dark .dropdown-menu {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a i {
  color: var(--accent);
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
}

.dropdown-menu a:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  transform: translateX(4px);
}

/* Nav Actions (theme toggle + CTA) — right side */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
  z-index: 1005;
}

.theme-toggle i {
  pointer-events: none;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: scale(1.08);
  border-color: var(--accent);
}

.nav-cta {
  padding: 8px 20px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-full) !important;
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.hamburger:hover {
  background: var(--bg-secondary);
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.35);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
}

.btn-glass {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(var(--accent-rgb), 0.2);
  transform: translateY(-2px);
}

/* Premium Card Components */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.premium-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(var(--accent-rgb), 0.3);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(var(--accent-rgb), 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.premium-card:hover .card-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 40px 0;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Process Timeline (Vertical & Alternating) */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--border-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-primary);
  border: 4px solid var(--accent);
  top: 30px;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-item:hover::after {
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.2);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Accordion FAQ Styles */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-header {
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-icon {
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  background: rgba(var(--accent-rgb), 0.01);
}

.faq-text {
  padding: 0 30px 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Skills Progress Bars */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-percent {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

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

.progress-fill {
  height: 100%;
  width: 0; /* Animated dynamically on scroll */
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Category Filter Tabs */
.tabs-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.tab-btn:hover {
  background: var(--bg-tertiary);
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.2);
}

/* Project Cards grid */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.project-media {
  position: relative;
  height: 220px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  overflow: hidden;
}

.project-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-media::after {
  opacity: 1;
}

.project-media-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.project-card:hover .project-media-icon {
  transform: scale(1.15) rotate(-5deg);
}

.project-body {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

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

.tech-tag {
  background: var(--tag-bg);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.project-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.project-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* GitHub button — outline style */
.project-link.github-btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.project-link.github-btn::before {
  background: var(--gradient-primary);
}

.project-link.github-btn:hover {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.25);
}

.project-link.github-btn:hover::before {
  opacity: 1;
}

/* Live Demo button — filled gradient style */
.project-link.demo-btn {
  background: var(--gradient-primary);
  border: 2px solid transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.2);
}

.project-link.demo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.35);
  filter: brightness(1.1);
}

/* View Details fallback — subtle glass style */
.project-link.details-btn {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  backdrop-filter: blur(6px);
}

.project-link.details-btn:hover {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.15);
}

.project-link i {
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.project-link span {
  position: relative;
  z-index: 1;
}

.project-link:hover i {
  transform: scale(1.15);
}

.project-link:active {
  transform: translateY(-1px) scale(0.98);
}

/* Call To Action (CTA) Panels */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(50px);
  border-radius: 50%;
  top: -100px;
  right: -50px;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
}

.cta-desc {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.cta-section .btn-primary {
  background: white;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
  background: #f8fafc;
  color: var(--accent-hover);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-outline {
  border-color: white;
  color: white;
}

.cta-section .btn-outline:hover {
  background: white;
  color: var(--accent);
}

/* Testimonial & Review Cards */
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.review-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-company {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pricing Grid Packages */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border: 2px solid var(--accent);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.price-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.price-features {
  list-style: none;
  margin-bottom: 35px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-features li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li i {
  color: var(--success);
  font-size: 1rem;
}

.price-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.price-features li.disabled i {
  color: var(--text-muted);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(var(--accent-rgb), 0.3);
}

/* Pricing comparison matrix table */
.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-weight: 700;
  font-size: 1.05rem;
}

.comparison-table td {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Contact Cards and Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  margin-top: 40px;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.contact-detail-card:hover {
  transform: translateX(6px);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
}

.contact-detail-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-detail-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 45px;
  box-shadow: var(--shadow-sm);
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

/* Radar Location Indicator */
.map-radar-mockup {
  height: 350px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.radar-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-pulse-1, .radar-pulse-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 3s infinite linear;
  opacity: 0;
}

.radar-pulse-2 {
  animation-delay: 1.5s;
}

.radar-pin {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent);
  z-index: 2;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}

.radar-label {
  position: absolute;
  bottom: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.radar-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s infinite;
}

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

/* Footer Section */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 4rem;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

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

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  border-color: transparent;
}

/* Scroll To Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
  z-index: 99;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.4);
}

/* Reveal Transitions (Fade Up) — Triple-Safety System */
/* 1. CSS auto-reveal: elements ALWAYS become visible via animation fallback */
/* 2. JS observer: adds .show earlier for controlled scroll effect */
/* 3. Reduced transform: content is offset only 15px, never fully hidden */

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

.fade-up {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  /* CSS-only fallback — auto-reveals even if JS never fires */
  animation: autoReveal 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

/* Stagger auto-reveal for multiple sections */
section:nth-child(2) .fade-up  { animation-delay: 0.1s; }
section:nth-child(3) .fade-up  { animation-delay: 0.15s; }
section:nth-child(4) .fade-up  { animation-delay: 0.2s; }
section:nth-child(5) .fade-up  { animation-delay: 0.25s; }
section:nth-child(n+6) .fade-up { animation-delay: 0.3s; }

/* When JS fires the observer, instantly reveal with smooth transition */
.fade-up.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none; /* Cancel CSS fallback — JS handled it */
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  .page-hero {
    padding: 130px 0 70px;
  }
  .page-hero h1 {
    font-size: 2.7rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: -100%;
    width: 80%;
    height: calc(100vh - var(--navbar-height));
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 20px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    border-right: 1px solid var(--border-light);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-dropdown {
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-secondary);
    width: 100%;
    margin-top: 10px;
    display: none;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: grid;
  }
  
  .timeline-container::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 21px;
    right: auto;
  }
  
  .right {
    left: 0%;
  }
  
  .right::after {
    left: 21px;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 2.2rem;
  }
  .container {
    padding: 0 20px;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   ADDITIONAL COMPONENT STYLES
   ========================================================================== */

/* Skill Chip Pills (used on Experience, About pages) */
.skill-chip {
  background: var(--tag-bg);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  color: var(--text-primary);
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skill-chip i {
  color: var(--accent);
  transition: color 0.25s ease;
}

.skill-chip:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.25);
}

.skill-chip:hover i {
  color: white;
}

/* Floating Avatar Animation (used on Home, About, Resume) */
.avatar-circle {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: float 5s infinite ease-in-out;
}

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

/* Heartbeat Pulse (used on Resume download card) */
@keyframes heartbeat {
  0%   { transform: scale(1); }
  15%  { transform: scale(1.15); }
  30%  { transform: scale(1); }
  45%  { transform: scale(1.1); }
  60%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* IoT / About page responsive grid fix */
@media (max-width: 768px) {
  #iot > .container > div {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  #iot .iot-graphic {
    order: -1;
  }
  /* Case study cards responsive */
  .premium-card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Skills dual-column responsive */
  #detailed-skills > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Contact social grid responsive */
  .contact-card-info > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Resume summary responsive */
  #cv-summary .premium-card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  /* Education responsive */
  #cv-education > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Home hero responsive */
  #home > .container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  #home .hero-text {
    text-align: center !important;
  }
  #home .btn-group {
    justify-content: center !important;
  }
  #home .hero-avatar {
    order: -1;
  }
  /* Demo cards responsive */
  .premium-card.project-card[style*="flex-direction: row"] {
    flex-direction: column !important;
  }
}

/* ==========================================================================
   8. PREMIUM FLOATING AI PORTFOLIO ASSISTANT (GURUBOT) STYLING
   ========================================================================== */
.gurubot-widget {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 9999;
  font-family: var(--font-body);
}

/* Floating Button Trigger */
.gurubot-trigger {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.3), var(--shadow-glow);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: gurubotFloat 5s ease-in-out infinite, gurubotGlow 4s infinite;
  user-select: none;
}

.gurubot-trigger:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.5), 0 0 30px rgba(var(--secondary-accent-rgb), 0.4);
}

.gurubot-trigger:active {
  transform: scale(0.95);
}

/* Speech bubble tooltip */
.gurubot-tooltip {
  position: fixed;
  left: 115px;
  bottom: 42px;
  width: 260px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg), 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(-20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 9998;
}

.gurubot-tooltip.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.gurubot-tooltip::before {
  content: '';
  position: absolute;
  left: -8px;
  bottom: 24px;
  width: 16px;
  height: 16px;
  background: var(--card-bg);
  border-left: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  transform: rotate(45deg);
}

.gurubot-tooltip-content h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gurubot-tooltip-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* AI Chat Panel */
.gurubot-panel {
  position: fixed;
  left: 30px;
  bottom: 115px;
  width: 380px;
  height: 600px;
  background: rgba(255, 255, 255, 0.75); /* Clean light glass base */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

body.dark .gurubot-panel {
  background: rgba(15, 23, 42, 0.85); /* Premium dark glass base */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), var(--shadow-glow);
}

.gurubot-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Chat Header */
.gurubot-header {
  padding: 20px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--secondary-accent-rgb), 0.1) 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gurubot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gurubot-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.gurubot-status-indicator {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid #ffffff;
  animation: pulseGreen 2s infinite;
}

body.dark .gurubot-status-indicator {
  border-color: #0b0f19;
}

.gurubot-title-block h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gurubot-title-block span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.8;
  display: block;
}

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

.gurubot-close:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text-primary);
}

/* Chat Body */
.gurubot-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.gurubot-body::-webkit-scrollbar {
  width: 5px;
}

.gurubot-body::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: var(--radius-full);
}

/* Welcome Card style */
.gurubot-welcome {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 4px;
}

.gurubot-welcome p {
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.gurubot-welcome ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gurubot-welcome li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Chat Messages Bubble Layouts */
.gurubot-msg-row {
  display: flex;
  width: 100%;
}

.gurubot-msg-row.user {
  justify-content: flex-end;
}

.gurubot-msg-row.bot {
  justify-content: flex-start;
}

.gurubot-msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
}

.gurubot-msg-row.user .gurubot-msg-bubble {
  background: var(--gradient-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.gurubot-msg-row.bot .gurubot-msg-bubble {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.gurubot-msg-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  text-align: right;
  margin-top: 4px;
}

.gurubot-msg-row.bot .gurubot-msg-time {
  color: var(--text-muted);
  text-align: left;
}

/* Action button items */
.gurubot-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.gurubot-action-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.gurubot-action-btn:hover {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(var(--secondary-accent-rgb), 0.08) 100%);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.1);
}

.gurubot-action-btn i {
  color: var(--accent);
  font-size: 0.8rem;
  transition: all 0.3s;
}

.gurubot-action-btn:hover i {
  transform: translateX(3px);
}

/* Typing animation loader dot indicator */
.gurubot-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}

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

.gurubot-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.gurubot-typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* Input area */
.gurubot-input-area {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.gurubot-input-wrapper {
  flex: 1;
  position: relative;
}

.gurubot-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.3s;
}

.gurubot-input:focus {
  background: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1);
}

.gurubot-send-btn {
  background: var(--gradient-primary);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.2);
  transition: all 0.3s;
}

/* ==========================================================================
   9. PREMIUM CUSTOM NOTIFICATION SYSTEM (TOASTS) STYLING
   ========================================================================== */
.guru-notifications-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 60px);
}

.guru-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  pointer-events: auto;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  user-select: none;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark .guru-toast {
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hover micro-interaction: Slight scale increase */
.guru-toast:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
}

body.dark .guru-toast:hover {
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(255, 255, 255, 0.08);
}

/* Gradient Borders via Pseudo-Element Masking */
.guru-toast::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 12px;
  padding: 1px; /* border thickness */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* Gradient borders by type */
.guru-toast.success::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(16, 185, 129, 0.1));
}
body.dark .guru-toast.success::before {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.45), rgba(52, 211, 153, 0.05));
}

.guru-toast.error::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.1));
}
body.dark .guru-toast.error::before {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.45), rgba(248, 113, 113, 0.05));
}

.guru-toast.info::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.1));
}
body.dark .guru-toast.info::before {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.45), rgba(96, 165, 250, 0.05));
}

.guru-toast.warning::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(245, 158, 11, 0.1));
}
body.dark .guru-toast.warning::before {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.45), rgba(251, 191, 36, 0.05));
}

/* Icon Styles: Modern translucent squircle shapes */
.guru-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1px;
}

.guru-toast.success .guru-toast-icon {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}
body.dark .guru-toast.success .guru-toast-icon {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.guru-toast.error .guru-toast-icon {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}
body.dark .guru-toast.error .guru-toast-icon {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.guru-toast.info .guru-toast-icon {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
}
body.dark .guru-toast.info .guru-toast-icon {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.guru-toast.warning .guru-toast-icon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}
body.dark .guru-toast.warning .guru-toast-icon {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Content Styles */
.guru-toast-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 8px;
}

.guru-toast-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.guru-toast-message {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Close Trigger: Smooth fade out transitions */
.guru-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.5;
  margin-top: -2px;
}

.guru-toast-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

body.dark .guru-toast-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Progress Countdown Bar: Auto countdown with linear shrink, pause-on-hover */
.guru-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  animation: toastProgress 4s linear forwards;
}

.guru-toast:hover .guru-toast-progress {
  animation-play-state: paused;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Toast Entry Animations matching specs precisely */
.guru-toast.success-ani {
  animation: successIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.guru-toast.error-ani {
  animation: errorIn 0.55s ease-in-out forwards;
}

.guru-toast.info-ani {
  animation: infoIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.guru-toast.warning-ani {
  animation: warningIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Exit Fade Out & Smooth Stack Collapse Animation */
.guru-toast.toast-exit {
  animation: toastExit 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes successIn {
  0% {
    opacity: 0;
    transform: translate3d(80px, -40px, 0) scale(0.85);
  }
  70% {
    transform: translate3d(-10px, 5px, 0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes errorIn {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }
  15% {
    opacity: 1;
    transform: translateX(-12px) scale(1);
  }
  30% {
    transform: translateX(10px);
  }
  45% {
    transform: translateX(-8px);
  }
  60% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-4px);
  }
  90% {
    transform: translateX(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes infoIn {
  0% {
    opacity: 0;
    transform: translate3d(100px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes warningIn {
  0% {
    opacity: 0;
    transform: translate3d(0, -60px, 0);
  }
  60% {
    transform: translate3d(0, 15px, 0);
  }
  80% {
    transform: translate3d(0, -7px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes toastExit {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    max-height: 200px;
    margin-bottom: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  100% {
    opacity: 0;
    transform: scale(0.9) translateY(-15px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Mobile responsive constraints: Top Center alignment */
@media (max-width: 768px) {
  .guru-notifications-container {
    top: 20px;
    right: 0;
    left: 0;
    margin: 0 auto;
    max-width: 420px;
    width: calc(100% - 40px);
    align-items: center;
  }
  .guru-toast {
    width: 100%;
  }
}


.gurubot-send-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.4);
}

.gurubot-send-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Keyframes animations */
@keyframes gurubotFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes gurubotGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.3), var(--shadow-glow); }
  50% { box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.4), 0 0 35px rgba(var(--secondary-accent-rgb), 0.3); }
}

@keyframes gurubotTyping {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mobile responsive media query override */
@media (max-width: 480px) {
  .gurubot-widget {
    left: 20px;
    bottom: 20px;
  }
  .gurubot-trigger {
    width: 60px;
    height: 60px;
    font-size: 1.9rem;
  }
  .gurubot-tooltip {
    left: 95px;
    bottom: 28px;
    width: 210px;
    padding: 12px;
  }
  .gurubot-panel {
    left: 15px;
    right: 15px;
    bottom: 95px;
    width: calc(100% - 30px);
    height: calc(100vh - 120px);
    max-height: 520px;
  }
  .gurubot-quick-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* CV Download Gate Modal Backdrop & Container Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.cv-modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 40px !important;
  border-radius: var(--radius-lg);
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--danger);
}

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

