/* style.css - VKrDownloader Professional Design */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --accent: #ec4899;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  --dark-1: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --dark-4: #475569;

  --light-1: #f8fafc;
  --light-2: #f1f5f9;
  --light-3: #e2e8f0;
  --light-4: #cbd5e1;

  --gray-1: #94a3b8;
  --gray-2: #64748b;
  --gray-3: #475569;

  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-3: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --gradient-4: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Increased scroll padding to prevent jumping */
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-sans);
  background: var(--dark-1);
  color: var(--light-1);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-1);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.logo-particle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: particle-rotate 3s linear infinite;
}

.logo-particle:nth-child(2) {
  animation-delay: 0.5s;
  border-color: var(--secondary);
}

.logo-particle:nth-child(3) {
  animation-delay: 1s;
  border-color: var(--accent);
}

@keyframes particle-rotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.preloader-logo span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-text {
  font-size: 1.2rem;
  color: var(--gray-1);
  animation: pulse 2s infinite;
}

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

/* Background Effects */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}

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

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-1);
  filter: blur(40px);
  opacity: 0.1;
  animation: float 20s infinite linear;
}

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

.fe-2 {
  width: 400px;
  height: 400px;
  top: 60%;
  right: 10%;
  background: var(--gradient-2);
  animation-delay: 5s;
}

.fe-3 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 20%;
  background: var(--gradient-3);
  animation-delay: 10s;
}

.fe-4 {
  width: 350px;
  height: 350px;
  top: 30%;
  right: 20%;
  background: var(--gradient-4);
  animation-delay: 15s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(100px, 100px) rotate(90deg);
  }
  50% {
    transform: translate(0, 200px) rotate(180deg);
  }
  75% {
    transform: translate(-100px, 100px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Main Container */
.main-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

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

.navbar {
  padding: 0 2rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  animation: logo-pulse 2s infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6);
  }
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}

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

.logo-secondary {
  color: var(--light-1);
}

.nav-menu {
  display: flex;
  gap: 2px;
  margin: 0 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--light-3);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-link::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: var(--transition-slow);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
  font-size: 0.9rem;
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-1);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
}

.btn-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gradient-2);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  color: var(--light-1);
  cursor: pointer;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  padding: 160px 2rem 100px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: slide-up 0.8s ease-out;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-badge i {
  color: var(--primary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  color: var(--light-1);
}

.hero-title-highlight {
  position: relative;
  display: inline-block;
}

.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.title-underline {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
  transform: scaleX(0.8);
  animation: underline-grow 1s ease-out 0.5s forwards;
}

@keyframes underline-grow {
  to {
    transform: scaleX(1);
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* Download Card */
.download-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  animation: card-float 6s ease-in-out infinite;
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.download-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 100px rgba(99, 102, 241, 0.1);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--light-1);
}

.card-subtitle {
  color: var(--gray-1);
  font-size: 0.95rem;
}

.card-body {
  margin-bottom: 2rem;
}

.input-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
  z-index: 2;
}

.input-field {
  width: 100%;
  padding: 18px 20px 18px 55px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--light-1);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background: rgba(15, 23, 42, 0.9);
}

.input-field::placeholder {
  color: var(--gray-2);
}

.input-actions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.input-clear,
.input-paste {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-3);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-clear:hover,
.input-paste:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
  justify-content: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--light-3);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.tag i {
  font-size: 1rem;
}

.download-button {
  width: 100%;
  padding: 18px 30px;
  background: var(--gradient-1);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.download-button::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: var(--transition-slow);
}

.download-button:hover::before {
  left: 100%;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.download-button:active {
  transform: translateY(0);
}

.button-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button-arrow {
  animation: arrow-bounce 2s infinite;
}

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

.card-footer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  animation: fade-in 1s ease-out 0.8s both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-1);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  animation: slide-in 0.8s ease-out 0.3s both;
}

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

.visual-container {
  position: relative;
  width: 100%;
  height: 500px;
}

.visual-card {
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.visual-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.vc-1 {
  top: 0;
  left: 0;
  animation: float-card-1 8s ease-in-out infinite;
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.2);
}

.vc-2 {
  top: 50px;
  right: 0;
  animation: float-card-2 10s ease-in-out infinite;
  background: rgba(24, 119, 242, 0.1);
  border-color: rgba(24, 119, 242, 0.2);
}

.vc-3 {
  bottom: 0;
  left: 50px;
  animation: float-card-3 9s ease-in-out infinite;
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.2);
}

.vc-4 {
  bottom: 100px;
  right: 100px;
  animation: float-card-4 11s ease-in-out infinite;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

@keyframes float-card-1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(20px, -20px) rotate(5deg);
  }
}

@keyframes float-card-2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

@keyframes float-card-3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(15px, 15px) rotate(3deg);
  }
}

@keyframes float-card-4 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-15px, -15px) rotate(-3deg);
  }
}

.visual-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.vc-1 .visual-icon {
  color: #ff0000;
}
.vc-2 .visual-icon {
  color: #1877f2;
}
.vc-3 .visual-icon {
  color: #e1306c;
}
.vc-4 .visual-icon {
  color: #10b981;
}

.visual-text {
  color: var(--light-1);
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

/* Loading Animation */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.loading-content {
  text-align: center;
  max-width: 500px;
  padding: 2rem;
}

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

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spinner-rotate 2s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--primary);
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  border-right-color: var(--secondary);
  animation-delay: 0.5s;
}

.spinner-ring:nth-child(3) {
  border-bottom-color: var(--accent);
  animation-delay: 1s;
}

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

.spinner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--gradient-1);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.loading-text {
  margin-bottom: 2rem;
}

.text-line {
  display: block;
  font-size: 1.2rem;
  color: var(--light-1);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: text-fade 1.5s infinite;
}

.line-1 {
  animation-delay: 0s;
}
.line-2 {
  animation-delay: 0.5s;
}
.line-3 {
  animation-delay: 1s;
}

@keyframes text-fade {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.loading-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: visible;
  position: relative;
  margin-top: 1rem;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 4px;
  /* </CHANGE> Removed animation, now controlled by JavaScript */
  transition: width 0.3s ease-out;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Added progress percentage text styles */
.loading-progress-text {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Results Container */
.results-container {
  position: relative;
  display: none;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto; /* Changed from 100px auto 50px */
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03); /* Changed background */
  border-radius: 20px; /* Changed border radius */
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  /* Prevent layout shift */
  scroll-margin-top: 100px; /* Changed from original */
  animation: slide-up 0.6s ease-out;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--light-1);
  font-size: 1.5rem;
  font-weight: 700;
}

.results-title i {
  color: var(--primary);
}

.results-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  color: var(--light-1);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.results-content {
  padding: 2rem;
}

.video-preview-section {
  margin-bottom: 3rem;
}

.video-preview {
  width: 100%;
  height: 400px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.video-preview-thumbnail {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.video-preview-thumbnail:hover {
  transform: scale(1.02);
}

.play-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}

.play-overlay:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}

.play-overlay i {
  font-size: 4rem;
  color: var(--primary);
  transition: var(--transition);
}

.play-overlay span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-overlay:hover i {
  color: var(--light-1);
  transform: scale(1.2);
}

.video-player-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.8);
  color: var(--gray-1);
}

.video-preview-placeholder i {
  font-size: 4rem;
  opacity: 0.5;
}

.video-preview-placeholder p {
  font-size: 1.2rem;
  opacity: 0.7;
}

.video-info {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.video-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-1);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-1);
  font-size: 0.95rem;
}

.meta-item i {
  color: var(--primary);
  font-size: 1rem;
}

.video-description {
  color: var(--light-3);
  line-height: 1.7;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 10px;
}

.video-description::-webkit-scrollbar {
  width: 6px;
}

.video-description::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.video-description::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.download-section {
  margin-top: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-1);
  font-size: 1.3rem;
  font-weight: 600;
}

.section-header h4 i {
  color: var(--primary);
}

.format-filter {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--gray-1);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
}

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

.format-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.format-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  transition: var(--transition-slow);
}

.format-card:hover::before {
  transform: translateX(100%);
}

.format-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.format-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.format-quality {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--light-1);
}

.format-size {
  background: rgba(245, 158, 11, 0.1);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.format-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--gray-1);
  font-size: 0.9rem;
}

.format-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.format-details i {
  color: var(--primary);
  font-size: 0.8rem;
}

.download-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.download-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: var(--transition-slow);
}

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

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.download-btn i {
  margin-right: 8px;
}

.direct-url-section {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}

.url-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.url-header h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-1);
  font-size: 1.1rem;
  font-weight: 600;
}

.url-header h5 i {
  color: var(--primary);
}

.url-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--light-1);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.url-copy:hover {
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-2px);
}

.url-input-container {
  position: relative;
}

.url-input-container input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--light-1);
  font-family: monospace;
  font-size: 0.9rem;
  transition: var(--transition);
}

.url-input-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Search Results */
.search-results-container {
  display: none;
  max-width: 1400px;
  margin: 100px auto 50px;
  animation: slide-up 0.6s ease-out;
}

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

.search-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--light-1);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.search-header h2 i {
  color: var(--primary);
}

.search-stats {
  color: var(--gray-1);
  font-size: 1.1rem;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.search-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.search-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.search-thumbnail {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.search-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.search-card:hover .search-thumbnail img {
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.search-content {
  padding: 1.5rem;
}

.search-title {
  color: var(--light-1);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-1);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.search-channel i {
  color: var(--primary);
  font-size: 0.8rem;
}

.search-desc {
  color: var(--gray-2);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-actions {
  display: flex;
  gap: 10px;
}

.search-download-btn,
.search-preview-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-download-btn {
  background: var(--gradient-1);
  color: white;
}

.search-preview-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.search-preview-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.search-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--light-1);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Features Section */
.features-section {
  padding: 100px 2rem;
  position: relative;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.title-text {
  background: linear-gradient(135deg, var(--light-1) 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-underline {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-1);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.feature-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 100px rgba(99, 102, 241, 0.1);
}

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

.icon-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  z-index: 2;
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: var(--radius-lg);
  filter: blur(20px);
  opacity: 0.3;
  z-index: 1;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-1);
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--gray-1);
  line-height: 1.7;
}

/* How It Works */
.how-it-works {
  padding: 100px 2rem;
  background: rgba(15, 23, 42, 0.3);
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  position: relative;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.step:hover .step-icon {
  background: var(--gradient-1);
  color: white;
  transform: scale(1.1);
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light-1);
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--gray-1);
  line-height: 1.6;
}

.step-connector {
  flex: 0 0 100px;
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.connector-line {
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s ease;
}

.step:hover ~ .step-connector .connector-line {
  transform: scaleX(1);
}

.connector-arrow {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.step:hover ~ .step-connector .connector-arrow {
  opacity: 1;
}

/* Platforms Section */
.platforms-section {
  padding: 100px 2rem;
}

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

.platform-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.platform-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.platform-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.youtube {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
}
.facebook {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
}
.instagram {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
}
.twitter {
  background: rgba(29, 161, 242, 0.1);
  color: #1da1f2;
}
.tiktok {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}
.globe {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.platform-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-1);
  margin-bottom: 0.5rem;
}

.platform-card p {
  color: var(--gray-1);
  margin-bottom: 1rem;
}

.platform-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--gradient-1);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
  padding: 100px 2rem;
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-desc {
  font-size: 1.125rem;
  color: var(--gray-1);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.cta-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--light-1);
  font-size: 1rem;
  transition: var(--transition);
}

.cta-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cta-button {
  padding: 16px 30px;
  background: var(--gradient-1);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-desc {
  color: var(--gray-1);
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-1);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gradient-1);
  transform: translateY(-5px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.links-column h4 {
  color: var(--light-1);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.links-column a {
  display: block;
  color: var(--gray-1);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.links-column a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-1);
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: var(--secondary);
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gray-2);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .visual-container {
    height: 400px;
  }
}

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

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .steps-container {
    flex-direction: column;
    gap: 4rem;
  }

  .step-connector {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar,
  .hero-section,
  .features-section,
  .how-it-works,
  .platforms-section,
  .cta-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .features-grid,
  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .formats-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .format-filter {
    justify-content: center;
  }

  .cta-form {
    flex-direction: column;
  }

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

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .download-card {
    padding: 1.5rem;
  }

  .visual-card {
    width: 140px;
    height: 140px;
  }

  .card-footer {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}

.iframe-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.iframe-section h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--light-1);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.iframe-section h4 i {
  color: var(--primary);
  font-size: 1.2rem;
}

.iframe-section .section-subtitle {
  color: var(--gray-1);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.iframe-buttons-container {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.iframe-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.iframe-button-wrapper {
  text-align: center;
  transition: var(--transition);
}

.iframe-button-wrapper:hover {
  transform: translateY(-5px);
}

.iframe-button-wrapper iframe {
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  display: block;
  width: 100% !important;
  min-width: 180px !important;
  max-height: 50px !important;
  height: 50px !important;
  overflow: hidden !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.iframe-button-wrapper:hover iframe {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.iframe-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--light-1);
  font-size: 0.95rem;
  font-weight: 600;
}

.iframe-label i {
  color: var(--primary);
  font-size: 1rem;
}

/* Search views styling */
.search-views {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-2);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.search-views i {
  color: var(--primary);
  font-size: 0.85rem;
}

/* Light theme adjustments for iFrame section */
[data-theme="light"] .iframe-buttons-container {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .iframe-label {
  color: var(--dark-1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .iframe-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .iframe-button-wrapper iframe {
    min-width: 150px !important;
    height: 45px !important;
  }
}

@media (max-width: 480px) {
  .iframe-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* Fixed audio player styles for better compatibility */
.audio-player-element {
  width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.audio-player-element::-webkit-media-controls-panel {
  background: rgba(255, 255, 255, 0.1);
}

.audio-preview-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.audio-preview-header i {
  font-size: 1.2rem;
}

/* Improved results container scroll behavior */
.results-container {
  position: relative;
  display: none;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto; /* Changed from 100px auto 50px */
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03); /* Changed background */
  border-radius: 20px; /* Changed border radius */
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  /* Prevent layout shift */
  scroll-margin-top: 100px; /* Changed from original */
  animation: slide-up 0.6s ease-out;
}
