/* ===== VIBRANT DARK THEME WITH NEON ACCENTS ===== */
:root {
  /* Primary Dark Color Palette */
  --dark-primary: #0c0414;           /* Deep dark purple-black */
  --dark-secondary: #1c1528;         /* Dark purple container */
  --dark-accent: #2a1f3d;           /* Medium purple surface */
  --dark-surface: #171725;          /* Dark slate surface */
  
  /* Vibrant Neon Accents */
  --neon-blue: #3A29FF;             /* Electric blue primary */
  --neon-cyan: #00A9FF;             /* Bright cyan */
  --neon-purple: #7A00FF;           /* Electric purple */
  --neon-pink: #FF94B4;             /* Bright pink */
  --neon-orange: #FF6A88;           /* Coral orange */
  --neon-yellow: #FFD440;           /* Bright yellow */
  --neon-green: #40E5D1;            /* Electric teal */
  --neon-violet: #8B5CF6;           /* Vibrant violet */
  --neon-lime: #84CC16;             /* Electric lime */
  --neon-rose: #F43F5E;             /* Electric rose */
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-disabled: #64748b;
  
  /* Glass Morphism */
  --glass-bg: rgba(28, 21, 40, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  --gradient-accent: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  --gradient-warm: linear-gradient(135deg, var(--neon-orange), var(--neon-yellow));
  --gradient-hero: radial-gradient(ellipse at top, var(--neon-blue) 0%, var(--dark-primary) 70%);
  --gradient-rainbow: linear-gradient(45deg, var(--neon-violet), var(--neon-blue), var(--neon-cyan), var(--neon-green), var(--neon-lime), var(--neon-yellow), var(--neon-orange), var(--neon-rose));
  --gradient-electric: linear-gradient(135deg, var(--neon-violet), var(--neon-cyan), var(--neon-lime));
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ===== ANIMATED PET BACKGROUND ELEMENTS ===== */
.pet-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-paw {
  position: absolute;
  opacity: 0.1;
  animation: floatPaw 15s infinite linear;
  filter: hue-rotate(var(--hue-rotation, 0deg)) saturate(0.3);
}

.floating-paw-1 {
  width: 40px;
  height: 40px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  --hue-rotation: 240deg; /* Blue tint */
}

.floating-paw-2 {
  width: 30px;
  height: 30px;
  top: 20%;
  right: 10%;
  animation-delay: -3s;
  --hue-rotation: 300deg; /* Purple tint */
}

.floating-paw-3 {
  width: 35px;
  height: 35px;
  top: 60%;
  left: 15%;
  animation-delay: -6s;
  --hue-rotation: 180deg; /* Cyan tint */
}

.floating-paw-4 {
  width: 45px;
  height: 45px;
  bottom: 20%;
  right: 20%;
  animation-delay: -9s;
  --hue-rotation: 60deg; /* Yellow tint */
}

.floating-paw-5 {
  width: 25px;
  height: 25px;
  top: 80%;
  left: 70%;
  animation-delay: -12s;
  --hue-rotation: 320deg; /* Pink tint */
}

.floating-pet {
  position: absolute;
  opacity: 0.05;
  animation: floatPet 20s infinite ease-in-out;
  filter: hue-rotate(var(--hue-rotation, 0deg)) saturate(0.2);
}

.floating-pet-1 {
  width: 80px;
  height: 80px;
  top: 15%;
  right: 5%;
  animation-delay: 0s;
  --hue-rotation: 220deg;
}

.floating-pet-2 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 8%;
  animation-delay: -7s;
  --hue-rotation: 280deg;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes floatPaw {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(50vh) rotate(180deg) scale(1.2);
  }
  100% {
    transform: translateY(-10vh) rotate(360deg) scale(0.8);
  }
}

@keyframes floatPet {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue), 0 0 60px var(--neon-blue);
  }
  50% {
    box-shadow: 0 0 30px var(--neon-purple), 0 0 50px var(--neon-purple), 0 0 70px var(--neon-purple);
  }
}

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

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

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

@keyframes glow {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.2) saturate(1.3); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pawPrint {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) rotate(45deg);
  }
}

/* ===== HEADER STYLES ===== */
.header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  position: relative;
  animation: glow 3s ease-in-out infinite;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(58, 41, 255, 0.3);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.nav-link:hover::before {
  left: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #030306 0%, #0a0a0f 25%, #0f0f1a 50%, #0a0a0f 75%, #030306 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: rgba(3, 3, 6, 0.9);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 50px;
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-text {
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.title-line {
  color: #f1f5f9;
  text-shadow: 0 0 30px rgba(241, 245, 249, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #3A29FF 0%, #00A9FF 25%, #7A00FF 50%, #FF94B4 75%, #FFD440 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowShift 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(58, 41, 255, 0.4));
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 500px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.cta-button.primary {
  background: linear-gradient(135deg, #3A29FF 0%, #00A9FF 100%);
  color: white;
  box-shadow: 
    0 8px 32px rgba(58, 41, 255, 0.4),
    0 4px 16px rgba(0, 169, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(58, 41, 255, 0.6),
    0 6px 20px rgba(0, 169, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button.secondary {
  background: rgba(3, 3, 6, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-button.secondary:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.persona-icon {
  font-size: 1.25rem;
}

/* Right Side - Enhanced Gallery */
.hero-gallery {
  position: relative;
  height: 600px;
}

.gallery-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-header {
  text-align: center;
  margin-bottom: 1rem;
}

.gallery-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 20px rgba(241, 245, 249, 0.3);
}

.gallery-subtitle {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* Masonry Gallery */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 1rem;
  height: 400px;
  position: relative;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(3, 3, 6, 0.9);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Masonry Layout Positioning */
.gallery-item.item-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  animation: float 6s ease-in-out infinite;
}

.gallery-item.item-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  animation: float 6s ease-in-out infinite 1s;
}

.gallery-item.item-3 {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  animation: float 6s ease-in-out infinite 2s;
}

.gallery-item.item-4 {
  grid-column: 1 / 2;
  grid-row: 3 / 5;
  animation: float 6s ease-in-out infinite 3s;
}

.gallery-item.item-5 {
  grid-column: 2 / 3;
  grid-row: 3 / 5;
  animation: float 6s ease-in-out infinite 4s;
}

.gallery-item.item-6 {
  grid-column: 3 / 4;
  grid-row: 3 / 5;
  animation: float 6s ease-in-out infinite 5s;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pet-name {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.875rem;
}

.pet-story {
  color: #94a3b8;
  font-size: 0.75rem;
}

.gallery-item:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
  box-shadow: 
    0 20px 60px rgba(58, 41, 255, 0.3),
    0 10px 30px rgba(0, 169, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.5);
}

.gallery-item:hover .image-container img {
  transform: scale(1.1);
}

.gallery-item:hover .image-overlay {
  transform: translateY(0);
}



/* Floating Background Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-paw, .floating-pet {
  position: absolute;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.paw-svg, .pet-svg {
  width: 40px;
  height: 40px;
  filter: hue-rotate(0deg);
  animation: hueRotate 10s linear infinite;
}

.floating-paw.paw-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-paw.paw-2 {
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.floating-paw.paw-3 {
  bottom: 30%;
  left: 5%;
  animation-delay: 4s;
}

.floating-paw.paw-4 {
  bottom: 15%;
  right: 20%;
  animation-delay: 6s;
}

.floating-paw.paw-5 {
  top: 50%;
  left: 50%;
  animation-delay: 8s;
}

.floating-pet.pet-1 {
  top: 15%;
  left: 70%;
  animation-delay: 1s;
}

.floating-pet.pet-2 {
  bottom: 20%;
  left: 80%;
  animation-delay: 5s;
}

.floating-paw.paw-6 {
  top: 65%;
  left: 5%;
  animation-delay: 10s;
}

.floating-paw.paw-7 {
  top: 15%;
  right: 25%;
  animation-delay: 12s;
}

.floating-paw.paw-8 {
  bottom: 10%;
  left: 25%;
  animation-delay: 14s;
}

.floating-pet.pet-3 {
  top: 50%;
  right: 8%;
  animation-delay: 7s;
}

.floating-pet.pet-4 {
  bottom: 35%;
  left: 12%;
  animation-delay: 9s;
}

.floating-pet.pet-5 {
  top: 70%;
  right: 35%;
  animation-delay: 11s;
}

.pet-svg {
  width: 60px;
  height: 60px;
}

/* ===== CHATBOT/PERSONA SECTION ===== */
.chatbot-section {
  padding: 6rem 2rem;
  background: var(--dark-surface);
  position: relative;
}

.chatbot-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
  animation: gradientShift 15s ease-in-out infinite;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.persona-card {
  background: rgba(3, 3, 6, 0.8);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.persona-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 
    0 25px 80px rgba(99, 102, 241, 0.3),
    0 10px 40px rgba(245, 158, 11, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.persona-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: float 6s ease-in-out infinite;
}

.persona-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.persona-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.chat-trigger {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  font-size: 1rem;
}

.chat-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.chat-trigger:active {
  transform: translateY(0);
}

/* ===== CHAT MODAL ===== */
.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.chat-overlay.active {
  display: flex;
}

.chat-modal {
  width: 95%;
  max-width: 1200px;
  height: 80vh;
  background: rgba(3, 3, 6, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(99, 102, 241, 0.1);
}

.chat-persona-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-persona-icon {
  font-size: 2rem;
  background: var(--gradient-primary);
  border-radius: 12px;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.chat-persona-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.chat-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

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

.chat-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

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

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

.message.error-message .message-content {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.message-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--gradient-primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.user-message .message-avatar {
  background: var(--gradient-warm);
}

.message-content {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

.user-message .message-content {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.message-content p {
  margin: 0;
  line-height: 1.5;
}

.chat-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  min-height: 1rem;
}

.typing-indicator {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.typing-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: typingPulse 1.4s infinite ease-in-out;
}

.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 typingPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.slide-up {
  animation: slideUp 0.3s ease;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

.bounce-in {
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.retry-btn {
  background: var(--gradient-accent);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.chat-input-container {
  padding: 1.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.05);
}

.chat-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: rgba(3, 3, 6, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 0.75rem;
  color: var(--text-primary);
  resize: none;
  min-height: 44px;
  max-height: 120px;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

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

/* ===== SOURCE CITATIONS ===== */
.message-sources {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid rgba(99, 102, 241, 0.5);
  border-radius: 0 8px 8px 0;
}

.sources-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(99, 102, 241, 0.8);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.source-icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.source-similarity {
  background: rgba(99, 102, 241, 0.2);
  color: rgba(99, 102, 241, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: auto;
}

.send-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Enhanced Animations */
@keyframes rainbowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gradientShift {
  0%, 100% { 
    background: 
      radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  }
  33% { 
    background: 
      radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 30% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
  }
  66% { 
    background: 
      radial-gradient(circle at 40% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 90% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 20% 60%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes hueRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-gallery {
    height: 500px;
  }
  
  .masonry-gallery {
    height: 350px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .gallery-item.item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .gallery-item.item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .gallery-item.item-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery-item.item-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery-item.item-5 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .gallery-item.item-6 { grid-column: 2 / 3; grid-row: 3 / 4; }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1rem 0;
  }
  
  .hero-container {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .masonry-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    height: 400px;
  }
  
  .gallery-item.item-1,
  .gallery-item.item-2,
  .gallery-item.item-3,
  .gallery-item.item-4,
  .gallery-item.item-5,
  .gallery-item.item-6 {
    grid-column: 1 / 2;
  }
  
  .gallery-item.item-1 { grid-row: 1 / 2; }
  .gallery-item.item-2 { grid-row: 2 / 3; }
  .gallery-item.item-3 { grid-row: 3 / 4; }
  .gallery-item.item-4 { grid-row: 4 / 5; }
  .gallery-item.item-5 { grid-row: 5 / 6; }
  .gallery-item.item-6 { grid-row: 6 / 7; }
  
  .floating-elements {
    display: none;
  }
}

/* ===== FOOTER STYLES ===== */
.footer {
  background: var(--dark-surface);
  padding: 1rem 2rem 0.75rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-section:nth-child(1) {
  text-align: left;
}

.footer-section:nth-child(2) {
  text-align: center;
}

.footer-section:nth-child(3) {
  text-align: right;
}

.footer-section h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-section p {
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.85rem;
  line-height: 1.4;
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.25rem;
}

.footer-section a:last-child {
  margin-right: 0;
}

.footer-section a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 100px 1rem 2rem;
  }
  
  .hero-container {
    position: static;
    transform: none;
    margin-top: 3rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: center;
  }
  
  .gallery-item {
    width: 80px;
    height: 80px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .floating-paw, .floating-pet {
    display: none;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .persona-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .persona-card {
    padding: 1.5rem;
  }
  
  .persona-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.8rem 1rem;
  }
  
  .hero-section {
    padding: 80px 1rem 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chat-modal {
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
  }
  
  .chat-body {
    height: 300px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .persona-card {
    padding: 1.25rem;
  }
  
  .persona-icon {
    font-size: 2rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.neon-glow {
  box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}

/* ===== SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: var(--dark-accent);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-accent);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.chat-trigger:focus,
.chat-input:focus,
.send-btn:focus,
.close-btn:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
} 