/* ==========================================================================
   Axelid theme — structural / animation CSS
   (ported 1:1 from the original static build)
   ========================================================================== */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
/* Scroll-in animation is intentionally NOT gated behind a hidden starting
   state anymore — if the animation JS ever fails to fire for any reason,
   content must still be visible. .in is added by JS purely as a harmless,
   optional visual flourish and has no effect unless .reveal already sits
   at opacity:1 (which it always does by default above). */
.reveal.in { opacity: 1; transform: translateY(0); }
.tabular { font-variant-numeric: tabular-nums; }
#site-header { transition: box-shadow .25s ease, padding .25s ease; }
#site-header.is-scrolled { box-shadow: 0 4px 24px rgba(15,23,42,0.08); }
.lift-card { animation: floaty 5s ease-in-out infinite; }
.lift-card:nth-child(2) { animation-delay: .6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hero-section { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; right: -8%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(16,185,129,0.18) 0%, rgba(16,185,129,0.06) 45%, transparent 70%);
  filter: blur(10px); pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 60% 55% at 78% 35%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 78% 35%, black 20%, transparent 75%);
  pointer-events: none;
}

.glass-card {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 20px 50px -20px rgba(15,23,42,0.35);
  transform-style: preserve-3d;
  transition: transform .15s ease-out, box-shadow .3s ease;
  will-change: transform;
}

.bar-fill { width: 0%; transition: width 1.4s cubic-bezier(.16,1,.3,1); }

.trusted-logo img { filter: grayscale(1) opacity(0.55); transition: filter .25s ease; }
.trusted-logo:hover img { filter: grayscale(0) opacity(1); }

.btn-primary { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(16,185,129,0.45); }

.glow-glass-card {
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16,185,129,0.25);
  box-shadow: 0 0 50px -10px rgba(16,185,129,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}

.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: .12s; }
.stagger-item:nth-child(3) { transition-delay: .24s; }

.service-card {
  background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(15,23,42,.18), 0 0 0 1px rgba(16,185,129,0.35), 0 0 24px -4px rgba(16,185,129,0.35);
  border-color: #10B981;
}
.service-card:hover .icon-wrap { animation: iconPulse 1.4s ease-in-out infinite; }
@keyframes iconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.gradient-border-wrap {
  border-radius: 1rem; padding: 1px;
  background: linear-gradient(115deg, #10B981, #0F172A, #10B981, #34D399);
  background-size: 300% 300%;
  animation: borderFlow 6s linear infinite;
}
@keyframes borderFlow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.marquee-wrap { overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.process-number {
  font-size: 2.25rem; font-weight: 800; color: #10B981; line-height: 1;
  text-shadow: 0 0 12px rgba(16,185,129,0.65), 0 0 30px rgba(16,185,129,0.35), 0 2px 0 rgba(0,0,0,0.45);
}
.process-line-track { position: absolute; top: 22px; height: 2px; background: rgba(255,255,255,0.08); }
.process-line-fill { position: absolute; top: 0; height: 100%; width: 0%; background: linear-gradient(90deg, #10B981, #34D399); box-shadow: 0 0 10px rgba(16,185,129,0.7); }

.device-mockup {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 45px -20px rgba(15,23,42,0.35);
  transform: perspective(900px) rotateX(6deg) rotateY(-8deg);
  transition: transform .4s ease, box-shadow .4s ease;
}
.device-mockup:hover { transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(-4px); box-shadow: 0 40px 60px -20px rgba(15,23,42,0.4); }
.device-bar { display:flex; align-items:center; gap:5px; padding:8px 10px; background:#F1F5F9; }
.device-dot { width:7px; height:7px; border-radius:50%; background:#CBD5E1; display:block; }

.bento-card { box-shadow: 0 8px 20px -12px rgba(15,23,42,0.15); transition: box-shadow .3s ease, transform .3s ease; }
.bento-card:hover { box-shadow: 0 20px 40px -16px rgba(15,23,42,0.28); transform: translateY(-3px); }

.hero-globe-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 35%, black 65%),
              linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 35%, black 65%),
                       linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: #10B981; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.wp-caption, .alignleft, .alignright, .aligncenter { max-width: 100%; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }

/* ==========================================================================
   Post content headings — explicit fallback in case the Tailwind Typography
   CDN plugin doesn't load. Gives h2/h3/h4 clearly distinct, on-brand sizing
   so it's obvious which level is which while editing/reading a post.
   ========================================================================== */
.axelid-post-content h1,
.axelid-post-content h2,
.axelid-post-content h3,
.axelid-post-content h4,
.axelid-post-content h5,
.axelid-post-content h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.axelid-post-content h1 { font-size: 2.25rem; margin: 2.2rem 0 1rem; }
.axelid-post-content h2 { font-size: 1.75rem; margin: 2rem 0 0.9rem; padding-bottom: .5rem; border-bottom: 2px solid #ECFDF5; }
.axelid-post-content h3 { font-size: 1.375rem; margin: 1.75rem 0 0.75rem; color: #059669; }
.axelid-post-content h4 { font-size: 1.125rem; margin: 1.5rem 0 0.6rem; }
.axelid-post-content h5 { font-size: 1rem; margin: 1.25rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.axelid-post-content h6 { font-size: 0.875rem; margin: 1.25rem 0 0.5rem; color: #64748B; text-transform: uppercase; letter-spacing: 0.05em; }
.axelid-post-content p { margin: 1rem 0; line-height: 1.75; color: #1E293B; }
.axelid-post-content ul, .axelid-post-content ol { margin: 1rem 0 1rem 1.5rem; }
.axelid-post-content ul { list-style: disc; }
.axelid-post-content ol { list-style: decimal; }
.axelid-post-content li { margin: 0.35rem 0; line-height: 1.7; }
.axelid-post-content a { color: #059669; text-decoration: underline; text-underline-offset: 2px; }
.axelid-post-content strong { color: #0F172A; font-weight: 700; }
.axelid-post-content blockquote {
  margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 3px solid #10B981;
  background: #ECFDF5; border-radius: 0 .5rem .5rem 0; font-style: italic; color: #1E293B;
}
.axelid-post-content img { border-radius: .75rem; margin: 1.25rem 0; }
.axelid-post-content code { background: #F1F5F9; padding: .15rem .4rem; border-radius: .3rem; font-family: 'JetBrains Mono', monospace; font-size: .875em; }
.axelid-post-content pre { background: #0F172A; color: #ECFDF5; padding: 1rem; border-radius: .75rem; overflow-x: auto; }
.axelid-post-content pre code { background: none; padding: 0; color: inherit; }
.axelid-post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.axelid-post-content th, .axelid-post-content td { border: 1px solid rgba(15,23,42,0.1); padding: .6rem .8rem; text-align: left; }
.axelid-post-content th { background: #F8FAFC; font-weight: 700; }

/* ---- Author bio box ---- */
.axelid-author-box { background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%); border: 1px solid rgba(15,23,42,0.08); }

/* ---- Related posts cards reuse .bento-card hover styling already defined above ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger-item { opacity:1; transform:none; transition:none; }
  .lift-card, .hero-glow, .gradient-border-wrap, .marquee-track { animation: none; }
  .service-card:hover, .service-card:hover .icon-wrap, .device-mockup, .device-mockup:hover, .bento-card:hover, .btn-primary:hover, .glass-card { transform:none; transition:none; }
}
