/**
 * FreshConvert - Premium Animated Styles
 * Built with ❤️ by Fresher IT BD
 */

/* ==================== */
/* CSS Variables        */
/* ==================== */
:root {
  /* Colors */
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-dark: #4338CA;
  --secondary: #10B981;
  --accent: #F59E0B;
  --danger: #EF4444;
  
  --background: #0F172A;
  --surface: #1E293B;
  --surface-light: #334155;
  
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  
  --border: #334155;
  --border-light: #475569;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-gold: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.3);
  
  /* Spacing */
  --container-max: 1280px;
  
  /* Animation */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== */
/* Reset & Base         */
/* ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== */
/* Animated Background  */
/* ==================== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--background);
}

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

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.gradient-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

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

.floating-shapes .shape {
  position: absolute;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  opacity: 0.1;
  animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 0s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 15%;
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  animation-delay: -3s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  border-radius: 50%;
  animation-delay: -6s;
}

.shape-4 {
  width: 90px;
  height: 90px;
  top: 40%;
  right: 30%;
  border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  animation-delay: -9s;
}

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

/* ==================== */
/* Navigation           */
/* ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.5rem;
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.logo-image {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  transition: var(--transition);
}

.nav-logo:hover .logo-image {
  transform: scale(1.1) rotate(5deg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

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

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

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

.btn-secondary:hover {
  background: var(--border-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-light);
}

.btn-glow {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.6);
  }
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.btn-block {
  width: 100%;
}

/* ==================== */
/* Hero Section         */
/* ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-icon {
  animation: bounce 2s infinite;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.text-animate {
  display: inline-block;
  animation: textReveal 1s ease-out;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.highlight {
  color: var(--secondary);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-item i {
  color: var(--secondary);
}

.developer-credit {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.developer-credit p {
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.developer-credit a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.developer-credit a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.developer-name {
  font-size: 1rem;
}

.developer-credit-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.875rem;
}

.developer-credit-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.developer-credit-footer a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
}

.lottie-container {
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  animation: cardFloat 4s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

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

.card-2 {
  top: 50%;
  right: 0;
  animation-delay: -1.5s;
}

.card-3 {
  bottom: 10%;
  left: 10%;
  animation-delay: -3s;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.875rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-light);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-light);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==================== */
/* Upload Section       */
/* ==================== */
.upload-section {
  padding: 100px 0;
  position: relative;
}

.upload-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Upload Area */
.upload-area {
  background: var(--surface);
  border: 3px dashed var(--border-light);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.upload-area:hover::before,
.upload-area.dragover::before {
  opacity: 0.05;
}

.upload-content {
  position: relative;
  z-index: 1;
}

/* Lottie Player Styling */
.hero-visual lottie-player {
  display: block;
  margin: 0 auto;
}

.upload-icon-wrapper lottie-player {
  display: block;
}

.progress-lottie lottie-player {
  display: block;
  margin: 0 auto;
}

.success-animation lottie-player {
  display: block;
  margin: 0 auto;
}

/* Lottie Player Base */
lottie-player {
  display: block;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* File List */
.file-list {
  width: 100%;
  margin-top: 20px;
}

.file-count {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--surface-light);
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text);
}

.file-count i {
  color: var(--primary);
  font-size: 1.2rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.file-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.file-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 12px;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.file-remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-light);
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.file-remove:hover {
  background: var(--danger);
  color: white;
}

.upload-icon-wrapper {
  margin-bottom: 24px;
}

.upload-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.upload-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.upload-formats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.format-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-light);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.format-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.upload-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.upload-limit {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Conversion Options */
.conversion-options {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  animation: slideUp 0.5s ease-out;
}

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

.selected-files {
  margin-bottom: 32px;
}

.format-selector {
  margin-bottom: 32px;
}

.selector-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 16px;
}

.format-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.format-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.format-tab:hover {
  background: var(--border-light);
}

.format-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.format-select {
  width: 100%;
  padding: 16px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.format-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.quality-settings {
  background: var(--surface-light);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.quality-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.quality-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.quality-toggle label {
  font-weight: 600;
  cursor: pointer;
}

.quality-note {
  color: var(--text-light);
  font-size: 0.875rem;
}

.btn-convert {
  width: 100%;
  background: var(--gradient-primary);
  border: none;
  font-size: 1.2rem;
  padding: 20px;
}

/* Progress Area */
.progress-area {
  background: var(--surface);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--border);
}

.progress-lottie {
  margin-bottom: 32px;
}

.progress-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.progress-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.progress-bar {
  flex: 1;
  height: 12px;
  background: var(--background);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 10px;
  position: relative;
  transition: width 0.5s ease-out;
}

.progress-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressGlow 2s infinite;
}

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

.progress-percentage {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.step.active {
  color: var(--primary);
}

.step-icon {
  width: 40px;
  height: 40px;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.step.active .step-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
}

/* Download Area */
.download-area {
  background: var(--surface);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--border);
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-animation {
  margin-bottom: 24px;
}

.download-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.download-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--surface-light);
  border-radius: 16px;
}

.download-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.download-stat i {
  font-size: 1.5rem;
  color: var(--primary);
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.share-options {
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.share-btn {
  width: 44px;
  height: 44px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ==================== */
/* Features Section     */
/* ==================== */
.features-section {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.feature-link:hover {
  gap: 12px;
}

/* ==================== */
/* Formats Section      */
/* ==================== */
.formats-section {
  padding: 100px 0;
  background: var(--surface);
}

.formats-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.format-category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.format-category-tab i {
  font-size: 1.5rem;
}

.format-category-tab:hover {
  background: var(--surface-light);
  transform: translateY(-4px);
}

.format-category-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.format-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.format-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.format-icon {
  font-size: 2rem;
  color: var(--primary);
}

.format-item span {
  font-weight: 600;
}

/* ==================== */
/* Pricing Section      */
/* ==================== */
.pricing-section {
  padding: 100px 0;
}

.pricing-card {
  max-width: 450px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

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

.pricing-header {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.currency {
  font-size: 2rem;
  color: var(--text-light);
}

.amount {
  font-size: 5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.period {
  font-size: 1.25rem;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-muted);
}

.pricing-features li i {
  color: var(--secondary);
}

.pricing-note {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 16px;
}

/* ==================== */
/* Footer               */
/* ==================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-logo-image {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--surface-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

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

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

/* ==================== */
/* Responsive           */
/* ==================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
    height: 400px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .trust-badges {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .upload-area {
    padding: 40px 20px;
  }
  
  .conversion-options,
  .progress-area,
  .download-area {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .stat-divider {
    width: 100%;
    height: 1px;
  }
  
  .upload-buttons,
  .download-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
