/* ============================================
   FreePDFWorld - Homepage Premium CSS
   Combined: Document Carousel + Premium Effects
   ============================================ */

/* ===========================================
   PART 1: CSS CUSTOM PROPERTIES
   =========================================== */
:root {
  --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --glow-primary: 0 0 40px rgba(37, 99, 235, 0.3);
  --glow-teal: 0 0 40px rgba(20, 184, 166, 0.3);
}

/* ===========================================
   PART 2: DOCUMENT CAROUSEL STYLES
   =========================================== */

/* ---------- Carousel Container — iPad-style Frosted Glass Tablet ---------- */
.doc-carousel-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 0;
}

.doc-carousel-container {
  position: relative;
  /* Premium frosted-glass bezel — silver / light aluminium tone */
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(241, 245, 249, 0.60) 30%,
    rgba(226, 232, 240, 0.50) 60%,
    rgba(241, 245, 249, 0.58) 100%
  );
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  /* Thin silver border mimicking aluminium chamfer */
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  /* Even bezel all around — thin like an iPad */
  padding: 10px;
  /* Layered enterprise shadow: depth + ambient glow + chamfer highlights */
  box-shadow:
    0 1px 0 0 rgba(148, 163, 184, 0.20),
    0 20px 50px rgba(100, 116, 139, 0.14),
    0 8px 24px rgba(37, 99, 235, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(148, 163, 184, 0.12);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* ── Diagonal glass reflection across the full tablet ── */
.doc-carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 22px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.18) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.04) 75%,
    rgba(255, 255, 255, 0.10) 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* Hover: subtle lift with enhanced glow */
.doc-carousel-container:hover {
  box-shadow:
    0 1px 0 0 rgba(148, 163, 184, 0.22),
    0 28px 65px rgba(100, 116, 139, 0.18),
    0 12px 36px rgba(37, 99, 235, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(148, 163, 184, 0.12);
  transform: translateY(-3px);
}

/* ── Front-camera dot — subtle, centred on top bezel (iPad-style) ── */
.doc-carousel-wrapper::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.45) 30%, rgba(203, 213, 225, 0.25) 100%);
  box-shadow: 0 0 2px rgba(148, 163, 184, 0.30);
  z-index: 12;
  pointer-events: none;
}

/* No stand / no base — clean iPad form factor */
.doc-carousel-container::after {
  display: none;
}
.doc-carousel-wrapper::after {
  display: none;
}

/* Decorative glows — subtle, positioned inside the glass */
.carousel-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.carousel-glow-1 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  top: -60px;
  right: -30px;
  animation: glow-float 8s ease-in-out infinite;
}

.carousel-glow-2 {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  bottom: -50px;
  left: -30px;
  animation: glow-float 10s ease-in-out infinite reverse;
}

@keyframes glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.30; }
  50% { transform: translate(-8px, 8px) scale(1.08); opacity: 0.50; }
}

/* ---------- Side Navigation Buttons ---------- */
.carousel-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.carousel-side-btn.carousel-btn-prev {
  left: 8px;
  transform: translateY(-50%) translateX(-10px);
}

.carousel-side-btn.carousel-btn-next {
  right: 8px;
  transform: translateY(-50%) translateX(10px);
}

.doc-carousel-container:hover .carousel-side-btn {
  opacity: 1;
  visibility: visible;
}

.doc-carousel-container:hover .carousel-side-btn.carousel-btn-prev {
  transform: translateY(-50%) translateX(0);
}

.doc-carousel-container:hover .carousel-side-btn.carousel-btn-next {
  transform: translateY(-50%) translateX(0);
}

.carousel-side-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.carousel-side-btn:active {
  transform: translateY(-50%) scale(0.95) !important;
}

/* ---------- Carousel Viewport & Track ---------- */
.doc-carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  width: 100%;
  z-index: 1;
  /* Fully-opaque white — reliable text contrast regardless of backdrop-filter */
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.50);
  padding: 28px 36px;
  /* Subtle recessed screen effect */
  box-shadow:
    inset 0 1px 4px rgba(100, 116, 139, 0.08),
    inset 0 0 0 0.5px rgba(148, 163, 184, 0.12);
  /* Fixed height with room for all content */
  min-height: 340px;
  height: auto;
  max-height: 380px;
}

/* ── Subtle animated background — slowly drifting soft gradient orbs ── */
.doc-carousel-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 220px 180px at 15% 25%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(ellipse 180px 200px at 80% 70%, rgba(139, 92, 246, 0.10), transparent 70%),
    radial-gradient(ellipse 160px 160px at 60% 15%, rgba(20, 184, 166, 0.08), transparent 70%),
    radial-gradient(ellipse 200px 140px at 30% 80%, rgba(244, 114, 182, 0.07), transparent 70%);
  background-size: 200% 200%;
  animation: viewport-bg-drift 25s ease-in-out infinite alternate;
}

@keyframes viewport-bg-drift {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 30% 60%; }
  50%  { background-position: 80% 30%; }
  75%  { background-position: 50% 90%; }
  100% { background-position: 10% 50%; }
}

.doc-carousel-track {
  display: flex;
  width: 100%;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.doc-carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  /* Auto height to fit content without overflow */
  height: auto;
  min-height: 320px;
  padding: 0.5rem 0;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Slide Content Layout ---------- */
.slide-content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "visual"
    "info";
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  height: auto;
  max-width: 100%;
}

@media (min-width: 992px) {
  .slide-content {
    /* Equal distribution for balanced layout */
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "header  header"
      "visual  info";
    gap: 0.5rem 1.2rem;
    /* Center alignment for consistent height */
    align-items: center;
  }
}

.slide-header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  margin-bottom: 0.35rem;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.slide-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  animation: badge-shimmer 4s ease-in-out infinite;
}

@keyframes badge-shimmer {
  0%, 70%, 100% { left: -100%; }
  40% { left: 140%; }
}

.slide-badge i {
  font-size: 0.7rem;
}

.slide-badge.security {
  background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.slide-badge.conversion {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  box-shadow: 0 3px 12px rgba(59, 130, 246, 0.35);
}

.slide-badge.compress {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.slide-badge.sign {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.slide-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.slide-info {
  grid-area: info;
  text-align: left;
  max-width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  overflow: hidden;
}

@media (min-width: 992px) {
  .slide-info {
    text-align: left;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0;
    overflow: hidden;
  }

  .slide-info .slide-tech-tags {
    justify-content: flex-start;
  }
}

.slide-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.3rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  max-width: 100%;
  width: auto;
}

@media (min-width: 992px) {
  .slide-title {
    font-size: 1.15rem;
  }
}

.slide-desc {
  font-size: 0.75rem;
  color: #374151;
  line-height: 1.45;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  width: auto;
}

/* ── Slide Stats Row — compact metric chips ── */
.slide-stats {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin: 0 0 0.3rem;
}

.slide-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.80);
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  animation: chip-fade-in 0.6s ease both;
}

.slide-stat-chip .stat-value {
  color: #2563eb;
  font-weight: 800;
}

.slide-stat-chip.conversion .stat-value { color: #4f46e5; }
.slide-stat-chip.security .stat-value { color: #dc2626; }
.slide-stat-chip.compress .stat-value { color: #059669; }
.slide-stat-chip.sign .stat-value { color: #7c3aed; }

@keyframes chip-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Slide CTA Button — prominent ── */
.slide-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
  transition: all 0.25s ease;
  width: fit-content;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.slide-cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0%, 100% { left: -75%; }
  50% { left: 125%; }
}

.slide-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  color: #fff;
}

.slide-cta-btn.conversion {
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.30);
}
.slide-cta-btn.security {
  background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
.slide-cta-btn.compress {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.slide-cta-btn.sign {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

/* Technology Tags */
.slide-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.22rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.tech-tag i {
  font-size: 0.6rem;
}

.tech-tag.conversion {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.18);
}

.tech-tag.security {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.15);
}

.tech-tag.compress {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.15);
}

.tech-tag.sign {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.15);
}

/* ---------- Document Preview Styles ---------- */
.doc-preview {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  width: 115px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: doc-float 4s ease-in-out infinite;
}

@keyframes doc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.doc-preview.doc-target {
  animation-delay: -2s;
}

.doc-preview:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0,0,0,0.06);
}

.doc-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}

.doc-dots {
  display: flex;
  gap: 5px;
}

.doc-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.doc-dots span:nth-child(1) { background: #f87171; }
.doc-dots span:nth-child(2) { background: #fbbf24; }
.doc-dots span:nth-child(3) { background: #34d399; }

.doc-type-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  text-transform: uppercase;
}

.doc-type-badge.pdf {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.doc-type-badge.word {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.doc-type-badge.locked {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

.doc-type-badge.signed {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.doc-body {
  padding: 0.75rem;
  min-height: 100px;
}

.doc-line {
  height: 7px;
  background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.doc-line.w-60 { width: 60%; }
.doc-line.w-70 { width: 70%; }
.doc-line.w-80 { width: 80%; }
.doc-line.w-100 { width: 100%; }

.doc-img-placeholder {
  width: 100%;
  height: 34px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem 0;
  color: #93c5fd;
  font-size: 0.9rem;
}

/* ---------- Conversion Visual (Slide 1) ---------- */
.conversion-visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0;
}

.conversion-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrow-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  animation: pulse-soft 2s ease-in-out infinite, glow-ring 3s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes glow-ring {
  0%, 100% { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), 0 0 0 8px rgba(59, 130, 246, 0.10); }
}

/* ---------- Security Visual (Slide 2) ---------- */
.security-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.secure-doc-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.doc-secure {
  width: 140px;
  position: relative;
  z-index: 2;
}

.security-shield {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  animation: shield-pulse 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes shield-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
  50% { transform: scale(1.08) rotate(-5deg); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4), 0 0 0 6px rgba(245, 158, 11, 0.12); }
}

.encryption-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-width: 2px;
  border-style: dashed;
  opacity: 0.4;
}

.ring-1 {
  width: 220px;
  height: 220px;
  border-color: rgba(59, 130, 246, 0.35);
  animation: ring-rotate 16s linear infinite;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.15));
}

.ring-2 {
  width: 280px;
  height: 280px;
  border-color: rgba(139, 92, 246, 0.30);
  animation: ring-rotate 22s linear infinite reverse;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.12));
}

@keyframes ring-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Compress Visual (Slide 3) ---------- */
.compress-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.compress-animation {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.file-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-layer {
  width: 72px;
  height: 90px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 50%, #f5f5f5 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #dc2626;
  box-shadow:
    0 0 0 1px rgba(226, 232, 240, 0.50),
    0 6px 16px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.80);
  position: relative;
  transition: all 0.3s ease;
}

.file-layer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.60), transparent);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.file-stack-before .file-layer {
  position: absolute;
}

.file-stack-before .f1 {
  z-index: 2;
  animation: file-float 2.5s ease-in-out infinite;
}

.file-stack-before .f2 {
  z-index: 1;
  transform: translate(7px, 7px);
  opacity: 0.65;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

@keyframes file-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(1deg); }
  50% { transform: translateY(-2px) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(-1deg); }
}

.file-size-badge {
  position: absolute;
  bottom: -20px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  padding: 0.3rem 0.65rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 0.5px 1px rgba(255, 255, 255, 0.80);
  letter-spacing: 0.3px;
}

.file-size-badge.large {
  color: #dc2626;
  border: 1.5px solid #fecaca;
  background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
}

.file-size-badge.small {
  color: #059669;
  border: 1.5px solid #a7f3d0;
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
}

.savings-badge {
  position: absolute;
  top: -12px;
  right: -20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow:
    0 4px 14px rgba(16, 185, 129, 0.45),
    0 2px 6px rgba(5, 150, 105, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.30);
  animation: savings-pop 2.5s ease-in-out infinite;
  letter-spacing: 0.3px;
}

@keyframes savings-pop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.12) rotate(-3deg); }
}

.compress-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compress-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  box-shadow:
    0 5px 18px rgba(16, 185, 129, 0.45),
    0 3px 10px rgba(5, 150, 105, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.30),
    inset 0 -1px 2px rgba(0, 0, 0, 0.10);
  animation: compress-breathe 2.5s ease-in-out infinite, glow-ring-green 3.5s ease-in-out infinite;
  position: relative;
}

.compress-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  opacity: 0;
  animation: compress-ring-pulse 3.5s ease-in-out infinite;
}

@keyframes compress-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.92) rotate(90deg); }
}

@keyframes glow-ring-green {
  0%, 100% {
    box-shadow:
      0 5px 18px rgba(16, 185, 129, 0.45),
      0 3px 10px rgba(5, 150, 105, 0.30),
      inset 0 1px 2px rgba(255, 255, 255, 0.30),
      inset 0 -1px 2px rgba(0, 0, 0, 0.10);
  }
  50% {
    box-shadow:
      0 5px 18px rgba(16, 185, 129, 0.45),
      0 3px 10px rgba(5, 150, 105, 0.30),
      0 0 0 10px rgba(16, 185, 129, 0.12),
      0 0 0 20px rgba(16, 185, 129, 0.06),
      inset 0 1px 2px rgba(255, 255, 255, 0.30),
      inset 0 -1px 2px rgba(0, 0, 0, 0.10);
  }
}

@keyframes compress-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.8); opacity: 0.4; }
}

/* ---------- Sign Visual (Slide 4) ---------- */
.sign-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
}

.doc-sign {
  width: 135px;
}

.signature-area {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fef08a 100%);
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 0.75rem;
  margin: 0.6rem 0;
  box-shadow:
    0 2px 8px rgba(245, 158, 11, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.60);
  position: relative;
  overflow: hidden;
}

.signature-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
  animation: signature-shimmer 3s ease-in-out infinite;
}

@keyframes signature-shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.signature-svg {
  width: 100%;
  height: 42px;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(30, 64, 175, 0.20));
}

.signature-path {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw-signature 3.5s ease-in-out infinite;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes draw-signature {
  0% { stroke-dashoffset: 280; opacity: 0; }
  10% { opacity: 1; }
  45%, 65% { stroke-dashoffset: 0; opacity: 1; }
  90% { stroke-dashoffset: 0; opacity: 0.5; }
  100% { stroke-dashoffset: 280; opacity: 0; }
}

.verified-badge {
  position: absolute;
  bottom: 22px;
  right: calc(50% - 118px);
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow:
    0 6px 20px rgba(5, 150, 105, 0.45),
    0 3px 10px rgba(4, 120, 87, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.30),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15);
  animation: badge-bounce 3.5s ease-in-out infinite;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.verified-badge i {
  font-size: 0.9rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.20));
}

@keyframes badge-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-4px) scale(1.02); }
  50% { transform: translateY(-2px) scale(1); }
  75% { transform: translateY(-4px) scale(1.02); }
}




/* ---------- Bottom Progress Bar ---------- */
.carousel-progress-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.7rem;
  padding: 0 0.35rem;
  flex-shrink: 0;
}

.progress-track {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.50), rgba(203, 213, 225, 0.40));
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(100, 116, 139, 0.10);
  position: relative;
}

.progress-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.60), transparent);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 50%, #8b5cf6 100%);
  border-radius: 3px;
  transition: width 0.1s linear;
  box-shadow:
    0 0 8px rgba(37, 99, 235, 0.40),
    inset 0 0.5px 1px rgba(255, 255, 255, 0.40);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35));
  animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0%, 100% { transform: translateX(0); opacity: 0; }
  50% { transform: translateX(-20px); opacity: 1; }
}

.carousel-dots {
  display: flex;
  gap: 7px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: none;
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.40), rgba(148, 163, 184, 0.35));
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 0.5px 1px rgba(255, 255, 255, 0.40);
  position: relative;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.20), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-dot:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.50), rgba(99, 102, 241, 0.45));
  transform: scale(1.25);
  box-shadow:
    0 3px 8px rgba(37, 99, 235, 0.25),
    inset 0 0.5px 1px rgba(255, 255, 255, 0.50);
}

.carousel-dot:hover::before {
  opacity: 1;
}

.carousel-dot.active {
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #8b5cf6 100%);
  transform: scale(1.35);
  box-shadow:
    0 3px 10px rgba(37, 99, 235, 0.45),
    0 0 0 3px rgba(37, 99, 235, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.40);
}

.carousel-dot.active::before {
  opacity: 0.5;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(2); opacity: 0.3; }
}

/* ===========================================
   PART 3: PREMIUM EFFECTS & ANIMATIONS
   =========================================== */

/* ---------- Dynamic Hero Content Transitions ---------- */
.hero-title,
.hero-description {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-title.fpw-content-fade,
.hero-description.fpw-content-fade {
  opacity: 0;
  transform: translateY(-10px);
}

.hero-title.fpw-content-visible,
.hero-description.fpw-content-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating Particles Background ---------- */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(37, 99, 235, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(20, 184, 166, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 50px 160px, rgba(139, 92, 246, 0.3), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(37, 99, 235, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 130px 80px, rgba(20, 184, 166, 0.3), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(139, 92, 246, 0.2), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: particles-float 20s linear infinite;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

@keyframes particles-float {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-200px) translateX(50px); }
}

/* ---------- Gradient Text Animation ---------- */
.hero-title .highlight {
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #7c3aed 25%,
    #2563eb 50%,
    #0d9488 75%,
    #2563eb 100%
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Enhanced Hero Badge ---------- */
.home-page .hero-badge {
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--animation-smooth);
}

.home-page .hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.1),
    transparent
  );
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.home-page .hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* ---------- Premium Button Effects ---------- */
.home-page .btn-hero-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.home-page .btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.home-page .btn-hero-primary:hover::before {
  width: 300px;
  height: 300px;
}

.home-page .btn-hero-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.home-page .btn-hero-primary:hover::after {
  transform: rotate(45deg) translateY(100%);
}

.home-page .btn-hero-secondary {
  position: relative;
  overflow: hidden;
}

.home-page .btn-hero-secondary::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--animation-smooth);
}

.home-page .btn-hero-secondary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Animated Statistics Counter ---------- */
.home-page .stat-item {
  position: relative;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s var(--animation-smooth);
}

.home-page .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.2);
}

.home-page .stat-number {
  position: relative;
  display: inline-block;
}

.home-page .stat-number::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.4s var(--animation-smooth);
}

.home-page .stat-item:hover .stat-number::after {
  transform: scaleX(1);
}

/* ---------- Tool Cards Premium Effects ---------- */
.home-page .tool-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--animation-smooth);
}

.home-page .tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #0d9488);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--animation-smooth);
}

.home-page .tool-card:hover::before {
  transform: scaleX(1);
}

.home-page .tool-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(37, 99, 235, 0.03) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.home-page .tool-card:hover::after {
  opacity: 1;
}

.home-page .tool-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(37, 99, 235, 0.12),
    0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Tool Icon Glow Effect */
.home-page .tool-icon-wrapper {
  position: relative;
}

.home-page .tool-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: translate(-50%, -50%);
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.home-page .tool-card:hover .tool-icon-wrapper::before {
  opacity: 0.5;
}

/* ---------- Section Headers Premium Style ---------- */
.home-page .section-badge {
  position: relative;
  overflow: hidden;
}

.home-page .section-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.home-page .section-title {
  position: relative;
}

/* Ensure section-header text colors stay consistent on hover */
.home-page .section-header:hover .section-title,
.home-page .section-header:hover .section-description,
.home-page .section-header:hover .section-badge,
.home-page .section-title:hover,
.home-page .section-description:hover,
.home-page .section-badge:hover {
  color: inherit !important;
  background: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.home-page .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 2px;
  animation: title-underline 3s ease-in-out infinite;
}

@keyframes title-underline {
  0%, 100% { width: 80px; opacity: 1; }
  50% { width: 120px; opacity: 0.8; }
}

/* ---------- How It Works Steps ---------- */
.home-page .step-card {
  position: relative;
  transition: all 0.4s var(--animation-smooth);
}

.home-page .step-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: #fff;
}

/* Ensure step-card text colors remain consistent on hover - NO gradient */
.home-page .step-card:hover h3,
.home-page .step-card.fpw-reveal:hover h3,
.home-page .step-card.fpw-reveal--in:hover h3 {
  color: #111827 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #111827 !important;
}

.home-page .step-card:hover p,
.home-page .step-card.fpw-reveal:hover p,
.home-page .step-card.fpw-reveal--in:hover p {
  color: #374151 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #374151 !important;
}

.home-page .step-card:hover .step-icon,
.home-page .step-card.fpw-reveal:hover .step-icon,
.home-page .step-card.fpw-reveal--in:hover .step-icon {
  color: #1e40af !important;
  background: none !important;
  -webkit-text-fill-color: #1e40af !important;
}

/* Step Number Pulse */
.home-page .step-number {
  position: relative;
}

.home-page .step-number::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: step-pulse 2s ease-in-out infinite;
  opacity: 0;
}

.home-page .step-card:hover .step-number::after {
  animation: step-pulse 1.5s ease-in-out infinite;
}

@keyframes step-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.5; }
}

/* ---------- Scroll Reveal Animations ---------- */
.fpw-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--animation-smooth);
}

.fpw-reveal--in {
  opacity: 1;
  transform: translateY(0);
}

.fpw-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s var(--animation-smooth);
}

.fpw-reveal-left--in {
  opacity: 1;
  transform: translateX(0);
}

.fpw-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s var(--animation-smooth);
}

.fpw-reveal-right--in {
  opacity: 1;
  transform: translateX(0);
}

.fpw-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s var(--animation-spring);
}

.fpw-reveal-scale--in {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation delays */
.fpw-stagger-1 { transition-delay: 0.1s; }
.fpw-stagger-2 { transition-delay: 0.2s; }
.fpw-stagger-3 { transition-delay: 0.3s; }
.fpw-stagger-4 { transition-delay: 0.4s; }
.fpw-stagger-5 { transition-delay: 0.5s; }
.fpw-stagger-6 { transition-delay: 0.6s; }

/* ---------- Feature Tags Hover Effects ---------- */
.home-page .feature-tag {
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--animation-smooth);
}

.home-page .feature-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ---------- CTA Link Arrow Animation ---------- */
.home-page .tool-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-page .tool-cta i {
  transition: transform 0.3s var(--animation-smooth);
}

.home-page .tool-card:hover .tool-cta i {
  transform: translateX(5px);
}

/* ---------- Glassmorphism Enhancements ---------- */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.glass-effect-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Loading Skeleton Animation ---------- */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Enhanced Focus States ---------- */
.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.3),
    0 0 0 6px rgba(37, 99, 235, 0.1);
}

/* ---------- Smooth Image Loading ---------- */
.img-loading {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.img-loaded {
  opacity: 1;
}

/* ---------- Text Selection Styling ---------- */
.home-page ::selection {
  background: rgba(37, 99, 235, 0.2);
  color: #1e40af;
}

/* ===========================================
   PART 4: RESPONSIVE STYLES
   =========================================== */

@media (max-width: 1199px) {
  .doc-carousel-container {
    padding: 9px;
    border-radius: 20px;
  }

  .doc-carousel-viewport {
    padding: 28px 30px;
    min-height: 380px;
  }

  .doc-carousel-slide {
    min-height: 324px;
  }

  .doc-preview {
    width: 140px;
  }

  .conversion-visual {
    gap: 1.2rem;
  }

  .slide-stat-chip { font-size: 0.7rem; padding: 0.28rem 0.6rem; }
  .slide-cta-btn { font-size: 0.8rem; padding: 0.5rem 1.1rem; }
}

@media (max-width: 991px) {
  .doc-carousel-container {
    padding: 8px;
    border-radius: 18px;
  }

  .doc-carousel-wrapper::before {
    display: none;
  }

  .doc-carousel-viewport {
    padding: 22px 24px;
    min-height: 340px;
  }

  .doc-carousel-slide {
    min-height: 296px;
  }

  .carousel-side-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    opacity: 1;
    visibility: visible;
  }

  .carousel-side-btn.carousel-btn-prev {
    transform: translateY(-50%) translateX(0);
  }

  .carousel-side-btn.carousel-btn-next {
    transform: translateY(-50%) translateX(0);
  }

  .doc-preview {
    width: 115px;
  }

  .doc-body {
    min-height: 70px;
    padding: 0.5rem;
  }

  .slide-title {
    font-size: 1.15rem;
  }

  .slide-desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  /* Hide carousel on mobile */
  .doc-carousel-wrapper {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .doc-carousel-container {
    padding: 6px;
    border-radius: 16px;
  }

  .doc-carousel-viewport {
    padding: 18px 16px;
    min-height: 300px;
  }

  .doc-carousel-slide {
    min-height: 264px;
  }

  .carousel-glow {
    display: none;
  }

  .carousel-side-btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .carousel-side-btn.carousel-btn-prev {
    left: 4px;
  }

  .carousel-side-btn.carousel-btn-next {
    right: 4px;
  }

  .conversion-visual,
  .compress-animation {
    gap: 0.8rem;
  }

  .doc-preview {
    width: 100px;
  }

  .doc-body {
    min-height: 65px;
    padding: 0.45rem;
  }

  .doc-line {
    height: 5px;
    margin-bottom: 0.28rem;
  }

  .doc-img-placeholder {
    height: 24px;
    margin: 0.3rem 0;
    font-size: 0.7rem;
  }

  .arrow-icon,
  .compress-icon {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .file-layer {
    width: 58px;
    height: 72px;
    font-size: 1.25rem;
  }

  .security-shield {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .slide-badge {
    font-size: 0.62rem;
    padding: 0.25rem 0.6rem;
  }

  .slide-counter {
    font-size: 0.65rem;
  }

  .slide-title {
    font-size: 1rem;
  }

  .slide-desc {
    font-size: 0.72rem;
  }

  .tech-tag {
    font-size: 0.55rem;
    padding: 0.22rem 0.4rem;
  }

  .doc-sign {
    width: 130px;
  }

  .verified-badge {
    right: calc(50% - 95px);
    font-size: 0.58rem;
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 575px) {
  .doc-carousel-container {
    padding: 5px;
    border-radius: 14px;
  }

  .doc-carousel-viewport {
    padding: 14px 12px;
    min-height: 260px;
  }

  .doc-carousel-slide {
    min-height: 232px;
  }

  .slide-content {
    gap: 0.5rem;
  }

  .doc-preview {
    width: 85px;
  }

  .doc-header {
    padding: 0.3rem 0.4rem;
  }

  .doc-type-badge {
    font-size: 0.42rem;
    padding: 0.12rem 0.28rem;
  }

  .doc-dots span {
    width: 4px;
    height: 4px;
  }

  .file-layer {
    width: 48px;
    height: 60px;
    font-size: 1.05rem;
  }

  .file-size-badge {
    font-size: 0.55rem;
    padding: 0.18rem 0.35rem;
  }

  .savings-badge {
    font-size: 0.5rem;
    padding: 0.18rem 0.35rem;
  }

  .encryption-ring {
    width: 130px;
    height: 130px;
  }

  .ring-1 { width: 110px; height: 110px; }
  .ring-2 { width: 140px; height: 140px; }

  .carousel-dots {
    gap: 4px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }
}

/* ===========================================
   PART 5: REDUCED MOTION & PRINT
   =========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-section::after {
    animation: none;
    opacity: 0.3;
  }

  .hero-title .highlight {
    animation: none;
    background-position: 0% 50%;
  }

  .carousel-glow,
  .arrow-icon,
  .compress-icon,
  .security-shield,
  .verified-badge,
  .savings-badge,
  .file-stack-before .file-layer,
  .ring {
    animation: none !important;
  }

  .signature-path {
    stroke-dashoffset: 0;
    animation: none;
  }

  .doc-carousel-track,
  .doc-carousel-slide {
    transition-duration: 0.2s;
  }
}

@media print {
  .doc-carousel-wrapper,
  .cursor-dot,
  .cursor-outline,
  .scroll-progress-bar,
  .scroll-top {
    display: none !important;
  }

  .hero-section::after {
    display: none;
  }
}

/* ===========================================
   PART 6: DARK THEME OVERRIDES
   =========================================== */

[data-theme="dark"] .hero-section::after {
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(96, 165, 250, 0.2), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(45, 212, 191, 0.15), transparent),
    radial-gradient(1.5px 1.5px at 50px 160px, rgba(167, 139, 250, 0.2), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(96, 165, 250, 0.15), transparent),
    radial-gradient(1.5px 1.5px at 130px 80px, rgba(45, 212, 191, 0.2), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(167, 139, 250, 0.1), transparent);
  opacity: 0.4;
}

[data-theme="dark"] .home-page .stat-item {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .home-page ::selection {
  background: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

/* Dark theme carousel overrides */
[data-theme="dark"] .doc-carousel-container {
  background: linear-gradient(
    160deg,
    rgba(30, 41, 59, 0.75) 0%,
    rgba(15, 23, 42, 0.60) 30%,
    rgba(30, 41, 59, 0.55) 60%,
    rgba(15, 23, 42, 0.65) 100%
  ) !important;
  border-color: rgba(148, 163, 184, 0.15) !important;
  box-shadow:
    0 1px 0 0 rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.40),
    0 8px 24px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .doc-carousel-container::before {
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 25%,
    transparent 50%
  ) !important;
}

/* No stand/base — hide pseudo-elements in dark mode too */
[data-theme="dark"] .doc-carousel-container::after,
[data-theme="dark"] .doc-carousel-wrapper::after {
  display: none !important;
}

[data-theme="dark"] .doc-carousel-wrapper::before {
  background: radial-gradient(circle, rgba(148, 163, 184, 0.25) 30%, rgba(100, 116, 139, 0.15) 100%) !important;
  box-shadow: 0 0 2px rgba(148, 163, 184, 0.15) !important;
}

[data-theme="dark"] .carousel-side-btn {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #60a5fa !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .carousel-side-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #fff !important;
}

[data-theme="dark"] .doc-preview {
  background: rgba(30, 41, 59, 0.92) !important;
  border-color: rgba(96, 165, 250, 0.12) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .doc-carousel-viewport {
  background: #0f172a !important;
  border-color: rgba(51, 65, 85, 0.60) !important;
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.30),
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.20) !important;
}

[data-theme="dark"] .doc-carousel-viewport::before {
  opacity: 0.30;
  background:
    radial-gradient(ellipse 220px 180px at 15% 25%, rgba(96, 165, 250, 0.14), transparent 70%),
    radial-gradient(ellipse 180px 200px at 80% 70%, rgba(167, 139, 250, 0.12), transparent 70%),
    radial-gradient(ellipse 160px 160px at 60% 15%, rgba(45, 212, 191, 0.10), transparent 70%),
    radial-gradient(ellipse 200px 140px at 30% 80%, rgba(244, 114, 182, 0.08), transparent 70%);
}

[data-theme="dark"] .doc-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .doc-line {
  background: linear-gradient(90deg, #334155 0%, #475569 100%) !important;
}

[data-theme="dark"] .doc-img-placeholder {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .slide-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .slide-desc {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .slide-counter {
  color: #94a3b8 !important;
}

[data-theme="dark"] .tech-tag {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #93c5fd !important;
}

[data-theme="dark"] .tech-tag.conversion {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: #a5b4fc !important;
}

[data-theme="dark"] .tech-tag.security {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

[data-theme="dark"] .tech-tag.compress {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}

[data-theme="dark"] .tech-tag.sign {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  color: #c4b5fd !important;
}

[data-theme="dark"] .progress-track {
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .carousel-dot {
  background: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .carousel-dot:hover {
  background: rgba(96, 165, 250, 0.4) !important;
}

[data-theme="dark"] .file-layer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .file-size-badge {
  background: #1e293b !important;
}

[data-theme="dark"] .signature-area {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%) !important;
  border-color: #92400e !important;
}

[data-theme="dark"] .signature-path {
  stroke: #60a5fa !important;
}

[data-theme="dark"] .ring {
  border-color: rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .ring-2 {
  border-color: rgba(139, 92, 246, 0.1) !important;
}

/* Dark overrides for new slide elements */
[data-theme="dark"] .slide-feature-list li {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .slide-stat-chip {
  background: rgba(30, 41, 59, 0.80) !important;
  border-color: rgba(96, 165, 250, 0.15) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .slide-stat-chip .stat-value {
  color: #60a5fa !important;
}

[data-theme="dark"] .slide-cta-btn {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
