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

/* ==========================================================================
   KRUTI DEV FONT
   ========================================================================== */
@font-face {
  font-family: 'Kruti Dev 010';
  src: url('../Fonts/Kruti/krutidev-010.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */
   .drop-zone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.drop-zone.drag-over {
  border-color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 250px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #dc3545;
}

.toast.success {
  background: #28a745;
}

:root {
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hindi: 'Mangal', 'Nirmala UI', 'Latha', 'Inter', sans-serif;

  /* Color Palette (HSL Light Mode) */
  --hue-primary: 215; /* Blue */
  --hue-secondary: 150; /* Green (WhatsApp) */
  --hue-accent: 345; /* Red / Accent */
  
  --primary: HSL(var(--hue-primary), 90%, 55%);
  --primary-hover: HSL(var(--hue-primary), 90%, 45%);
  --primary-light: HSL(var(--hue-primary), 90%, 95%);
  
  --secondary: HSL(var(--hue-secondary), 75%, 45%);
  --secondary-hover: HSL(var(--hue-secondary), 75%, 38%);
  --secondary-light: HSL(var(--hue-secondary), 75%, 94%);
  
  --bg-body: HSL(var(--hue-primary), 20%, 98%);
  --bg-card: HSL(0, 0%, 100%);
  --bg-header: HSL(0, 0%, 100%);
  --bg-sidebar-header: HSL(var(--hue-primary), 15%, 95%);
  
  --text-main: HSL(var(--hue-primary), 30%, 15%);
  --text-muted: HSL(var(--hue-primary), 15%, 45%);
  --text-white: HSL(0, 0%, 100%);
  
  --border-color: HSL(var(--hue-primary), 15%, 90%);
  --border-focus: HSL(var(--hue-primary), 90%, 60%);
  
  --shadow-sm: 0 2px 4px RGBA(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px RGBA(var(--hue-primary), 10%, 20%, 0.06);
  --shadow-lg: 0 12px 24px RGBA(var(--hue-primary), 15%, 20%, 0.1);
  --shadow-inset: inset 0 2px 4px RGBA(0, 0, 0, 0.06);
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1200px;
}

/* Dark Mode Tokens */
.dark-mode {
  --bg-body: HSL(var(--hue-primary), 25%, 8%);
  --bg-card: HSL(var(--hue-primary), 25%, 12%);
  --bg-header: HSL(var(--hue-primary), 25%, 12%);
  --bg-sidebar-header: HSL(var(--hue-primary), 20%, 16%);
  
  --primary: HSL(var(--hue-primary), 85%, 60%);
  --primary-hover: HSL(var(--hue-primary), 85%, 70%);
  --primary-light: HSL(var(--hue-primary), 30%, 18%);
  
  --secondary: HSL(var(--hue-secondary), 70%, 48%);
  --secondary-hover: HSL(var(--hue-secondary), 70%, 55%);
  --secondary-light: HSL(var(--hue-secondary), 30%, 15%);
  
  --text-main: HSL(var(--hue-primary), 20%, 93%);
  --text-muted: HSL(var(--hue-primary), 10%, 65%);
  
  --border-color: HSL(var(--hue-primary), 20%, 20%);
  --border-focus: HSL(var(--hue-primary), 85%, 65%);
  
  --shadow-sm: 0 2px 4px RGBA(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px RGBA(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px RGBA(0, 0, 0, 0.4);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

ul {
  list-style: none;
}

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

/* Wrapper Layout */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Logo and Branding */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--text-main);
}

/* Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Social & Controls */
.header-controls {
  display: flex;
  align-items: center;
    gap: 12px;
  }

  .social-icons {
    display: flex;
    gap: 8px;
  }

  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 0.75rem;
    transition: var(--transition);
  }

  .social-icon:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
  }
}

/* Mobile Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 40px 0 20px;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero-section .gradient-text {
  background: linear-gradient(135deg, var(--primary), HSL(var(--hue-primary), 90%, 40%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 10px;
}

.converter-subtitles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   MAIN LAYOUT GRID
   ========================================================================== */
.main-content-area {
  padding: 20px 0 60px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

/* ==========================================================================
   CONVERTER CARD
   ========================================================================== */
.converter-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mode Options dropdown */
.converter-options-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 15px;
}

.options-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.select-wrapper {
  position: relative;
}

.custom-select {
  appearance: none;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 35px 10px 15px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.7rem;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Converter Text Areas Columns */
.converter-workspaces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 25px;
}

.workspace-col {
  display: flex;
  flex-direction: column;
}

.workspace-header {
  position: relative;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 12px 18px 12px 18px;
  padding-right: 140px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workspace-textarea-wrapper {
  position: relative;
  border-bottom-left-radius: var(--border-radius-md);
  border-bottom-right-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  border-top: none;
  background-color: var(--bg-card);
  overflow: hidden;
}

.converter-textarea {
  width: 100%;
  height: 320px;
  border: none;
  padding: 18px;
  resize: vertical;
  background-color: transparent;
  color: var(--text-main);
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  line-height: 1.8;
  outline: none;
}

/* Apply Kruti Dev font to legacy textarea */
#legacy_text {
  font-family: 'Kruti Dev 010', var(--font-hindi), sans-serif;
}

.converter-textarea::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* Upload input visual overlay */
.btn-upload-file {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.btn-upload-file:hover {
  background-color: #111;
  border-color: #111;
  color: #fff;
}

.file-input-hidden {
  display: none;
}

/* Converter Central Action */
.converter-central-action {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  grid-column: span 2;
}

.btn-convert-action {
  background: linear-gradient(135deg, var(--primary), HSL(var(--hue-primary), 90%, 40%));
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 28px;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-convert-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn-convert-action:active {
  transform: translateY(0);
}

/* Swap button styling */
.btn-swap-control {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-swap-control:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(180deg);
}

/* Workspace Stats */
.workspace-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--bg-body);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-group span {
  font-weight: 700;
  color: var(--text-main);
}

.btn-whatsapp-share {
  background-color: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-whatsapp-share:hover {
  background-color: var(--secondary);
  color: var(--text-white);
  border-color: var(--secondary);
}

/* Workspace Controls (Row of buttons below Stats) */
.workspace-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 10px;
  padding-top: 12px;
}

.btn-control {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-control:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-control.btn-clear:hover {
  background-color: HSL(var(--hue-accent), 90%, 95%);
  border-color: HSL(var(--hue-accent), 85%, 60%);
  color: HSL(var(--hue-accent), 85%, 60%);
}

.btn-control.success {
  background-color: var(--secondary-light) !important;
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-card-header {
  background-color: var(--bg-sidebar-header);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
}

.sidebar-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.sidebar-card-body {
  padding: 20px;
}

/* Sidebar lists / links */
.sidebar-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
}

.sidebar-tool-link::before {
  content: "→";
  color: var(--primary);
  transition: transform 0.2s ease;
}

.sidebar-tool-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.sidebar-tool-link:hover::before {
  transform: translateX(3px);
}

/* Founder Bio Card */
.founder-card {
  text-align: center;
}

.founder-avatar-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-white);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.founder-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 15px;
  padding: 10px;
  background-color: var(--bg-body);
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--primary);
}

.founder-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
}

.founder-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
}

.founder-email {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ==========================================================================
   CONTENT SECTIONS (ABOUT, FAQ, RELATED TOOLS)
   ========================================================================== */
.about-section-wrapper {
  margin-top: 40px;
}

.content-block-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin-bottom: 30px;
}

.content-block-card h2, .content-block-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 15px;
  color: var(--text-main);
}

.content-block-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 10px;
}

.content-block-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.content-block-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 25px;
}

.content-block-card p {
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.7;
}

/* FAQ Accordion Details summary */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

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

.faq-item[open] {
  background-color: var(--bg-card);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: var(--text-main);
}

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

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

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

/* Related tools widget layout */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.tool-badge-card {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.tool-badge-card:hover {
  background-color: var(--bg-card);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tool-badge-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: 800;
  font-size: 1.2rem;
}

.tool-badge-info h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.tool-badge-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-form-wrapper {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

.btn-form-submit {
  background-color: var(--primary);
  color: var(--text-white);
  border: none;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-form-submit:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: auto;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-divider {
  width: 100%;
  max-width: var(--max-width);
  height: 1px;
  background-color: var(--border-color);
  margin: 20px auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 15px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-social .footer-social-text {
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-social a:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background-color: var(--text-main);
  color: var(--bg-card);
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background-color: HSL(var(--hue-accent), 85%, 55%);
  color: var(--text-white);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar-wrapper {
    margin-top: 20px;
  }
  
  .converter-workspaces {
    gap: 20px;
  }
  
  .workspace-controls {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .btn-control.btn-full-width {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .site-header .container {
    height: 70px;
  }
  
  .logo-container img {
    height: 40px;
    width: 40px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 30px;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--border-color);
    z-index: 99;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
  }
  
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  
  .header-controls {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 20px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* Hero section */
  .hero-section {
    padding: 30px 0 15px;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section p {
    font-size: 0.95rem;
  }
  
  .converter-subtitles {
    gap: 10px;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  /* Converter card */
  .converter-card {
    padding: 20px;
  }
  
  .converter-options-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .select-wrapper {
    width: 100%;
  }
  
  .custom-select {
    width: 100%;
  }
  
  /* Textareas stack */
  .converter-workspaces {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .converter-central-action {
    grid-column: span 1;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }
  
  .btn-swap-control {
    transform: rotate(90deg) !important;
    margin: 5px 0;
  }
  
  .btn-swap-control:hover {
    transform: rotate(270deg) !important;
  }
  
  .workspace-controls {
    grid-template-columns: 1fr 1fr;
  }
  
  .btn-control.btn-full-width {
    grid-column: span 2;
  }
  
  /* Workspace header */
  .workspace-header {
    padding: 10px 15px;
    padding-right: 120px;
    font-size: 0.95rem;
  }
  
  .btn-upload-file {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
  
  .converter-textarea {
    height: 250px;
    font-size: 1rem;
    padding: 15px;
  }
  
  /* Content sections */
  .content-block-card {
    padding: 20px;
  }
  
  .content-block-card h2 {
    font-size: 1.5rem;
  }
  
  .content-block-card h3 {
    font-size: 1.1rem;
  }
  
  /* Related tools */
  .related-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
  }
  
  /* Contact form */
  .form-input {
    padding: 10px 14px;
  }
  
  /* Sidebar */
  .sidebar-card-body {
    padding: 15px;
  }
  
  .founder-avatar-wrapper {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }
  
  /* Footer */
  .footer-nav {
    gap: 15px;
  }
  
  .footer-link {
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .footer-social {
    gap: 12px;
  }
  
  .footer-social a {
    width: 34px;
    height: 34px;
  }
  
  .footer-social a img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .site-header .container {
    height: 60px;
  }
  
  .logo-container img {
    height: 36px;
    width: 36px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .main-nav {
    top: 60px;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  .converter-card {
    padding: 15px;
  }
  
  .converter-textarea {
    height: 200px;
    font-size: 0.95rem;
    padding: 12px;
  }
  
  .workspace-header {
    padding: 8px 12px;
    padding-right: 100px;
    font-size: 0.9rem;
  }
  
  .btn-upload-file {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  
  .workspace-stats {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  
  .workspace-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .btn-control.btn-full-width {
    grid-column: span 1;
  }
  
  .btn-control {
    padding: 8px;
    font-size: 0.8rem;
  }
  
  .btn-convert-action {
    font-size: 1rem;
    padding: 12px 20px;
  }
  
  .content-block-card {
    padding: 15px;
  }
  
  .content-block-card h2 {
    font-size: 1.35rem;
  }
  
  .content-block-card h3 {
    font-size: 1rem;
  }
  
  .content-block-card p {
    font-size: 0.9rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
  
  .faq-answer {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }
  
  .related-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-badge-card {
    padding: 12px;
  }
  
  .tool-badge-card .icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .tool-badge-info h4 {
    font-size: 0.85rem;
  }
  
  .tool-badge-info span {
    font-size: 0.7rem;
  }
  
  .form-label {
    font-size: 0.85rem;
  }
  
  .form-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .btn-form-submit {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  .footer-nav {
    gap: 10px;
  }
  
  .footer-link {
    font-size: 0.8rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
  }
}
