/* Custom styles for Mahraj Scaffoldings */
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.font-display { font-family: 'Barlow Condensed', 'Inter', sans-serif; letter-spacing: -0.01em; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Line clamp helper */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom scrollbar - now red themed */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #dc2626; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b91c1c; }

/* Map iframe responsive */
iframe { display: block; }

/* Animation utilities */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.6s ease-out; }

/* ============================================
   MOVING HEADLINE TICKER (top bar)
   ============================================ */
.ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 25%, #ef4444 50%, #dc2626 75%, #7f1d1d 100%);
  background-size: 200% 100%;
  animation: tickerGradient 8s ease-in-out infinite;
  color: #fff;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 14px;
  padding: 9px 0;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 60;
}

@keyframes tickerGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Subtle moving shine overlay for premium feel */
.ticker-shine {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 30%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.0) 70%,
    transparent 100%
  );
  animation: tickerShine 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes tickerShine {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* Track holds two duplicated content blocks for seamless loop */
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 45s linear infinite;
  position: relative;
  z-index: 2;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 0;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  font-weight: 600;
}

.ticker-icon {
  margin-right: 9px;
  color: #fde68a;
  font-size: 13px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  animation: iconPulse 2.4s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.ticker-sep {
  display: inline-block;
  color: #fde68a;
  font-size: 10px;
  padding: 0 6px;
  opacity: 0.9;
  transform: translateY(-1px);
  animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.5; transform: translateY(-1px) rotate(0deg); }
  50% { opacity: 1; transform: translateY(-1px) rotate(180deg); }
}

/* Mobile tweaks for ticker */
@media (max-width: 640px) {
  .ticker-wrap { font-size: 12px; padding: 7px 0; }
  .ticker-item { padding: 0 14px; }
  .ticker-track { animation-duration: 35s; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .ticker-shine,
  .ticker-icon,
  .ticker-sep,
  .ticker-wrap { animation: none !important; }
}
