:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1e2942;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #6366f1;
  --accent-secondary: #d946ef;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #d946ef 100%);
  --success: #10b981;
  --danger: #f43f5e;
  --warning: #f59e0b;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(19, 27, 46, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 25px rgba(99, 102, 241, 0.25);
  --font-sans: 'Outfit', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --accent-primary: #4f46e5;
  --accent-secondary: #c084fc;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #db2777 100%);
  --success: #059669;
  --danger: #e11d48;
  --warning: #d97706;
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
  --shadow-neon: 0 0 25px rgba(79, 70, 229, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Neon Glow Background Accents */
.glow-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: 10%;
  left: 5%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.glow-bg-secondary {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.12) 0%, transparent 70%);
  bottom: 20%;
  right: 5%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

body[data-theme="light"] header {
  background: rgba(248, 250, 252, 0.75);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.logo i {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-primary);
}

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
  transform: rotate(15deg);
  box-shadow: var(--shadow-neon);
}

/* Main */
main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  position: relative;
  z-index: 1;
}

/* Hero */
.hero-section {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
}

.hero-section p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Ad Placement */
.ad-slot {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  margin: 1rem 0;
  opacity: 0.7;
}

/* Converter Card Container */
.converter-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

/* Drop Zone */
.drop-zone {
  border: 3px dashed var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(99, 102, 241, 0.01);
  transition: var(--transition-smooth);
}

.drop-zone:hover, .drop-zone.dragover {
  background: rgba(99, 102, 241, 0.04);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-neon);
}

.drop-zone-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drop-zone:hover .drop-zone-icon {
  transform: translateY(-8px) scale(1.05);
}

.drop-zone-text {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.drop-zone-subtext {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#file-input {
  display: none;
}

/* File Meta Card */
.file-meta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.file-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.file-icon {
  font-size: 2.5rem;
  color: var(--danger);
  filter: drop-shadow(0 2px 8px rgba(244, 63, 94, 0.3));
}

.file-name {
  font-weight: 700;
  font-size: 1.1rem;
  max-width: 450px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.remove-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.remove-btn:hover {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}

/* Options Panel - Unique Custom Sliders & Formats */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.control-panel-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.panel-title {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Custom Format and DPI Selectors */
.format-selector, .dpi-selector {
  display: flex;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.3rem;
  gap: 0.2rem;
}

.format-btn, .dpi-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-align: center;
}

.format-btn.active, .dpi-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

/* Custom Range Slider */
.slider-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.range-slider {
  flex: 1;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px var(--accent-primary);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-secondary);
}

.slider-val {
  font-weight: 700;
  color: var(--accent-secondary);
  font-size: 1.1rem;
  min-width: 50px;
  text-align: right;
}

/* Action Button Container */
.actions-container {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Progress bar styling */
.progress-container {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.progress-bar-wrapper {
  background: var(--bg-primary);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  transition: width 0.3s ease;
}

.progress-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Previews Grid & Unique Interactivity (checkboxes, rotation, selection) */
.preview-section {
  display: none;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.preview-grid-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.preview-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.preview-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.canvas-container {
  aspect-ratio: 3/4;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.canvas-container canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Card Selection Overlay */
.card-select-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

.checkbox-custom {
  position: relative;
  width: 24px;
  height: 24px;
  background: rgba(15, 23, 42, 0.7);
  border: 2px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.checkbox-custom i {
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.preview-card.selected .checkbox-custom {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.preview-card.selected .checkbox-custom i {
  opacity: 1;
}

/* Page Action Hover Toolbars (Rotation, zoom) */
.page-toolbar {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  display: flex;
  gap: 0.8rem;
  z-index: 5;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.canvas-container:hover .page-toolbar {
  bottom: 15px;
}

.toolbar-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.toolbar-btn:hover {
  color: var(--accent-secondary);
}

.preview-meta {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}

.preview-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.download-single-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.download-single-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

/* Info Section (SEO & Timeline) */
.info-section {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 992px) {
  .info-section {
    grid-template-columns: 1fr;
  }
}

.seo-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.seo-content h2 {
  font-size: 2.2rem;
}

.seo-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-secondary);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.step-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.step-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* FAQs Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.98rem;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Sidebar Elements */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.guarantee-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(217, 70, 239, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.guarantee-card i {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guarantee-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.guarantee-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Static Pages Content Layout */
.static-page-container {
  max-width: 850px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
}

.static-page-container h1 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.static-page-container h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1.25rem 0;
}

.static-page-container p, .static-page-container ul {
  margin-bottom: 1.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.static-page-container ul {
  padding-left: 2.5rem;
}

.static-page-container li {
  margin-bottom: 0.5rem;
}

/* Contact Form Grid */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.95rem;
}

.form-control {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-neon);
}

textarea.form-control {
  resize: vertical;
  min-height: 180px;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  margin-top: 6rem;
  padding: 4rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.footer-links-group {
  display: flex;
  gap: 5rem;
}

@media (max-width: 768px) {
  .footer-links-group {
    flex-direction: column;
    gap: 2.5rem;
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-column h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #fff;
  width: 22px;
  height: 22px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

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

/* Tablet & Medium Screen Responsive Enhancements */
@media (max-width: 1024px) {
  /* Navigation Bar */
  .nav-container {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
    text-align: center;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    padding: 0;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 1.5rem 1rem;
  }
  .hero-section h1 {
    font-size: 2.6rem;
    line-height: 1.2;
  }
  .hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
  }
}

/* Mobile Screen Responsive Enhancements */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 0.95rem;
  }

  /* Main Container padding */
  .converter-container {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  /* Drop Zone */
  .drop-zone {
    padding: 3rem 1rem;
  }
  .drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  .drop-zone-text {
    font-size: 1.15rem;
  }
  
  /* File Meta Card */
  .file-meta-card {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .file-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  .file-name {
    font-size: 1rem;
    max-width: 80vw;
    text-align: center;
  }
  
  /* Options Grid spacing */
  .options-grid {
    gap: 1.25rem;
    padding: 1.25rem;
  }
  
  /* Action Buttons */
  .actions-container {
    justify-content: center;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* Preview Section Header */
  .preview-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .preview-grid-controls {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .preview-grid-controls button {
    width: 100%;
  }
  .preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  /* Static Content Pages */
  .static-page-container {
    padding: 2rem 1.25rem;
  }
  .static-page-container h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
  
  /* Footer layout */
  footer {
    padding: 3rem 1rem 1.5rem 1rem;
    margin-top: 4rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
  }
  .footer-brand {
    max-width: 100%;
  }
  .footer-links-group {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .footer-column {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
