/* ==========================================================================
   ZAPPTRIX™ TOP HEADER, HERO, ROTARY TIMELINE & DARK EDGE-TO-EDGE FOOTER
   Font: Ubuntu
   Header: Sticky Navigation with Underline Action Links & Icons
   Hero: Dual Black CTA Buttons with Lucide Icons
   Rotary Timeline: Polar Radial Arc Physics + Sub-Header + Clean Prev/Next Controls
   Metric Cards: Lucide Icons + Monochrome Dividers + Vibrant 7-Project Hero Color Palette
   Footer: Full Edge-to-Edge Dark Canvas (#0B0F19) + Horizontal Contact Grid
           + Google Maps Address Hyperlink + Reordered Copyright
           + Ultra-Sleek Left-to-Right Flowing 3D Point Cloud Wave
           + Full-Width Privacy Policy Section
   ========================================================================== */

:root {
  --font-ubuntu: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bg-canvas: #F5F5F7;
  --bg-dark-footer: #141414;
  --text-dark: #171717;
  --text-muted: #666666;

  --btn-dark-bg: #171717;
  --btn-dark-hover: #262626;

  --glass-bg: rgba(245, 245, 247, 0.85);
  --glass-border: rgba(225, 225, 230, 0.7);

  --muted-grey: #D4D4D4;
  --muted-border: #E5E5E5;
}

/* Global Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
  font-family: var(--font-ubuntu);
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 1. STICKY GLASSMORPHIC TOP HEADER */
.top-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-z-logo {
  width: 44px;
  height: 39px;
  object-fit: contain;
  display: block;
}

.brand-title {
  font-family: var(--font-ubuntu);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1;
}

.brand-tm {
  font-size: 0.55em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 2px;
  color: var(--text-dark);
}

/* Header Right Slot (Motto Text vs Nav Action Buttons Switcher) */
.header-right-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
}

.header-motto-text {
  font-family: var(--font-ubuntu);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-dark);
  text-transform: uppercase;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  white-space: nowrap;
}

.header-motto-text.hidden,
.top-header.scrolled .header-motto-text {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  pointer-events: none !important;
}

/* Header Nav Action Buttons (No background, black text, black underline with icons) */
.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
  position: absolute;
  right: 0;
}

.header-nav-actions.visible,
.top-header.scrolled .header-nav-actions {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.btn-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #0F172A;
  font-family: var(--font-ubuntu);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

/* Thin Grey Vertical Divider between Nav Buttons */
.btn-header-link:not(:last-child)::before {
  content: '';
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background-color: var(--muted-border);
  pointer-events: none;
}

/* Hover Underline Wipe-In Effect */
.btn-header-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0F172A;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-header-link:hover::after {
  transform-origin: left center;
  transform: scaleX(1);
}

.nav-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

@media (max-width: 768px) {
  .header-container {
    padding: 14px 20px;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .brand-z-logo {
    width: 28px;
    height: 24px;
  }
}

/* 2. HERO SECTION */
.hero-section {
  position: relative;
  padding: 60px 60px 80px 60px;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

#heroParticleWaveCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
  z-index: 2;
}

.hero-tagline {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.45;
}

.hero-brand-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  cursor: default;
}

.hero-z-logo {
  width: 80px;
  height: 71px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-z-logo.logo-flicker-entry {
  opacity: 0;
}

.hero-z-logo.logo-flicker-entry.flickered {
  animation: logoElectricFlicker 0.65s linear forwards;
}

@keyframes logoElectricFlicker {
  0% {
    opacity: 0;
    filter: brightness(0.2);
  }
  10% {
    opacity: 1;
    filter: brightness(2.2);
  }
  16% {
    opacity: 0.08;
    filter: brightness(0.3);
  }
  26% {
    opacity: 0.95;
    filter: brightness(1.8);
  }
  32% {
    opacity: 0.15;
    filter: brightness(0.4);
  }
  44% {
    opacity: 1;
    filter: brightness(2.0);
  }
  54% {
    opacity: 0.3;
    filter: brightness(0.6);
  }
  66% {
    opacity: 1;
    filter: brightness(1.4);
  }
  78% {
    opacity: 0.85;
    filter: brightness(0.9);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.hero-brand-heading:hover .hero-z-logo {
  animation: logoElectricFlicker 0.65s linear forwards;
  transform: rotate(-6deg) scale(1.05);
}

.hero-brand-title {
  font-family: var(--font-ubuntu);
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
  padding-right: 12px;
}

.title-char-roll {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

.title-char-roll.tm-char {
  font-size: 0.5em;
  font-weight: 500;
  margin-left: 2px;
  padding-right: 6px;
  align-self: flex-start;
  position: relative;
  top: 0.15em;
}

.hero-brand-title.animated .title-char-roll {
  transform: translateY(0);
  opacity: 1;
}

/* Interactive Hover Wave Effect on Brand Title */
.hero-brand-heading:hover .title-char-roll {
  animation: heroTitleRollWave 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroTitleRollWave {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  45% {
    transform: translateY(-50%);
    opacity: 0;
  }
  55% {
    transform: translateY(50%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-brand-tm {
  font-size: 0.5em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 3px;
  color: var(--text-dark);
  transition: transform 0.4s ease;
}

/* TECHNICAL JSON TERMINAL WIDGET */
.hero-terminal-card {
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 520px;
  margin-bottom: 32px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  position: relative;
  transition: all 0.3s ease;
}

.hero-terminal-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background-color: #EF4444; }
.dot-yellow { background-color: #F59E0B; }
.dot-green { background-color: #10B981; }

.terminal-title {
  font-size: 0.78rem;
  color: #A3A3A3;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.terminal-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
}

.terminal-body {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #E2E8F0;
  overflow-x: auto;
}

.terminal-json {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.json-key {
  color: #7DD3FC; /* Sky Blue Key */
  font-weight: 600;
}

.json-string {
  color: #86EFAC; /* Soft Green String Value */
}

.hero-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-buttons-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons-row.secondary {
  gap: 24px;
  padding-left: 4px;
}

/* Button Styles - Hero Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 9999px;
  font-family: var(--font-ubuntu);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.btn-dark {
  background-color: var(--btn-dark-bg);
  color: #FFFFFF;
  border: none;
}

.btn-dark:hover {
  background-color: var(--btn-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

/* Simple Text Link Buttons (No Background, No Border) */
.btn-hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #0F172A;
  font-family: var(--font-ubuntu);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding: 6px 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-hero-text-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0F172A;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-text-link:hover::after {
  transform-origin: left center;
  transform: scaleX(1);
}

/* 3. HERO DITHERED GLOBE ARTWORK */
.hero-artwork-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  width: 100%;
}

.hero-doodle-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin-left: auto;
  filter: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.hero-doodle-img:hover {
  transform: scale(1.03) rotate(1.5deg);
}

/* 4. REUSABLE MODULAR FEATURED PROJECTS SECTION */
.projects-section {
  padding: 80px 60px 100px 60px;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--muted-border);
  scroll-margin-top: 35px;
}

.projects-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px auto;
}

.projects-title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1.2;
  display: inline-block;
  overflow: hidden;
}

.projects-title.animated .title-char-roll {
  transform: translateY(0);
  opacity: 1;
}

.projects-title:hover .title-char-roll {
  animation: heroTitleRollWave 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* PROJECTS EXPLORER GRID: LEFT STICKY ROTARY TIMELINE + RIGHT CARDS STACK */
.projects-explorer-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
}

/* LEFT STICKY TIMELINE SIDEBAR */
.projects-sticky-timeline-sidebar {
  position: sticky;
  top: 100px;
  transform: none;
  align-self: start;
  height: max-content;
  z-index: 10;
  margin-left: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* SUB-HEADER AT TOP OF ROTARY SIDEBAR */
.rotary-sidebar-header {
  margin-bottom: 8px;
  margin-left: 24px;
}

.rotary-sidebar-subheader {
  font-family: var(--font-ubuntu);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #0F172A;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ROTARY TIMELINE WIDGET */
.rotary-timeline-widget {
  position: relative;
  width: 260px;
  height: 380px;
  display: flex;
  align-items: center;
}

.rotary-arc-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 380px;
  pointer-events: none;
  overflow: visible;
}

/* ROTARY NUMBERS LIST */
.rotary-numbers-list {
  position: relative;
  width: 100%;
  height: 100%;
}

.rotary-item {
  position: absolute;
  left: 162px;
  top: 190px;
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
}

.rotary-num {
  font-family: var(--font-ubuntu);
  font-size: 3rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rotary-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  line-height: 1.25;
  white-space: normal;
}

/* ROTARY CONTROLS BELOW ROTARY WIDGET */
.rotary-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  margin-left: 0px;
}

.rotary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 9999px;
  background-color: var(--btn-dark-bg);
  border: none;
  color: #FFFFFF;
  font-family: var(--font-ubuntu);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotary-btn:hover {
  background-color: var(--btn-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.rotary-ctrl-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* RIGHT PROJECT CARDS STACK */
.projects-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* MODULAR PROJECT CARD CONTAINER */
.project-card-container {
  background-color: #FFFFFF;
  border-radius: 28px;
  border: 3px solid #141414;
  padding: 44px;
  box-shadow: 10px 10px 0px #141414;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-container:hover {
  transform: translate(-3px, -3px);
  box-shadow: 14px 14px 0px #141414;
}

/* CARD MAIN TOP ROW */
.card-main-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 36px;
}

@media (max-width: 992px) {
  .projects-explorer-grid {
    grid-template-columns: 1fr;
  }

  .projects-sticky-timeline-sidebar {
    position: static;
    transform: none;
    margin-left: 0;
    margin-bottom: 24px;
  }

  .card-main-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card-container {
    padding: 28px;
    border-radius: 28px;
  }
}

/* LEFT ARTWORK CONTAINER (STRICT 1:1 ASPECT RATIO) */
.card-artwork-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background-color: #F1F5F9;
  border: 2.5px solid #CBD5E1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  color: #475569;
  transition: all 0.3s ease;
}

#fifaFootballCanvas,
#bicreeGlbCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.card-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-card-container:hover .card-artwork-img {
  transform: scale(1.04);
}

.artwork-text {
  font-family: var(--font-ubuntu);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #475569;
  transition: color 0.3s ease;
}

/* RIGHT CONTENT BODY */
.card-content-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* MINIMAL MONOCHROME CATEGORY PILL BADGES WITH LUCIDE ICONS */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  align-self: flex-start;
  margin-bottom: 20px;
  background-color: #F1F5F9;
  color: #0F172A;
  border: 2px solid #CBD5E1;
  transition: all 0.3s ease;
}

.badge-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: stroke 0.3s ease;
}

.card-title {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.card-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* BOTTOM EQUALLY SPACED METRICS ROW WITH MONOCHROME DIVIDER LINES & VIBRANT LUCIDE ICONS */
.card-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--muted-border);
  width: 100%;
}

.metric-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 24px;
}

.metric-item:first-child {
  padding-left: 0;
}

.metric-item:last-child {
  padding-right: 0;
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-icon {
  width: 22px;
  height: 22px;
  stroke: #0F172A;
  stroke-width: 2.2;
  flex-shrink: 0;
  transition: stroke 0.3s ease;
}

.metric-spacer {
  width: 1px;
  height: 48px;
  background-color: var(--muted-border);
  flex-shrink: 0;
}

.metric-val {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.1;
  display: inline-flex;
  overflow: hidden;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.35;
}

/* ==========================================================================
   VIBRANT CARD ACCENT COLOR THEMES (ALL 7 PROJECTS)
   Dividers Retained Monochrome (#E2E8F0)
   ========================================================================== */

/* 1. GREEN THEME (ELCITA & PROCESS AUTOMATION) */

.project-card-container.theme-emerald .card-badge {
  background-color: #F0FDF4;
  border: 3px solid #16A34A;
  color: #16A34A;
}

.project-card-container.theme-emerald .badge-icon {
  stroke: #16A34A;
}

.project-card-container.theme-emerald .card-artwork-box {
  background-color: #F0FDF4;
  border: 3px solid #16A34A;
}

.project-card-container.theme-emerald .artwork-text {
  color: #16A34A;
}

.project-card-container.theme-emerald .metric-icon {
  stroke: #16A34A;
}

/* 2. ORANGE THEME (BICREE) */
.project-card-container.theme-orange .card-badge {
  background-color: #FFF7ED;
  border: 3px solid #EA580C;
  color: #EA580C;
}

.project-card-container.theme-orange .badge-icon {
  stroke: #EA580C;
}

.project-card-container.theme-orange .card-artwork-box {
  background-color: #FFF7ED;
  border: 3px solid #EA580C;
}

.project-card-container.theme-orange .artwork-text {
  color: #EA580C;
}

.project-card-container.theme-orange .metric-icon {
  stroke: #EA580C;
}

/* 3. PURPLE THEME (FIFA) */
.project-card-container.theme-purple .card-badge {
  background-color: #F5F3FF;
  border: 3px solid #765ABE;
  color: #765ABE;
}

.project-card-container.theme-purple .badge-icon {
  stroke: #765ABE;
}

.project-card-container.theme-purple .card-artwork-box {
  background-color: #F5F3FF;
  border: 3px solid #765ABE;
}

.project-card-container.theme-purple .artwork-text {
  color: #765ABE;
}

.project-card-container.theme-purple .metric-icon {
  stroke: #765ABE;
}

/* 4. SALMON THEME (TCAOFF & WOCKHARDT) */
.project-card-container.theme-salmon .card-badge {
  background-color: #FFF1F2;
  border: 3px solid #E11D48;
  color: #E11D48;
}

.project-card-container.theme-salmon .badge-icon {
  stroke: #E11D48;
}

.project-card-container.theme-salmon .card-artwork-box {
  background-color: #FFF1F2;
  border: 3px solid #E11D48;
}

.project-card-container.theme-salmon .artwork-text {
  color: #E11D48;
}

.project-card-container.theme-salmon .metric-icon {
  stroke: #E11D48;
}

/* 5. BLUE THEME (BEAM LIGHTING) */
.project-card-container.theme-blue .card-badge {
  background-color: #F0F9FF;
  border: 3px solid #0284C7;
  color: #0284C7;
}

.project-card-container.theme-blue .badge-icon {
  stroke: #0284C7;
}

.project-card-container.theme-blue .card-artwork-box {
  background-color: #F0F9FF;
  border: 3px solid #0284C7;
}

.project-card-container.theme-blue .artwork-text {
  color: #0284C7;
}

.project-card-container.theme-blue .metric-icon {
  stroke: #0284C7;
}

/* CHARACTER UPWARD ROLL ANIMATION */
.char-span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  will-change: transform, opacity;
}

.metric-item.revealed .char-span {
  transform: translateY(0);
  opacity: 1;
}

/* 5. LARGE EDGE-TO-EDGE DARK FOOTER WITH FLOWING POINT CLOUD WAVE & FULL-WIDTH PRIVACY POLICY */
.site-footer {
  width: 100%;
  background-color: var(--bg-dark-footer);
  color: #F0F0F0;
  padding: 90px 0 100px 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 35px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-row {
  margin-bottom: 36px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #F0F0F0;
  margin-bottom: 16px;
  cursor: default;
}

.footer-z-logo {
  width: 58px;
  height: 52px;
  object-fit: contain;
  filter: invert(1);
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-z-logo.logo-flicker-entry {
  opacity: 0;
}

.footer-z-logo.logo-flicker-entry.flickered {
  animation: footerElectricFlicker 0.65s linear forwards;
}

.footer-brand-link:hover .footer-z-logo {
  animation: footerElectricFlicker 0.65s linear forwards;
  transform: rotate(-6deg) scale(1.05);
}

@keyframes footerElectricFlicker {
  0% {
    opacity: 0;
    filter: invert(1) brightness(0.2);
  }
  10% {
    opacity: 1;
    filter: invert(1) brightness(2.2);
  }
  16% {
    opacity: 0.08;
    filter: invert(1) brightness(0.3);
  }
  26% {
    opacity: 0.95;
    filter: invert(1) brightness(1.8);
  }
  32% {
    opacity: 0.15;
    filter: invert(1) brightness(0.4);
  }
  44% {
    opacity: 1;
    filter: invert(1) brightness(2.0);
  }
  54% {
    opacity: 0.3;
    filter: invert(1) brightness(0.6);
  }
  66% {
    opacity: 1;
    filter: invert(1) brightness(1.4);
  }
  78% {
    opacity: 0.85;
    filter: invert(1) brightness(0.9);
  }
  100% {
    opacity: 1;
    filter: invert(1) brightness(1);
  }
}

.footer-brand-title {
  font-family: var(--font-ubuntu);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F0F0F0;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
  padding-right: 10px;
}

.footer-brand-title.animated .title-char-roll {
  transform: translateY(0);
  opacity: 1;
}

.footer-brand-link:hover .title-char-roll {
  animation: heroTitleRollWave 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.footer-tagline {
  font-size: 1.15rem;
  color: #A3A3A3;
  max-width: 680px;
  line-height: 1.6;
}

/* HORIZONTALLY DISTRIBUTED CONTACT POINTS GRID */
.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  width: 100%;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(240, 240, 240, 0.12);
  margin-bottom: 32px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-contact-icon {
  width: 22px;
  height: 22px;
  stroke: #A3A3A3;
  stroke-width: 2;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-info-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #737373;
}

.footer-info-val {
  font-size: 0.98rem;
  color: #E5E5E5;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.footer-info-val:hover {
  color: #F0F0F0;
  text-decoration: underline;
}

a.maps-link {
  color: #E5E5E5;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a.maps-link:hover {
  color: #F0F0F0;
  text-decoration: underline;
}

/* COPYRIGHT STATEMENT (Positioned Above Point Cloud Wave) */
.footer-copyright {
  width: 100%;
  font-size: 0.94rem;
  color: #737373;
  margin-bottom: 24px;
}

.footer-copy-tm {
  font-size: 0.75em;
  vertical-align: super;
}

/* FULL-WIDTH LEFT-TO-RIGHT POINT CLOUD WAVE CANVAS CONTAINER */
.footer-wave-container {
  width: 100%;
  height: 320px;
  margin: 10px 0 44px 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#footerPointCloudCanvas {
  width: 100%;
  height: 320px;
  display: block;
}

/* FULL HORIZONTAL WIDTH PRIVACY POLICY SECTION */
.footer-privacy-policy {
  width: 100%;
  color: #737373;
  font-size: 0.9rem;
  line-height: 1.7;
  padding-top: 36px;
  border-top: 1px solid rgba(240, 240, 240, 0.1);
  scroll-margin-top: 35px;
}

.privacy-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #E5E5E5;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.privacy-date {
  font-size: 0.88rem;
  color: #737373;
  margin-bottom: 24px;
}

.privacy-intro {
  font-size: 1.05rem;
  margin-bottom: 32px;
  color: #A3A3A3;
  max-width: 880px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px 48px;
  width: 100%;
}

.privacy-section h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #E5E5E5;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.privacy-section p {
  margin-bottom: 10px;
  color: #737373;
}

.privacy-section ul {
  margin: 12px 0 14px 20px;
  color: #737373;
}

.privacy-section li {
  margin-bottom: 6px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-section {
    padding: 40px 24px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-heading {
    font-size: 3.25rem;
  }

  .projects-section {
    padding: 48px 24px;
  }

  .card-title {
    font-size: 1.75rem;
  }

  .card-metrics-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .metric-spacer {
    display: none;
  }

  .metric-item {
    padding: 0;
  }

  .footer-container {
    padding: 0 24px;
  }

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