/* ===========================
   ULTRA-MODERN ENTERPRISE CSS
   =========================== */

/* Root Variables */
:root {
  /* Modern Color Palette */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  --secondary: #ec4899;
  --secondary-light: #f472b6;
  --secondary-dark: #db2777;
  
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-dark: #059669;
  
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
}

/* Dark Theme */
body.dark-theme {
  --background: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --border-hover: #475569;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(148, 163, 184, 0.18);
  --shadow-glow: 0 0 50px rgba(129, 140, 248, 0.3);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body.hindi-mode {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.sphere-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  top: -300px;
  left: -300px;
  animation-duration: 25s;
}

.sphere-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  animation-duration: 20s;
  animation-delay: -5s;
}

.sphere-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
  animation-delay: -10s;
}

.sphere-4 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 20%;
  right: 10%;
  animation-duration: 35s;
  animation-delay: -15s;
}

.sphere-5 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: 20%;
  left: 20%;
  animation-duration: 28s;
  animation-delay: -20s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -100px) scale(1.1);
  }
  50% {
    transform: translate(-50px, 50px) scale(0.9);
  }
  75% {
    transform: translate(100px, 100px) scale(1.05);
  }
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  opacity: 0.1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 15s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 15%;
  animation-delay: -5s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  top: 70%;
  left: 70%;
  animation-delay: -10s;
}

@keyframes morph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: rotate(180deg);
  }
}

/* Modern Header */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.modern-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-base);
}

.modern-logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.logo-letter {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  z-index: 2;
}

.logo-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Modern Navigation */
.modern-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  position: relative;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: 12px;
  transition: all var(--transition-base);
  overflow: hidden;
}

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

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
  transition: transform var(--transition-base);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
  transform: translateX(-50%) scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle,
.theme-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  background: var(--surface);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.lang-toggle:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--surface-hover);
}

.lang-text {
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
}

.lang-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 50%;
  transition: transform var(--transition-base);
}

.lang-toggle:hover .lang-bg {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0.1;
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
  transition: all var(--transition-base);
}

.theme-toggle:hover svg {
  stroke: var(--primary);
}

.sun-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.moon-icon {
  position: absolute;
  opacity: 0;
  transform: scale(0.8) rotate(180deg);
}

body.dark-theme .sun-icon {
  opacity: 0;
  transform: scale(0.8) rotate(180deg);
}

body.dark-theme .moon-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  height: 2px;
  width: 24px;
  background: var(--text-secondary);
  transition: all var(--transition-base);
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 14px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
  padding: 8rem 2rem 2rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.badge-icon {
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-line-1 {
  display: block;
  color: var(--text-primary);
}

.title-line-2 {
  display: block;
  margin-top: 0.5rem;
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Prompt Section */
.prompt-section {
  padding: 2rem;
  position: relative;
  animation: fadeIn 0.6s ease-out;
}

.prompt-container {
  max-width: 800px;
  margin: 0 auto;
}

.prompt-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

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

.prompt-header {
  text-align: center;
  margin-bottom: 2rem;
}

.prompt-header h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.prompt-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Modern Prompt Input */
.prompt-input-wrapper {
  position: relative;
}

.prompt-input-container {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  border: 2px solid var(--border);
  transition: all var(--transition-base);
  overflow: hidden;
}

.prompt-input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.modern-prompt-input {
  width: 100%;
  padding: 1.5rem 5rem 1.5rem 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.125rem;
  color: var(--text-primary);
  resize: none;
  outline: none;
  min-height: 60px;
  max-height: 200px;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.6;
}

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

/* Voice Visualization */
.voice-visualization {
  position: absolute;
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.voice-visualization.active {
  opacity: 1;
}

.voice-wave-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
}

.voice-wave {
  width: 3px;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transform-origin: center;
  animation: wave 1s ease-in-out infinite;
}

.voice-wave:nth-child(1) { animation-delay: 0s; }
.voice-wave:nth-child(2) { animation-delay: 0.1s; }
.voice-wave:nth-child(3) { animation-delay: 0.2s; }
.voice-wave:nth-child(4) { animation-delay: 0.3s; }
.voice-wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Go/Voice Button */
.go-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border: none;
  background: var(--primary-gradient);
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.go-button:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.go-button:active {
  transform: translateY(-50%) scale(0.95);
}

.button-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-base);
}

.button-state.active {
  opacity: 1;
  transform: scale(1);
}

/* Voice Mode */
.go-button.voice-mode .voice-state {
  opacity: 1;
  transform: scale(1);
}

.mic-icon {
  width: 28px;
  height: 28px;
  stroke: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.voice-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Go Mode */
.go-button.go-mode .go-state {
  opacity: 1;
  transform: scale(1);
}

.go-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  margin-right: 0.25rem;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 3;
  margin-left: -0.25rem;
}

/* Loading Mode */
.go-button.loading-mode .loading-state {
  opacity: 1;
  transform: scale(1);
}

.go-button.loading-mode {
  cursor: not-allowed;
  opacity: 0.9;
}

/* Active Voice Recording */
.go-button.recording {
  animation: recording-pulse 1.5s ease-in-out infinite;
}

@keyframes recording-pulse {
  0%, 100% {
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 0 20px rgba(239, 68, 68, 0);
  }
}

/* Voice Transcript */
.voice-transcript {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  min-height: 40px;
  display: none;
  align-items: center;
  animation: fadeIn var(--transition-base);
}

.voice-transcript.active {
  display: flex;
}

.transcript-text {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.875rem;
}

/* Prompt Suggestions */
.prompt-footer {
  margin-top: 1.5rem;
}

.prompt-suggestions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.suggestion-chip {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.suggestion-chip:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
  background: var(--surface);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--background);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.feature-icon {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
}

.feature-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--primary-gradient);
  border-radius: 20px;
  filter: blur(20px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover .feature-glow {
  opacity: 0.3;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modern Loading Overlay */
.modern-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modern-loading-overlay.show {
  display: flex;
}

.loading-content {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.ai-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.avatar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  z-index: 3;
  box-shadow: var(--shadow-2xl);
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: glow-pulse 2s ease-in-out infinite;
}

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

.avatar-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}

.ring-1 {
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  animation: ring-expand 3s ease-out infinite;
}

.ring-2 {
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  animation: ring-expand 3s ease-out infinite 1s;
}

.ring-3 {
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  animation: ring-expand 3s ease-out infinite 2s;
}

@keyframes ring-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.loading-message {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 2rem;
}

.ai-thoughts {
  margin-bottom: 2rem;
}

.thought-bubble {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  display: inline-block;
  position: relative;
}

.thought-text {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.thought-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
}

.thought-dots span {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.thought-dots span:nth-child(1) { animation-delay: -0.32s; }
.thought-dots span:nth-child(2) { animation-delay: -0.16s; }
.thought-dots span:nth-child(3) { animation-delay: 0; }

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

.progress-container {
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  width: 0%;
  transition: width var(--transition-slow);
  position: relative;
}

.progress-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0% {
    transform: translateX(-50px);
  }
  100% {
    transform: translateX(50px);
  }
}

.progress-text {
  position: absolute;
  top: -30px;
  right: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Question & Form Sections */
.modern-question-section,
.modern-form-section {
  padding: 2rem;
  display: none;
}

.question-container,
.form-container {
  max-width: 700px;
  margin: 0 auto;
}

.question-card,
.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.question-header,
.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.questions-wrapper,
.form-wrapper {
  margin-bottom: 2rem;
}

/* Modern Success Section */
.modern-success-section {
  padding: 4rem 2rem;
  display: none;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-container {
  max-width: 600px;
  text-align: center;
}

.success-animation {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
}

.success-circle {
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2xl);
}

.checkmark {
  width: 80px;
  height: 80px;
  stroke-width: 3;
}

.checkmark-circle {
  stroke: var(--accent);
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke: var(--accent);
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.success-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.burst-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--accent);
  opacity: 0;
  animation: burst 0.8s ease-out 0.5s forwards;
}

.burst-line:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.burst-line:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.burst-line:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
.burst-line:nth-child(4) { transform: translate(-50%, -50%) rotate(180deg); }
.burst-line:nth-child(5) { transform: translate(-50%, -50%) rotate(240deg); }
.burst-line:nth-child(6) { transform: translate(-50%, -50%) rotate(300deg); }

@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-40px) scaleY(0);
  }
}

.success-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.success-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.website-url-display {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.website-url-display a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  word-break: break-all;
}

.website-url-display a:hover {
  text-decoration: underline;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating Action Bar */
.floating-action-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: var(--shadow-2xl);
  z-index: 100;
  transition: all var(--transition-base);
}

.floating-action-bar.hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}

/* Modern Notifications */
.modern-notification-container {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

.notification {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(120%);
  opacity: 0;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.notification.success::before {
  background: var(--accent);
}

.notification.error::before {
  background: #ef4444;
}

.notification.warning::before {
  background: #f59e0b;
}

.notification.info::before {
  background: var(--primary);
}

/* WebSocket Status */
.modern-ws-status {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-base);
}

.modern-ws-status.connected .status-dot {
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.modern-ws-status.connecting .status-dot {
  background: #f59e0b;
  animation: pulse-dot 1s ease-in-out infinite;
}

.modern-ws-status.disconnected .status-dot {
  background: #ef4444;
}

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

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-nav-overlay.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }

.mobile-nav-link:hover {
  color: var(--primary-light);
  transform: scale(1.05);
}

.mobile-nav-actions {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base) 0.4s;
}

.mobile-nav-overlay.active .mobile-nav-actions {
  opacity: 1;
  transform: translateY(0);
}

.mobile-lang-toggle {
  padding: 0.75rem 2rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}

/* PWA Install Prompt */
.pwa-install-prompt {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-2xl);
  z-index: 1000;
  transition: all var(--transition-slow);
  max-width: 90%;
  width: 400px;
}

.pwa-install-prompt.show {
  bottom: 2rem;
}

.pwa-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.pwa-install-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-dismiss-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.pwa-dismiss-btn:hover {
  background: var(--surface);
  color: var(--text-primary);
}

/* Modern Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.btn-success {
  background: var(--accent);
  color: white;
}

.btn-info {
  background: var(--primary);
  color: white;
}

.btn-skip {
  background: transparent;
  color: var(--text-secondary);
  text-decoration: underline;
}

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

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }
  
  .modern-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-section {
    padding: 6rem 1rem 1rem;
    min-height: 50vh;
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .prompt-card {
    padding: 1.5rem;
  }
  
  .modern-prompt-input {
    font-size: 1rem;
    padding-right: 4.5rem;
  }
  
  .go-button {
    width: 50px;
    height: 50px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .floating-action-bar {
    bottom: 1rem;
    width: calc(100% - 2rem);
    max-width: 400px;
  }
  
  .modern-notification-container {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
  
  .modern-ws-status {
    bottom: auto;
    top: 80px;
    left: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
  }
  
  .prompt-suggestions {
    font-size: 0.75rem;
  }
  
  .suggestion-chip {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
}

/* Print Styles */
@media print {
  .modern-header,
  .floating-action-bar,
  .modern-notification-container,
  .modern-ws-status,
  .background-animation {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

/* Hindi Mode Adjustments */
body.hindi-mode .hero-title,
body.hindi-mode .section-title,
body.hindi-mode h2,
body.hindi-mode h3 {
  font-family: 'Noto Sans Devanagari', sans-serif;
  letter-spacing: 0;
}

/* Fix for section visibility */
section {
  opacity: 1;
  transition: opacity 0.3s ease;
}

section.hiding {
  opacity: 0;
}

/* Ensure input section is visible by default */
#inputSection {
  display: block;
}

/* Override any hidden states for initial load */
body:not(.app-initialized) #inputSection {
  display: block !important;
  opacity: 1 !important;
}

/* Add to prompt-section for proper display */
.prompt-section {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.prompt-section.hiding {
  opacity: 0;
}
