/* 
 * Download In PDF - Main Stylesheet
 * Custom Premium SaaS Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #FF3B30;
  --primary-hover: #E03026;
  --primary-light: rgba(255, 59, 48, 0.1);
  --secondary: #111827;
  --secondary-light: #1F2937;
  --accent: #3B82F6;
  --accent-light: rgba(59, 130, 246, 0.1);
  --bg: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text: #1F2937;
  --text-muted: #6B7280;
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.1);
  --border: rgba(226, 232, 240, 0.8);
  --border-focus: rgba(255, 59, 48, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.9);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}

.logo img {
  height: 32px;
  width: auto;
}

.logo-text-red {
  color: var(--primary);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  cursor: pointer;
}

.nav-link:hover, .nav-item:hover .nav-link {
  color: var(--primary);
}

.nav-link svg {
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: calc(100vw - 3rem);
  max-width: 1200px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1100;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-column-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-link {
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-weight: 500;
}

.mega-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mega-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Action Button in Nav */
.header-btn {
  background: var(--primary);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(255, 59, 48, 0.15);
}

.header-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(255, 59, 48, 0.25);
}

/* Hamburger Mobile Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px 0;
  background: radial-gradient(circle at top right, rgba(255, 59, 48, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.03), transparent 30%);
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-intro {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 15px rgba(255, 59, 48, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 59, 48, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  max-width: 500px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
}

.trust-item svg {
  color: var(--success);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 3D Animated Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 450px;
}

.animation-canvas {
  position: relative;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.anim-icon {
  position: absolute;
  width: 90px;
  height: 110px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-xl), 0 0 20px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.anim-icon svg {
  width: 42px;
  height: 42px;
  margin-bottom: 0.5rem;
}

.icon-pdf {
  top: 10%;
  left: 10%;
  background: linear-gradient(135deg, #FFF5F5, #FFE3E3);
  color: var(--primary);
  border: 1.5px solid rgba(255, 59, 48, 0.2);
  animation: float-pdf 7s ease-in-out infinite;
}

.icon-word {
  bottom: 10%;
  right: 10%;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  color: var(--accent);
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  animation: float-word 8s ease-in-out infinite;
}

.icon-jpg {
  top: 45%;
  left: 65%;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  color: var(--success);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  animation: float-jpg 9s ease-in-out infinite;
}

.conversion-arrows {
  position: absolute;
  top: 40%;
  left: 35%;
  width: 70px;
  height: 70px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg), 0 0 15px rgba(255, 59, 48, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  animation: rotate-arrows 12s linear infinite;
  z-index: 5;
}

.conversion-arrows svg {
  width: 32px;
  height: 32px;
}

/* Animations */
@keyframes float-pdf {
  0% { transform: translateY(0) rotate(5deg) scale(1); }
  50% { transform: translateY(-20px) rotate(-3deg) scale(1.03); box-shadow: 0 30px 40px rgba(255, 59, 48, 0.15); }
  100% { transform: translateY(0) rotate(5deg) scale(1); }
}

@keyframes float-word {
  0% { transform: translateY(0) rotate(-8deg) scale(1); }
  50% { transform: translateY(22px) rotate(4deg) scale(1.05); box-shadow: 0 30px 45px rgba(59, 130, 246, 0.15); }
  100% { transform: translateY(0) rotate(-8deg) scale(1); }
}

@keyframes float-jpg {
  0% { transform: translateY(0) rotate(12deg) scale(1); }
  50% { transform: translateY(-18px) rotate(-8deg) scale(1.04); box-shadow: 0 30px 40px rgba(16, 185, 129, 0.15); }
  100% { transform: translateY(0) rotate(12deg) scale(1); }
}

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

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Popular Tools Section */
.popular-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: rgba(255, 59, 48, 0.3);
  box-shadow: 0 15px 30px rgba(255, 59, 48, 0.08);
}

.tool-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tool-card:hover .tool-icon-wrapper {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.5;
}

.tool-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-card:hover .tool-action svg {
  transform: translateX(3px);
}

.tool-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.2); }
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Category Colors */
.icon-cat-converter {
  background-color: rgba(255, 59, 48, 0.08);
  color: var(--primary);
}
.icon-cat-org {
  background-color: rgba(59, 130, 246, 0.08);
  color: var(--accent);
}
.icon-cat-compress {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success);
}
.icon-cat-security {
  background-color: rgba(107, 114, 128, 0.08);
  color: var(--secondary);
}
.icon-cat-edit {
  background-color: rgba(245, 158, 11, 0.08);
  color: #F59E0B;
}
.icon-cat-ocr {
  background-color: rgba(139, 92, 246, 0.08);
  color: #8B5CF6;
}

/* All Tools Section */
.all-tools-section {
  padding: 80px 0;
  background-color: var(--bg);
}

.search-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: center;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

.filter-pill.active.pill-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.tool-not-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: none;
}

/* Why Choose Section */
.why-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.feature-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: var(--shadow-lg);
  background: #ffffff;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How It Works Section */
.how-section {
  padding: 80px 0;
  background-color: var(--bg);
}

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

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-title);
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.25);
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item[open] {
  background: #ffffff;
  border-color: rgba(255, 59, 48, 0.2);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-family: var(--font-title);
  color: var(--secondary);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tool Interface Structure */
.tool-interface-section {
  padding: 120px 0 60px 0;
  background: radial-gradient(circle at top right, rgba(255, 59, 48, 0.03), transparent 30%);
}

.tool-interface-container {
  max-width: 900px;
  margin: 0 auto;
}

.tool-interface-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-bottom: 3rem;
}

.tool-interface-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-interface-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tool-interface-title svg {
  width: 24px;
  height: 24px;
}

.tool-interface-title h2 {
  font-size: 1.3rem;
}

.tool-status-badge {
  padding: 0.25rem 0.75rem;
  background: var(--success-light);
  color: var(--success);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* Upload Area (Drag & Drop) */
.upload-dropzone {
  padding: 5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 0 0 16px 16px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.upload-dropzone:hover .upload-icon-circle {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(255, 59, 48, 0.1);
}

.upload-dropzone h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.upload-dropzone p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.upload-btn {
  background: var(--secondary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  pointer-events: none; /* Let parent trigger input */
}

/* Preview / Queue Section */
.upload-preview-area {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: none;
}

.preview-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preview-file-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

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

.preview-file-icon {
  color: var(--primary);
}

.preview-file-details {
  display: flex;
  flex-direction: column;
}

.preview-file-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.preview-file-remove {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
}

.preview-file-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

.preview-options-panel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.preview-options-inputs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.option-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.option-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
}

.option-input:focus {
  border-color: var(--primary);
}

/* Processing / Progress Area */
.processing-area {
  padding: 4rem 2rem;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  width: 70px;
  height: 70px;
  border: 4px solid var(--primary-light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

.progress-bar-container {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem auto;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s linear;
}

.processing-status-text {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.processing-percentage {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

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

/* Download / Success Area */
.success-area {
  padding: 4rem 2rem;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.success-icon-circle svg {
  width: 40px;
  height: 40px;
}

.success-area h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-area p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-download {
  background: var(--success);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download:hover {
  background: #0D9488;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-reset {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-reset:hover {
  background: #F1F5F9;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: #CBD5E1;
}

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

/* SEO Content Styling on Tool Pages */
.seo-content-section {
  padding: 60px 0 100px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.seo-article {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
}

.seo-article h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem 0;
  color: var(--secondary);
}

.seo-article h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem 0;
  color: var(--secondary);
}

.seo-article p {
  margin-bottom: 1.5rem;
}

.seo-article ul, .seo-article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.seo-article li {
  margin-bottom: 0.5rem;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.seo-mini-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--bg);
}

.seo-mini-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.seo-mini-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Info Pages (About, Contact, Privacy, Disclaimer) */
.info-page-section {
  padding: 140px 0 100px 0;
}

.info-container {
  max-width: 900px;
  margin: 0 auto;
}

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

.info-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.info-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  background: #ffffff;
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.info-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem 0;
}

.info-content p {
  margin-bottom: 1.5rem;
}

.info-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.info-content li {
  margin-bottom: 0.5rem;
}

/* Contact Form Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-card-icon {
  background: var(--primary-light);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-card-details p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.contact-form-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

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

.form-submit-btn {
  background: var(--primary);
  color: #ffffff;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

/* Footer */
.site-footer {
  background-color: var(--secondary);
  color: #E5E7EB;
  position: relative;
}

.footer-top-border {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
  width: 100%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #9CA3AF;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  transition: var(--transition);
}

.social-icon-btn:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

.social-facebook:hover { background-color: #1877F2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.4); }
.social-x:hover { background-color: #000000; box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); }
.social-instagram:hover { background-color: #E4405F; box-shadow: 0 0 15px rgba(228, 64, 95, 0.4); }
.social-linkedin:hover { background-color: #0A66C2; box-shadow: 0 0 15px rgba(10, 102, 194, 0.4); }

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: #9CA3AF;
  display: inline-flex;
  align-items: center;
  position: relative;
}

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

.footer-link:hover {
  color: #ffffff;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1F2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9CA3AF;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust {
    justify-items: start;
    text-align: left;
  }
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 60px;
  }
  .hamburger {
    display: flex;
  }
  
  /* Mobile Navigation Menu */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }
  
  /* Mobile Mega Menu */
  .mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
    display: none; /* Toggled via JS on click in mobile */
  }
  
  .nav-item.active .mega-menu {
    display: grid;
  }
  
  .mega-column-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Hero typography */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-intro {
    font-size: 1.05rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .seo-card-grid {
    grid-template-columns: 1fr;
  }
  
  .info-content {
    padding: 1.5rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
    padding: 1rem;
  }
  .faq-answer {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Active states on Hamburger */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (max-width: 580px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-trust {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .tool-interface-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
  }
  .upload-preview-area {
    padding: 1.25rem;
  }
  .preview-file-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .preview-file-remove {
    align-self: flex-end;
  }
  .preview-options-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .preview-options-inputs {
    width: 100%;
  }
  .option-group {
    width: 100%;
  }
  .option-input {
    width: 100%;
  }
}
