@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

:root {
  --primary-300: #93c5fd;
  --primary-500: #0d6efd;
  --primary-600: #0b5ed7;
  --primary-700: #1e40af;
  --primary-900: #084298;
}

img { max-width: 100%; }
.post-content img { max-width: 100% !important; width: auto !important; height: auto !important; display: block; }
html { scroll-behavior: smooth; }

.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
body { background-color: #f8fafc; }

.blog-form-shell {
  position: relative;
  isolation: isolate;
}

.blog-form-hero {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #2563eb 100%);
}

.blog-form-hero-orb {
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  filter: blur(2px);
}

.blog-form-hero-orb-alt {
  right: auto;
  left: -3rem;
  bottom: -4rem;
  top: auto;
  width: 12rem;
  height: 12rem;
  background: rgba(59,130,246,0.22);
}

.blog-form-section {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.55rem 0.65rem;
  box-shadow: 0 1px 0 rgba(15,23,42,0.03);
}

.blog-form-label {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.blog-readonly-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background: #f8fafc;
  color: #64748b;
  padding: 0.42rem 0.75rem;
}

.blog-form-shell input[type="text"],
.blog-form-shell input[type="email"],
.blog-form-shell input[type="password"],
.blog-form-shell input[type="number"],
.blog-form-shell input[type="url"],
.blog-form-shell select,
.blog-form-shell textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background: #fff;
  color: #0f172a;
  padding: 0.42rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-form-shell input:focus,
.blog-form-shell select:focus,
.blog-form-shell textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.blog-form-shell input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
  margin-top: 0.35rem;
}

.blog-form-shell .cke {
  border-radius: 1rem !important;
  overflow: hidden;
  border-color: #cbd5e1 !important;
}

.blog-form-shell .cke_top,
.blog-form-shell .cke_bottom {
  background: #f8fafc !important;
}

.blog-form-shell .cke_top {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.blog-form-shell .cke_contents {
  background: #fff;
}

.blog-form-shell .cke_inner .cke_contents {
  min-height: 150px;
}

.blog-form-shell .form-field {
  margin-top: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #0d6efd, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(13,110,253,0.3)); }
  50% { filter: drop-shadow(0 0 18px rgba(13,110,253,0.5)) drop-shadow(0 0 36px rgba(13,110,253,0.2)); }
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #0d6efd;
  margin-left: 3px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.glitch-line {
  animation: glitch 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.8s);
}

@keyframes glitch {
  0%, 85%, 100% { transform: translate(0); opacity: 1; }
  86% { transform: translate(-1px, 0.5px); opacity: 0.9; }
  88% { transform: translate(1px, -0.5px); opacity: 0.95; }
  90% { transform: translate(-0.5px, 0); opacity: 1; }
  92% { transform: translate(0.5px, -0.3px); opacity: 0.9; }
  94% { transform: translate(0); opacity: 1; }
}

.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
}

.glow-primary-500 { box-shadow: 0 0 20px rgba(13,110,253,0.15); }
.glow-primary-600 { box-shadow: 0 0 20px rgba(11,94,215,0.15); }
.glow-violet { box-shadow: 0 0 20px rgba(139,92,246,0.15); }

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
}

.tech-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Hero button entrance animation */
.hero-btn-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-btn-in 0.6s ease-out forwards;
}

.hero-btn-animate:nth-child(1) { animation-delay: 0.3s; }
.hero-btn-animate:nth-child(2) { animation-delay: 0.45s; }

@keyframes hero-btn-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terminal typewriter animation */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #56b6c2;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

/* Terminal output lines */
.terminal-line {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.terminal-line.visible {
  max-height: 2em;
  opacity: 1;
}

/* Terminal fade-out for cycling */
.terminal-content {
  transition: opacity 0.5s ease;
}

.terminal-content.fade-out {
  opacity: 0;
}

/* Hero button pulse glow on WhatsApp CTA */
.hero-btn-whatsapp {
  position: relative;
}

.hero-btn-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: whatsapp-pulse 3s ease-in-out infinite 1.5s;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
}

footer { margin-top: 0 !important; }

.blog-chatbot-message.typing { opacity: 0.7; }

.blog-chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
}

.blog-chatbot-form input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
}

.blog-chatbot-form button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--primary-600);
  color: #fff;
}
