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

:root {
  --bg-primary: #060913;
  --bg-secondary: #0b0f19;
  --bg-card: rgba(17, 22, 37, 0.7);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.15);
  --error: #ef4444;
  --error-glow: rgba(239, 68, 68, 0.15);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  font-family: var(--font-sans);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient background radial lights */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 10%;
  left: -100px;
}

body::after {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: 20%;
  right: -100px;
}

/* 1. Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: rgba(6, 9, 19, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-smooth);
}

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

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: var(--transition-smooth);
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 4px;
  transition: var(--transition-bounce);
}

/* hamburger transformations when active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 2. Main Content & Hero Section */
.main-layout {
  flex: 1;
  padding-top: 72px; /* space for sticky header */
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-secondary);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* 3. Converter Card Styling */
.converter-card {
  width: 100%;
  max-width: 580px;
  background-color: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.converter-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.screen {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.98) translateY(10px);
  pointer-events: none;
  position: absolute;
  inset: 40px;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}

/* Screen 1: Upload Dropzone styling */
.upload-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  margin-bottom: 24px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.01);
  transition: var(--transition-bounce);
  position: relative;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--accent);
  background-color: rgba(6, 182, 212, 0.03);
  box-shadow: 0 0 30px var(--accent-glow);
}

.upload-area.drag-over .upload-icon {
  transform: scale(1.15) translateY(-6px);
}

.upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition-bounce);
}

.upload-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
}

.upload-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.5;
}

#file-input {
  display: none;
}

/* Universal Button Design */
.btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 6px 20px -4px var(--primary-glow);
}

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

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

/* Screen 2: Processing styling */
.loader-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 32px;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.02);
  border-top-color: var(--primary);
  border-left-color: var(--accent);
  animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.loader-inner-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.01);
  border-bottom-color: var(--accent);
  animation: spin-reverse 1.8s linear infinite;
}

.loader-icon {
  z-index: 2;
  animation: pulse-icon 2s ease-in-out infinite;
}

.loader-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
}

.progress-info {
  text-align: center;
  margin-bottom: 24px;
}

.progress-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 20px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Screen 3: Success styling */
.success-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.checkmark-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--success-glow);
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.checkmark-container svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--success);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-check 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.success-filename {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  word-break: break-all;
  max-width: 90%;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.stat-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.stat-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.pulse-glow {
  position: relative;
}

.pulse-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 0 15px var(--primary-glow);
  animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -1;
}

/* 4. Features Section Grid */
.section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.feature-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-badge svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 5. Security Focus Banner Section */
.security-section {
  padding: 40px 24px;
}

.security-banner {
  background: linear-gradient(135deg, rgba(17, 22, 37, 0.8) 0%, rgba(10, 15, 28, 0.8) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.security-banner-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.security-banner-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
}

.security-banner-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.security-banner-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
}

/* 6. FAQ Accordion Section */
.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: var(--border-hover);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active FAQ Item states */
.faq-item.active {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(99, 102, 241, 0.2);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active .faq-content {
  max-height: 200px; /* arbitrary height to slide into */
  padding-bottom: 20px;
}

/* 7. Centered Password Modal (Responsive Desktop/Mobile) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .bottom-sheet {
  transform: scale(1) translateY(0);
}

.sheet-handle {
  display: none; /* Only show on actual bottom sheets on mobile devices */
  width: 36px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin: 0 auto 20px;
}

.sheet-header {
  text-align: center;
  margin-bottom: 24px;
}

.sheet-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.sheet-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--warning);
  stroke-width: 2;
}

.sheet-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sheet-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.input-field {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 48px 16px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-field:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.input-field.input-error {
  border-color: var(--error);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.input-toggle-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-toggle-btn:hover {
  color: var(--text-secondary);
}

.input-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.error-message {
  color: var(--error);
  font-size: 12.5px;
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.error-message.show {
  display: flex;
  animation: shake 0.4s ease;
}

.modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.modal-actions .btn-secondary {
  flex: 1;
}

.modal-actions .btn-primary {
  flex: 1.3;
}

/* 8. Footer Styling */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: rgba(6, 9, 19, 0.8);
  padding: 40px 24px;
  margin-top: auto;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

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

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

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; filter: drop-shadow(0 0 6px var(--accent-glow)); }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.97); opacity: 0.4; }
  50% { transform: scale(1.02); opacity: 0.7; }
  100% { transform: scale(0.97); opacity: 0.4; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* 9. Responsiveness Styles */

/* Medium Devices (Tablets, small desktop screens) */
@media (max-width: 992px) {
  h1 {
    font-size: 38px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .security-banner {
    padding: 36px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .security-banner-icon {
    margin: 0 auto;
  }
}

/* Small Devices (Mobile Phones) */
@media (max-width: 768px) {
  body::before, body::after {
    display: none;
  }

  .site-header {
    height: 64px;
  }
  
  .main-layout {
    padding-top: 64px;
  }
  
  .header-container {
    padding: 0 16px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    background-color: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-item {
    font-size: 20px;
  }

  .hero-section {
    padding: 40px 16px 30px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .converter-card {
    padding: 24px;
    border-radius: var(--radius-md);
  }

  .screen {
    inset: 24px;
  }

  .upload-area {
    padding: 36px 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px;
  }

  .security-banner {
    padding: 24px 16px;
  }

  .faq-accordion {
    gap: 12px;
  }

  .faq-trigger {
    padding: 16px;
    font-size: 15px;
  }

  .faq-content {
    padding: 0 16px;
  }

  .faq-item.active .faq-content {
    padding-bottom: 16px;
  }

  /* Transition Password modal to iOS-style bottom sheet layout on mobile screen sizes */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .bottom-sheet {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px 40px;
    transform: translateY(100%);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .modal-overlay.active .bottom-sheet {
    transform: translateY(0);
  }

  .sheet-handle {
    display: block;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
