/* Tekinvo portfolio — Enhanced with modern fonts */
@import url("tekinvo-motion.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  --primary: #3152f4;
  --primary-hover: #4984fd;
  --accent: #4d96ff;
  --bg-main: #dde2ee;
  --bg-alt: #edeef2;
  --bg-card: #ffffff;
  --bg-dark: #1c1d22;
  --text-primary: #0b0c0e;
  --text-secondary: #5e616e;
  --text-muted: #a3adc2;
  --border: #d1d6e0;
  --gradient-hero: linear-gradient(180deg, rgba(221, 226, 238, 0.9) 0%, rgba(221, 226, 238, 0.4) 55%, #dde2ee 100%);
  --shadow-sm: 0 1px 2px rgba(28, 29, 34, 0.06);
  --shadow-md: 0 8px 30px rgba(49, 82, 244, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 72rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* Text gradient for highlighted words */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Lucide Icons base styles */
.lucide {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ═══════════════════════════════════════════════════════════
   BEST PRACTICE ICON ANIMATIONS (2026 Standards)
   - GPU-accelerated: Only animate transform & opacity
   - Timing: 150-400ms (optimal perception)
   - Semantic: Context-appropriate motions
   - Performance: 60fps on all devices
   ═══════════════════════════════════════════════════════════ */

/* Core Spring Physics (Natural Motion) */
@keyframes spring-bounce {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.15) translateY(-4px); }
  50% { transform: scale(0.95) translateY(0); }
  70% { transform: scale(1.05) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes smooth-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 1; }
  50% { transform: translateY(-8px) translateX(2px); opacity: 0.9; }
}

/* Semantic Animations by Category */

/* Bell Ring (Pendulum Physics) */
@keyframes bell-ring {
  0%, 100% { transform: rotate(0deg); transform-origin: top center; }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  70% { transform: rotate(2deg); }
  80% { transform: rotate(-1deg); }
  90% { transform: rotate(0deg); }
}

/* Heart Beat (Double Pulse) */
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  56% { transform: scale(1); }
}

/* Mail Flap Open */
@keyframes mail-open {
  0% { transform: rotateX(0deg); transform-origin: top; }
  50% { transform: rotateX(-180deg); opacity: 0.8; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* Gear/Cog Partial Rotation */
@keyframes gear-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(45deg); }
}

/* Database/Stack Wobble */
@keyframes database-wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(5deg) scale(1.05); }
  75% { transform: rotate(-5deg) scale(1.05); }
}

/* Scale Balance */
@keyframes scale-balance {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(8deg); }
}

/* Bot Blink (Subtle) */
@keyframes bot-blink {
  0%, 90%, 100% { opacity: 1; transform: scale(1); }
  95% { opacity: 0.3; transform: scaleY(0.1); }
}

/* Rocket Lift (Diagonal Launch) */
@keyframes rocket-lift {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(8px, -12px) rotate(-10deg); opacity: 0.7; }
}

/* Chart Bar Growth */
@keyframes bar-grow {
  0% { transform: scaleY(0); transform-origin: bottom; opacity: 0.6; }
  50% { transform: scaleY(1.1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Target Crosshair Pulse */
@keyframes target-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(49, 82, 244, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(49, 82, 244, 0); }
}

/* Globe Continuous Rotate */
@keyframes globe-rotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* Refresh Spin (Smooth) */
@keyframes refresh-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Arrow Slide (Continuous) */
@keyframes arrow-slide {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: 0.8; }
}

/* Download Bounce */
@keyframes download-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  75% { transform: translateY(3px); }
}

/* Map Pin Drop */
@keyframes pin-drop {
  0% { transform: translateY(-20px) scale(0.8); opacity: 0; }
  50% { transform: translateY(0) scale(1.1); opacity: 1; }
  65% { transform: translateY(-5px) scale(0.95); }
  80% { transform: translateY(0) scale(1.05); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Search Scan */
@keyframes search-scan {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(8px) scale(1.05); }
}

/* CPU Processing Pulse */
@keyframes cpu-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  25% { transform: scale(1.1); opacity: 0.8; }
  50% { transform: scale(0.95); opacity: 1; }
  75% { transform: scale(1.05); opacity: 0.9; }
}

/* Glow Effect (Professional) */
@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(49, 82, 244, 0.4)); }
  50% { filter: drop-shadow(0 0 12px rgba(49, 82, 244, 0.8)); }
}

/* Scale In (Entrance) */
@keyframes scale-in-bounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Fade Slide (Smooth Entrance) */
@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   ICON-SPECIFIC ANIMATIONS (Semantic Mapping)
   ═══════════════════════════════════════════════════════════ */

/* Hero Buttons */
.btn i[data-lucide="calendar"] {
  animation: spring-bounce 2s ease-in-out infinite;
  will-change: transform;
}

.btn:hover i[data-lucide="calendar"] {
  animation: heart-beat 0.6s ease;
}

.btn i[data-lucide="arrow-right"] {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.btn:hover i[data-lucide="arrow-right"],
.card__link:hover i[data-lucide="arrow-right"] {
  animation: arrow-slide 0.8s ease-in-out infinite;
}

.btn:hover i[data-lucide="download"] {
  animation: download-bounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Service Card Icons */
.card .card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.card:hover .card__icon i[data-lucide="layout-dashboard"] {
  animation: spring-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card__icon i[data-lucide="cpu"] {
  animation: cpu-pulse 1s ease-in-out, refresh-spin 1.5s ease-in-out;
}

.card:hover .card__icon i[data-lucide="workflow"] {
  animation: smooth-float 1.2s ease-in-out;
}

/* Product Card Icons (Semantic Animations) */
.card:hover .card__icon i[data-lucide="bar-chart-3"] {
  animation: bar-grow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card__icon i[data-lucide="database"] {
  animation: database-wobble 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card:hover .card__icon i[data-lucide="scale"] {
  animation: scale-balance 0.9s ease-in-out;
}

.card:hover .card__icon i[data-lucide="bot"] {
  animation: spring-bounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), icon-glow 1.5s ease-in-out infinite;
}

/* Why Choose Icons (Continuous + Hover) */
i[data-lucide="target"] {
  animation: target-pulse 3s ease-in-out infinite;
  will-change: transform;
}

.card:hover .card__icon i[data-lucide="target"] {
  animation: target-pulse 0.6s ease-out, refresh-spin 1.5s ease-in-out;
}

i[data-lucide="globe-2"] {
  animation: globe-rotate 30s linear infinite;
  will-change: transform;
}

.card:hover .card__icon i[data-lucide="globe-2"] {
  animation: globe-rotate 8s linear infinite;
}

.card:hover .card__icon i[data-lucide="refresh-cw"] {
  animation: refresh-spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card:hover .card__icon i[data-lucide="brain-circuit"] {
  animation: cpu-pulse 0.8s ease-out, icon-glow 2s ease-in-out infinite;
}

/* Process Step Icons */
.process-step__num {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.process-step:hover .process-step__num {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(49, 82, 244, 0.3);
}

.process-step:hover .process-step__num i[data-lucide="search"] {
  animation: search-scan 1.2s ease-in-out infinite;
}

.process-step:hover .process-step__num i[data-lucide="cpu"] {
  animation: cpu-pulse 1s ease-in-out infinite;
}

i[data-lucide="file-text"] {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step:hover i[data-lucide="file-text"] {
  animation: spring-bounce 0.5s ease;
}

/* Navigation Dropdown Icons */
.nav-dropdown__menu a {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown__menu a:hover i {
  animation: arrow-slide 0.5s ease-in-out;
  transform: translateX(4px);
}

/* Footer Icons */
.footer-col ul li i[data-lucide="map-pin"] {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.footer-col ul li:hover i[data-lucide="map-pin"] {
  animation: pin-drop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: var(--primary);
}

.footer-bottom i[data-lucide="mail"] {
  transition: all 0.3s ease;
}

.footer-bottom a:hover i[data-lucide="mail"] {
  animation: mail-open 0.8s ease;
  color: var(--primary);
}

/* Entrance Animations (Scroll-triggered) */
.card__icon i {
  animation: scale-in-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

/* Stagger delays for grid items */
.grid .card:nth-child(1) .card__icon i {
  animation-delay: 0s;
}

.grid .card:nth-child(2) .card__icon i {
  animation-delay: 0.1s;
}

.grid .card:nth-child(3) .card__icon i {
  animation-delay: 0.2s;
}

.grid .card:nth-child(4) .card__icon i {
  animation-delay: 0.3s;
}

/* Performance optimization */
.card__icon i,
.btn i,
.process-step__num i,
i[data-lucide] {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(221, 226, 238, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(209, 214, 224, 0.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.site-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.site-nav a {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(49, 82, 244, 0.08);
  color: var(--primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  display: block;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.65rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(49, 82, 244, 0.35);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(49, 82, 244, 0.4);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(77, 150, 255, 0.15), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(49, 82, 244, 0.1);
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin: 0 auto;
}
  margin: 0 0 1rem;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section__header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.05rem;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 82, 244, 0.1);
  color: var(--primary);
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
}

.card__link {
  font-size: 0.9rem;
  font-weight: 600;
}

.card__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card__tags li {
  padding: 0.15rem 0;
}

.card__tags li::before {
  content: "✓ ";
  color: var(--primary);
}

/* Process steps */
.process {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.process-step__num {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
}

.process-step h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.2rem;
}

.process-step ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.process-step .deliverable {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* CTA band */
.cta-band {
  background: var(--bg-dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 1.25rem;
  max-width: calc(var(--max-w) - 2.5rem);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .cta-band {
    margin: 0 auto;
  }
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn--primary {
  margin: 0 0.35rem;
}

.cta-band .trust {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Team */
.team-card {
  text-align: center;
}

.team-card__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 600;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.team-card .role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.team-card .location {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #d1d6e0;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.site-footer a {
  color: #d1d6e0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand img {
  height: 26px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 20rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
  background: var(--gradient-hero);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg-card);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

.locations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.locations-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.locations-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Product filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-bar button {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-card[data-category] {
  transition: opacity 0.2s;
}

.product-card .btn--primary {
  margin-top: auto;
  align-self: flex-start;
}

.product-card.is-hidden {
  display: none;
}

/* Case study metrics */
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.metric {
  background: rgba(49, 82, 244, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ═══════════════════════════════════════════════════════════
   ICON ANIMATIONS - JavaScript Triggered Classes
   Works with both <i> tags and SVG elements
   ═══════════════════════════════════════════════════════════ */

/* Animation Keyframes */
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-15px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-8px); }
}

@keyframes icon-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-12deg); }
  20%, 40%, 60%, 80% { transform: rotate(12deg); }
}

@keyframes icon-tada {
  0% { transform: scale(1) rotate(0deg); }
  10%, 20% { transform: scale(0.85) rotate(-8deg); }
  30%, 50%, 70%, 90% { transform: scale(1.25) rotate(8deg); }
  40%, 60%, 80% { transform: scale(1.25) rotate(-8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes icon-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Animation Classes - Applied by JavaScript */
.icon-animate-bounce {
  animation: icon-bounce 0.7s ease-in-out !important;
}

.icon-animate-spin {
  animation: icon-spin 0.6s ease-in-out !important;
}

.icon-animate-wiggle {
  animation: icon-wiggle 0.7s ease-in-out !important;
}

.icon-animate-tada {
  animation: icon-tada 1s ease-in-out !important;
}

.icon-animate-shake {
  animation: icon-shake 0.6s ease-in-out !important;
}

.icon-animate-pulse {
  animation: icon-pulse 0.3s ease-in-out 3 !important;
}

/* ═══════════════════════════════════════════════════════════
   ICON ANIMATIONS - JavaScript Triggered Classes
   Works with both <i> tags and SVG elements
   ═══════════════════════════════════════════════════════════ */

/* Animation Keyframes */
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-15px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-8px); }
}

@keyframes icon-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-12deg); }
  20%, 40%, 60%, 80% { transform: rotate(12deg); }
}

@keyframes icon-tada {
  0% { transform: scale(1) rotate(0deg); }
  10%, 20% { transform: scale(0.85) rotate(-8deg); }
  30%, 50%, 70%, 90% { transform: scale(1.25) rotate(8deg); }
  40%, 60%, 80% { transform: scale(1.25) rotate(-8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes icon-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Animation Classes - Applied by JavaScript */
.icon-animate-bounce {
  animation: icon-bounce 0.7s ease-in-out !important;
}

.icon-animate-spin {
  animation: icon-spin 0.6s ease-in-out !important;
}

.icon-animate-wiggle {
  animation: icon-wiggle 0.7s ease-in-out !important;
}

.icon-animate-tada {
  animation: icon-tada 1s ease-in-out !important;
}

.icon-animate-shake {
  animation: icon-shake 0.6s ease-in-out !important;
}

.icon-animate-pulse {
  animation: icon-pulse 0.3s ease-in-out 3 !important;
}

/* Base icon setup for both <i> and <svg> */
.card__icon i,
.card__icon svg,
svg.lucide {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATED TERMINAL WINDOW
   ═══════════════════════════════════════════════════════════ */

.terminal-section {
  position: relative;
  overflow: hidden;
}

.terminal-section .container {
  max-width: 1400px;
}

.terminal-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.terminal-window {
  flex: 1 1 auto;
  min-width: 0;
  background: #1E1E3F;
  border: 1px solid rgba(89, 69, 177, 0.3);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.terminal-commands {
  flex: 0 0 300px;
  width: 300px;
  background: #1E1E3F;
  border: 1px solid rgba(89, 69, 177, 0.3);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.terminal-header,
.terminal-commands__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #191938;
  border-bottom: 1px solid rgba(89, 69, 177, 0.2);
  flex-shrink: 0;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.terminal-title {
  margin-left: 6px;
  font-size: 12px;
  color: #9BA1B0;
}

.terminal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-line {
  display: flex;
  flex-direction: column;
  gap: 7.5px;
  transition: opacity 0.3s;
  animation: fade-in-up 0.5s ease-out;
}

.terminal-fade {
  opacity: 0.4;
}

.terminal-active {
  opacity: 1;
}

.terminal-prompt {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 4px;
  background: #2D2B55;
  border-radius: 4px;
}

.prompt-symbol {
  font-weight: bold;
  font-size: 13px;
  color: #E4CCFF;
  user-select: none;
}

.terminal-text {
  color: #E5E5E5;
}

.terminal-path {
  padding: 1px 0 1px 14px;
  color: #9BA1B0;
}

.terminal-badge-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 1px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
  border-radius: 3px;
  flex-shrink: 0;
}

.badge-success {
  background: #08575B;
  color: #f4f4f4;
}

.badge-primary {
  background: rgb(89, 69, 177);
  color: #f4f4f4;
}

.terminal-success {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 1px 0;
  color: #2EBD8E;
}

.check-mark {
  font-size: 12px;
  user-select: none;
}

.terminal-spacer {
  height: 8px;
}

/* Typing animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.typing-animation {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #E4CCFF;
  animation: typing 3s steps(30) 1s forwards, blink 0.7s step-end infinite;
  max-width: 0;
}

/* Fade in up animation */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .terminal-window {
    font-size: 12px;
  }
  
  .terminal-body {
    min-height: 280px;
    padding: 12px 14px;
  }
  
  .badge {
    font-size: 9px;
  }
}

/* Interactive Terminal Input */
.terminal-input-line {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px;
  background: #191938;
  border-top: 1px solid rgba(89, 69, 177, 0.2);
}

.terminal-input-line .prompt-symbol {
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #E5E5E5;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  caret-color: #E4CCFF;
}

.terminal-input::placeholder {
  color: #6B6B8B;
  opacity: 0.7;
}

.terminal-input:focus::placeholder {
  opacity: 0;
}

#terminal-output {
  display: flex;
  flex-direction: column;
  gap: 7.5px;
  margin-top: 8px;
}

.user-command {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fade-in-up 0.3s ease-out;
}

.command-echo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 4px;
  background: #2D2B55;
  border-radius: 4px;
  color: #E5E5E5;
}

.command-response {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  color: #9BA1B0;
}

.command-response.success {
  color: #2EBD8E;
}

.command-response.error {
  color: #ff5f57;
}

.command-link {
  color: #4d96ff;
  text-decoration: underline;
  cursor: pointer;
}

.command-link:hover {
  color: #7db4ff;
}

/* Commands panel — same palette as .terminal-window */
.terminal-commands__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.commands-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #9BA1B0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: inherit;
}

.commands-list {
  display: flex;
  flex-direction: column;
  gap: 7.5px;
}

.command-item {
  background: #2D2B55;
  border: none;
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.command-item:hover {
  background: #3a3868;
  transform: none;
}

.command-item:active {
  opacity: 0.85;
}

.command-name {
  font-size: 13px;
  font-weight: 600;
  color: #E4CCFF;
  font-family: inherit;
}

.command-desc {
  font-size: 12px;
  color: #9BA1B0;
  font-family: inherit;
}

.commands-hint {
  font-size: 12px;
  color: #9BA1B0;
  text-align: left;
  padding: 8px 10px;
  background: #2D2B55;
  border-radius: 4px;
  margin-top: auto;
  font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════
   CODE-STYLE SECTIONS (Phase 1 — Products & Process)
   ═══════════════════════════════════════════════════════════ */

.section--code {
  overflow: hidden;
}

.section--code.section--alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #eef0f8 55%, var(--bg-alt) 100%);
}

.section__header--on-dark h2,
.section__header--on-dark p {
  color: #fff;
}

.section__header--on-dark p {
  color: #b8bcc8;
}

.terminal-window--static {
  max-width: 100%;
}

.terminal-window--wide {
  width: 100%;
}

.terminal-scroll--compact {
  padding: 14px 16px;
  max-height: none;
  overflow: visible;
}

/* Product explorer — list left, terminal right */
.product-explorer-section .container {
  max-width: 1400px;
}

.product-explorer {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(89, 69, 177, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  min-height: 380px;
}

.product-list {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  background: #141428;
  border-right: 1px solid rgba(89, 69, 177, 0.2);
  padding: 8px 0;
}

.product-list__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: background 0.2s ease;
  border-left: 3px solid transparent;
}

.product-list__item:hover,
.product-list__item.is-active {
  background: rgba(45, 43, 85, 0.6);
  border-left-color: rgb(89, 69, 177);
}

.product-list__num {
  font-size: 12px;
  font-weight: 600;
  color: #6B6B8B;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.product-list__item.is-active .product-list__num,
.product-list__item:hover .product-list__num {
  color: #9BA1B0;
}

.product-list__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #E5E5E5;
  line-height: 1.3;
}

.product-list__tagline {
  font-size: 0.8rem;
  color: #6B6B8B;
  line-height: 1.4;
}

.product-list__item.is-active .product-list__tagline,
.product-list__item:hover .product-list__tagline {
  color: #9BA1B0;
}

.product-preview-terminal {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 380px;
}

.product-preview-terminal .terminal-scroll {
  min-height: 320px;
}

.product-preview-terminal .terminal-line {
  animation: fade-in-up 0.25s ease-out;
}

.terminal-file-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #4d96ff;
  text-decoration: none;
  transition: color 0.2s;
}

.terminal-file-link:hover {
  color: #7db4ff;
  text-decoration: underline;
}

/* Syntax highlighting for JSON block */
.code-block {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  color: #E5E5E5;
  overflow-x: auto;
  white-space: pre;
}

.code-block code {
  font-family: inherit;
}

.code-key {
  color: #E4CCFF;
}

.code-str {
  color: #2EBD8E;
}

.code-punct {
  color: #9BA1B0;
}

.code-section-cta {
  text-align: center;
  margin-top: 2rem;
}

.code-section-cta--on-dark {
  margin-top: 1.75rem;
}

.code-section-cta--on-dark .btn--primary {
  box-shadow: 0 8px 24px rgba(49, 82, 244, 0.35);
}

@media (max-width: 900px) {
  .product-explorer {
    flex-direction: column;
    min-height: auto;
  }

  .product-list {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(89, 69, 177, 0.2);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px;
    gap: 4px;
  }

  .product-list__item {
    flex: 1 1 calc(50% - 4px);
    padding: 12px 14px;
    border-left: none;
    border-radius: 8px;
  }

  .product-list__item.is-active,
  .product-list__item:hover {
    border-left: none;
  }

  .product-preview-terminal {
    min-height: 300px;
  }
}

/* Responsive - stack only on small screens */
@media (max-width: 768px) {
  .terminal-container {
    flex-direction: column;
  }

  .terminal-window {
    height: auto !important;
  }

  .terminal-commands {
    flex: 1 1 auto;
    width: 100%;
  }

  .terminal-scroll {
    min-height: 280px;
    max-height: 400px;
  }

  .commands-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
