/* ========================================================
   ZenIT BD - Custom Styles & Engineering Design System
   Complementing Tailwind CSS with purposeful styling
   ======================================================== */

:root {
  --color-primary: #3b82f6;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #60a5fa;
  --color-accent: #38bdf8;
  --color-bg: #1a2b4c;
  --color-bg-elevated: #223762;
  --color-bg-card: #283f6f;
  --color-bg-card-hover: #314d86;
  --color-border: #446299;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: #1a2b4c;
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1a2b4c;
  color: #e2e8f0;
}

/* Custom Scrollbar for Corporate Slate Theme */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a2b4c;
}
::-webkit-scrollbar-thumb {
  background: #446299;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Hero Video Backdrop Container with Instant Poster Fallback */
.video-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../hero/hero-poster.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 0;
}

/* Hero Content layer above video */
.hero-content-layer {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Section Transitions */
.page-view {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.page-view.active {
  display: block;
  opacity: 1;
}

/* Purposeful Cards for UK/US Corporate Slate-Navy Theme */
.zen-card {
  background-color: rgba(38, 60, 106, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 1rem;
  box-shadow: 0 10px 30px -4px rgba(8, 18, 42, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.zen-card:hover {
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: 0 16px 45px -5px rgba(37, 99, 235, 0.4), 0 0 25px rgba(56, 189, 248, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.zen-card-active {
  border-color: #3b82f6;
  background-color: rgba(45, 71, 122, 0.95);
}

/* Interactive Focus Rings for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Crisp Badges for Corporate Theme */
.zen-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(34, 54, 96, 0.9);
  color: #e2e8f0;
}

.zen-badge-blue {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(96, 165, 250, 0.6);
  color: #93c5fd;
}

/* Hero 3D Particle Wave Backdrop - True Atmospheric Purple/Magenta Atmosphere from Reference Video */
.hero-particle-backdrop,
.video-bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background-color: #240038;
  background-image: 
    /* 1. Intense Left Horizon Flare / Luminous White-Violet Horizon Glow */
    radial-gradient(ellipse 650px 420px at 0% 48%, rgba(255, 255, 255, 0.75) 0%, rgba(216, 130, 255, 0.82) 18%, rgba(147, 51, 234, 0.65) 42%, rgba(98, 12, 160, 0.30) 70%, transparent 100%),
    /* 2. Top-Left Radiant Sun / Volumetric Magenta-Violet Light Source */
    radial-gradient(circle 950px at 7% 10%, rgba(186, 36, 235, 0.92) 0%, rgba(138, 18, 204, 0.78) 32%, rgba(88, 10, 145, 0.50) 62%, transparent 85%),
    /* 3. Upper-Center Hero & Header Text Area - Rich Royal Plum-Violet (#390055) for crisp typography contrast */
    radial-gradient(ellipse 1300px 650px at 50% 12%, rgba(98, 14, 148, 0.65) 0%, rgba(57, 0, 85, 0.85) 52%, transparent 88%),
    /* 4. Bottom Foreground Electric Indigo/Blue Ground under pearls */
    radial-gradient(ellipse 85% 48% at 22% 96%, rgba(37, 99, 235, 0.58) 0%, rgba(20, 15, 60, 0.42) 60%, transparent 85%),
    /* 5. Deep Cosmic Violet Base Gradient (#5c0b7e -> #390055 -> #28013e -> #0e051c) */
    linear-gradient(135deg, #5c0b7e 0%, #390055 36%, #28013e 70%, #0e051c 100%);
  background-repeat: no-repeat;
}

#hero-particle-wave-container,
#three-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Modal styling */
.zen-modal-backdrop {
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.6);
}

/* Service filter active */
.filter-btn.active {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Print Friendly Styles */
@media print {
  #three-canvas-container, .video-bg-container, #cookie-banner {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* ========================================================
   Clean, Professional Stream (Linear / GitHub Style)
   3 Rows: Row 1 (LTR), Row 2 (RTL), Row 3 (LTR)
   Slow, comfortable reading speed, uniform card dimensions
   ======================================================== */
.ticker-row {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

@keyframes scroll-ticker-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-ticker-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.ticker-track-row1 {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  animation: scroll-ticker-right 85s linear infinite;
  will-change: transform;
}

.ticker-track-row2 {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  animation: scroll-ticker-left 92s linear infinite;
  animation-delay: -15s;
  will-change: transform;
}

.ticker-track-row3 {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  animation: scroll-ticker-right 105s linear infinite;
  animation-delay: -38s;
  will-change: transform;
}

/* Pause animation ONLY when mouse hovers directly on an individual card (never on empty section space) */
.ticker-section:has(.ticker-pill:hover) .ticker-track-row1,
.ticker-section:has(.ticker-pill:hover) .ticker-track-row2,
.ticker-section:has(.ticker-pill:hover) .ticker-track-row3 {
  animation-play-state: paused;
}

/* 100% Uniform Card Dimensions for ALL 3 Rows (Height upgraded to 50px for premium feel without breaking flow) */
.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6875rem;
  height: 50px;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  background-color: #223660;
  border: 1px solid #3d5888;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(8, 18, 42, 0.4);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.ticker-pill:hover {
  background-color: #2c4477 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45) !important;
}

.ticker-pill i {
  width: 1.125rem;
  height: 1.125rem;
  color: #38bdf8;
  flex-shrink: 0;
}

/* Gentle Floating Animation for 3D Visual Assets */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.animate-float-gentle {
  animation: float-gentle 5s ease-in-out infinite;
}

/* ========================================================
   Periodic Table of Tech Styling
   ======================================================== */
.periodic-cell {
  background-color: rgba(30, 47, 84, 0.85);
  border: 1px solid #3d5888;
  user-select: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.periodic-cell:hover {
  border-color: #38bdf8;
  background-color: rgba(44, 68, 119, 0.95);
  transform: translateY(-2px);
}

.periodic-cell-active {
  border-color: #38bdf8 !important;
  background-color: rgba(45, 71, 122, 1) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4) !important;
}

/* ZenBot Mascot Animations */
@keyframes zenbot-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes zenbot-wave {
  0%, 100% {
    transform: rotate(0deg);
    transform-origin: 168px 135px;
  }
  25% {
    transform: rotate(-12deg);
    transform-origin: 168px 135px;
  }
  75% {
    transform: rotate(8deg);
    transform-origin: 168px 135px;
  }
}

.zenbot-animated .zenbot-body {
  animation: zenbot-float 3.8s ease-in-out infinite;
}

.zenbot-animated .zenbot-arm-wave {
  animation: zenbot-wave 2.4s ease-in-out infinite;
}

/* ========================================================
   Clean Single-Row Testimonials Carousel
   - Single horizontal line, NO dark side shadows / masks
   - Smooth manual Left / Right navigation & pagination
   - Gentle, comfortable auto-slide pace
   ======================================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#testimonial-slider {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ========================================================
   WCAG Accessibility Enhancements: Touch Targets & Contrast
   ======================================================== */
.work-progress-dot,
.testimonial-dot {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
}

.periodic-filter-btn {
  min-height: 40px;
}
