/* Software UI Animations */

/* ── Hero ERP Dashboard ── */
.software-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.app-window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--plum);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.app-titlebar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #00FF00; }

.app-title {
  margin-left: 8px;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.app-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 220px;
}

.app-sidebar {
  background: var(--cream);
  border-right: 1px solid var(--line);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-icon {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  background: var(--line);
  animation: sidePulse 3s ease infinite;
}

.side-icon:nth-child(1) { animation-delay: 0s; }
.side-icon:nth-child(2) { animation-delay: 0.4s; background: rgba(245,200,66,0.25); }
.side-icon:nth-child(3) { animation-delay: 0.8s; }
.side-icon:nth-child(4) { animation-delay: 1.2s; }

@keyframes sidePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; background: rgba(232,117,26,0.2); }
}

.app-main {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  padding: 8px;
  background: var(--warm);
  border-radius: 6px;
}

.chart-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  border-radius: 3px 3px 0 0;
  animation: barGrow 2.5s ease-in-out infinite;
}

.bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.bar:nth-child(2) { height: 65%; animation-delay: 0.2s; }
.bar:nth-child(3) { height: 50%; animation-delay: 0.4s; }
.bar:nth-child(4) { height: 85%; animation-delay: 0.6s; }
.bar:nth-child(5) { height: 60%; animation-delay: 0.8s; }
.bar:nth-child(6) { height: 75%; animation-delay: 1s; }

@keyframes barGrow {
  0%, 100% { transform: scaleY(0.85); opacity: 0.8; }
  50% { transform: scaleY(1); opacity: 1; }
}

.data-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  height: 76px;
  animation: rowSlide 8s linear infinite;
}

.data-row {
  display: grid;
  grid-template-columns: 1fr 60px 50px;
  gap: 8px;
  font-size: 0.55rem;
  color: var(--ink-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.data-row span:last-child { color: var(--orange); font-weight: 600; }

@keyframes rowSlide {
  0%, 30% { transform: translateY(0); opacity: 1; }
  33%, 63% { transform: translateY(-28px); opacity: 1; }
  66%, 96% { transform: translateY(-56px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Code terminal */
.code-terminal {
  margin-top: 14px;
  background: #0d1117;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.62rem;
  line-height: 1.7;
  border: 1px solid rgba(245,200,66,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.term-line { color: #8b949e; }
.term-line .kw { color: #ff7b72; }
.term-line .fn { color: #d2a8ff; }
.term-line .str { color: #a5d6ff; }
.term-line .cm { color: #6e7681; }
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--yellow);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── Expertise software previews ── */
.pillar {
  display: flex;
  flex-direction: column;
}

.soft-preview {
  height: 100px;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--warm);
  border: 1px solid var(--line);
  position: relative;
}

/* Data pipeline */
.preview-data {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 0 12px;
}

.pipe-node {
  width: 44px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--line-gold);
  background: var(--white);
  font-size: 0.45rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pipe-arrow {
  width: 20px;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.pipe-arrow::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  top: -3px;
  animation: flowDot 1.5s linear infinite;
}

.pipe-arrow:nth-child(2)::after { animation-delay: 0s; }
.pipe-arrow:nth-child(4)::after { animation-delay: 0.5s; }
.pipe-arrow:nth-child(6)::after { animation-delay: 1s; }

@keyframes flowDot {
  0% { left: -8px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 20px; opacity: 0; }
}

/* Cloud ops */
.preview-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
}

.cloud-server {
  width: 36px;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  position: relative;
}

.cloud-server::before,
.cloud-server::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
}

.cloud-server::before { top: 10px; animation: serverBlink 2s infinite; }
.cloud-server::after { top: 20px; animation: serverBlink 2s infinite 0.5s; }

.cloud-server .led {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: ledPulse 1.5s ease infinite;
}

@keyframes serverBlink {
  0%, 100% { background: var(--line); }
  50% { background: var(--orange); }
}

@keyframes ledPulse {
  0%, 100% { opacity: 0.4; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 8px var(--yellow); }
}

.cloud-link {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  animation: linkPulse 2s ease infinite;
}

@keyframes linkPulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* SDLC process */
.preview-sdlc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 0 8px;
}

.sdlc-step {
  flex: 1;
  text-align: center;
  font-size: 0.42rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding: 6px 2px;
  border-bottom: 2px solid var(--line);
  animation: sdlcActivate 4s ease infinite;
}

.sdlc-step:nth-child(1) { animation-delay: 0s; }
.sdlc-step:nth-child(2) { animation-delay: 0.65s; }
.sdlc-step:nth-child(3) { animation-delay: 1.3s; }
.sdlc-step:nth-child(4) { animation-delay: 1.95s; }
.sdlc-step:nth-child(5) { animation-delay: 2.6s; }
.sdlc-step:nth-child(6) { animation-delay: 3.25s; }

@keyframes sdlcActivate {
  0%, 15%, 100% { color: var(--ink-muted); border-color: var(--line); }
  5%, 10% { color: var(--orange); border-color: var(--orange); }
}

/* ── Solution card software UIs ── */
.lux-card {
  display: flex;
  flex-direction: column;
}

.card-ui {
  height: 90px;
  margin-bottom: 1.25rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}

/* Education dashboard */
.ui-edu {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.edu-card {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 6px;
  font-size: 0.45rem;
  color: rgba(255,255,255,0.5);
}

.edu-card strong {
  display: block;
  font-size: 0.7rem;
  color: var(--yellow);
  animation: countUp 3s ease infinite;
}

@keyframes countUp {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; transform: scale(1.05); }
}

.edu-progress {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.edu-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  animation: progressFill 3s ease infinite;
}

@keyframes progressFill {
  0% { width: 30%; }
  50% { width: 78%; }
  100% { width: 30%; }
}

/* Enterprise workflow */
.ui-erp {
  display: flex;
  gap: 6px;
  padding: 10px;
  height: 100%;
}

.kanban-col {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kanban-item {
  height: 18px;
  background: rgba(245,200,66,0.15);
  border-radius: 3px;
  border-left: 2px solid var(--yellow);
  animation: kanbanMove 4s ease infinite;
}

.kanban-col:nth-child(2) .kanban-item { animation-delay: 1.3s; border-color: var(--orange); background: rgba(232,117,26,0.15); }
.kanban-col:nth-child(3) .kanban-item { animation-delay: 2.6s; }

@keyframes kanbanMove {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* Factory automation */
.ui-factory {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
}

.gauge {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: gaugeSpin 2s linear infinite;
}

.gauge-val {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--yellow);
  animation: gaugeCount 3s ease infinite;
}

@keyframes gaugeSpin {
  to { transform: rotate(360deg); }
}

@keyframes gaugeCount {
  0%, 100% { content: '87%'; }
}

.factory-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.factory-bar {
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.factory-bar span {
  display: block;
  height: 100%;
  background: var(--orange);
  animation: factoryLoad 2s ease infinite;
}

.factory-bar:nth-child(2) span { animation-delay: 0.4s; background: var(--yellow); }
.factory-bar:nth-child(3) span { animation-delay: 0.8s; }

@keyframes factoryLoad {
  0% { width: 20%; }
  50% { width: 90%; }
  100% { width: 20%; }
}

/* Mobile app */
.ui-app {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.phone-mock {
  width: 48px;
  height: 76px;
  background: #111;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.15);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-notch {
  width: 16px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto 2px;
}

.phone-screen {
  flex: 1;
  background: var(--plum-soft);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phone-block {
  height: 8px;
  background: rgba(245,200,66,0.3);
  border-radius: 2px;
  animation: phoneLoad 2.5s ease infinite;
}

.phone-block:nth-child(2) { animation-delay: 0.3s; width: 70%; }
.phone-block:nth-child(3) { animation-delay: 0.6s; background: rgba(232,117,26,0.3); }

@keyframes phoneLoad {
  0%, 100% { opacity: 0.4; transform: scaleX(0.9); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Data center */
.ui-datacenter {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 10px;
}

.rack {
  width: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px 2px;
}

.rack:nth-child(1) { height: 55px; }
.rack:nth-child(2) { height: 70px; }
.rack:nth-child(3) { height: 48px; }

.rack-unit {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  animation: rackBlink 1.5s ease infinite;
}

.rack-unit:nth-child(odd) { animation-delay: 0.3s; }
.rack:nth-child(2) .rack-unit { animation-delay: 0.6s; }

@keyframes rackBlink {
  0%, 100% { background: rgba(255,255,255,0.08); }
  50% { background: var(--yellow); opacity: 0.7; }
}

/* Cyber security */
.ui-security {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.shield {
  width: 44px;
  height: 50px;
  background: linear-gradient(180deg, rgba(245,200,66,0.2), rgba(232,117,26,0.1));
  clip-path: polygon(50% 0%, 100% 20%, 100% 60%, 50% 100%, 0% 60%, 0% 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: shieldPulse 2s ease infinite;
}

.shield::after {
  content: '✓';
  color: var(--yellow);
  font-weight: bold;
}

.scan-line {
  position: absolute;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  animation: scanMove 2.5s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes scanMove {
  0% { top: 20%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 75%; opacity: 0; }
}

/* ── Tech icons animated ── */
.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-bottom: 2rem;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: techFloat 4s ease-in-out infinite;
}

.tech-icon:nth-child(2) { animation-delay: 0.5s; }
.tech-icon:nth-child(3) { animation-delay: 1s; }
.tech-icon:nth-child(4) { animation-delay: 1.5s; }
.tech-icon:nth-child(5) { animation-delay: 2s; }
.tech-icon:nth-child(6) { animation-delay: 2.5s; }
.tech-icon:nth-child(7) { animation-delay: 3s; }
.tech-icon:nth-child(8) { animation-delay: 3.5s; }

@keyframes techFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tech-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tech-icon:hover .tech-icon-box {
  transform: scale(1.1);
  box-shadow: var(--shadow-warm);
}

.tech-icon span {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ── About code editor ── */
.code-editor {
  background: #1e1e2e;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.editor-tabs {
  display: flex;
  background: #161622;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.editor-tab {
  padding: 8px 16px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.editor-tab.active {
  color: var(--yellow);
  background: #1e1e2e;
}

.editor-code {
  padding: 14px 16px;
  font-family: 'Consolas', monospace;
  font-size: 0.62rem;
  line-height: 1.8;
  color: #cdd6f4;
  min-height: 140px;
}

.editor-code .ln {
  color: rgba(255,255,255,0.2);
  margin-right: 12px;
  user-select: none;
}

.editor-code .kw { color: #cba6f7; }
.editor-code .fn { color: #89b4fa; }
.editor-code .str { color: #a6e3a1; }
.editor-code .cls { color: #f9e2af; }

.code-line-anim {
  animation: lineFadeIn 0.4s ease forwards;
}

@keyframes lineFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.about-logo-card {
  margin-top: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, var(--warm), var(--white));
  border: 1px solid var(--line-gold);
  border-radius: 10px;
}

.about-logo-card img {
  width: min(240px, 80%);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 0;
  background: none;
}

.about-logo-card blockquote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  background: linear-gradient(120deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.5;
}

/* ── CTA deploy lines ── */
.cta-software {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Consolas', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-code-line {
  padding: 6px 12px;
  border-left: 2px solid var(--yellow);
  animation: ctaLineIn 4s ease infinite;
  opacity: 0;
}

.cta-code-line:nth-child(1) { animation-delay: 0s; }
.cta-code-line:nth-child(2) { animation-delay: 1.3s; color: rgba(245,200,66,0.5); }
.cta-code-line:nth-child(3) { animation-delay: 2.6s; color: rgba(245,200,66,0.7); }

@keyframes ctaLineIn {
  0%, 5%, 100% { opacity: 0; transform: translateX(10px); }
  15%, 80% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .cta-software { display: none; }
}

/* ── Floating software badges in hero bg ── */
.floating-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-badge {
  position: absolute;
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-card);
  animation: badgeFloat 6s ease-in-out infinite;
}

.float-badge:nth-child(1) { top: 18%; left: 8%; animation-delay: 0s; }
.float-badge:nth-child(2) { top: 60%; left: 5%; animation-delay: 2s; }
.float-badge:nth-child(3) { top: 25%; right: 10%; animation-delay: 1s; }
.float-badge:nth-child(4) { bottom: 20%; right: 8%; animation-delay: 3s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* ── Process timeline section visual ── */
.process-visual {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.deploy-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.deploy-stage {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  position: relative;
  animation: deployGlow 5s ease infinite;
}

.deploy-stage:nth-child(1) { animation-delay: 0s; }
.deploy-stage:nth-child(3) { animation-delay: 1s; }
.deploy-stage:nth-child(5) { animation-delay: 2s; }
.deploy-stage:nth-child(7) { animation-delay: 3s; }
.deploy-stage:nth-child(9) { animation-delay: 4s; }

.deploy-arrow {
  color: var(--orange);
  font-size: 0.7rem;
  animation: arrowPulse 1s ease infinite;
}

@keyframes deployGlow {
  0%, 18%, 100% { border-color: var(--line); color: var(--ink-muted); box-shadow: none; }
  8%, 14% { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 12px rgba(232,117,26,0.2); }
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  .floating-badges { display: none; }
  .software-stage { max-width: 100%; }
  .preview-data { flex-wrap: wrap; gap: 4px; }
  .pipe-node { width: 36px; font-size: 0.38rem; }
}
