/* TEA : Projekt - Premium Custom Styles (Red & Pitch Dark Aesthetic) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* TEA : Projekt Brand Colors - Matches Logo Red (#e52e39) */
  --brand-red: #e52e39;
  --brand-red-hover: #dc2626;
  --brand-red-dark: #b91c1c;
  --brand-red-light: #fb7185;
  --brand-red-muted: rgba(229, 46, 57, 0.15);
  --brand-red-glow: rgba(229, 46, 57, 0.35);
  
  --dark-bg: #09090b;
  --dark-surface: #121217;
}

body {
  font-family: var(--font-sans);
  background-color: #09090b;
  color: #f4f4f5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Custom Text Selection in Brand Red */
::selection {
  background-color: var(--brand-red) !important;
  color: #ffffff !important;
}

::-moz-selection {
  background-color: var(--brand-red) !important;
  color: #ffffff !important;
}

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

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
  border: 2px solid #09090b;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(18, 18, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(229, 46, 57, 0.45);
  box-shadow: 0 10px 30px -10px rgba(229, 46, 57, 0.25);
  transform: translateY(-2px);
}

/* Glow Effects */
.glow-blue,
.glow-red,
.glow-brand {
  box-shadow: 0 0 40px -5px rgba(229, 46, 57, 0.35);
}

.glow-emerald {
  box-shadow: 0 0 30px -5px rgba(16, 185, 129, 0.25);
}

/* Device Mockup Shadows with Brand Ambience */
.device-shadow {
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(229, 46, 57, 0.2);
}

/* Interactive Brand Button Gradient */
.btn-brand-gradient {
  background: linear-gradient(135deg, #e52e39 0%, #be123c 100%);
  box-shadow: 0 4px 20px -2px rgba(229, 46, 57, 0.4);
  transition: all 0.3s ease;
}

.btn-brand-gradient:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%);
  box-shadow: 0 6px 25px -2px rgba(229, 46, 57, 0.6);
  transform: translateY(-1px);
}

/* Brand Text Gradient */
.text-brand-gradient {
  background: linear-gradient(135deg, #ffffff 25%, #fb7185 70%, #e52e39 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ECG / Heartbeat animation inspired by TEA : Projekt Logo */
@keyframes teaHeartbeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(229, 46, 57, 0)); }
  15% { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(229, 46, 57, 0.5)); }
  28% { transform: scale(1); }
  42% { transform: scale(1.04); filter: drop-shadow(0 0 8px rgba(229, 46, 57, 0.35)); }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 6s infinite ease-in-out;
}

.animate-heartbeat {
  animation: teaHeartbeat 3s infinite ease-in-out;
}

/* Gentle premium float for floating elements */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.animate-gentle-float {
  animation: gentleFloat 3s ease-in-out infinite;
}

/* WhatsApp Message Bubble Tails */
.bubble-user::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 6px solid #005c4b;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.bubble-agent::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 0;
  height: 0;
  border-right: 6px solid #202c33;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
