/* Industrial Aesthetics for Sheelat Engineering & Utility Services */

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Industrial Grid Background */
.bg-industrial-grid {
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(0, 36, 26, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 36, 26, 0.04) 1px, transparent 1px);
}

.bg-dark-industrial-grid {
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(212, 155, 36, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 155, 36, 0.06) 1px, transparent 1px);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smooth transitions */
.transition-smooth {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark-glass-panel {
    background: rgba(10, 47, 36, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Mouse Spotlight Tracking Card Effect */
.spotlight-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 155, 36, 0.10), transparent 45%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* 3D Card Hover Lift */
.card-hover-lift {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -10px rgba(0, 36, 26, 0.16);
}

/* Futuristic Digital LED Desk Clock Display */
.digital-clock-led {
    letter-spacing: 0.08em;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

/* Radar Pulse for Desk Status */
@keyframes radar-ping {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

.animate-radar {
    animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Corporate Logo Contrast Badge */
.logo-badge {
    background: #ffffff;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Card Glow Accent */
.glow-on-hover:hover {
    box-shadow: 0 0 25px -5px rgba(212, 155, 36, 0.25), 0 10px 20px -5px rgba(0, 36, 26, 0.15);
}

/* Continuous Scanning Laser Line & Visual Dynamism for Live Trading Desks */
@keyframes tickerLaserSweep {
    0% {
        left: -250px;
        opacity: 0;
    }
    5% {
        opacity: 0.95;
    }
    95% {
        opacity: 0.95;
    }
    100% {
        left: calc(100% + 250px);
        opacity: 0;
    }
}

@keyframes liveRibbonShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.trading-desk-ticker {
    position: relative;
    overflow: hidden;
}

.trading-desk-ticker::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(10, 74, 56, 0.2) 0%, 
        rgba(52, 211, 153, 0.4) 30%, 
        rgba(212, 155, 36, 0.6) 50%, 
        rgba(52, 211, 153, 0.4) 70%, 
        rgba(10, 74, 56, 0.2) 100%);
    background-size: 200% 100%;
    animation: liveRibbonShimmer 6s linear infinite;
    pointer-events: none;
    z-index: 6;
}

.trading-desk-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    left: -250px;
    width: 220px;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(52, 211, 153, 0.05) 20%, 
        rgba(212, 155, 36, 0.20) 45%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(52, 211, 153, 0.20) 55%, 
        rgba(52, 211, 153, 0.05) 80%, 
        transparent 100%);
    pointer-events: none;
    z-index: 5;
    animation: tickerLaserSweep 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Active Transit Corridor Pulse */
@keyframes corridorPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}

.corridor-transit-dot {
    display: inline-block;
    animation: corridorPulse 2s ease-in-out infinite;
}

/* Mobile & Tablet Responsiveness Protections - overflow-x: clip ensures position: sticky navbar works */
html {
    overflow-x: clip;
}
body {
    overflow-x: clip;
    width: 100%;
    min-height: 100vh;
}

/* Explicit Sticky Navbar Support */
header.sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
}

/* Hide scrollbars for smooth touch swipe carousels & pills */
.scrollbar-none {
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}
.scrollbar-none::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Touch scrolling optimization */
.touch-pan-x {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

/* Table scroll wrapper helper */
.responsive-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Fallback screen utilities for xs breakpoint (480px) */
@media (min-width: 480px) {
    .xs\:inline { display: inline !important; }
    .xs\:hidden { display: none !important; }
    .xs\:flex { display: flex !important; }
    .xs\:block { display: block !important; }
}

/* Category filter quick pills - High-contrast active & hover styling */
.cat-pill {
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-width: 1px;
}
.cat-pill.active {
    background-color: #062d27 !important;
    color: #ffffff !important;
    border-color: #062d27 !important;
    box-shadow: 0 2px 6px rgba(6, 45, 39, 0.35) !important;
}
.cat-pill.active:hover,
.cat-pill.active:focus {
    background-color: #0a483a !important; /* Premium emerald-green on hover/tap so it NEVER flashes white */
    color: #ffffff !important;
    border-color: #0a483a !important;
}
.cat-pill:not(.active) {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}
.cat-pill:not(.active):hover,
.cat-pill:not(.active):focus {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Smooth horizontal pills slider */
.pills-scroll-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}
