/* ===== ZIVOX — Enterprise Upgrade CSS =====
 * World-class micro-animations, polish, accessibility, and UI improvements.
 * Preserves all existing design tokens and brand identity.
 * Targets: Lighthouse 95+, WCAG AA, Core Web Vitals
 */

/* ========================
   PERFORMANCE & RENDERING
   ======================== */
*,
*::before,
*::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, iframe {
  content-visibility: auto;
}

/* ========================
   FOCUS & ACCESSIBILITY
   ======================== */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 99999;
  background: var(--accent-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* High contrast improvements */
.text-primary, h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

/* ========================
   MICRO-ANIMATIONS
   ======================== */

/* Page entry animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.4); }
}
@keyframes borderFlow {
  0%   { border-color: rgba(59,130,246,0.3); }
  33%  { border-color: rgba(139,92,246,0.4); }
  66%  { border-color: rgba(6,182,212,0.3); }
  100% { border-color: rgba(59,130,246,0.3); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}
@keyframes spin360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.05); }
  80%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}
@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50%       { border-color: var(--accent-blue); }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-scale { transform: scale(0.9); }
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.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; }

/* ========================
   NAVBAR UPGRADES
   ======================== */
.navbar {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: rgba(5, 7, 13, 0.95) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.5);
}
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--accent-blue) !important;
}

/* Logo hover effect */
.nav-logo img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.nav-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(59,130,246,0.6));
}

/* Mobile menu animation */
.nav-menu {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}

/* ========================
   BUTTON UPGRADES
   ======================== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

/* Ripple effect */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
  border-radius: inherit;
}
.btn:active::before {
  transform: scale(2.5);
  transition: transform 0s;
}

.btn-primary {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(59,130,246,0.5), 0 0 40px rgba(139,92,246,0.3);
}
.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-ghost {
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.3) !important;
  transform: translateY(-2px);
}

/* Animated gradient button variant */
.btn-glow {
  background: var(--gradient-main);
  animation: glowPulse 3s ease-in-out infinite;
}

/* ========================
   CARDS — ENTERPRISE HOVER
   ======================== */
.service-card,
.portfolio-card,
.pricing-card,
.info-card,
.review-card,
.value-card,
.blog-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.5) !important;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(59,130,246,0.6) !important;
  box-shadow: 0 24px 60px rgba(59,130,246,0.25), 0 0 50px rgba(139,92,246,0.2);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.5) !important;
}

.blog-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Service icon animation */
.service-card .service-icon,
.service-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}
.service-card:hover .service-icon,
.service-card:hover .why-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 0 30px rgba(59,130,246,0.6);
}

/* ========================
   HERO SECTION UPGRADES
   ======================== */
.hero-section h1,
.page-hero h1,
.founders-hero h1 {
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.hero-section .lead,
.hero-section p,
.page-hero .lead {
  animation: fadeInUp 0.9s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.hero-section .hero-cta,
.page-hero .cta {
  animation: fadeInUp 0.9s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Animated gradient headline */
.gradient-text,
.section-title {
  background-size: 200% auto;
  animation: gradientShift 5s ease infinite;
}

/* Hero floating elements */
.hero-visual,
.float-card-wrap {
  animation: fadeInRight 1s 0.4s ease both;
}

/* ========================
   STATS & NUMBERS
   ======================== */
.stat-num,
.fh-stat-num {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stat-card,
.fh-stat {
  transition: transform 0.3s ease;
}
.stat-card:hover,
.fh-stat:hover {
  transform: scale(1.05);
}

/* ========================
   FORM UPGRADES
   ======================== */
.field input,
.field select,
.field textarea,
.form-grid input,
.form-grid select,
.form-grid textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18), 0 4px 12px rgba(0,0,0,0.3) !important;
  background: rgba(20, 30, 60, 0.8) !important;
  outline: none;
}

/* Input label float animation */
.field {
  position: relative;
}

/* ========================
   LOADING STATES
   ======================== */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 12px; }
.skeleton-thumb { aspect-ratio: 16/9; border-radius: 12px; }

/* Loading spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59,130,246,0.2);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin360 0.8s linear infinite;
  margin: 0 auto;
}

/* Page loader */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#page-loader .loader-logo {
  width: 60px;
  height: 60px;
  animation: bounceIn 0.6s ease;
}
#page-loader .loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
#page-loader .loader-bar::after {
  content: '';
  position: absolute;
  left: -50%;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--gradient-main);
  animation: pageLoaderAnim 1s ease-in-out forwards;
}
@keyframes pageLoaderAnim {
  0%   { left: -50%; width: 50%; }
  70%  { left: 40%; width: 60%; }
  100% { left: 100%; width: 0; }
}

/* ========================
   TOAST NOTIFICATIONS
   ======================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.toast {
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  animation: fadeInRight 0.35s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 0.9rem;
  font-weight: 500;
}
.toast.success { background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.4); }
.toast.error   { background: rgba(239,68,68,0.2);  border-color: rgba(239,68,68,0.4); }
.toast.info    { background: rgba(59,130,246,0.2);  border-color: rgba(59,130,246,0.4); }
.toast.warning { background: rgba(245,158,11,0.2);  border-color: rgba(245,158,11,0.4); }
.toast.exiting { animation: fadeOutRight 0.3s ease forwards; }

@keyframes fadeOutRight {
  to { opacity: 0; transform: translateX(100px); }
}

/* ========================
   SCROLL PROGRESS BAR
   ======================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-main);
  z-index: 99997;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* ========================
   BACK TO TOP
   ======================== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(59,130,246,0.4);
  border: none;
  font-size: 1rem;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 32px rgba(59,130,246,0.6);
}

/* ========================
   BLOG SYSTEM UPGRADES
   ======================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
}

.blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}
.blog-thumb.placeholder i {
  font-size: 3rem;
  color: var(--text-dim);
}

.blog-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.blog-meta i {
  color: var(--accent-blue);
  font-size: 0.78rem;
}

/* Blog categories */
.blog-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* Blog reading time */
.blog-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-purple);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Blog detail page */
.blog-hero {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  max-height: 440px;
}
.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: var(--text-primary);
  margin: 28px 0 12px;
  font-weight: 700;
}
.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.blog-content p { margin: 0 0 18px; }
.blog-content ul,
.blog-content ol {
  padding-left: 24px;
  margin: 0 0 18px;
}
.blog-content li { margin-bottom: 8px; }
.blog-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-content a:hover { color: var(--accent-purple); }
.blog-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 16px 20px;
  background: rgba(59,130,246,0.08);
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.blog-content img {
  border-radius: var(--radius);
  margin: 20px 0;
  max-width: 100%;
}
.blog-content code {
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: 'Fira Code', 'Consolas', monospace;
}
.blog-content pre {
  background: rgba(10,14,26,0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.blog-content pre code {
  background: none;
  padding: 0;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.blog-content th,
.blog-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.blog-content th {
  background: var(--bg-tertiary);
  font-weight: 700;
}

/* Blog search */
.blog-search {
  position: relative;
  max-width: 500px;
  margin: 0 auto 40px;
}
.blog-search input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.blog-search input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
  outline: none;
}
.blog-search .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Blog pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.blog-pagination button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.blog-pagination button:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: var(--accent-blue);
}
.blog-pagination button.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.blog-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Blog sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
}

.blog-sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.blog-sidebar-widget h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Popular posts */
.popular-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.popular-post-item:last-child { border-bottom: none; }
.popular-post-item:hover { color: var(--accent-blue); }
.popular-post-thumb {
  width: 60px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.popular-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-post-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Related posts */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ========================
   ADMIN BLOG MANAGER
   ======================== */
.blog-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.blog-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-status-badge.published {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
}
.blog-status-badge.draft {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fcd34d;
}

/* Rich text editor toolbar */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: rgba(15,20,36,0.8);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.editor-toolbar button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.editor-toolbar button:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border);
  color: var(--text-primary);
}
.editor-toolbar button.active {
  background: rgba(59,130,246,0.2);
  border-color: rgba(59,130,246,0.4);
  color: var(--accent-blue);
}
.editor-toolbar .divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 4px;
}
.editor-content {
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(15,23,42,0.7);
  color: var(--text-primary);
  padding: 16px;
  outline: none;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: border-color 0.25s ease;
}
.editor-content:focus {
  border-color: var(--accent-blue);
}

/* ========================
   FOUNDERS PHOTO UPGRADE
   ======================== */
.founder-photo-frame {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.founder-photo-wrapper:hover .founder-photo {
  transform: scale(1.04);
}
.founder-photo-wrapper {
  transition: all 0.3s ease;
}
.founder-photo-wrapper:hover .founder-photo-glow {
  opacity: 1;
  transform: scale(1.1);
}
.founder-photo-glow {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0.7;
}

/* ========================
   PWA INSTALL PROMPT
   ======================== */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9998;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pwa-install-banner.show {
  transform: translateY(0);
}
.pwa-install-banner .pwa-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.pwa-install-banner .pwa-text {
  flex: 1;
}
.pwa-install-banner .pwa-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.pwa-install-banner .pwa-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pwa-install-banner .pwa-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ========================
   FOOTER UPGRADES
   ======================== */
footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}
footer a:hover {
  color: var(--accent-blue);
}

/* Social links hover */
.social-link,
.footer-social a {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.2s ease,
              box-shadow 0.25s ease;
}
.social-link:hover,
.footer-social a:hover {
  transform: translateY(-4px) scale(1.15);
}

/* ========================
   SEARCH OVERLAY
   ======================== */
.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(5,7,13,0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.site-search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.site-search-wrapper {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
}
.site-search-input-wrap {
  position: relative;
  margin-bottom: 24px;
}
.site-search-input {
  width: 100%;
  padding: 18px 60px 18px 24px;
  background: var(--bg-card);
  border: 2px solid var(--accent-blue);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
  box-shadow: 0 0 40px rgba(59,130,246,0.25);
}
.site-search-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  background: none;
  border: none;
}
.site-search-close:hover {
  color: var(--text-primary);
}
.site-search-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.site-search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.site-search-result-item:last-child { border-bottom: none; }
.site-search-result-item:hover {
  background: rgba(59,130,246,0.08);
}
.site-search-result-item i {
  color: var(--accent-blue);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.site-search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.site-search-result-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-consent {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  z-index: 9997;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent p { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.6; }
.cookie-consent strong { color: var(--text-primary); }
.cookie-actions { display: flex; gap: 8px; }

/* ========================
   WHATSAPP FLOAT BUTTON
   ======================== */
.whatsapp-float {
  position: fixed;
  bottom: 130px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.6);
  color: white;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waRing 2s ease-in-out infinite;
}
@keyframes waRing {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ========================
   RESPONSIVE IMPROVEMENTS
   ======================== */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 70px;
    right: 16px;
  }

  .whatsapp-float {
    bottom: 120px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .pwa-install-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent {
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .site-search-overlay {
    padding-top: 60px;
  }
}

/* ========================
   DARK MODE IMAGE FILTER
   ======================== */
img[alt*="logo"],
img[alt*="Logo"] {
  filter: brightness(1.05);
}

/* ========================
   PRINT STYLES
   ======================== */
@media print {
  .navbar,
  .back-to-top,
  .whatsapp-float,
  .scroll-progress,
  .pwa-install-banner,
  .cookie-consent,
  #page-loader {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}

/* ========================
   REDUCED MOTION
   ======================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
