/**
 * Landing Page Styles
 * Design based on Flexy Bootstrap Lite palette
 * Full-width marketing page — no sidebar
 */

/* ─── Landing Page Body Override ────────────────────────────── */
body.landing-page {
  background: #fff;
}

/* ─── Landing Navbar ────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.landing-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand-logo {
  width: 250px;
  object-fit: contain;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--fc-body);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fc-primary);
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(165deg, #f6f8fb 0%, #fff 40%, #eef4ff 100%);
}

.min-vh-hero {
  min-height: 520px;
}

/* Decorative shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--fc-primary);
  top: -200px;
  right: -150px;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: var(--fc-secondary);
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--fc-success);
  top: 40%;
  left: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--fc-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--fc-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--fc-muted);
  font-weight: 500;
}

.trust-item i {
  font-size: 1.125rem;
}

/* ─── Hero Visual (right side) ──────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 30px 0;
}

.visual-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  width: 300px;
  position: relative;
  z-index: 2;
}

.visual-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.visual-card-info {
  display: flex;
  flex-direction: column;
}

.visual-card-info span {
  color: var(--fc-dark);
  font-size: 0.9375rem;
}

.visual-card-info small {
  font-size: 0.75rem;
}

.visual-check {
  margin-left: auto;
  font-size: 1.5rem;
}

.card-source {
  animation: floatCard 4s ease-in-out infinite;
}

.card-output {
  animation: floatCard 4s ease-in-out infinite 0.5s;
}

/* Arrow between cards */
.visual-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  z-index: 2;
}

.arrow-line {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, var(--fc-primary), var(--fc-secondary));
  opacity: 0.3;
}

.arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: 0 4px 16px rgba(30, 77, 183, 0.3);
}

/* Floating badges */
.floating-badge {
  position: absolute;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  animation: floatBadge 5s ease-in-out infinite;
}

.badge-1 { background: #fc4b6c; top: 10%; left: 5%;  animation-delay: 0s; }
.badge-2 { background: #39cb7f; top: 5%;  right: 10%; animation-delay: 0.8s; }
.badge-3 { background: #1a97f5; bottom: 10%; left: 0%;  animation-delay: 1.6s; }
.badge-4 { background: #fdc90f; bottom: 18%; right: 5%; animation-delay: 2.4s; color: var(--fc-dark); }
.badge-5 { background: #7460ee; top: 50%;  right: 0%;  animation-delay: 3.2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

/* ─── Section Common ────────────────────────────────────────── */
.features-section,
.formats-section,
.steps-section {
  padding: 90px 0;
}

.features-section {
  background: var(--fc-light-bg);
}

.formats-section {
  background: #fff;
}

.steps-section {
  background: var(--fc-light-bg);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--fc-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--fc-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Feature Cards ─────────────────────────────────────────── */
.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  height: 100%;
  border: 1px solid #eef1f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-card h5 {
  color: var(--fc-dark);
  margin-bottom: 8px;
}

/* ─── Format Cards ──────────────────────────────────────────── */
.format-card-link {
  text-decoration: none;
  display: block;
}

.format-card {
  background: var(--fc-light-bg);
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.format-card:hover {
  background: #fff;
  border-color: var(--fc-primary);
  box-shadow: 0 6px 20px rgba(30, 77, 183, 0.1);
  transform: translateY(-2px);
}

.format-from,
.format-to {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--fc-dark);
}

.format-arrow {
  color: var(--fc-primary);
  font-size: 1rem;
  opacity: 0.5;
}

.format-card:hover .format-arrow {
  opacity: 1;
}

.format-card-doc {
  border-color: #e0eedd;
}

.format-card-doc:hover {
  border-color: var(--fc-success);
  box-shadow: 0 6px 20px rgba(57, 203, 127, 0.1);
}

/* ─── Steps Cards ───────────────────────────────────────────── */
.step-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px 28px 36px;
  border: 1px solid #eef1f6;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 4px 12px rgba(30, 77, 183, 0.25);
}

.step-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--fc-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--fc-primary);
  margin: 0 auto;
}

.step-card h5 {
  color: var(--fc-dark);
}

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: #fff;
}

.cta-card {
  background: linear-gradient(135deg, var(--fc-primary) 0%, #2a6de0 50%, var(--fc-secondary) 100%);
  border-radius: 20px;
  padding: 50px 48px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -100px;
  right: -60px;
}

.cta-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -60px;
  left: 40px;
}

.cta-card .btn-light {
  font-weight: 600;
  color: var(--fc-primary);
}

.cta-card .btn-light:hover {
  background: #f0f0f0;
}

/* ─── Mega Footer ────────────────────────────────────────────── */
.mega-footer {
  padding: 60px 0 0;
  background: var(--fc-light-bg);
  border-top: 1px solid #e8ecf1;
}

.footer-brand-logo {
  width: 250px;
  object-fit: contain;
}

.footer-heading {
  font-weight: 700;
  color: var(--fc-dark);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--fc-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--fc-primary);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecf1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-muted);
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--fc-primary);
  border-color: var(--fc-primary);
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid #e8ecf1;
  font-size: 0.8125rem;
}

.footer-contact-link {
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: var(--fc-primary) !important;
}

/* ─── Static Page Styles ────────────────────────────────────── */
.page-shell {
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: 60vh;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.page-breadcrumb a {
  color: var(--fc-primary);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-breadcrumb i {
  font-size: 0.75rem;
  color: #ccc;
}

.page-breadcrumb span {
  color: var(--fc-muted);
}

.page-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 44px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef1f6;
}

.page-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fc-dark);
  margin-bottom: 4px;
}

.page-updated {
  color: var(--fc-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eef1f6;
}

.page-body h5 {
  font-weight: 700;
  color: var(--fc-dark);
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.0625rem;
}

.page-body p {
  color: var(--fc-body);
  line-height: 1.75;
}

.page-body ul {
  color: var(--fc-body);
  line-height: 1.9;
  padding-left: 20px;
}

.page-body a {
  color: var(--fc-primary);
  text-decoration: none;
}

.page-body a:hover {
  text-decoration: underline;
}

/* About feature items */
.about-feature {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--fc-light-bg);
  border-radius: 12px;
  border: 1px solid #eef1f6;
}

.about-feature i {
  font-size: 1.5rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Security cards */
.security-card {
  background: var(--fc-light-bg);
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 20px;
}

.security-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Contact cards */
.contact-card {
  background: var(--fc-light-bg);
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}

.contact-link {
  color: var(--fc-primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Help topics */
.help-topics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.help-topic {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--fc-light-bg);
  border-radius: 12px;
  border: 1px solid #eef1f6;
}

.help-topic i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 120px 0 70px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features-section,
  .formats-section,
  .steps-section {
    padding: 60px 0;
  }

  .cta-card {
    padding: 36px 28px;
    text-align: center;
  }

  .cta-card .text-lg-end {
    text-align: center !important;
    margin-top: 20px;
  }

  .page-shell {
    padding-top: 110px;
  }

  .page-card {
    padding: 36px 28px;
  }

  .mega-footer {
    padding: 48px 0 0;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 110px 0 50px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .hero-actions .me-3 {
    margin-right: 0 !important;
  }

  .trust-items {
    gap: 14px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .cta-card {
    padding: 28px 20px;
  }

  /* Navbar logo smaller on mobile */
  .nav-brand-logo {
    width: 130px;
  }

  /* Fix: prevent button from looking circular on small screens */
  .nav-inner .btn {
    font-size: 0.75rem;
    padding: 6px 14px;
    white-space: nowrap;
    border-radius: 8px;
  }

  /* Hide icon inside button on very small screens */
  .nav-inner .btn .ti {
    display: none;
  }

  .format-card {
    padding: 16px 10px;
    gap: 6px;
  }

  .format-from,
  .format-to {
    font-size: 0.8125rem;
  }

  .page-shell {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .page-card {
    padding: 28px 20px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .footer-brand-logo {
    width: 180px;
  }

  /* Mega footer mobile */
  .mega-footer .footer-heading {
    margin-top: 8px;
  }

  .converter-scroll-wrap {
    max-height: 420px;
  }
}

/* ─── Converter Tabs Scroll Section ─────────────────────────── */

/* Scrollable container inside each tab panel */
.converter-scroll-wrap {
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #d0d7e3 transparent;
}

.converter-scroll-wrap::-webkit-scrollbar {
  width: 6px;
}

.converter-scroll-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.converter-scroll-wrap::-webkit-scrollbar-thumb {
  background-color: #d0d7e3;
  border-radius: 99px;
}

/* Compact card variant for converter listing */
.converter-tool-card {
  padding: 18px 20px;
  border-radius: 12px;
}

.converter-tool-card .feature-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.converter-tool-card .converter-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Converter tab pills */
#converterTabs .nav-link {
  border: 1px solid #e8ecf1;
  background: #fff;
  color: var(--fc-body, #495057);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#converterTabs .nav-link:hover {
  border-color: var(--fc-primary, #1e4db7);
  color: var(--fc-primary, #1e4db7);
}

#converterTabs .nav-link.active {
  background: var(--fc-primary, #1e4db7);
  border-color: var(--fc-primary, #1e4db7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 77, 183, 0.2);
}

#converterTabs .nav-link.active .badge {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}
