/* Quantum Consciousness Theme - Main Styles */

/* Variables */
:root {
  --quantum-primary: #00e5ff; /* Brighter Cyan/Blue */
  --quantum-secondary: #0088ff; /* Stronger Blue */
  --quantum-accent: #00ff88; /* Vibrant Green (replacing purple accent) */
  --quantum-dark: #0a0a0a;
  --quantum-darker: #050505;
  --quantum-light: #f0f0f0;
  --neural-green: #00ff88; /* Still vibrant green */
  --consciousness-blue: #0088ff; /* Same as quantum-secondary */
  --field-highlight: #00c8ff; /* A lighter blue for some highlights, replacing field-purple */
  --gradient-1: linear-gradient(135deg, var(--quantum-primary) 0%, var(--quantum-secondary) 50%, var(--field-highlight) 100%); /* Blue-focused gradient */
  --gradient-2: linear-gradient(45deg, var(--consciousness-blue) 0%, var(--neural-green) 50%, var(--quantum-primary) 100%); /* Blue-green gradient */
  --font-primary: 'Orbitron', sans-serif;
  --font-secondary: 'Space Mono', monospace;
  --font-accent: 'Exo 2', sans-serif;

  /* Glassmorphism variables for consistency */
  --glassmorphism-bg: rgba(255, 255, 255, 0.05);
  --glassmorphism-shadow: 0 8px 32px rgba(0, 255, 255, 0.1); /* Adjusted to blue glow */
  --glassmorphism-backdrop: blur(10px);
  --glassmorphism-border: 1px solid rgba(255, 255, 255, 0.1);
  --glassmorphism-hover-shadow: 0 10px 30px rgba(0, 200, 255, 0.3); /* Adjusted to blue glow */

  /* Text color variables to ensure consistency and avoid !important */
  --quantum-text-light: #E0E0E0; /* Near white for main text */
  --quantum-text-muted: #A0A0A0; /* Slightly darker white for secondary text */
  --quantum-title: var(--quantum-primary); /* Titles will use primary blue */
  --quantum-highlight-glow: rgba(0, 255, 255, 0.8); /* Cyan glow for text shadow */
  --quantum-primary-btn-bg: var(--quantum-primary); /* Primary button background */
}

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

body {
  font-family: var(--font-accent);
  background-color: var(--quantum-dark);
  color: var(--quantum-text-light); /* Using the new variable */
  overflow-x: hidden;
  position: relative;
}

/* Quantum Particles Background */
#quantum-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* Replaced purple in radial-gradient with a blue shade */
  background: radial-gradient(ellipse at center, rgba(0, 136, 255, 0.1) 0%, transparent 70%); /* Uses consciousness-blue */
}

/* Neural Network Canvas */
#neural-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--quantum-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

/* Intro text for cinematic intro */
.intro-text {
  font-family: var(--font-primary);
  font-size: 3rem;
  color: var(--quantum-primary);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 20px var(--quantum-highlight-glow);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  max-width: 80%;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.quantum-loader {
  text-align: center;
  margin-top: 30px;
}

.quantum-ring {
  display: inline-block;
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top-color: var(--quantum-primary);
  border-radius: 50%;
  animation: quantum-spin 1s ease-in-out infinite;
  position: absolute;
}

.quantum-ring:nth-child(2) {
  animation-delay: 0.2s;
  border-top-color: var(--quantum-secondary); /* Now blue */
  width: 50px;
  height: 50px;
  margin: 5px;
}

.quantum-ring:nth-child(3) {
  animation-delay: 0.4s;
  border-top-color: var(--quantum-accent); /* Now green */
  width: 40px;
  height: 40px;
  margin: 10px;
}

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

/* Navigation */
.quantum-nav {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  transition: all 0.3s;
  padding: 1rem 0;
}

.quantum-nav.scrolled {
  background: rgba(5, 5, 5, 0.95);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--quantum-primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.quantum-logo {
  color: var(--quantum-accent); /* Now green */
  font-family: var(--font-secondary);
}

.navbar-nav .nav-link {
  color: var(--quantum-text-light) !important; /* Using the new variable */
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  margin: 0 15px;
  position: relative;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1); /* Blue-focused gradient */
  transition: width 0.3s;
}

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

.navbar-nav .nav-link:hover {
  color: var(--quantum-primary) !important;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Hero Section */
.quantum-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  /* Replaced purple in radial-gradient with a blue shade */
  background: radial-gradient(ellipse at bottom, rgba(0, 136, 255, 0.2) 0%, transparent 50%); /* Uses consciousness-blue */
}

.quantum-title {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.glitch {
  position: relative;
  color: var(--quantum-primary);
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: var(--quantum-secondary); /* Now blue */
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: var(--quantum-accent); /* Now green */
  z-index: -2;
}

@keyframes glitch {
  0%, 100% { text-shadow: 0 0 5px rgba(0, 255, 255, 0.8); } /* Cyan glow */
  50% { text-shadow: 0 0 20px rgba(0, 136, 255, 0.8); } /* Blue glow */
}

@keyframes glitch-1 {
  0%, 100% { clip: rect(44px, 9999px, 56px, 0); transform: skew(0.13deg); }
  50% { clip: rect(32px, 9999px, 94px, 0); transform: skew(0.5deg); }
}

@keyframes glitch-2 {
  0%, 100% { clip: rect(65px, 9999px, 119px, 0); transform: skew(0.8deg); }
  50% { clip: rect(10px, 9999px, 80px, 0); transform: skew(0.2deg); }
}

.quantum-subtitle {
  font-family: var(--font-secondary);
  font-size: 2rem;
  color: var(--quantum-secondary); /* Now blue */
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.consciousness-text {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--neural-green);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Added padding to hero bullets */
.hero-bullets {
  list-style: none;
  padding: 0 0 0 20px;
  margin-bottom: 2rem;
}

.hero-bullets li {
  position: relative;
  padding: 8px 0 8px 25px;
  line-height: 1.6;
}

.hero-bullets li::before {
  content: '▶';
  color: var(--quantum-accent);
  position: absolute;
  left: 0;
}

/* Quantum Buttons */
.quantum-btn {
  font-family: var(--font-secondary);
  padding: 12px 30px;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  margin: 0 10px;
  display: inline-block;
  text-decoration: none;
}

.quantum-btn.primary {
  background: var(--gradient-1); /* Blue-focused gradient */
  color: var(--quantum-dark);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); /* Cyan glow */
}

.quantum-btn.secondary {
  background: transparent;
  color: var(--quantum-primary);
  border: 2px solid var(--quantum-primary);
  box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.quantum-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.quantum-btn:hover::before {
  width: 300px;
  height: 300px;
}

.quantum-btn:hover {
  transform: translateY(-3px);
  /* Changed purple shadow to blue */
  box-shadow: 0 10px 30px rgba(0, 136, 255, 0.6); /* Uses consciousness-blue */
}

/* Social Links */
.social-links {
  margin-top: 2rem;
}

.social-links a {
  color: var(--quantum-primary);
  font-size: 1.5rem;
  margin: 0 15px;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--quantum-secondary); /* Now blue */
  transform: translateY(-5px);
  text-shadow: 0 5px 15px currentColor;
}

/* Quantum Visualization */
.quantum-visualization {
  position: relative;
  height: 500px;
}

#consciousness-field {
  width: 100%;
  height: 100%;
  /* Adjusted radial-gradient to use blue/cyan */
  background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.1) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

/* Section Styles */
.section-quantum {
  padding: 100px 0;
  position: relative;
  background: var(--quantum-dark);
}

.section-dark {
  padding: 100px 0;
  position: relative;
  background: var(--quantum-darker);
}

.section-title {
  font-family: var(--font-primary);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--quantum-primary);
  position: relative;
}

.quantum-bracket {
  color: var(--quantum-accent); /* Now green */
  font-family: var(--font-secondary);
}

/* Glassmorphism Effect */
.glassmorphism {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  /* Adjusted box-shadow to use blue/cyan glow */
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
  /* Added padding for all glassmorphism elements */
  padding: 30px;
}

/* Profile Section */
.profile-quantum {
  position: relative;
  display: inline-block;
}

.profile-img {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  border: 3px solid var(--quantum-primary);
  position: relative;
  z-index: 2;
}

.quantum-aura {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: var(--gradient-1); /* Blue-focused gradient */
  opacity: 0.3;
  filter: blur(20px);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

/* About content - added padding */
.about-content {
  padding: 30px;
}

.about-content p {
  margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 3rem;
  color: var(--quantum-primary);
  font-weight: 700;
  display: block;
  text-shadow: 0 0 20px currentColor;
}

.stat-item p {
  font-family: var(--font-secondary);
  color: var(--quantum-light);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Research Cards */
.research-card {
  height: 100%;
  padding: 40px;
  transition: all 0.3s;
}

.research-card:hover {
  transform: translateY(-10px);
  /* Changed purple shadow to blue */
  box-shadow: 0 15px 40px rgba(0, 136, 255, 0.3); /* Uses consciousness-blue */
}

.research-card h3 {
  font-family: var(--font-primary);
  color: var(--quantum-primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.research-card i {
  color: var(--quantum-accent); /* Now green */
  margin-right: 10px;
}

.research-points {
  list-style: none;
  padding: 0 0 0 5px;
  margin: 20px 0;
}

.research-points li {
  padding: 10px 0 10px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  position: relative;
}

.research-points li::before {
  content: '▶';
  color: var(--neural-green);
  position: absolute;
  left: 0;
}

/* Book Preview */
.book-preview {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.book-cover {
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
}

.book-cover:hover {
  transform: scale(1.05) rotateY(10deg);
  /* Changed purple shadow to blue */
  box-shadow: 0 15px 40px rgba(0, 136, 255, 0.5); /* Uses consciousness-blue */
}

.book-info h3 {
  font-family: var(--font-primary);
  color: var(--quantum-primary);
  margin-bottom: 10px;
}

.book-subtitle {
  font-family: var(--font-secondary);
  color: var(--quantum-secondary); /* Now blue */
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Skills */
.skills-universe {
  height: 400px;
  position: relative;
  margin-bottom: 50px;
}

#skills-constellation {
  width: 100%;
  height: 100%;
}

.skill-category {
  height: 100%;
  padding: 30px;
  transition: all 0.3s;
}

.skill-category:hover {
  transform: translateY(-5px);
  /* Adjusted box-shadow to use blue/cyan glow */
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.skill-category h4 {
  font-family: var(--font-primary);
  color: var(--quantum-primary);
  margin-bottom: 20px;
}

.skill-category i {
  color: var(--quantum-accent); /* Now green */
  margin-right: 10px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--gradient-1); /* Blue-focused gradient */
  color: var(--quantum-dark);
  padding: 8px 15px;
  border-radius: 20px;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
}

.skill-tag:hover {
  transform: scale(1.1);
  /* Changed purple shadow to blue */
  box-shadow: 0 5px 15px rgba(0, 136, 255, 0.5); /* Uses consciousness-blue */
}

/* Timeline */
.timeline-container {
  position: relative;
  padding: 50px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-1); /* Blue-focused gradient */
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--quantum-primary);
  border-radius: 50%;
  top: 30px;
  box-shadow: 0 0 20px var(--quantum-primary);
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-date {
  color: var(--quantum-accent); /* Now green */
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.timeline-content {
  padding: 30px;
  position: relative;
}

.timeline-content h3 {
  font-family: var(--font-primary);
  color: var(--quantum-primary);
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-family: var(--font-secondary);
  color: var(--quantum-secondary); /* Now blue */
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Projects */
.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: 30px;
}

.project-card:hover {
  transform: translateY(-10px);
  /* Changed purple shadow to blue */
  box-shadow: 0 20px 40px rgba(0, 136, 255, 0.4); /* Uses consciousness-blue */
  border-color: var(--quantum-primary);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

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

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

.project-link {
  width: 50px;
  height: 50px;
  border: 2px solid var(--quantum-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--quantum-primary);
  font-size: 1.2rem;
  transition: all 0.3s;
  text-decoration: none;
}

.project-link:hover {
  background: var(--quantum-primary);
  color: var(--quantum-dark);
  transform: scale(1.1);
}

.project-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-family: var(--font-primary);
  color: var(--quantum-primary);
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-tech span {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  color: var(--neural-green);
  border: 1px solid var(--neural-green);
  padding: 5px 12px;
  border-radius: 15px;
}

/* Contact Form */
.quantum-form {
  padding: 40px;
}

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

.quantum-input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--quantum-text-light); /* Using the new variable */
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: all 0.3s;
}

.quantum-input:focus {
  outline: none;
  border-color: var(--quantum-primary);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.quantum-label {
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--quantum-dark);
  padding: 0 10px;
  color: var(--quantum-primary);
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transition: all 0.3s;
}

.quantum-input:focus + .quantum-label,
.quantum-input:not(:placeholder-shown) + .quantum-label {
  opacity: 1;
  top: -10px;
}

.quantum-btn.full-width {
  width: 100%;
  justify-content: center;
}

/* Contact Info */
.contact-info {
  padding: 30px;
}

.contact-info h3 {
  font-family: var(--font-primary);
  color: var(--quantum-primary);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-family: var(--font-secondary);
}

.contact-item i {
  color: var(--quantum-accent); /* Now green */
  margin-right: 15px;
  font-size: 1.2rem;
}

.contact-item a {
  color: var(--quantum-text-light); /* Using the new variable */
  text-decoration: none;
  transition: all 0.3s;
}

.contact-item a:hover {
  color: var(--quantum-primary);
  text-shadow: 0 0 10px currentColor;
}

/* Footer */
.quantum-footer {
  background: var(--quantum-darker);
  padding: 40px 0;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  text-align: center;
}

.quantum-equation {
  font-family: var(--font-secondary);
  color: var(--quantum-accent); /* Now green */
  margin-top: 10px;
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 991px) {
  .quantum-title {
    font-size: 3rem;
  }
  
  .quantum-subtitle {
    font-size: 1.5rem;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item::after {
    left: 20px !important;
  }
  
  .book-preview {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .quantum-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .project-card {
    margin-bottom: 20px;
  }
  
  .skill-category {
    margin-bottom: 20px;
  }

  .intro-text {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px currentColor; }
  50% { box-shadow: 0 0 40px currentColor, 0 0 60px currentColor; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--quantum-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-1); /* Blue-focused gradient */
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-2); /* Blue-green gradient */
}



/* CHAT INTERFACE CSS STYLES */

/* Modern Chat UI Styles */
.quantum-chat-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chat-header {
  padding: 15px 20px;
  border-radius: 15px 15px 0 0;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--quantum-primary);
  font-size: 1.2rem;
}

.chat-controls {
  display: flex;
  gap: 15px;
}

.chat-control-btn {
  background: none;
  border: none;
  color: var(--quantum-accent);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.chat-control-btn:hover {
  color: var(--quantum-primary);
  transform: translateY(-2px);
}

.quantum-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--quantum-primary) rgba(255, 255, 255, 0.05);
}

.quantum-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.quantum-chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.quantum-chat-messages::-webkit-scrollbar-thumb {
  background: var(--quantum-primary);
  border-radius: 3px;
}

.chat-input-container {
  border-radius: 0 0 15px 15px;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  padding: 15px;
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.quantum-chat-input {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  resize: none;
  padding: 10px 15px;
  line-height: 1.5;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: var(--quantum-text-light);
  font-family: var(--font-accent);
  transition: all 0.3s;
  overflow-y: hidden;
}

.quantum-chat-input:focus {
  outline: none;
  border-color: var(--quantum-primary);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.chat-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.chat-btn.primary {
  background: var(--gradient-1);
  color: var(--quantum-dark);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  border: none;
}

.chat-btn.secondary {
  background: transparent;
  color: var(--quantum-primary);
  border: 1px solid var(--quantum-primary);
}

.chat-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.5);
}

.message {
  display: flex;
  gap: 15px;
  max-width: 80%;
  animation: messageAppear 0.3s ease-out;
}

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

@keyframes quantumGlow {
  0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(127, 0, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6); }
  100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
}

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

.message.assistant {
  align-self: flex-start;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.bubble {
  padding: 15px;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: var(--font-accent);
  line-height: 1.5;
}

.message.user .bubble {
  background: var(--gradient-1);
  color: var(--quantum-dark);
  border-bottom-right-radius: 5px;
}

.message.assistant .bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-bottom-left-radius: 5px;
}

.thinking .bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  color: var(--quantum-text-light);
  opacity: 0.8;
}

/* Code blocks in chat */
.bubble pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 10px 0;
  border-left: 3px solid var(--quantum-accent);
}

.bubble code {
  font-family: var(--font-secondary);
  font-size: 0.9em;
}

.bubble pre code {
  color: #e0e0e0;
}

.bubble p code {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--quantum-accent);
}

/* Image handling */
.attached-images {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.attached-image-container {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
}

.attached-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sent-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.sent-image:hover {
  transform: scale(1.05);
}

.remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.remove-image:hover {
  background: rgba(255, 0, 0, 0.8);
}

/* Loading animation */
.loading-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--quantum-primary);
  animation: pulse 1.5s infinite ease-in-out;
}

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

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

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Speak icon */
.speak-icon {
  color: var(--quantum-accent);
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  opacity: 0.7;
}

.speak-icon:hover {
  transform: scale(1.2);
  opacity: 1;
}

.speak-icon.speaking {
  color: var(--quantum-primary);
  animation: pulse 1s infinite ease-in-out;
}

/* Toast notifications */
.quantum-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  border-radius: 10px;
  font-family: var(--font-accent);
  color: var(--quantum-dark);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 1000;
}

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

.quantum-toast.success {
  background: var(--quantum-accent);
}

.quantum-toast.error {
  background: #ff5555;
}

.quantum-toast.info {
  background: var(--quantum-primary);
}

/* Suggestions modal */
.quantum-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  overflow: auto;
  backdrop-filter: blur(5px);
}

.quantum-modal-content {
  position: relative;
  width: 80%;
  max-width: 600px;
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--quantum-text-light);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.close-modal:hover {
  color: var(--quantum-primary);
  transform: scale(1.2);
}

#suggestions-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0 0;
}

#suggestions-list li {
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

#suggestions-list li:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--quantum-primary);
  transform: translateX(5px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .quantum-chat-container {
    height: 500px;
  }
  
  .message {
    max-width: 90%;
  }
  
  .quantum-modal-content {
    width: 90%;
    margin: 20% auto;
  }
}


.speak-icon {
  cursor: pointer;
  transition: color .2s;
}
.speak-icon.speaking {
  color: #0af;             /* or whatever highlight you like */
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}





