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

:root {
  /* Futuristic Dark Theme Colors */
  --primary-blue: #3b82f6;
  --primary-purple: #8b5cf6;
  --primary-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;

  /* Dark Theme */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: rgba(30, 41, 59, 0.5);
  --bg-glass: rgba(15, 23, 42, 0.8);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  /* Border and Effects */
  --border-color: #475569;
  --border-glow: rgba(59, 130, 246, 0.3);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-accent: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-text: linear-gradient(135deg, #3b82f6, #8b5cf6);

  /* Spacing and Effects */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #581c87 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Elements */
body::before {
  content: "";
  position: fixed;
  top: 25%;
  left: 25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  bottom: 25%;
  right: 25%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: -1;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Header */
.header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* API Status */
.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid;
  backdrop-filter: blur(10px);
}

.api-status.healthy {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.api-status.unhealthy {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.api-status i {
  font-size: 8px;
  animation: pulse 2s infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--border-radius-lg);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .hero {
    padding: 40px 16px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 100%;
    word-break: break-word;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

.trusted-by {
  padding-top: 32px;
}

.trusted-by p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0.6;
}

.trusted-logos div {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* 3D Illustration */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

.ai-illustration {
  position: relative;
  width: 400px;
  height: 400px;
}

.ai-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.ai-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  filter: blur(40px);
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
}

.ai-main {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circuit-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(90deg, var(--primary-blue) 1px, transparent 1px),
    linear-gradient(180deg, var(--primary-blue) 1px, transparent 1px);
  background-size: 20px 20px;
}

.ai-brain {
  position: relative;
  width: 120px;
  height: 120px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: var(--border-radius);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 3s ease-in-out infinite;
}

.ai-brain i {
  font-size: 48px;
  color: var(--primary-blue);
}

.floating-elements {
  position: absolute;
  inset: 0;
}

.floating-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.floating-dot:nth-child(1) {
  top: 16px;
  right: 16px;
  animation-delay: 0s;
}

.floating-dot:nth-child(2) {
  bottom: 24px;
  left: 24px;
  animation-delay: 1s;
}

.floating-dot:nth-child(3) {
  top: 50%;
  left: 16px;
  animation-delay: 2s;
}

.orbiting-elements {
  position: absolute;
  inset: 0;
  animation: spin 20s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}

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

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.step-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.step-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.step-icon i {
  font-size: 24px;
  color: white;
}

.step-number {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Connection Lines */
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateY(-50%);
  z-index: 2;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(20px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.feature-list li i {
  color: var(--accent-green);
  font-size: 12px;
}

/* Analyze Page Styles */
.analyze-page {
  min-height: calc(100vh - 80px);
  padding: 40px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.analyzer-tabs {
  display: flex;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 8px;
  margin-bottom: 32px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 16px;
  border-radius: calc(var(--border-radius-lg) - 8px);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.analyzer-form {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
}

.input-group {
  margin-bottom: 24px;
}

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

.textarea-container {
  position: relative;
}

textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  resize: vertical;
  min-height: 120px;
  transition: var(--transition);
}

textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-secondary);
}

.file-upload-area:hover {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.1);
}

.upload-content h3 {
  font-size: 20px;
  margin: 16px 0 8px;
  color: var(--text-primary);
}

.upload-content p {
  color: var(--text-secondary);
}

.upload-content i {
  font-size: 48px;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

/* Results Section */
.results-container {
  max-width: 800px;
  margin: 48px auto 0;
}

.result-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  animation: slideUp 0.5s ease;
}

.result-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 32px;
}

.result-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Enhanced Action Buttons */
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.action-btn::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.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.speaking {
  background: var(--gradient-primary);
  color: white;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

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

.action-btn i {
  font-size: 16px;
}

.action-btn span {
  font-weight: 600;
}

/* Speaking animation */
@keyframes pulse {
  0%,
  100% {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  }
}

/* Auto-speak toggle */
.auto-speak-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.auto-speak-toggle button {
  width: 100px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auto-speak-toggle button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .result-actions {
    flex-direction: column;
  }

  .action-btn {
    justify-content: center;
    padding: 14px 20px;
  }
}

.confidence-display {
  text-align: center;
  margin-bottom: 32px;
}

.confidence-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  fill: none;
  stroke-width: 8;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1s ease-in-out;
  stroke-linecap: round;
}

.confidence-circle.fake .progress-ring-circle {
  stroke: #ef4444;
}

.confidence-circle.legit .progress-ring-circle {
  stroke: var(--accent-green);
}

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

.percentage {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
.footer {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-blue);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-title {
    font-size: 48px;
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 36px;
  }

  .analyzer-tabs {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: var(--shadow-glow);
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Error Messages */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ef4444;
  font-weight: 500;
}

/* Voice and Action Buttons */
.voice-btn,
.speak-btn,
.copy-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-btn:hover,
.speak-btn:hover,
.copy-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* History Styles */
.history-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.history-table table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.history-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
}

.type-badge,
.result-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.type-badge.text {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-blue);
}

.type-badge.image {
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-purple);
}

.type-badge.audio {
  background: rgba(6, 182, 212, 0.2);
  color: var(--primary-cyan);
}

.result-badge.fake {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.result-badge.legit {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
