/* ==========================================================================
   EBENAZER K - PORTFOLIO STYLESHEET
   Design: Minimal & Premium Dark Mode with Blue/Purple Gradient Accents
   Features: Glassmorphism, CSS Variables, Responsive Grid, Smooth Animations
   ========================================================================== */

/* --- CSS Variables & Theme Setup --- */
:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #070a13;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-glass-card: rgba(30, 41, 59, 0.5);
  --bg-glass-hover: rgba(30, 41, 59, 0.8);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Gradients & Accents */
  --primary: #6366f1;         /* Indigo */
  --primary-light: #818cf8;
  --secondary: #a855f7;       /* Purple */
  --accent: #06b6d4;          /* Cyan */
  --accent-blue: #3b82f6;     /* Blue */
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --gradient-text: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #67e8f9 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
  --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --container-max: 1240px;
  --header-height: 80px;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(241, 245, 249, 0.7);
  --bg-glass-hover: rgba(241, 245, 249, 0.95);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.5);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --gradient-text: linear-gradient(135deg, #4f46e5 0%, #7e22ce 50%, #0891b2 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
}

/* --- Base Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  cursor: pointer;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10001;
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.1s ease-out;
}

/* --- Canvas & Ambient Effects --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

#cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-left: -250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.06) 40%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* --- AI Welcome Experience Screen --- */
/* --- Celebration Canvas Layer --- */
#celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10006;
  pointer-events: none;
}

/* --- Curious & Intriguing AI Welcome Experience Screen --- */
#welcome-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0b0f19 0%, #05070f 100%);
  z-index: 10005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.9s ease;
  overflow: hidden;
}

.welcome-background-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  animation: bgGlowRotate 10s linear infinite alternate;
}

@keyframes bgGlowRotate {
  0% { transform: scale(0.9) rotate(0deg); }
  100% { transform: scale(1.2) rotate(180deg); }
}

.welcome-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.welcome-badge-curious {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.pulse-spark {
  animation: sparkPulse 1.2s ease-in-out infinite alternate;
}

@keyframes sparkPulse {
  from { transform: scale(0.8); opacity: 0.7; }
  to { transform: scale(1.3); opacity: 1; }
}

/* Holographic Portal Container */
.welcome-portal-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.portal-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(6, 182, 212, 0.6);
}

.portal-orbit-ring.ring-1 {
  inset: -10px;
  animation: portalSpin 8s linear infinite;
}

.portal-orbit-ring.ring-2 {
  inset: -22px;
  border-color: rgba(168, 85, 247, 0.5);
  animation: portalSpin 12s linear infinite reverse;
}

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

.welcome-ai-orb {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffffff;
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.4);
  animation: floatOrb 4s ease-in-out infinite, pulseOrb 2s infinite ease-in-out;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseOrb {
  0%, 100% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
  50% { box-shadow: 0 0 80px rgba(6, 182, 212, 0.9); }
}

.welcome-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

/* Multi-Animated Futuristic Entry Button */
.btn-enter-portfolio {
  position: relative;
  padding: 20px 48px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4f46e5 0%, #a855f7 50%, #06b6d4 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  color: #ffffff;
  box-shadow: 0 10px 35px rgba(168, 85, 247, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  cursor: pointer;
}

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

/* Pulsing Radar Energy Aura */
.btn-aura-pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid #06b6d4;
  opacity: 0;
  animation: btnAuraPulse 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}

@keyframes btnAuraPulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* Diagonal Light Sheen Sweep */
.btn-sheen-wave {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: btnSheenSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes btnSheenSweep {
  0% { left: -100%; }
  40%, 100% { left: 140%; }
}

.btn-sparkle-icon {
  color: #fbbf24;
  font-size: 1.1rem;
  animation: sparkleRotate 2s ease-in-out infinite alternate;
}

@keyframes sparkleRotate {
  from { transform: scale(0.8) rotate(-15deg); }
  to { transform: scale(1.2) rotate(15deg); color: #06b6d4; }
}

.btn-text {
  z-index: 2;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}

.btn-rocket-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ffffff;
  z-index: 2;
  transition: transform 0.4s ease, background 0.4s ease;
  animation: rocketTilt 2s ease-in-out infinite alternate;
}

@keyframes rocketTilt {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-3px) rotate(12deg); }
}

.btn-enter-portfolio:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.8), 0 0 30px rgba(168, 85, 247, 0.8);
}

.btn-enter-portfolio:hover .btn-text {
  letter-spacing: 2px;
}

.btn-enter-portfolio:hover .btn-rocket-badge {
  transform: scale(1.2) rotate(45deg);
  background: rgba(255, 255, 255, 0.35);
}

.welcome-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(99, 102, 241, 0.15);
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.loader-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* --- Layout Container & Typography --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

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

.section-description {
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 1.05rem;
}

/* --- Reusable Components & Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--bg-glass-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color-hover);
  color: var(--primary-light);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* --- Header / Aesthetic Navigation System --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(7, 10, 19, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  height: 72px;
}

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

/* Animated Cybernetic Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.04);
}

.logo-ai-orb {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed #06b6d4;
  animation: logoSpinRing 6s linear infinite;
}

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

.logo-core-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 16px var(--accent);
  animation: logoOrbPulse 1.8s ease-in-out infinite alternate;
}

@keyframes logoOrbPulse {
  from { transform: scale(0.85); box-shadow: 0 0 8px var(--primary); }
  to { transform: scale(1.2); box-shadow: 0 0 20px #06b6d4; }
}

.logo-text {
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--accent);
  font-weight: 900;
}

/* Navigation Menu & Dynamic Indicator */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
  transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1), width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

.nav-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.25s ease, opacity 0.25s ease;
  z-index: 2;
  text-decoration: none;
}

.nav-link i {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover i {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active i {
  opacity: 1;
  color: #06b6d4;
}

/* Nav Actions & Clean Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.nav-action-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  color: var(--accent);
}

/* Equalizer Wave Bars in Voice Toggle */
.sound-wave-bars {
  position: absolute;
  bottom: 6px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 8px;
}

.sound-wave-bars span {
  width: 2px;
  height: 3px;
  background: var(--secondary);
  border-radius: 1px;
  animation: soundWaveBounce 1.2s ease-in-out infinite alternate;
}

.sound-wave-bars span:nth-child(2) { animation-delay: 0.3s; }
.sound-wave-bars span:nth-child(3) { animation-delay: 0.6s; }

@keyframes soundWaveBounce {
  0% { height: 2px; }
  100% { height: 8px; background: var(--accent); }
}



.theme-toggle-btn:hover, .voice-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: scale(1.08);
}

.mobile-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  display: flex;
  align-items: center;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-typewriter-container {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--primary);
  animation: blink 0.8s infinite;
}

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

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  background: var(--gradient-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Avatar Card */
.hero-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-container {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 30px;
  padding: 8px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow-purple);
  animation: float 6s ease-in-out infinite;
}

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

.avatar-img-box {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}

.avatar-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.avatar-container:hover img {
  transform: scale(1.06);
}

.floating-tech-badge {
  position: absolute;
  padding: 10px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 10;
}

.badge-top-left {
  top: -15px;
  left: -20px;
}

.badge-bottom-right {
  bottom: -15px;
  right: -20px;
}

.floating-tech-badge i {
  font-size: 1.2rem;
  color: var(--accent);
}

/* --- About Me Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.about-card {
  padding: 40px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

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

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

.highlight-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* --- Skills Section --- */
.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.skill-tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}

.skill-tab-btn:hover, .skill-tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

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

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

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

.skill-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}

.skill-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-percentage {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-light);
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Projects Section --- */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.project-img-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-container img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 19, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast);
}

.project-overlay-btn:hover {
  transform: scale(1.15);
}

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

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

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

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

.tech-tag {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  border-radius: var(--radius-full);
}

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

/* Modal Popup */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* --- Timeline: Education & Experience --- */
.timeline-wrapper {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
}

.timeline-node {
  position: absolute;
  left: 15px;
  top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.timeline-card {
  padding: 30px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.timeline-subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 4px;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--secondary);
  border-radius: var(--radius-full);
}

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

.timeline-bullets {
  margin-top: 14px;
  padding-left: 18px;
}

.timeline-bullets li {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-bottom: 8px;
  position: relative;
}

/* --- Certifications Grid --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.cert-card {
  padding: 28px;
  display: flex;
  gap: 18px;
}

.cert-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.cert-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

.cert-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- GitHub Stats & LeetCode Section --- */
.github-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.github-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
}

.github-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.github-card i {
  color: var(--primary-light);
}

.stats-mock-box {
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.mock-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.mock-stat-row:last-child {
  border-bottom: none;
}

.contrib-graph-mock {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
  width: 100%;
  margin-top: 10px;
}

.contrib-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(99, 102, 241, 0.15);
}

.contrib-cell.lvl-1 { background: rgba(99, 102, 241, 0.4); }
.contrib-cell.lvl-2 { background: rgba(168, 85, 247, 0.7); }
.contrib-cell.lvl-3 { background: rgba(6, 182, 212, 1); }

/* --- Achievements Section --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.achievement-card {
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.achievement-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.achievement-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.achievement-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Resume Section --- */
.resume-card {
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.resume-header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.resume-name {
  font-size: 1.75rem;
  font-weight: 800;
}

.resume-role {
  color: var(--accent);
  font-weight: 600;
}

.resume-ats-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.resume-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.resume-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- Roaming AI Robot Character Widget --- */
#ai-chatbot-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 70px;
  height: 80px;
  cursor: pointer;
  z-index: 9980;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: robotRoamFloat 5s ease-in-out infinite;
}

@keyframes robotRoamFloat {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(-10px, -14px, 0) rotate(-5deg); }
  50% { transform: translate3d(12px, -24px, 0) rotate(4deg); }
  75% { transform: translate3d(-6px, -10px, 0) rotate(-3deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* Pulsing Energy Aura Rings */
.robot-energy-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: energyRingPulse 3s linear infinite;
  pointer-events: none;
}

.robot-energy-ring.ring-delay {
  animation-delay: 1.5s;
}

@keyframes energyRingPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Robot Character Anatomy */
.robot-character {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-fast);
}

#ai-chatbot-toggle:hover .robot-character {
  transform: scale(1.15) rotate(5deg);
}

/* Antenna & Pulse Beam */
.robot-antenna {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -2px;
}

.antenna-ball {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: antennaGlow 1.5s ease-in-out infinite alternate;
}

@keyframes antennaGlow {
  from { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
  to { background: #06b6d4; box-shadow: 0 0 16px #06b6d4; }
}

.antenna-beam {
  width: 3px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
}

/* Robot Head & Visor */
.robot-head {
  position: relative;
  width: 48px;
  height: 34px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--primary-light);
  border-radius: 14px 14px 10px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.robot-ear {
  position: absolute;
  top: 10px;
  width: 6px;
  height: 12px;
  background: var(--primary-light);
  border-radius: 3px;
}
.robot-ear.ear-l { left: -6px; }
.robot-ear.ear-r { right: -6px; }

.robot-visor {
  position: relative;
  width: 38px;
  height: 18px;
  background: #070a13;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  overflow: hidden;
}

.robot-eye {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
  animation: eyeBlink 3.5s infinite;
}

@keyframes eyeBlink {
  0%, 94%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.1); }
}

.visor-laser-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
  animation: laserScan 2s linear infinite;
}

@keyframes laserScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.robot-mouth-grille {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}

.robot-mouth-grille span {
  width: 4px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

/* Robot Body & Thruster */
.robot-body {
  position: relative;
  width: 36px;
  height: 22px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid var(--accent);
  border-radius: 6px 6px 12px 12px;
  margin-top: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.robot-core-badge {
  font-size: 0.65rem;
  color: var(--secondary);
  animation: corePulse 1.5s ease-in-out infinite alternate;
}

@keyframes corePulse {
  from { color: var(--secondary); transform: scale(0.9); }
  to { color: var(--accent); transform: scale(1.2); }
}

.robot-thruster {
  position: absolute;
  bottom: -8px;
  width: 14px;
  height: 8px;
  background: #334155;
  border-radius: 0 0 6px 6px;
  display: flex;
  justify-content: center;
}

.thruster-fire {
  width: 10px;
  height: 14px;
  background: linear-gradient(to bottom, #06b6d4, #a855f7, transparent);
  border-radius: 50%;
  animation: thrusterFlicker 0.15s ease-in-out infinite alternate;
}

@keyframes thrusterFlicker {
  0% { height: 10px; opacity: 0.8; filter: drop-shadow(0 0 4px #06b6d4); }
  100% { height: 16px; opacity: 1; filter: drop-shadow(0 0 10px #a855f7); }
}

/* Roam Badge Tooltip */
.robot-roam-badge {
  position: absolute;
  bottom: -22px;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: dotPulse 1.2s infinite alternate;
}

@keyframes dotPulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Chatbot Window Header Scanner Line */
.chatbot-scanner-beam {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), transparent);
  z-index: 9999;
}

.chatbot-scanner-beam.active {
  animation: headerScan 1.2s ease-in-out infinite;
}

@keyframes headerScan {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

/* Mini Robot Avatar in Header */
.mini-robot-head {
  width: 32px;
  height: 26px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-visor {
  width: 24px;
  height: 12px;
  background: #070a13;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 2px;
}

.mini-eye {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 6px #06b6d4;
}

#chatbot-window {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 9985;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
}

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

.chatbot-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.chatbot-title i {
  color: var(--accent);
}

.chatbot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-close-btn {
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.chatbot-close-btn:hover {
  color: var(--text-primary);
}

.chatbot-body {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.chat-bubble-bot {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

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

.chat-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}

.chat-suggest-pill {
  white-space: nowrap;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-suggest-pill:hover {
  background: var(--primary);
  color: #fff;
}

.chatbot-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-input {
  flex-grow: 1;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.chatbot-input:focus {
  border-color: var(--primary);
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

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

.contact-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.contact-card-info h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.contact-card-info p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.form-group {
  margin-bottom: 22px;
  position: relative;
}

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

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.925rem;
  animation: slideInRight 0.3s forwards;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-success i {
  color: #10b981;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-about {
  color: var(--text-secondary);
  font-size: 0.925rem;
  max-width: 340px;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

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

/* --- Scroll To Top Button --- */
#scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 990;
  box-shadow: var(--shadow-md);
}

#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-avatar-wrapper {
    order: -1;
  }
  
  .avatar-container {
    width: 280px;
    height: 280px;
  }
  
  .github-grid, .resume-content-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .header {
    height: 70px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1001;
  }

  /* Sleek Glassmorphism Mobile Navigation Drawer */
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: rgba(7, 10, 19, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 20px 0 0 20px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-right: none;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 30px 20px;
    gap: 10px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }

  .nav-indicator {
    display: none !important;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
  }

  .nav-link.active, .nav-link:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
  }

  .nav-link i {
    font-size: 1rem;
    opacity: 1;
    color: #06b6d4;
  }

  .nav-link.active i, .nav-link:hover i {
    color: #ffffff;
  }
}

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

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

  .section-title {
    font-size: 1.85rem;
  }

  /* Hero Section Mobile Tuning */
  .hero-section {
    padding: 110px 0 50px 0;
    text-align: center;
  }

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

  .hero-badge {
    margin: 0 auto 16px auto;
  }

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

  .hero-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

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

  /* Skills Section Mobile Tuning */
  .skills-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

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

  .skill-category-title {
    font-size: 0.95rem;
  }

  /* Projects Grid: 2 Columns x 3 Rows Layout on Mobile (6 Projects Total) */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .project-card {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .project-img-container {
    height: 125px;
  }

  .project-body {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
  }

  .project-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--text-primary);
  }

  .project-desc {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .project-tags {
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .tech-tag {
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 6px;
  }

  .project-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
  }

  .project-links .btn-sm {
    padding: 6px 8px;
    font-size: 0.725rem;
    width: 100%;
    justify-content: center;
    border-radius: 6px;
  }

  /* GitHub & Stats Mobile Tuning */
  .github-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .stat-card {
    padding: 14px 8px;
  }

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

  .stat-label {
    font-size: 0.7rem;
  }

  /* Timeline Mobile Tuning */
  .timeline-wrapper::before {
    left: 18px;
  }
  
  .timeline-item {
    padding-left: 48px;
  }
  
  .timeline-node {
    left: 5px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-about {
    margin: 0 auto;
  }

  #chatbot-window {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 85px;
  }
}

@media (max-width: 480px) {
  .skills-category-grid {
    grid-template-columns: 1fr !important;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .project-img-container {
    height: 110px;
  }

  .project-title {
    font-size: 0.8rem;
  }
}
