/* ==========================================================================
   CYBER VISION ENTERPRISE - EXECUTIVE CORPORATE FEATURE ANIMATIONS
   Clean Light Theme, Real CCTV & Smart LED TV On-Scroll Setup Animations
   Matching Corporate Brand Identity (Deep Navy #1e40af, Royal Blue #2563eb, Brand Red #dc2626)
   ========================================================================== */

/* 1. EXECUTIVE BRAND COLOR PALETTE */
:root {
  --corp-navy: #0f2963;
  --corp-blue: #1e40af;
  --corp-blue-light: #2563eb;
  --corp-blue-subtle: #eff6ff;
  --corp-red: #dc2626;
  --corp-red-subtle: #fef2f2;
  --corp-green: #059669;
  --corp-text-dark: #0f172a;
  --corp-text-muted: #64748b;
  --corp-border: #e2e8f0;
  --corp-card: #ffffff;
}

/* 2. INFINITE GENUINE BRAND TICKER (CLEAN CORPORATE LIGHT) */
.skyroot-ticker-section {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.skyroot-ticker-section::before,
.skyroot-ticker-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.skyroot-ticker-section::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.skyroot-ticker-section::after {
  right: 0;
  background: linear-gradient(-90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.skyroot-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: corporate-marquee 28s linear infinite;
}

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

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

.skyroot-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.skyroot-ticker-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.skyroot-ticker-badge {
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
}

/* 3. EXECUTIVE TELEMETRY STRIP (CLEAN LIGHT THEME) */
.skyroot-telemetry-band {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 0;
}

.skyroot-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 1024px) {
  .skyroot-telemetry-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skyroot-telemetry-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.skyroot-telemetry-item:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(30, 64, 175, 0.12);
}

.skyroot-telemetry-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  flex-shrink: 0;
}

.skyroot-telemetry-num {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f2963;
  line-height: 1.1;
}

.skyroot-telemetry-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* ==========================================================================
   4. ON-SCROLL DYNAMIC REAL CCTV & SMART LED TV SHOWCASE
   Integrated Naturally into the Page (Clean White / Slate Surfaces)
   ========================================================================== */
.onscroll-showcase-section {
  padding: 64px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.onscroll-showcase-section.alt-bg {
  background: #f8fafc;
}

.onscroll-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .onscroll-row {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
  }
  .onscroll-row.reversed {
    grid-template-columns: 1fr 1.15fr;
  }
  .onscroll-row.reversed .onscroll-visual-col {
    order: 2;
  }
  .onscroll-row.reversed .onscroll-content-col {
    order: 1;
  }
}

/* On-Scroll Interactive Visual Frame */
.onscroll-visual-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: #0f172a;
  border: 2px solid #e2e8f0;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.15);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(24px) scale(0.98);
  opacity: 0.85;
}

.onscroll-visual-frame.is-setup {
  transform: translateY(0) scale(1);
  opacity: 1;
  border-color: #3b82f6;
  box-shadow: 0 20px 50px -12px rgba(30, 64, 175, 0.22);
}

.onscroll-image-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.onscroll-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.onscroll-visual-frame.is-setup .onscroll-image-wrap img {
  transform: scale(1.03);
}

/* CCTV On-Scroll Laser Scanning Line */
.cctv-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, transparent);
  box-shadow: 0 0 16px #3b82f6;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.onscroll-visual-frame.is-setup .cctv-scan-line {
  opacity: 1;
  animation: cctv-scan-down 3.5s ease-in-out infinite;
}

@keyframes cctv-scan-down {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* CCTV On-Scroll Live HUD Badges */
.cctv-live-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 6;
}

.pulse-beacon-live {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: beacon-blink 1.5s infinite;
}

@keyframes beacon-blink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

/* Reticle Target Overlay on CCTV */
.cctv-reticle-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 120px;
  border: 2px dashed rgba(59, 130, 246, 0.7);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
  z-index: 6;
}

.onscroll-visual-frame.is-setup .cctv-reticle-box {
  opacity: 1;
}

.reticle-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #60a5fa;
}

.cctv-reticle-badge {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 64, 175, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* LED TV On-Scroll Power-On & Screen Diagnostics */
.led-power-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0.4) 100%);
  opacity: 0.3;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 4;
}

.onscroll-visual-frame.is-setup .led-power-overlay {
  opacity: 0;
}

.led-diagnostic-chip {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s ease 0.4s;
}

.onscroll-visual-frame.is-setup .led-diagnostic-chip {
  transform: translateY(0);
  opacity: 1;
}

/* Feature Badge Row Below Image */
.onscroll-feature-pills-bar {
  padding: 14px 18px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

.onscroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.onscroll-pill i, .onscroll-pill svg {
  color: #1e40af;
  width: 14px;
  height: 14px;
}

/* Right / Left Content Column Styling */
.onscroll-content-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e40af;
  margin-bottom: 12px;
}

.onscroll-content-title {
  font-family: var(--font-sans);
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 14px;
}

.onscroll-content-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Checklist Points with Animated Check */
.onscroll-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onscroll-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: #1e293b;
  line-height: 1.5;
}

.check-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon-circle svg, .check-icon-circle i {
  width: 13px;
  height: 13px;
}

.onscroll-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* 5. PROJECT SHOWCASE CARD ENHANCEMENTS */
.project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-card:hover {
  border-color: #3b82f6;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(30, 64, 175, 0.16);
}

.project-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 14px !important;
  border-radius: var(--radius-full) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3) !important;
  letter-spacing: 0.3px;
  z-index: 5;
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-body h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 12px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-body p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
  margin-top: auto;
}

/* 6. MOBILE RESPONSIVENESS OPTIMIZATIONS */
@media (max-width: 768px) {
  .skyroot-ticker-section {
    padding: 12px 0;
  }
  .skyroot-ticker-item {
    padding: 5px 12px;
    font-size: 0.775rem;
  }
  .skyroot-telemetry-band {
    padding: 18px 0;
  }
  .skyroot-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .skyroot-telemetry-item {
    padding: 12px 10px;
    gap: 10px;
  }
  .skyroot-telemetry-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .skyroot-telemetry-icon-box svg {
    width: 18px !important;
    height: 18px !important;
  }
  .skyroot-telemetry-num {
    font-size: 1.25rem;
  }
  .skyroot-telemetry-label {
    font-size: 0.68rem;
    letter-spacing: 0.2px;
  }

  .onscroll-showcase-section {
    padding: 38px 0;
  }
  .onscroll-row {
    gap: 26px;
  }
  .onscroll-image-wrap {
    height: 210px;
  }
  .onscroll-content-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .onscroll-content-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .onscroll-checklist {
    gap: 10px;
    margin-bottom: 20px;
  }
  .onscroll-check-item {
    font-size: 0.85rem;
    line-height: 1.45;
  }
  .onscroll-actions-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .onscroll-actions-row .btn {
    width: 100%;
    justify-content: center;
  }
  .onscroll-feature-pills-bar {
    padding: 10px 12px;
    gap: 8px;
    justify-content: flex-start;
  }
  .onscroll-pill {
    font-size: 11px;
  }
  .cctv-live-tag {
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 4px 10px;
  }
  .led-diagnostic-chip {
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    padding: 6px 12px;
  }
}
