/* =============================================================
   owntus.css  —  Owntus Media Design System
   All custom styles, animations & utilities for the frontend.
   Linked from: resources/views/frontend/layouts/app.blade.php
   ============================================================= */

/* ─────────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
   ───────────────────────────────────────── */
:root {
  /* Text colours */
  --heading: #ffffff;
  --heading-2: #e5e7eb;
  --body: #9ca3af;
  --light: #6b7280;

  /* Brand palette */
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --warm: #fbbf24;

  /* Surface colours */
  --ink: #0a0a0f;
  --surface: #121218;
  --surface-2: #191922;
  --hairline: rgba(255, 255, 255, 0.07);
}


/* ─────────────────────────────────────────
   2. GLOBAL RESETS & BASE
   ───────────────────────────────────────── */
* {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: #2b2b36;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a4a;
}


/* ─────────────────────────────────────────
   3. TYPOGRAPHY SYSTEM
   ───────────────────────────────────────── */
.h1-hero {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--heading);
}

.h2-section {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--heading);
}

.h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.3;
  color: var(--heading);
}

.h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: var(--heading);
}

.h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--heading);
}

.h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--heading);
}

.body-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.8;
  color: var(--body);
}

.small-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--body);
}

.caption {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--light);
}

.nav-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.btn-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--heading);
}

.card-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
}

.blog-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--heading);
}

/* Text colour utilities */
.text-heading {
  color: var(--heading);
}

.text-heading2 {
  color: var(--heading-2);
}

.text-body {
  color: var(--body);
}

.text-light {
  color: var(--light);
}


/* ─────────────────────────────────────────
   4. GRADIENT & NOISE UTILITIES
   ───────────────────────────────────────── */

/* Hero key-phrase gradient text */
.grad-text {
  background: linear-gradient(97deg, #c4b5fd 0%, #8b5cf6 35%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Radial gradient noise overlay */
.grid-noise {
  background-image:
    radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.16), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(34, 211, 238, 0.10), transparent 45%);
}

/* Hairline grid backdrop for hero */
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
}


/* ─────────────────────────────────────────
   5. BUTTONS
   ───────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(97deg, #8b5cf6, #6d5cf6 55%, #22d3ee 130%);
  box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.55);
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 36px -6px rgba(139, 92, 246, 0.7);
}

.btn-outline {
  border: 1px solid var(--hairline);
  color: var(--heading);
  background: transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-outline:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.07);
}


/* ─────────────────────────────────────────
   6. CARD COMPONENT
   ───────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, #14141b, #101014);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(139, 92, 246, 0.35);
}


/* ─────────────────────────────────────────
   7. ICON BOX (floating ecosystem icons)
   ───────────────────────────────────────── */
.icon-box {
  position: absolute;
  border-radius: 1.25rem;
  background: rgba(20, 20, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* ─────────────────────────────────────────
   8. SCROLL-SNAP & NUMBER HELPERS
   ───────────────────────────────────────── */
.snap-row {
  scroll-snap-type: x mandatory;
}

.snap-item {
  scroll-snap-align: start;
}

.num-tick {
  font-variant-numeric: tabular-nums;
}


/* ─────────────────────────────────────────
   9. REVEAL-ON-SCROLL ANIMATION
   ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grouped reveals */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}


/* ─────────────────────────────────────────
   10. MARQUEE / TICKER ANIMATION
   ───────────────────────────────────────── */
.marquee-track {
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* ─────────────────────────────────────────
   11. FLOATING ICON ANIMATIONS
   ───────────────────────────────────────── */
@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes float-medium {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-25px) rotate(-3deg);
  }
}

@keyframes float-fast {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes float-pulse {

  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-10px) scale(1.08);
    opacity: 1;
  }
}

.float-1 {
  animation: float-slow 6s ease-in-out infinite;
}

.float-2 {
  animation: float-medium 7s ease-in-out infinite;
}

.float-3 {
  animation: float-fast 5s ease-in-out infinite;
}

.float-4 {
  animation: float-medium 8s ease-in-out infinite alternate-reverse;
}

.float-5 {
  animation: float-pulse 4s ease-in-out infinite;
}


/* ─────────────────────────────────────────
   12. FADE & SLIDE-IN ANIMATIONS
   ───────────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utility classes for one-shot entrance animations */
.anim-fade-up {
  animation: fade-up 0.7s ease both;
}

.anim-fade-in {
  animation: fade-in 0.6s ease both;
}

.anim-slide-left {
  animation: slide-in-left 0.7s ease both;
}

.anim-slide-right {
  animation: slide-in-right 0.7s ease both;
}

.anim-scale-in {
  animation: scale-in 0.6s ease both;
}

.anim-delay-100 {
  animation-delay: 0.10s;
}

.anim-delay-200 {
  animation-delay: 0.20s;
}

.anim-delay-300 {
  animation-delay: 0.30s;
}

.anim-delay-400 {
  animation-delay: 0.40s;
}

.anim-delay-500 {
  animation-delay: 0.50s;
}

.anim-delay-600 {
  animation-delay: 0.60s;
}

.anim-delay-700 {
  animation-delay: 0.70s;
}

.anim-delay-800 {
  animation-delay: 0.80s;
}


/* ─────────────────────────────────────────
   13. GLOW / PULSE EFFECTS & BORDER SHIMMER
   ───────────────────────────────────────── */
@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px -4px rgba(139, 92, 246, 0.4);
  }

  50% {
    box-shadow: 0 0 40px -4px rgba(139, 92, 246, 0.8);
  }
}

@keyframes glow-cyan {

  0%,
  100% {
    box-shadow: 0 0 20px -4px rgba(34, 211, 238, 0.4);
  }

  50% {
    box-shadow: 0 0 40px -4px rgba(34, 211, 238, 0.8);
  }
}

.glow-accent {
  animation: glow-pulse 3s ease-in-out infinite;
}

.glow-cyan {
  animation: glow-cyan 3s ease-in-out infinite;
}

@keyframes border-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.border-shimmer {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.border-shimmer::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee, #8b5cf6);
  background-size: 200% 200%;
  animation: border-shimmer 4s ease infinite;
  z-index: -1;
}


/* ─────────────────────────────────────────
   14. SPIN / ROTATE ANIMATIONS
   ───────────────────────────────────────── */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.spin-slow {
  animation: spin-slow 12s linear infinite;
}

.spin-reverse {
  animation: spin-reverse 10s linear infinite;
}


/* ─────────────────────────────────────────
   15. COUNTER / NUMBER TICKER STYLES
   ───────────────────────────────────────── */
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}


/* ─────────────────────────────────────────
   16. BADGE / TAG CHIPS
   ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.badge-accent {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.30);
  color: #c4b5fd;
}

.badge-cyan {
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #67e8f9;
}

.badge-warm {
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fde68a;
}


/* ─────────────────────────────────────────
   17. SECTION DIVIDERS
   ───────────────────────────────────────── */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
}


/* ─────────────────────────────────────────
   18. GLASSMORPHISM PANEL
   ───────────────────────────────────────── */
.glass {
  background: rgba(20, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-light {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* ─────────────────────────────────────────
   19. PROGRESS BAR
   ───────────────────────────────────────── */
@keyframes progress-fill {
  from {
    width: 0%;
  }
}

.progress-bar {
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  animation: progress-fill 1.2s ease both;
}


/* ─────────────────────────────────────────
   20. TOOLTIP  (via data-tip attribute)
   ───────────────────────────────────────── */
[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #1e1e2a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--heading-2);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}


/* ─────────────────────────────────────────
   21. FOCUS / ACCESSIBILITY
   ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* ─────────────────────────────────────────
   23. ECOSYSTEM / BREADCRUMB FLOATING ICONS
   Used in hero/breadcrumb sections of all
   main pages (about, services, portfolio,
   blog, contact).
   ───────────────────────────────────────── */

/* Wrapper that holds all floating icons (positioned relative to section) */
.icon-ecosystem {
  position: absolute;
  inset: 0;
}

/* Base icon container */
.ecosystem-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  will-change: transform;
  transition: all 0.3s ease;
}

.ecosystem-icon:hover {
  transform: scale(1.1) !important;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  z-index: 50;
}

/* ── Depth layers ── */
.eco-depth-front {
  z-index: 30;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.eco-depth-mid {
  z-index: 20;
  filter: blur(1px) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
  opacity: 0.8;
}

.eco-depth-back {
  z-index: 10;
  filter: blur(3px);
  opacity: 0.5;
  transform: scale(0.8);
}

/* ── Glow variants ── */
.eco-glow-blue {
  box-shadow:
    0 0 20px rgba(56, 189, 248, 0.15),
    inset 0 0 10px rgba(56, 189, 248, 0.10);
}

.eco-glow-purple {
  box-shadow:
    0 0 20px rgba(124, 58, 237, 0.15),
    inset 0 0 10px rgba(124, 58, 237, 0.10);
}

/* ── Keyframe animations ── */
@keyframes ecoFloat1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(15px, -20px) rotate(5deg) scale(1.05);
  }

  50% {
    transform: translate(-10px, -30px) rotate(-5deg) scale(0.95);
  }

  75% {
    transform: translate(-20px, 10px) rotate(2deg) scale(1.02);
  }
}

@keyframes ecoFloat2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  33% {
    transform: translate(-20px, 15px) rotate(-8deg) scale(0.90);
  }

  66% {
    transform: translate(10px, 25px) rotate(6deg) scale(1.10);
  }
}

@keyframes ecoFloat3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(25px, 25px) rotate(10deg);
  }
}

@keyframes ecoFloat4 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(-15px, -15px) rotate(-5deg) scale(1.05);
  }

  50% {
    transform: translate(10px, -25px) rotate(5deg) scale(0.95);
  }

  75% {
    transform: translate(20px, 15px) rotate(-2deg) scale(1.02);
  }
}

@keyframes ecoFloat5 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  33% {
    transform: translate(20px, -15px) rotate(8deg) scale(0.90);
  }

  66% {
    transform: translate(-10px, -25px) rotate(-6deg) scale(1.10);
  }
}

@keyframes ecoFloat6 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-25px, -25px) rotate(-10deg);
  }
}

/* ── Float utility classes ── */
.eco-float-1 {
  animation: ecoFloat1 18s ease-in-out infinite;
}

.eco-float-2 {
  animation: ecoFloat2 22s ease-in-out infinite;
}

.eco-float-3 {
  animation: ecoFloat3 25s ease-in-out infinite;
}

.eco-float-4 {
  animation: ecoFloat4 19s ease-in-out infinite;
}

.eco-float-5 {
  animation: ecoFloat5 23s ease-in-out infinite;
}

.eco-float-6 {
  animation: ecoFloat6 26s ease-in-out infinite;
}


/* ─────────────────────────────────────────
   24. FORM INPUTS & SUCCESS MODAL
   ───────────────────────────────────────── */
.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 1rem 1.25rem !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

.input-field:focus {
  outline: none !important;
  border-color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15) !important;
}

.input-field::placeholder {
  color: #9ca3af !important;
}

select.input-field {
  appearance: none !important;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%239ca3af%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E') !important;
  background-repeat: no-repeat !important;
  background-position: right 1.25rem top 50% !important;
  background-size: 0.65rem auto !important;
}

select.input-field option {
  background: #121218 !important;
  color: white !important;
}

/* Modal default hidden state & transition */
#successModal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#successModal.show {
  opacity: 1;
  pointer-events: auto;
}

#modalContent {
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────
   22. BLOG ARTICLE LIGHT THEME TYPOGRAPHY
   ───────────────────────────────────────── */
.blog-content-body {
  color: #1e293b !important;
  font-size: 1.15rem;
  line-height: 1.85;
}
.blog-content-body span,
.blog-content-body p,
.blog-content-body div,
.blog-content-body li {
  color: #1e293b;
}
.blog-content-body h1, 
.blog-content-body h2, 
.blog-content-body h3, 
.blog-content-body h4, 
.blog-content-body h5, 
.blog-content-body h6 {
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.blog-content-body h1 { font-size: 2.25rem; }
.blog-content-body h2 { font-size: 1.75rem; border-left: 4px solid #8b5cf6; padding-left: 0.85rem; }
.blog-content-body h3 { font-size: 1.35rem; }
.blog-content-body p { margin-bottom: 1.25em; }
.blog-content-body a { color: #7c3aed !important; text-decoration: underline; font-weight: 600; }
.blog-content-body a:hover { color: #5b21b6 !important; }
.blog-content-body ul { list-style-type: disc !important; padding-left: 1.5rem !important; margin-bottom: 1.25em; }
.blog-content-body ol { list-style-type: decimal !important; padding-left: 1.5rem !important; margin-bottom: 1.25em; }
.blog-content-body li { margin-bottom: 0.6em; }
.blog-content-body blockquote {
  border-left: 4px solid #8b5cf6;
  padding: 1.25rem 1.5rem;
  font-style: italic;
  color: #334155;
  background: linear-gradient(90deg, #f5f3ff 0%, #faf5ff 100%);
  border-radius: 0.75rem;
  margin: 1.75em 0;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.1);
}
.blog-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.blog-content-body th, .blog-content-body td {
  border: 1px solid #e2e8f0;
  padding: 0.85rem 1.15rem;
  text-align: left;
}
.blog-content-body th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}
.blog-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 1.25rem;
  margin: 2em 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}


/* ─────────────────────────────────────────
   23. REDUCED MOTION OVERRIDES
   (always last for correct cascade priority)
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─────────────────────────────────────────
   24. CONTINUOUS LOGO MARQUEE ANIMATION
   ───────────────────────────────────────── */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex !important;
  width: max-content !important;
  animation: marqueeScroll 25s linear infinite !important;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: running !important;
}

/* ─────────────────────────────────────────
   25. BLOG CONTENT BODY RICH EDITOR STYLING
   ───────────────────────────────────────── */
.blog-content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.blog-content-body p {
  margin-bottom: 1.5rem;
}

.blog-content-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #0f172a;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid #6366f1;
  padding-left: 14px;
}

.blog-content-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #1e293b;
  margin-top: 1.85rem;
  margin-bottom: 0.85rem;
}

.blog-content-body h4, .blog-content-body h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-content-body a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.blog-content-body a:hover {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
  background-color: rgba(99, 102, 241, 0.08);
  border-radius: 4px;
  padding: 0 4px;
}

.blog-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: block;
  border: 1px solid #f1f5f9;
}

.blog-content-body figure {
  margin: 2rem 0;
  text-align: center;
}

.blog-content-body figcaption {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.75rem;
  font-style: italic;
}

.blog-content-body table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 2rem 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.blog-content-body th {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  text-align: left !important;
  font-size: 0.925rem !important;
}

.blog-content-body td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.95rem !important;
  color: #334155 !important;
}

.blog-content-body tr:last-child td {
  border-bottom: none !important;
}

.blog-content-body tr:hover td {
  background-color: #f8fafc !important;
}

.blog-content-body blockquote {
  border-left: 4px solid #8b5cf6;
  background: #f8fafc;
  padding: 1.5rem 1.75rem;
  border-radius: 0 14px 14px 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: #475569;
  font-size: 1.1rem;
}

.blog-content-body ul {
  list-style-type: disc;
  padding-left: 1.75rem;
  margin: 1.25rem 0;
}

.blog-content-body ol {
  list-style-type: decimal;
  padding-left: 1.75rem;
  margin: 1.25rem 0;
}

.blog-content-body li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
  color: #334155;
}

/* ─────────────────────────────────────────
   RICH TEXT & PROSE STYLING (Pointers, Links, Tables)
   ───────────────────────────────────────── */
.prose, .prose-invert, .rich-text-content {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* 1. Custom Links Styling */
.prose a, .prose-invert a, .rich-text-content a {
  color: #22d3ee;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.4);
  text-underline-offset: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.prose a:hover, .prose-invert a:hover, .rich-text-content a:hover {
  color: #a78bfa;
  text-decoration-color: #a78bfa;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

/* 2. Pointers & Lists Styling */
.prose ul, .prose-invert ul, .rich-text-content ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.5rem 0 !important;
}

.prose ul > li, .prose-invert ul > li, .rich-text-content ul > li {
  position: relative;
  padding-left: 1.75rem !important;
  margin-bottom: 0.75rem !important;
  color: #e5e7eb;
}

.prose ul > li::before, .prose-invert ul > li::before, .rich-text-content ul > li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: #22d3ee;
  font-size: 0.9rem;
  line-height: 1.8;
  transition: transform 0.2s ease;
}

.prose ul > li:hover::before, .prose-invert ul > li:hover::before, .rich-text-content ul > li:hover::before {
  color: #a78bfa;
  transform: scale(1.2);
}

.prose ol, .prose-invert ol, .rich-text-content ol {
  counter-reset: custom-counter;
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.5rem 0 !important;
}

.prose ol > li, .prose-invert ol > li, .rich-text-content ol > li {
  counter-increment: custom-counter;
  position: relative;
  padding-left: 2.25rem !important;
  margin-bottom: 0.75rem !important;
  color: #e5e7eb;
}

.prose ol > li::before, .prose-invert ol > li::before, .rich-text-content ol > li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.3));
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3. Dark Mode Custom Tables Styling */
.prose table, .prose-invert table, .rich-text-content table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 2rem 0 !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: #111116 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

.prose th, .prose-invert th, .rich-text-content th {
  background: linear-gradient(180deg, #1e1e28 0%, #16161f 100%) !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
}

.prose td, .prose-invert td, .rich-text-content td {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  font-size: 0.925rem !important;
  color: #d1d5db !important;
  transition: background-color 0.2s ease !important;
}

.prose tr:last-child td, .prose-invert tr:last-child td, .rich-text-content tr:last-child td {
  border-bottom: none !important;
}

.prose tr:hover td, .prose-invert tr:hover td, .rich-text-content tr:hover td {
  background-color: rgba(139, 92, 246, 0.1) !important;
  color: #ffffff !important;
}

/* 4. Font Sizes & Typography Scaling for Editor Content */
.prose h1, .prose-invert h1, .rich-text-content h1, .blog-content-body h1 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.25 !important;
}

.dark .prose h1, .dark .prose-invert h1, .dark .rich-text-content h1, .dark .blog-content-body h1 {
  color: #ffffff !important;
}

.prose h2, .prose-invert h2, .rich-text-content h2, .blog-content-body h2 {
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.3 !important;
}

.dark .prose h2, .dark .prose-invert h2, .dark .rich-text-content h2, .dark .blog-content-body h2 {
  color: #ffffff !important;
}

.prose h3, .prose-invert h3, .rich-text-content h3, .blog-content-body h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.75rem !important;
}

.dark .prose h3, .dark .prose-invert h3, .dark .rich-text-content h3, .dark .blog-content-body h3 {
  color: #f3f4f6 !important;
}

.prose h4, .prose-invert h4, .rich-text-content h4, .blog-content-body h4 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.5rem !important;
}

.dark .prose h4, .dark .prose-invert h4, .dark .rich-text-content h4, .dark .blog-content-body h4 {
  color: #e5e7eb !important;
}

.prose p, .prose-invert p, .rich-text-content p, .blog-content-body p {
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  color: #374151 !important;
  margin-bottom: 1.25rem !important;
}

.dark .prose p, .dark .prose-invert p, .dark .rich-text-content p, .dark .blog-content-body p {
  color: #d1d5db !important;
}

/* 5. Photos & Uploaded Images in Rich Text Content */
.prose img, .prose-invert img, .rich-text-content img, .blog-content-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 1rem !important;
  margin: 1.5rem auto !important;
  display: block !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 6. Blockquotes & Callout Boxes */
.prose blockquote, .prose-invert blockquote, .rich-text-content blockquote, .blog-content-body blockquote {
  border-left: 4px solid #8b5cf6 !important;
  padding: 1rem 1.5rem !important;
  margin: 1.5rem 0 !important;
  background: rgba(139, 92, 246, 0.08) !important;
  border-radius: 0 0.75rem 0.75rem 0 !important;
  font-style: italic !important;
  color: #4b5563 !important;
}

.dark .prose blockquote, .dark .prose-invert blockquote, .dark .rich-text-content blockquote, .dark .blog-content-body blockquote {
  color: #e5e7eb !important;
}