/* ============================================
   MARKETACE — Additional Enhancements
   Page transitions, glows, noise, extras
   ============================================ */

/* ---- Page Transition Overlay ---- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9995;
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.entering { transform: translateY(0); }
.page-transition.leaving { transform: translateY(-100%); }

/* ---- Noise texture overlay on hero ---- */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- Cyan vignette glow ---- */
.hero-glow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-dark), var(--cyan));
  z-index: 9990;
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.1s linear;
}

/* ---- "Back to top" button ---- */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s, border-color 0.3s;
  cursor: pointer;
}
#back-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}
#back-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-top:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
}
#back-top:hover svg { transform: translateY(-3px); }

/* ---- Cookie / toast notification ---- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--white-muted);
  z-index: 8000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Stats glow ---- */
.stats {
  position: relative;
}
.stats-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,229,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Service card shimmer ---- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.service-card.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear;
}

/* ---- Gradient text utility ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dark), var(--cyan), var(--cyan-dark), transparent);
  opacity: 0.3;
  margin: 0 var(--gutter);
}

/* ---- Capabilities horizontal scroll drag hint ---- */
.capabilities-drag-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--white-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px var(--gutter) 0;
  opacity: 0.6;
}
.capabilities-drag-hint::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

/* ---- Service mini tags ---- */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.service-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ---- Focus states for accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Selection ---- */
::selection {
  background: var(--cyan);
  color: var(--black);
}

/* ---- Smooth image load ---- */
img {
  display: block;
  max-width: 100%;
  opacity: 1;
  transition: opacity 0.4s;
}
img[data-src] { opacity: 0; }
img.loaded { opacity: 1; }

/* ---- Enhanced service card on mobile ---- */
@media (max-width: 768px) {
  .service-card-hover { display: none; }
  .service-card-front { position: relative; }
}

/* ---- Print styles ---- */
@media print {
  #preloader, .cursor, .cursor-follower, #nav, .fullscreen-menu,
  #back-top, #scroll-progress { display: none !important; }
  body { background: white; color: black; }
}

/* ---- Blog Listing Page ---- */
.blog-listing {
  padding: 120px var(--gutter) 80px;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 80vh;
}
.blog-listing-header {
  margin-bottom: 80px;
  text-align: center;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
}
.blog-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.08);
}
.blog-card-content {
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 15px;
}
.blog-card-desc {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1;
}
.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  margin-top: auto;
}
.blog-card-link:hover {
  color: var(--cyan);
}
.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}
.blog-card-link:hover {
  color: var(--cyan);
}

/* Rating widget removed */
