/* ============================================
   CSS VARIABLES - Light & Dark Theme Support
   ============================================ */
:root {
  /* Light Mode Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border-color: #e2e8f0;
  --header-bg: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.1);
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #334155;
  --header-bg: #1e293b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
  --accent-primary: #60a5fa;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #f472b6;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--header-bg);
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  height: 54px;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.header .logo img {
  display: block;
  width: 80px;
  height: 50px;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.header .logo img:hover {
  transform: scale(1.05);
}

.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header a {
  color: var(--text-primary);
  padding: 8px 16px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: sticky;
}

.header a:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.header a.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: var(--shadow-md);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: rotate(20deg);
}

/* ============================================
   MAIN SECTION
   ============================================ */
.tools-section {
  padding: 30px 24px;
  text-align: center;
  background: var(--gradient-light);
  transition: background 0.3s ease;
}

[data-theme="dark"] .tools-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.main_text {
  text-align: center;
  color: var(--text-primary);
  font-size: clamp(1.rem, 4vw, 1.8rem);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main_text+p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ============================================
   TOOL GROUP LAYOUT
   ============================================ */
.tool-group-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tool-group {
  flex: 1 1 640px;
  min-width: 280px;
}

.tool-group h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.tool-group>p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.sidebar {
  flex: 0 0 300px;
  background-color: var(--bg-secondary);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: fit-content;
}

.sidebar:hover {
  box-shadow: var(--shadow-lg);
}

.sidebar .sub_headings {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.sidebar a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--accent-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  padding-left: 12px;
}

.sidebar a:hover {
  color: var(--accent-secondary);
  border-left-color: var(--accent-primary);
  transform: translateX(4px);
}

/* ============================================
   TOOLS CONTAINER & ITEMS
   ============================================ */
.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  background-color: var(--bg-secondary);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  max-width: fit-content;
    margin: 0 auto;
}

.tools-container:hover {
  box-shadow: var(--shadow-lg);
}

.tool-item {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 14px;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.tool-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tool-item:hover img {
  transform: scale(1.08);
}

.tool-item h3 {
  margin: 8px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.foot-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 40px 24px;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 1200px;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.foot-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.footer-img {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.footer-img img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.footer-img:hover img {
  transform: scale(1.05);
}

.footer-text {
  flex: 1;
  min-width: 240px;
}

.footer-text h3 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

footer {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 48px 24px;
  border-top: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

footer h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 10px;
}

footer a {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

footer a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
  transform: translateX(4px);
  display: inline-block;
}

.footer-top {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 32px;
  gap: 24px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom img {
  max-width: 100px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.footer-bottom img:hover {
  transform: scale(1.08);
}

.footer-bottom-links {
  text-align: right;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .header {
    padding: 12px 16px;
  }

  .header .logo img {
    width: 88px;
  }

  .tools-section {
    padding: 48px 16px;
  }

  .tool-group-container {
    gap: 24px;
  }

  .sidebar {
    flex-basis: 100%;
  }

  .foot-item {
    flex-direction: column;
    text-align: center;
  }

  .footer-img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px;
  }

  .header-right {
    gap: 8px;
  }

  .header a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .header .logo img {
    width: 72px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .tools-section {
    padding: 32px 12px;
  }

  .main_text {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .main_text+p {
    font-size: 0.95rem;
  }

  .tool-group-container {
    flex-direction: column;
    gap: 16px;
  }

  .tool-group {
    flex-basis: 100%;
  }

  .tools-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    padding: 16px;
  }

  .tool-item {
    padding: 14px;
  }

  .tool-item h3 {
    font-size: 0.95rem;
  }

  .tool-item p {
    font-size: 0.8rem;
  }

  .sidebar {
    flex-basis: 100%;
  }

  .foot-item {
    padding: 24px 12px;
    gap: 16px;
    margin: 24px auto;
  }

  .footer-text h3 {
    font-size: 1.3rem;
  }

  .footer-text p {
    font-size: 0.9rem;
  }

  .footer-top {
    justify-content: center;
  }

  .footer-column {
    min-width: 160px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 8px;
    gap: 8px;
  }

  .header .logo img {
    width: 60px;
  }

  .header-right {
    display: none;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .tools-section {
    padding: 24px 10px;
  }

  .main_text {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .main_text+p {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }

  .tools-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .tool-item {
    padding: 10px;
  }

  .tool-item h3 {
    font-size: 0.85rem;
  }

  .tool-item p {
    font-size: 0.7rem;
  }

  .sidebar {
    padding: 16px;
  }

  .sidebar a {
    padding: 10px 0;
    padding-left: 8px;
    font-size: 0.85rem;
  }

  .foot-item {
    padding: 16px 10px;
    gap: 12px;
  }

  .footer-text h3 {
    font-size: 1.1rem;
  }

  .footer-text p {
    font-size: 0.85rem;
  }

  .footer-img img {
    max-width: 240px;
  }

  /* Fix header positioning for dropdown menu */
  .header {
    position: relative;
  }

  /* Mobile menu toggle button */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    margin-left: auto;
    order: 3;
    transition: all 0.2s ease;
  }

  .menu-toggle:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
  }

  /* Hide header-right by default on mobile */
  .header-right {
    display: none !important;
  }

  /* Show menu as dropdown when open */
  .header-right.open {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% + 8px);
    background: var(--bg-secondary);
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    z-index: 200;
    min-width: 200px;
    animation: slideDownMenu 0.2s ease;
  }

  .header-right.open a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
  }

  .header-right.open a:last-child {
    border-bottom: none;
  }

  .header-right.open a:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    padding-left: 20px;
  }

  .header-right.open a.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu styling for nav element (vcf-viewer-editor.html) */
@media (max-width: 480px) {
  nav {
    display: flex !important;
    flex-direction: row;
    gap: 8px;
  }

  nav.open {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% + 8px);
    background: var(--bg-secondary);
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    z-index: 200;
    animation: slideDownMenu 0.2s ease;
  }

  nav.open a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    transition: all 0.2s ease;
  }

  nav.open a:last-child {
    border-bottom: none;
  }

  nav.open a:hover {
    background-color: var(--bg-tertiary);
    padding-left: 20px;
  }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-item {
  animation: fadeIn 0.5s ease-out;
}

/* Smooth theme transition */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}


.tools-container a {
  text-decoration: none;
}





.head-h1 {
  align-items: center;
  background-color: transparent;
  color: #4f4545;
  font-size: 150%;
  margin-bottom: 60px;
  margin-top: 5px;
  border-top: 6px solid #faf3f3;
  border-bottom: 6px solid #faf3f3;
  border-radius: 10px;
  color: #3a230a;
  margin-left: 20%;
  margin-right: 20%;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 40px 20px;
  font-size: 14px;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 40px;
}

footer h3 {
  color: var(--text-primary);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

footer p {
  margin: 8px 0;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 30px;
  text-align: left;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  flex: 1;
  text-align: left;
}

.footer-logo img {
  max-width: 100px;
  height: auto;
  border-radius: 20px;
  transition: transform 0.2s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-links {
  flex: 2;
  text-align: right;
  min-width: 250px;
}

@media (max-width: 768px) {
  footer {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .footer-logo,
  .footer-links {
    text-align: center;
    flex: 1;
  }
}
.faq-section {
  padding: 60px 20px;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-align: center;
}
.faq-item {
  margin-bottom: 24px;
  margin-left: 24%;
  border-radius: 10px;
  margin-right: 24%;
  background-color: var(--bg-primary);
}

@media (max-width: 768px) {
  .faq-item {
    margin-left: 5%;
    margin-right: 5%;
  }
  
}

/* Hide mobile menu toggle by default on larger screens */
.menu-toggle {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HOME PAGE SEO SECTIONS
   ============================================ */

/* ===================== HERO SECTION ===================== */
.hero-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  text-align: center;
  color: white;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: var(--shadow-lg);
}

.hero-section .main_text {
  color: white;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.8;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-btn {
  padding: 14px 32px;
  background-color: white;
  color: var(--accent-primary);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.cta-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn.cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cta-btn.cta-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.trust-line {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===================== FEATURED SNIPPET ===================== */
.featured-snippet {
  padding: 40px 24px;
  margin: 40px auto;
  max-width: 1200px;
}

.snippet-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #f3e8ff 100%);
  border-left: 4px solid var(--accent-primary);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .snippet-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #2e1065 100%);
}

.snippet-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
}

.snippet-box strong {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ===================== TABLE OF CONTENTS ===================== */
.toc-section {
  padding: 40px 24px;
  margin: 40px auto;
  max-width: 1200px;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.toc-section h2 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.toc-list ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.toc-list a {
  display: block;
  padding: 12px 16px;
  background-color: var(--bg-tertiary);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.toc-list a:hover {
  background-color: var(--bg-primary);
  border-left-color: var(--accent-primary);
  transform: translateX(4px);
  color: var(--accent-secondary);
}

/* ===================== INTRO & CONTENT SECTIONS ===================== */
.intro-section,
.why-section,
.how-to-section,
.features-section,
.security-section,
.benefits-section,
.comparison-section,
.use-cases-section,
.conclusion-section {
  padding: 60px 24px;
  margin: 40px auto;
  max-width: 1200px;
}

.intro-section h2,
.why-section h2,
.how-to-section h2,
.features-section h2,
.security-section h2,
.benefits-section h2,
.comparison-section h2,
.use-cases-section h2,
.conclusion-section h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--text-primary);
  border-bottom: 3px solid var(--accent-primary);
  padding-bottom: 16px;
}

.intro-section h3,
.why-section h3,
.how-to-section h3,
.features-section h3,
.security-section h3,
.benefits-section h3,
.use-cases-section h3 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 700;
}

.intro-section p,
.why-section p,
.how-to-section p,
.features-section p,
.security-section p,
.benefits-section p,
.use-cases-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
  padding: 40px 24px;
  margin: 40px auto;
  max-width: 1200px;
}

.cta-box {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  padding: 48px 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  color: white;
}

.cta-box h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.95);
}

/* ===================== SECURITY SECTION ===================== */
.security-section ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.security-section li {
  padding: 16px;
  margin-bottom: 12px;
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent-primary);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.security-section li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* ===================== COMPARISON TABLES ===================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-secondary);
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
}

.comparison-table th {
  padding: 20px;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.comparison-table tbody tr:hover {
  background-color: var(--bg-tertiary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===================== FAQ SECTION ===================== */
.faq-section {
  padding: 60px 24px;
  margin: 40px auto;
  max-width: 1200px;
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 48px;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 3px solid var(--accent-primary);
  padding-bottom: 16px;
}

.faq-item {
  background-color: var(--bg-secondary);
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 700;
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ===================== RELATED TOOLS SECTION ===================== */
.related-tools {
  padding: 60px 24px;
  margin: 40px auto;
  max-width: 1200px;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.related-tools h2 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.related-links p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.related-links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.related-links li {
  background-color: var(--bg-tertiary);
  padding: 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.related-links li:hover {
  background-color: var(--bg-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-links a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.related-links a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* ===================== CONCLUSION SECTION ===================== */
.conclusion-section {
  text-align: center;
}

.conclusion-section h2 {
  font-size: 2.2rem;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.conclusion-section p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 1024px) {
  .intro-section,
  .why-section,
  .how-to-section,
  .features-section,
  .security-section,
  .benefits-section,
  .comparison-section,
  .use-cases-section,
  .conclusion-section,
  .faq-section,
  .related-tools,
  .toc-section,
  .cta-section,
  .featured-snippet {
    padding: 40px 16px;
    margin: 30px auto;
  }

  .hero-section {
    padding: 60px 16px;
  }

  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px;
  }

  .toc-list ul {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 48px 12px;
    margin: 20px auto;
  }

  .hero-section .main_text {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .hero-cta-group {
    gap: 12px;
  }

  .cta-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .intro-section h2,
  .why-section h2,
  .how-to-section h2,
  .features-section h2,
  .security-section h2,
  .benefits-section h2,
  .comparison-section h2,
  .use-cases-section h2 {
    font-size: 1.5rem;
  }

  .intro-section h3,
  .why-section h3,
  .how-to-section h3,
  .features-section h3,
  .security-section h3,
  .benefits-section h3,
  .use-cases-section h3 {
    font-size: 1.2rem;
  }

  .faq-item {
    padding: 16px;
  }

  .faq-item h3 {
    font-size: 1.1rem;
  }

  .faq-item p {
    font-size: 0.95rem;
  }

  .comparison-table {
    font-size: 0.85rem;
    margin: 24px 0;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .cta-box h3 {
    font-size: 1.4rem;
  }

  .cta-box p {
    font-size: 1rem;
  }

  .toc-list ul {
    grid-template-columns: 1fr;
  }

  .final-cta {
    flex-direction: column;
    gap: 12px;
  }

  .cta-btn {
    width: 100%;
  }

  .related-links ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 36px 12px;
    margin: 16px auto;
  }

  .hero-section .main_text {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
  }

  .intro-section,
  .why-section,
  .how-to-section,
  .features-section,
  .security-section,
  .benefits-section,
  .comparison-section,
  .use-cases-section,
  .conclusion-section,
  .faq-section,
  .related-tools,
  .toc-section,
  .cta-section,
  .featured-snippet {
    padding: 24px 12px;
    margin: 16px auto;
  }

  .featured-snippet {
    margin: 16px auto;
  }

  .snippet-box {
    padding: 16px;
  }

  .snippet-box p {
    font-size: 0.95rem;
  }

  .intro-section h2,
  .why-section h2,
  .how-to-section h2,
  .features-section h2,
  .security-section h2,
  .benefits-section h2,
  .comparison-section h2,
  .use-cases-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .intro-section h3,
  .why-section h3,
  .how-to-section h3,
  .features-section h3,
  .security-section h3,
  .benefits-section h3,
  .use-cases-section h3 {
    font-size: 1.05rem;
    margin-top: 20px;
  }

  .intro-section p,
  .why-section p,
  .how-to-section p,
  .features-section p,
  .security-section p,
  .benefits-section p,
  .use-cases-section p {
    font-size: 0.95rem;
  }

  .faq-section h2 {
    font-size: 1.3rem;
  }

  .faq-item {
    padding: 12px;
    margin-bottom: 16px;
  }

  .faq-item h3 {
    font-size: 1rem;
  }

  .faq-item p {
    font-size: 0.9rem;
  }

  .comparison-table {
    font-size: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px;
  }

  .cta-box {
    padding: 24px 16px;
  }

  .cta-box h3 {
    font-size: 1.2rem;
  }

  .cta-box p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .security-section li {
    padding: 12px;
    font-size: 0.9rem;
  }

  .final-cta {
    flex-direction: column;
  }

  .related-links a {
    font-size: 0.95rem;
  }

  .conclusion-section h2 {
    font-size: 1.4rem;
  }

  .conclusion-section p {
    font-size: 0.95rem;
  }
}

/* ============================================
   ANIMATION & EFFECTS
   ============================================ */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-section,
.why-section,
.how-to-section,
.features-section {
  animation: slideInUp 0.6s ease-out;
}

/* Smooth scrolling for table of contents links */
a[href^="#"] {
  scroll-behavior: smooth;
}


.hero-section {
    padding: 50px 24px 0px 24px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 20%);
    opacity: 0.05;
    pointer-events: none;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.03; }
    100% { transform: scale(1.1); opacity: 0.08; }
}

.hero-section h1 {
    font-size: clamp(1rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.cta-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.cta-btn:nth-child(1) {
    background: var(--accent-primary);
    color: white;
    border-color: transparent;
}

.cta-btn:nth-child(1):hover {
    background: var(--accent-secondary);
}

.trust-line {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Common Section Styling */
.about-section, 
.content-section,
.features-section, 
.privacy-section, 
.use-cases-section, 
.how-it-works-section, 
.comparison-section, 
.faq-section, 
.final-cta-section {
    padding: 80px 24px;
    margin-top: 24px!important;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2, 
.content-section
.features-section h2, 
.privacy-section h2, 
.use-cases-section h2, 
.how-it-works-section h2, 
.comparison-section h2, 
.final-cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.about-section p, 
.content-section p, 
.privacy-section p, 
.use-cases-section p, 
.how-it-works-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Blocks */
.feature-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.feature-block h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-block ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.feature-block li {
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
}

.feature-block li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Steps List */
.steps-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step-counter;
}

.steps-list li {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    counter-increment: step-counter;
    transition: all 0.3s ease;
}

.steps-list li:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.02);
}

.steps-list li::after {
    content: counter(step-counter);
    position: absolute;
    top: -12px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

/* Comparison Table */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin: 40px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, 
.comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-tertiary);
    font-weight: 700;
    color: var(--text-primary);
}

.comparison-table tr:hover {
    background: var(--bg-tertiary);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 32px;
    color: white;
    margin-top: 24px;
    text-align: center;
    padding: 80px 24px;
}

.final-cta-section h2, 
.final-cta-section p {
    color: white !important;
}

.final-cta-section .cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.final-cta-section .cta-btn {
    background: white;
    color: var(--accent-primary);
    border: none;
}

.final-cta-section .cta-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-secondary);
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Fixes for dark mode specifically */
[data-theme="dark"] .feature-block {
    background: var(--bg-secondary);
}

[data-theme="dark"] .steps-list li {
    background: var(--bg-secondary);
}
