/* 🎨 PDF Converter Pro - Sexy Modern UI */

/* CSS Variables for theming */
:root {
  --primary: #667eea;
  --primary-light: #764ba2;
  --secondary: #f093fb;
  --accent: #4facfe;
  --success: #00f5a0;
  --warning: #ffd32a;
  --error: #ff4757;
  --dark: #1a1a1a;
  --light: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Mobile app padding to prevent navbar overlap */
  padding-top: 70px;
}

/* Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  animation: float 20s ease-in-out infinite;
}

.blob1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.blob2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #a8edea, #fed6e3);
  top: 70%;
  right: 20%;
  animation-delay: 7s;
}

.blob3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, #ffecd2, #fcb69f);
  bottom: 10%;
  left: 30%;
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  animation: slideDown 0.8s ease-out;
  /* Mobile app viewport fixes */
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  min-height: 70px;
  overflow-x: hidden;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.2rem;
}

.logo-icon .fa-file-pdf {
  color: #e74c3c;
  font-size: 1.4rem;
}

.logo-icon .fa-arrow-right {
  color: #3498db;
  font-size: 1rem;
  animation: pulse 2s infinite;
}

.logo-icon .fa-file-word {
  color: #2980b9;
  font-size: 1.4rem;
}

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

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.brand-pro {
  font-weight: 900;
  font-size: 0.8rem;
  color: #f39c12;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--light);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 8rem 2rem 6rem;
  text-align: center;
  color: var(--light);
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.section {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.section.active {
  display: block;
}

/* Card Components */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.8s ease-out;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  color: var(--light);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.card-title p {
  color: var(--gray-600);
  font-size: 1rem;
}

/* Format Selection Grid */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.format-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.format-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.format-option.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.format-option.selected .format-check {
  opacity: 1;
  transform: scale(1);
}

.format-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.format-option[data-format="word"] .format-icon {
  color: #2b579a;
  background: rgba(43, 87, 154, 0.1);
}

.format-option[data-format="pptx"] .format-icon {
  color: #d24726;
  background: rgba(210, 71, 38, 0.1);
}

.format-option[data-format="excel"] .format-icon {
  color: #217346;
  background: rgba(33, 115, 70, 0.1);
}

.format-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.format-info p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.format-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.02);
}

.upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.upload-area h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.upload-area p {
  color: var(--gray-600);
}

.browse-text {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.upload-area input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-progress {
  display: none;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

/* File Info */
.file-info {
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* Signature Form */
.signature-form {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px dashed var(--primary);
}

.signature-form h4 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.signature-form .form-group {
  margin-bottom: 1rem;
}

.signature-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.signature-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.signature-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Text Behind Images Form */
.text-behind-form {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px dashed var(--primary);
}

.text-behind-form h4 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.text-behind-form .form-group {
  margin-bottom: 1rem;
}

.text-behind-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.text-behind-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.text-behind-form input,
.text-behind-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
}

.text-behind-form input:focus,
.text-behind-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
  .text-behind-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Conversions Counter */
.conversions-counter {
  margin-top: 1rem;
  text-align: center;
}

.counter-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.counter-content i {
  color: #f39c12;
}

.conversions-counter.warning .counter-content {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.conversions-counter.danger .counter-content {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.file-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: var(--radius-sm);
  color: #dc3545;
  font-size: 1.5rem;
}

.file-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.file-size {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.remove-file {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--error);
  border: none;
  border-radius: 50%;
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-file:hover {
  transform: scale(1.1);
}

/* Convert Button */
.convert-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius);
  color: var(--light);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.convert-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Features List */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.feature i {
  color: var(--success);
}

/* Rating Stars */
.rating-section {
  text-align: center;
  margin-bottom: 2rem;
}

.rating-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.rating-stars i {
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rating-stars i:hover,
.rating-stars i.active {
  color: #ffd32a;
  transform: scale(1.2);
}

/* Form Elements */
.comment-section {
  margin-bottom: 2rem;
}

.comment-section label {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.submit-feedback-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--success), #00d4aa);
  border: none;
  border-radius: var(--radius);
  color: var(--light);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

/* Chat Styles */
.chat-container {
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
}

.online-users {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 500;
}

.online-indicator {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--light);
}

.welcome-message {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: var(--radius);
}

.welcome-message i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.chat-message {
  display: flex;
  margin-bottom: 1rem;
}

.chat-message.own {
  justify-content: flex-end;
}

.chat-message.system {
  justify-content: center;
}

.chat-message.own .message-content {
  background: var(--primary);
  color: var(--light);
}

.chat-message.system .message-content {
  background: var(--gray-50);
  color: var(--gray-600);
  font-style: italic;
  max-width: 80%;
}

.message-content {
  max-width: 70%;
  background: var(--gray-100);
  padding: 1rem;
  border-radius: var(--radius);
}

.message-user {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.chat-message.own .message-user {
  color: rgba(255, 255, 255, 0.9);
}

.message-text {
  margin-bottom: 0.25rem;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

.chat-input-container {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
}

.chat-input-container input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
}

.chat-input-container input:focus {
  outline: none;
  border-color: var(--primary);
}

.send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.modal-icon.success {
  background: rgba(0, 245, 160, 0.1);
  color: var(--success);
}

.modal-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.modal-btn {
  padding: 1rem 2rem;
  background: var(--success);
  border: none;
  border-radius: var(--radius);
  color: var(--light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-btn:hover {
  background: #00d4aa;
  transform: translateY(-2px);
}

/* Notifications */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--light);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3000;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

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

.notification.success {
  border-left: 4px solid var(--success);
}

.notification.error {
  border-left: 4px solid var(--error);
}

.notification.warning {
  border-left: 4px solid var(--warning);
}

.notification i {
  font-size: 1.25rem;
}

.notification.success i { color: var(--success); }
.notification.error i { color: var(--error); }
.notification.warning i { color: var(--warning); }

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 0.5rem;
    /* Enhanced mobile fixes for Android webview */
    padding-top: 1.5rem;
    min-height: 75px;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    overflow-x: hidden;
  }
  
  .nav-links {
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
    min-width: max-content;
  }
  
  /* Adjust body padding for mobile */
  body {
    padding-top: 75px;
  }
  
  /* Webview specific fixes */
  .navbar {
    /* Ensure navbar is visible in Android webview */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }
  
  .hero {
    padding: 2rem 1rem 4rem;
    margin-top: 0;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .container {
    padding: 0 1rem 2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .format-grid {
    grid-template-columns: 1fr;
  }
  
  .features-list {
    justify-content: flex-start;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat {
    flex: 1;
  }
  
  .notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .upload-area {
    padding: 2rem 1rem;
  }
  
  .upload-icon {
    font-size: 2rem;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #1a1a1a;
    --dark: #ffffff;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-900: #f1f5f9;
  }
}

/* Print styles */
@media print {
  .navbar,
  .bg-animation,
  .hero {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
}

/* Authentication Styles */
.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.auth-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-btn.login-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-btn.login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.auth-btn.register-btn {
  background: var(--primary-gradient);
  color: white;
}

.auth-btn.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}

.auth-btn.logout-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-btn.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Auth Modal Styles */
.auth-modal {
  max-width: 400px;
  width: 90%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
  color: var(--text-secondary);
}

.modal-btn.primary {
  width: 100%;
  background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: white !important;
  padding: 1rem;
  margin-top: 1rem;
  font-weight: 600;
  border: none;
}

.modal-btn.primary i,
.modal-btn.primary {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Dashboard Link Button */
.dashboard-link {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
}

.dashboard-link:hover {
  background: rgba(34, 197, 94, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* Hero Benefits Section */
.hero-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
}

.benefit-item i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* CTA Section */
.hero-cta {
  margin-top: 2rem;
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.4);
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* SEO Content Sections */
.seo-content {
  margin: 4rem 0;
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
}

.seo-section {
  margin-bottom: 3rem;
}

.seo-section h2 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.seo-section h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

.seo-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h4 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .hero-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .benefit-item {
    font-size: 0.85rem;
  }
  
  .cta-button {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}

/* Lead Magnets Section */
.lead-magnets-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-radius: var(--radius-lg);
  text-align: center;
}

.lead-magnets-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-magnets-section > p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lead-magnets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.lead-magnet-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.lead-magnet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lead-magnet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.magnet-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.magnet-icon i {
  font-size: 1.5rem;
  color: white;
}

.lead-magnet-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.lead-magnet-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.magnet-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.magnet-features li {
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.magnet-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.magnet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Lead Magnet Modal */
.lead-magnet-modal {
  max-width: 500px;
  width: 90vw;
}

.lead-magnet-modal .modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.lead-magnet-modal .modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.lead-magnet-modal .modal-icon i {
  font-size: 2rem;
  color: white;
}

.lead-magnet-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lead-magnet-form .form-group {
  margin-bottom: 1rem;
}

.lead-magnet-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.lead-magnet-form input,
.lead-magnet-form select {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.lead-magnet-form input:focus,
.lead-magnet-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.magnet-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.magnet-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.magnet-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.privacy-notice {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

.privacy-notice i {
  color: var(--success);
  margin-right: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .lead-magnets-section {
    padding: 3rem 1rem;
  }
  
  .lead-magnets-section h2 {
    font-size: 2rem;
  }
  
  .lead-magnets-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .lead-magnet-card {
    padding: 2rem 1.5rem;
  }
  
  .lead-magnet-form .form-row {
    grid-template-columns: 1fr;
  }
}