/* =============================================
   pages/cybersecurity.css — Cybersecurity Service Page
   ============================================= */

/* ============================= */
/* CYBERSECURITY HERO            */
/* ============================= */

.cy-hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.cy-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, #091228 0%, #122246 45%, #193264 100%);
}

.cy-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
}

.cy-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
  animation: cyOrbDrift 14s ease-in-out infinite;
}
.cy-orb-1 {
  width: 320px;
  height: 320px;
  background: #1e4fd8;
  opacity: 0.13;
  top: -80px;
  left: -60px;
}
.cy-orb-2 {
  width: 200px;
  height: 200px;
  background: #f19839;
  opacity: 0.09;
  bottom: -50px;
  right: 40px;
  animation-delay: -7s;
}
@keyframes cyOrbDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, -12px);
  }
}

/* Layout */
.cy-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
  width: 100%;
}

/* ---- LEFT ---- */
.cy-hero-text {
  color: #fff;
}

.cy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f19839;
  margin-bottom: 16px;
  opacity: 0;
  animation: cyFadeUp 0.5s ease forwards;
  animation-delay: 0.1s;
}

.cy-eyebrow-dot {
  width: 10px;
  height: 10px;
  background: #f19839;
  border-radius: 50%;
  flex-shrink: 0;
  animation: cyBlink 1.6s ease-in-out infinite;
}

@keyframes cyBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.cy-hero-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
  opacity: 0;
  animation: cyFadeUp 0.55s ease forwards;
  animation-delay: 0.2s;
}
.cy-hero-title span {
  color: #f19839;
}

.cy-hero-sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin-bottom: 26px;
  opacity: 0;
  animation: cyFadeUp 0.55s ease forwards;
  animation-delay: 0.3s;
}

.cy-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  animation: cyFadeUp 0.55s ease forwards;
  animation-delay: 0.4s;
}

/* Stats */
.cy-stats {
  display: flex;
  gap: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: cyFadeUp 0.5s ease forwards;
  animation-delay: 0.88s;
  flex-wrap: wrap; /* FIX: was missing — stats overflowed horizontally on mobile */
  row-gap: 14px;
}

.cy-stat {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 0;
}
.cy-stat + .cy-stat {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cy-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f19839;
  letter-spacing: -0.02em;
}
.cy-stat-lbl {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 2px;
}

@keyframes cyFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- RIGHT — RADAR VIZ ---- */
.cy-hero-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: cyFadeUp 0.7s ease forwards;
  animation-delay: 0.55s;
  width: 100%;
}

.cy-radar-wrap {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}

.cy-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cy-ring-1 {
  width: 108px;
  height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cy-ring-2 {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(241, 152, 57, 0.12);
}
.cy-ring-3 {
  width: 295px;
  height: 295px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cy-ring-4 {
  width: 380px;
  height: 380px;
  border: 1px solid rgba(241, 152, 57, 0.08);
}

.cy-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
}
.cy-crosshair::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
}
.cy-crosshair::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-50%);
}

.cy-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  transform-origin: left center;
  animation: cySweepRotate 4s linear infinite;
}
.cy-sweep::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(241, 152, 57, 0.9), transparent);
  border-radius: 1px;
}
.cy-sweep::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 190px;
  height: 190px;
  transform: translateY(-50%);
  background: conic-gradient(
    from 0deg,
    rgba(241, 152, 57, 0.18),
    transparent 60deg
  );
  transform-origin: left center;
  border-radius: 0 50% 50% 0;
}
@keyframes cySweepRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cy-radar-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f19839;
  box-shadow:
    0 0 0 4px rgba(241, 152, 57, 0.2),
    0 0 0 8px rgba(241, 152, 57, 0.08);
  z-index: 5;
  animation: cyHubPulse 2s ease-in-out infinite;
}
@keyframes cyHubPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(241, 152, 57, 0.2),
      0 0 0 8px rgba(241, 152, 57, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(241, 152, 57, 0.25),
      0 0 0 14px rgba(241, 152, 57, 0.06);
  }
}

.cy-blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cy-blip-threat {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
  animation: cyBlipPulse 1.5s ease-in-out infinite;
}
.cy-blip-safe {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
  animation: cyBlipPulse 2s ease-in-out infinite;
}
.cy-blip-warn {
  background: #f19839;
  box-shadow: 0 0 6px rgba(241, 152, 57, 0.6);
  animation: cyBlipPulse 1.8s ease-in-out infinite;
}
@keyframes cyBlipPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0.6;
  }
}

.cy-b1 {
  margin-top: -115px;
  margin-left: 40px;
}
.cy-b2 {
  margin-top: -40px;
  margin-left: 120px;
}
.cy-b3 {
  margin-top: 75px;
  margin-left: 88px;
}
.cy-b4 {
  margin-top: 100px;
  margin-left: -68px;
}
.cy-b5 {
  margin-top: -82px;
  margin-left: -95px;
}
.cy-b6 {
  margin-top: 28px;
  margin-left: -128px;
}
.cy-b7 {
  margin-top: -135px;
  margin-left: -28px;
}

.cy-blip-label {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.42rem;
  font-weight: 700;
  color: #ef4444;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

.cy-radar-legend {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  width: 380px;
  justify-content: center;
}

.cy-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.63rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Montserrat", sans-serif;
}

.cy-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cy-dot-red {
  background: #ef4444;
}
.cy-dot-orange {
  background: #f19839;
}
.cy-dot-green {
  background: #4ade80;
}

.cy-counter-strip {
  display: flex;
  gap: 0;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  width: 380px;
}

.cy-counter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.cy-counter:last-child {
  border-right: none;
}

.cy-counter-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f19839;
  letter-spacing: -0.01em;
}
.cy-counter-lbl {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
  text-align: center;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

@media (max-width: 992px) {
  /* FIX (CRITICAL): hero collapses to 1 column instead of squeezing
     text + radar visualization side by side */
  .cy-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cy-hero-sub {
    margin-left: auto;
    margin-right: auto; /* FIX: max-width block now centers under text-align */
  }

  .cy-hero-buttons {
    justify-content: center; /* FIX: center buttons once stacked */
  }

  .cy-stats {
    justify-content: center; /* FIX: center stats once stacked */
  }

  .cy-hero-viz {
    margin-top: 30px; /* FIX: spacing between text and radar when stacked */
  }

  .cy-radar-wrap {
    width: 320px;
    height: 320px;
  }
  .cy-ring-1 {
    width: 90px;
    height: 90px;
  }
  .cy-ring-2 {
    width: 168px;
    height: 168px;
  }
  .cy-ring-3 {
    width: 248px;
    height: 248px;
  }
  .cy-ring-4 {
    width: 320px;
    height: 320px;
  }
  .cy-crosshair {
    width: 320px;
    height: 320px;
  }
  .cy-sweep::after {
    width: 160px;
    height: 160px;
  }
  .cy-radar-legend,
  .cy-counter-strip {
    width: 320px;
  }
}

@media (max-width: 576px) {
  /* FIX: reduce hero padding on small phones */
  .cy-hero {
    padding: 50px 0 40px;
  }

  /* FIX: hide divider lines once stats wrap to multiple rows */
  .cy-stat + .cy-stat {
    border-left: none;
  }

  .cy-radar-wrap {
    width: 260px;
    height: 260px;
  }
  .cy-ring-1 {
    width: 70px;
    height: 70px;
  }
  .cy-ring-2 {
    width: 130px;
    height: 130px;
  }
  .cy-ring-3 {
    width: 195px;
    height: 195px;
  }
  .cy-ring-4 {
    width: 260px;
    height: 260px;
  }
  .cy-crosshair {
    width: 260px;
    height: 260px;
  }
  .cy-sweep::after {
    width: 130px;
    height: 130px;
  }
  .cy-radar-legend,
  .cy-counter-strip {
    width: 260px;
  }
}

/* SECTIONS */

.section-dark {
  background: #0b1320;
  color: #ffffff;
  padding: 90px 0;
}
.section-light {
  background: #121f33;
  color: #ffffff;
  padding: 90px 0;
}
.section-soft {
  background: #16263b;
  color: #ffffff;
  padding: 90px 0;
}

.cyber-architecture-image {
  width: 100%;
  max-width: 700px;
  opacity: 0.9;
}

@media (max-width: 576px) {
  .section-dark,
  .section-light,
  .section-soft {
    padding: 60px 0;
  }
}

/* SERVICE CARDS */

.cyber-card {
  background: #18273d;
  border: 1px solid #24364f;
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.cyber-card:hover {
  transform: translateY(
    -6px
  ); /* FIX: was "transl ateY" — invalid CSS, hover did nothing */
  border-color: #d57b31;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cyber-card h3 {
  color: #ffffff;
}
.cyber-card p {
  color: #c4d1e3;
}

.service-icon {
  font-size: 40px;
  color: #18273d;
  margin-bottom: 15px;
}

@media (max-width: 576px) {
  .cyber-card {
    padding: 22px;
  }
}

/* SECURITY LAYERS */

.layers-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: auto;
}

.layer {
  padding: 18px;
  background: #3e3f3f;
  border-left: 4px solid #d57b31;
  color: #e6edf5;
  border-radius: 4px;
}

/* =================================
CYBER SECURITY VENDOR LOGO SLIDER
================================ */

.cyber-logo-slider {
  overflow: hidden;
  padding: 80px 0;
  background: #0f1c2e;
  color: #ffffff;
}

.cyber-logo-track {
  display: flex;
  gap: 30px;
  animation: cyber-scroll 20s linear infinite;
  align-items: center;
  width: max-content;
}

.cyber-logo-track img {
  max-height: 55px;
  max-width: 140px;
  object-fit: contain;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.cyber-logo-track img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.cyber-logo-track:hover {
  animation-play-state: paused;
}

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

@media (max-width: 576px) {
  .cyber-logo-slider {
    padding: 50px 0;
  }
}

/* CTA */

.cybersecurity-cta {
  text-align: center;
  padding: 100px 0;
  background: #0a1626;
  color: #ffffff;
}

.cybersecurity-cta h2 {
  margin-bottom: 20px;
}
.cybersecurity-cta p {
  color: #c4d1e3;
}

@media (max-width: 576px) {
  .cybersecurity-cta {
    padding: 60px 0;
  }
}

/* Cybersecurity Lifecycle Section */
.section-cybersecurity-lifecycle {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
}

.lifecycle-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f1c3f;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.lifecycle-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.lifecycle-viz {
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lifecycle-diagram {
  max-width: 650px;
  width: 100%;
  height: auto;
}

.stage-circle {
  fill: #e8eef7;
  stroke: #0f1c3f;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.stage-circle.active {
  fill: #f19839;
  stroke: #f58220;
  stroke-width: 3;
}

.stage-circle:hover {
  fill: #f19839;
  stroke: #f58220;
  stroke-width: 3;
}

.connector-arrow {
  stroke: #0d3b88;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.connector-arrow.cycle {
  stroke: #0d3b88;
  opacity: 0.6;
  stroke-dasharray: 5, 5;
}

.stage-number {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: #0f1c3f;
}

.stage-circle.active .stage-number,
.stage-circle:hover .stage-number {
  fill: #ffffff;
}

.lifecycle-stages {
  margin-top: 40px;
}

.lifecycle-card {
  background: #ffffff;
  border: 1.5px solid #e8eef7;
  border-radius: 12px;
  padding: 32px 24px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lifecycle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f19839, #f58220);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.lifecycle-card:hover {
  border-color: #f19839;
  box-shadow: 0 12px 32px rgba(241, 152, 57, 0.12);
  transform: translateY(-4px);
}

.lifecycle-card:hover::before {
  transform: scaleX(1);
}

.stage-header {
  margin-bottom: 18px;
}

.stage-badge {
  display: inline-block;
  background: #e8eef7;
  color: #0d3b88;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.stage-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f1c3f;
  margin: 0;
  transition: color 0.3s ease;
}

.lifecycle-card:hover .stage-title {
  color: #f19839;
}

.stage-description {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 400;
}

.stage-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-details li {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #666;
  position: relative;
  padding-left: 18px;
  transition: color 0.3s ease;
}

.stage-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #f19839;
  font-weight: 700;
}

.lifecycle-card:hover .stage-details li {
  color: #0f1c3f;
}

/* Responsive */
@media (max-width: 768px) {
  .section-cybersecurity-lifecycle {
    padding: 60px 0;
  }
  .lifecycle-title {
    font-size: 2rem;
  }
  .lifecycle-subtitle {
    font-size: 1rem;
  }
  .lifecycle-card {
    padding: 24px 18px;
  }
  .stage-title {
    font-size: 1.3rem;
  }
  .lifecycle-diagram {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .section-cybersecurity-lifecycle {
    padding: 40px 0;
  }
  .lifecycle-title {
    font-size: 1.6rem;
  }
  .lifecycle-subtitle {
    font-size: 0.95rem;
  }
  .lifecycle-card {
    padding: 20px 16px;
  }
  .stage-title {
    font-size: 1.15rem;
  }
  .stage-description {
    font-size: 0.85rem;
  }
}
