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

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
  /* Common Values */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 40px;

  /* Theme-specific (Default: Dark Mode) */
  --bg-base: #05060b;
  --bg-surface: rgba(10, 14, 28, 0.65);
  --bg-surface-hover: rgba(16, 24, 46, 0.85);
  --border-color: rgba(0, 82, 255, 0.15);
  --border-color-focus: rgba(0, 82, 255, 0.4);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --color-primary: #0052ff; /* Royal Flame Blue */
  --color-primary-rgb: 0, 82, 255;
  --color-secondary: #00c2ff; /* Electric Ice Blue */
  --color-secondary-rgb: 0, 194, 255;
  --color-accent: #0070f3; /* Cobalt Blue */
  
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 12px 24px -4px rgba(0, 82, 255, 0.18);
  --shadow-lg: 0 24px 48px -8px rgba(0, 194, 255, 0.22);
  
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
 
  --ambient-blob-1: rgba(0, 82, 255, 0.12);
  --ambient-blob-2: rgba(0, 194, 255, 0.08);
  --ambient-blob-3: rgba(0, 112, 243, 0.06);
}

/* Light Mode Variables Override */
[data-theme="light"] {
  --bg-base: #f0f4f9;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 64, 224, 0.12);
  --border-color-focus: rgba(0, 64, 224, 0.4);
  
  --text-primary: #0f172a;
  --text-secondary: #3b4b61;
  --text-muted: #64748b;
  
  --color-primary: #0040e0;
  --color-primary-rgb: 0, 64, 224;
  --color-secondary: #00a2ff;
  --color-secondary-rgb: 0, 162, 255;
  --color-accent: #0066cc;
  
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 24px -4px rgba(0, 64, 224, 0.1);
  --shadow-lg: 0 24px 48px -8px rgba(0, 162, 255, 0.1);
  
  --glass-shadow: 0 8px 32px 0 rgba(0, 64, 224, 0.05);

  --ambient-blob-1: rgba(0, 64, 224, 0.05);
  --ambient-blob-2: rgba(0, 162, 255, 0.04);
  --ambient-blob-3: rgba(0, 102, 204, 0.03);
}

/* --- RESET & GLOBALS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

/* --- AMBIENT GLOW SYSTEM --- */
.ambient-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.8;
  animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background-color: var(--ambient-blob-1);
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background-color: var(--ambient-blob-2);
  bottom: -15%;
  right: -10%;
  animation-duration: 30s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background-color: var(--ambient-blob-3);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 22s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(50px, 80px) scale(1.1) rotate(180deg);
  }
  100% {
    transform: translate(-30px, -40px) scale(0.9) rotate(360deg);
  }
}

/* Grid overlay pattern */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* --- CONTAINER & WRAPPERS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

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

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 12px;
  font-weight: 500;
}

/* --- GLASS CARD STYLING --- */
.glass-card {
  position: relative;
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

/* Mouse-tracking border glow */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--color-primary-rgb), 0.35),
    transparent 50%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

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

.glass-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

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

.btn-icon:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-2px) scale(1.05);
}

/* --- STICKY HEADER & NAV --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all var(--transition-normal);
}

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

header:not(.scrolled) {
  padding: 24px 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: inline-block;
  box-shadow: 0 0 10px var(--color-primary);
}

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

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-fast);
  border-radius: 1px;
}

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

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 22px;
  height: 22px;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* --- HERO SECTION --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

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

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

.hero-tagline-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse 1.5s infinite alternate;
}

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

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

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

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

.hero-socials span {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 8px;
}

/* Hero Visual Canvas/Graphics */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-canvas {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing orbit rings */
.canvas-rings {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: 50%;
  animation: spin 30s linear infinite;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.05), 0 0 30px rgba(0, 240, 255, 0.05);
}

.ring-2 {
  width: 118%;
  height: 118%;
  border: 1px solid rgba(189, 0, 255, 0.2);
  border-radius: 50%;
  position: absolute;
  animation: spin 50s linear infinite reverse;
  box-shadow: inset 0 0 40px rgba(189, 0, 255, 0.04), 0 0 40px rgba(189, 0, 255, 0.04);
}

/* Glowing center platform / aura behind robot */
.canvas-sphere {
  width: 78%;
  height: 78%;
  position: absolute;
  top: 11%;
  left: 11%;
  background: radial-gradient(ellipse at center,
    rgba(0, 240, 255, 0.08) 0%,
    rgba(189, 0, 255, 0.06) 50%,
    transparent 80%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.12);
  box-shadow:
    0 0 50px rgba(0, 240, 255, 0.1),
    0 0 100px rgba(189, 0, 255, 0.06),
    inset 0 0 40px rgba(0, 240, 255, 0.05);
  animation: aura-pulse 5s ease-in-out infinite alternate;
}

@keyframes aura-pulse {
  0%   { box-shadow: 0 0 50px rgba(0,240,255,0.1),  0 0 100px rgba(189,0,255,0.06); }
  100% { box-shadow: 0 0 90px rgba(0,240,255,0.18), 0 0 160px rgba(189,0,255,0.12); }
}

/* Small accent dots */
.canvas-dots {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent), 0 0 24px var(--color-accent);
}

.dot-1 { top: 8%; right: 12%; animation: float 6s infinite ease-in-out; }
.dot-2 { bottom: 12%; left: 8%; animation: float 8s infinite ease-in-out 1s; }

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

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-14px) scale(1.15); }
}

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

.about-visual {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
}

.about-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  box-shadow: 0 0 12px var(--color-primary);
  animation: visual-scan 3s linear infinite;
  z-index: 2;
}

@keyframes visual-scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.about-visual:hover img {
  transform: scale(1.03);
}

.about-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.3), transparent 70%);
  pointer-events: none;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

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

.stat-number {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

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

/* --- SKILLS --- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skills-card {
  padding: 32px;
}

.skills-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  background: rgba(var(--color-primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.skills-card-title {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

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

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.skill-name {
  color: var(--text-primary);
}

.skill-percentage {
  color: var(--text-secondary);
}

.skill-bar-outer {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 3px;
  width: 0; /* Animated via scroll script */
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

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

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

.project-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 16, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity var(--transition-normal);
}

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

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

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

.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* --- EXPERIENCE --- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--border-color);
  top: 0;
  bottom: 0;
  left: 32px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 48px;
}

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

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 4px solid var(--color-primary);
  left: 23px;
  top: 6px;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-base);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.25);
  border-color: var(--color-secondary);
}

.timeline-card {
  padding: 28px;
}

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

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(236, 72, 153, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
}

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

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-info-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group-full {
  grid-column: span 2;
}

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

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-input {
  background: rgba(255, 255, 255, 0.5);
}

.form-input::placeholder {
  color: var(--text-muted);
}

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

[data-theme="light"] .form-input:focus {
  background: #ffffff;
}

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

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--color-accent);
}

.toast-icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
}

.toast-message {
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background-color: rgba(10, 11, 16, 0.8);
  position: relative;
}

[data-theme="light"] footer {
  background-color: rgba(241, 245, 249, 0.8);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-socials {
  display: flex;
  gap: 16px;
}

/* --- SCROLL REVEAL EFFECTS --- */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.96) skewX(-2deg);
  filter: blur(5px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1) skewX(0deg);
  filter: blur(0px);
}

/* ======================================
   FUTURISTIC HUD SIDE PANELS v2.0
   ====================================== */
.side-panel {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 480px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  pointer-events: none;
  opacity: 0;
  animation: panel-appear 2s 1.5s ease forwards;
}

@keyframes panel-appear {
  to { opacity: 1; }
}

.side-panel-left  { left: 18px; }
.side-panel-right { right: 18px; }

/* HUD corner bracket top */
.side-panel::before,
.side-panel::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--color-primary);
  border-style: solid;
  opacity: 0.7;
}
.side-panel-left::before  { top: 0; left: 0; border-width: 2px 0 0 2px; }
.side-panel-left::after   { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.side-panel-right::before { top: 0; right: 0; border-width: 2px 2px 0 0; border-color: var(--color-secondary); }
.side-panel-right::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-color: var(--color-secondary); }

/* Animated scan line track */
.tech-lines {
  flex: 1;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,240,255,0.08) 20%,
    rgba(0,240,255,0.25) 50%,
    rgba(0,240,255,0.08) 80%,
    transparent 100%
  );
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.tech-lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(to bottom, transparent, rgba(0,240,255,0.9), transparent);
  animation: scan-line 3s ease-in-out infinite;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0,240,255,0.9);
}

.side-panel-right .tech-lines {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(189,0,255,0.08) 20%,
    rgba(189,0,255,0.25) 50%,
    rgba(189,0,255,0.08) 80%,
    transparent 100%
  );
}
.side-panel-right .tech-lines::after {
  background: linear-gradient(to bottom, transparent, rgba(189,0,255,0.9), transparent);
  box-shadow: 0 0 6px rgba(189,0,255,0.9);
  animation: scan-line 3s ease-in-out infinite reverse;
}

@keyframes scan-line {
  0%   { top: -32px; }
  100% { top: 100%; }
}

/* Glow dot */
.side-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0,240,255,0.2), 0 0 12px var(--color-primary);
  animation: dot-beat 2s ease-in-out infinite alternate;
  flex-shrink: 0;
}
.side-panel-right .side-panel-dot {
  background: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(189,0,255,0.2), 0 0 12px var(--color-secondary);
}

@keyframes dot-beat {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 1; }
}

/* Vertical label */
.side-text-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(0,240,255,0.5);
  animation: text-flicker 5s linear infinite;
}
.side-panel-right .side-text-vertical {
  color: rgba(189,0,255,0.5);
}

@keyframes text-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 0.5; }
  20%, 24%, 55% { opacity: 0.1; }
}

/* ======================================
   PREMIUM MASCOT v3.0 - Neon Astronaut
   ====================================== */
.robot-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter:
    brightness(1.05)
    drop-shadow(0 0 18px rgba(0, 240, 255, 0.5))
    drop-shadow(0 0 40px rgba(189, 0, 255, 0.3));
  animation: robot-float 6s ease-in-out infinite;
  transition: transform var(--transition-normal), filter var(--transition-normal);
  z-index: 5;
  position: relative;
  cursor: pointer;
}

.robot-3d-img:hover {
  transform: scale(1.05);
  filter:
    brightness(1.12)
    drop-shadow(0 0 30px rgba(0, 240, 255, 0.85))
    drop-shadow(0 0 60px rgba(189, 0, 255, 0.55));
}

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

/* ======================================
   PREMIUM TOP PROGRESS BAR & CROSSFADE
   ====================================== */
#top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 0 8px var(--color-primary);
  z-index: 10001;
  pointer-events: none;
  transition: width 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

#top-progress-bar.active {
  opacity: 1;
}


/* ======================================
   PARTICLE BACKGROUND CANVAS
   ====================================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

body.page-transitioning .content-wrapper {
  opacity: 0.15;
  transform: scale(0.985);
  filter: blur(4px);
}

/* ======================================
   PROJECT MODAL
   ====================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(var(--color-primary-rgb), 0.1);
  animation: modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modal-in {
  from { transform: scale(0.88) translateY(24px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.close-btn:hover { color: var(--color-primary); transform: scale(1.2) rotate(90deg); }

/* @keyframes pulse-glow (kept for compatibility) */
@keyframes pulse-glow {
  0%   { opacity: 0.5; box-shadow: 0 0 6px var(--color-primary); }
  100% { opacity: 1;   box-shadow: 0 0 16px var(--color-primary); }
}

/* Hide on smaller screens */
@media (max-width: 1300px) {
  .side-panel {
    display: none;
  }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-tagline {
    justify-content: center;
  }
  
  .hero-desc {
    margin: 0 auto 40px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-socials {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual {
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  h1.hero-title {
    font-size: 2.8rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-base);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 100px 40px;
    align-items: flex-start;
    gap: 24px;
    transition: right var(--transition-normal);
    z-index: 99;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-nav-toggle {
    display: block;
    z-index: 101;
  }
  
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 11px;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .contact-form-card {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* --- PREMIUM SYSTEM BOOT LOADER --- */
#loader-screen {
  position: fixed;
  inset: 0;
  background-color: #030305;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: clip-path 1.2s cubic-bezier(0.85, 0, 0.15, 1);
  clip-path: circle(150% at 50% 50%);
}

#loader-screen.fade-out {
  clip-path: circle(0% at 50% 50%);
}

.loader-content {
  text-align: center;
  width: 300px;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: pulse-glow 2s infinite alternate ease-in-out;
}

.loader-bar-wrapper {
  height: 3px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 0 10px var(--color-primary);
  transition: width 0.05s linear;
}

.loader-status {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

@keyframes pulse-glow {
  0% { opacity: 0.6; text-shadow: 0 0 5px rgba(0, 240, 255, 0.3); }
  100% { opacity: 1; text-shadow: 0 0 15px rgba(0, 240, 255, 0.8); }
}

/* --- TYPEWRITER CARRET BLINKING --- */
.typewriter-text {
  border-right: 2px solid var(--color-primary);
  animation: blink-caret 0.75s step-end infinite;
  white-space: nowrap;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--color-primary); }
}

/* --- CUSTOM PREMIUM CURSOR --- */
#custom-cursor-dot, #custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1), height 0.25s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  display: none;
}

#custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

#custom-cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Hover state on interactive elements */
body.cursor-hover #custom-cursor-dot {
  background-color: var(--color-secondary);
  box-shadow: 0 0 15px var(--color-secondary);
  transform: translate(-50%, -50%) scale(0.6);
}

body.cursor-hover #custom-cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--color-secondary);
  background-color: rgba(189, 0, 255, 0.04);
  box-shadow: 0 0 25px rgba(189, 0, 255, 0.25);
}

/* Dynamic theme overrides for the cursor */
[data-theme="light"] #custom-cursor-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
}
[data-theme="light"] #custom-cursor-ring {
  border-color: rgba(0, 143, 160, 0.5);
  box-shadow: 0 0 8px rgba(0, 143, 160, 0.1);
}
[data-theme="light"] body.cursor-hover #custom-cursor-ring {
  border-color: var(--color-secondary);
  background-color: rgba(140, 0, 189, 0.03);
}

/* ======================================
   3D TECH ORBITAL RINGS (Mascot Background)
   ====================================== */
.visual-canvas {
  position: relative;
  perspective: 1000px;
}

.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0.85;
}

.tech-orbit svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tech-orbit-1 {
  width: 460px;
  height: 460px;
  margin-top: -230px;
  margin-left: -230px;
  transform: rotateX(72deg) rotateY(15deg) rotateZ(0deg);
  animation: orbit-rotate-clockwise 22s linear infinite;
  z-index: 1;
}

.tech-orbit-2 {
  width: 390px;
  height: 390px;
  margin-top: -195px;
  margin-left: -195px;
  transform: rotateX(68deg) rotateY(-22deg) rotateZ(0deg);
  animation: orbit-rotate-counter 16s linear infinite;
  z-index: 2;
}

.tech-orbit-3 {
  width: 320px;
  height: 320px;
  margin-top: -160px;
  margin-left: -160px;
  transform: rotateX(80deg) rotateY(0deg) rotateZ(0deg);
  animation: orbit-rotate-clockwise 10s linear infinite;
  z-index: 3;
}

@keyframes orbit-rotate-clockwise {
  0% { transform: rotateX(70deg) rotateY(15deg) rotateZ(0deg); }
  100% { transform: rotateX(70deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes orbit-rotate-counter {
  0% { transform: rotateX(65deg) rotateY(-20deg) rotateZ(360deg); }
  100% { transform: rotateX(65deg) rotateY(-20deg) rotateZ(0deg); }
}

/* Make it responsive for mascot canvas size */
@media (max-width: 576px) {
  .tech-orbit-1 { width: 320px; height: 320px; margin-top: -160px; margin-left: -160px; }
  .tech-orbit-2 { width: 270px; height: 270px; margin-top: -135px; margin-left: -135px; }
  .tech-orbit-3 { width: 220px; height: 220px; margin-top: -110px; margin-left: -110px; }
}


/* ======================================
   FUTURISTIC CHATBOT ASSISTANT WIDGET
   ====================================== */
#chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

#chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 82, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chatbot-toggle:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 40px rgba(0, 82, 255, 0.45);
}

.chatbot-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  animation: pulse-ring 2.5s infinite;
  pointer-events: none;
}

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

#chatbot-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 350px;
  height: 485px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
  z-index: 9999;
}

#chatbot-window.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
}

.chatbot-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 82, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: #030305;
}

.chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chatbot-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  border: 1.5px solid #08090f;
}

.chatbot-header-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.chatbot-header-info p {
  font-size: 0.72rem;
  color: #10b981;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: none; /* Firefox */
}

.chatbot-messages::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.chat-message {
  display: flex;
  max-width: 82%;
  animation: chat-bubble-in 0.3s ease forwards;
}

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

.user-msg {
  align-self: flex-end;
}

.message-bubble {
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  border-radius: 16px;
}

.bot-msg .message-bubble {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-top-left-radius: 4px;
  border: 1.5px solid var(--border-color);
}

.user-msg .message-bubble {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  border-top-right-radius: 4px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  align-items: center;
}

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

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

@keyframes typing-dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

@keyframes chat-bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-choices-container {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.chatbot-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-btn {
  background: rgba(0, 82, 255, 0.08);
  border: 1px solid rgba(0, 82, 255, 0.25);
  border-radius: var(--border-radius-sm);
  color: var(--color-secondary);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.choice-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateX(4px);
}

/* Responsive chatbot */
@media (max-width: 480px) {
  #chatbot-window {
    width: calc(100vw - 32px);
    right: -12px;
    height: 420px;
  }
}


/* ======================================
   INTERACTIVE TECH SHOWCASE MODALS
   ===================================== */
.project-modal-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  text-align: left;
}

@media (max-width: 768px) {
  .project-modal-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Simulative Terminal Window */
.terminal-window {
  background-color: #020306;
  border: 1px solid #142850;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  background-color: #0b0e14;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #142850;
}

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

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.term-dot-red    { background-color: #ff5f56; }
.term-dot-yellow { background-color: #ffbd2e; }
.term-dot-green  { background-color: #27c93f; }

.terminal-title {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 16px;
  height: 220px;
  overflow-y: auto;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #39ff14; /* Matrix Green */
  scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
  display: none;
}

.terminal-line {
  margin-bottom: 4px;
  white-space: pre-wrap;
}

/* Matlab Simulation Graph */
.matlab-sim-window {
  background-color: #040816;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.sim-header {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.sim-grid-canvas {
  width: 100%;
  height: 200px;
  background-color: #020306;
  border: 1px solid rgba(0,82,255,0.15);
  border-radius: 4px;
  display: block;
}

.modal-details-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-proj-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.25;
}

.modal-proj-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.modal-tech-tag {
  background-color: rgba(0, 82, 255, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.modal-action-row {
  display: flex;
  gap: 12px;
}

/* ======================================
   THEME COLOR PROFILES (ADMIN TOGGLE)
   ====================================== */
body.theme-matrix-green {
  --color-primary: #39ff14;
  --color-primary-rgb: 57, 255, 20;
  --color-secondary: #00ffcc;
  --color-secondary-rgb: 0, 255, 204;
  --color-accent: #00e676;
  --border-color: rgba(57, 255, 20, 0.15);
  --border-color-focus: rgba(57, 255, 20, 0.4);
  --shadow-md: 0 12px 24px -4px rgba(57, 255, 20, 0.18);
  --shadow-lg: 0 24px 48px -8px rgba(0, 255, 204, 0.22);
  --ambient-blob-1: rgba(57, 255, 20, 0.08);
  --ambient-blob-2: rgba(0, 255, 204, 0.06);
  --ambient-blob-3: rgba(0, 230, 118, 0.05);
}
body.theme-matrix-green #custom-cursor-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
body.theme-matrix-green #custom-cursor-ring {
  border-color: rgba(57, 255, 20, 0.45);
}

body.theme-cyber-purple {
  --color-primary: #bd00ff;
  --color-primary-rgb: 189, 0, 255;
  --color-secondary: #ff007f;
  --color-secondary-rgb: 255, 0, 127;
  --color-accent: #d500f9;
  --border-color: rgba(189, 0, 255, 0.15);
  --border-color-focus: rgba(189, 0, 255, 0.4);
  --shadow-md: 0 12px 24px -4px rgba(189, 0, 255, 0.18);
  --shadow-lg: 0 24px 48px -8px rgba(255, 0, 127, 0.22);
  --ambient-blob-1: rgba(189, 0, 255, 0.08);
  --ambient-blob-2: rgba(255, 0, 127, 0.06);
  --ambient-blob-3: rgba(213, 0, 249, 0.05);
}
body.theme-cyber-purple #custom-cursor-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
body.theme-cyber-purple #custom-cursor-ring {
  border-color: rgba(189, 0, 255, 0.45);
}

body.theme-solar-orange {
  --color-primary: #ff6d00;
  --color-primary-rgb: 255, 109, 0;
  --color-secondary: #ffab00;
  --color-secondary-rgb: 255, 171, 0;
  --color-accent: #ff3d00;
  --border-color: rgba(255, 109, 0, 0.15);
  --border-color-focus: rgba(255, 109, 0, 0.4);
  --shadow-md: 0 12px 24px -4px rgba(255, 109, 0, 0.18);
  --shadow-lg: 0 24px 48px -8px rgba(255, 171, 0, 0.22);
  --ambient-blob-1: rgba(255, 109, 0, 0.08);
  --ambient-blob-2: rgba(255, 171, 0, 0.06);
  --ambient-blob-3: rgba(255, 61, 0, 0.05);
}
body.theme-solar-orange #custom-cursor-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
body.theme-solar-orange #custom-cursor-ring {
  border-color: rgba(255, 109, 0, 0.45);
}


/* ======================================
   LIVE DEPIN & AUTOMATION SYSTEM MONITOR HUD
   ====================================== */
#depin-monitor-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  padding: 16px;
  width: 250px;
  font-family: 'Courier New', Courier, monospace;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), width 0.4s, height 0.4s, opacity 0.3s;
}

#depin-monitor-widget.minimized {
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0, 82, 255, 0.2);
}

#depin-monitor-widget.minimized #monitor-content {
  display: none !important;
}

#monitor-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), transform 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

#depin-monitor-widget.minimized #monitor-toggle {
  position: static;
  color: #ffffff;
  width: 100%;
  height: 100%;
}

#depin-monitor-widget.minimized #monitor-toggle .mon-icon-open {
  display: none !important;
}
#depin-monitor-widget.minimized #monitor-toggle .mon-icon-close {
  display: block !important;
}

#monitor-toggle:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

.monitor-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.monitor-header h5 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin: 0;
}

.monitor-blinker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: blink-anim 1.2s infinite alternate;
}

@keyframes blink-anim {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.monitor-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 10px 0;
}

.monitor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.mon-status {
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 0.62rem;
}

.mon-status.mon-active {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.mon-status.mon-inactive {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.mon-val {
  color: var(--color-secondary);
  font-weight: 600;
}

.mon-highlight {
  color: #39ff14;
  font-weight: bold;
}

/* Hide on mobile for better view */
@media (max-width: 768px) {
  #depin-monitor-widget {
    bottom: 24px;
    left: 24px;
    width: 200px;
    padding: 12px;
  }
}

/* ======================================
   SECRET DEVELOPER CONSOLE DASHBOARD
   ====================================== */
.admin-modal-content {
  max-width: 860px;
  text-align: left;
}

.admin-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

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

@media (max-width: 768px) {
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.admin-col {
  display: flex;
  flex-direction: column;
}

.admin-section-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  border-left: 3px solid var(--color-primary);
  padding-left: 8px;
}

.admin-control-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.admin-control-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.theme-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.theme-btn {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-btn:hover {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
}

.theme-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.25);
}

/* Sliders */
.admin-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  transition: background 0.3s;
}

.admin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 6px var(--color-primary);
  transition: transform 0.1s;
}
.admin-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Switches */
.switch-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
}

.switch-label input {
  accent-color: var(--color-primary);
  width: 14px;
  height: 14px;
}

/* Messages list */
.admin-messages-list {
  background-color: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  height: 310px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}
.admin-messages-list::-webkit-scrollbar {
  display: none;
}

.admin-no-msg {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 110px;
  font-style: italic;
}

.admin-msg-card {
  background-color: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  animation: chat-bubble-in 0.3s ease;
}

.admin-msg-header {
  display: flex;
  justify-content: space-between;
  color: var(--color-secondary);
  font-weight: bold;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  padding-bottom: 4px;
}

.admin-msg-subject {
  font-weight: bold;
  color: var(--text-primary);
  margin-top: 4px;
}

.admin-msg-body {
  color: var(--text-secondary);
  margin-top: 6px;
  white-space: pre-wrap;
}
