:root {
  --bg: #f8f9fc;
  --bg2: #f0f2f8;
  --bg3: #e8ebf4;
  --bg-alt: #eef1f9;
  --surface: #ffffff;
  --surface2: #f4f5fb;
  --border: rgba(30, 40, 80, 0.08);
  --border2: rgba(30, 40, 80, 0.15);
  --text: #0f1520;
  --text2: #4a5568;
  --text3: #8a96aa;
  --accent: #2563eb;
  --accent2: #4f46e5;
  --cyan: #0891b2;
  --purple: #7c3aed;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --glow: rgba(37, 99, 235, 0.08);
  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-bg: rgba(248, 249, 252, 0.72);
  --nav-scrolled-bg: rgba(248, 249, 252, 0.88);
  --nav-border: rgba(30, 40, 80, 0.06);
  --nav-shadow: rgba(30, 40, 80, 0.06);

  --blob-color-1: rgba(37, 99, 235, 0.16);
  --blob-color-2: rgba(124, 58, 237, 0.12);
  --blob-color-3: rgba(8, 145, 178, 0.10);
  --grid-color: rgba(30, 40, 80, 0.02);

  /* Dashboard glass card variables */
  --db-card-bg: rgba(255, 255, 255, 0.7);
  --db-card-border: rgba(30, 40, 80, 0.08);
  --db-card-glow: rgba(37, 99, 235, 0.05);
  --db-code-bg: rgba(30, 40, 80, 0.04);
  --db-code-border: rgba(30, 40, 80, 0.06);
  --db-icon-bg: rgba(30, 40, 80, 0.02);
}

:root[data-theme="dark"] {
  --bg: #0b0f19;
  --bg2: #0f172a;
  --bg3: #1e293b;
  --bg-alt: #0d1321;
  --surface: #131b2e;
  --surface2: #1e293b;
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --text2: #94a3b8;
  --text3: #64748b;
  --accent: #3b82f6;
  --accent2: #6366f1;
  --cyan: #06b6d4;
  --purple: #a855f7;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --glow: rgba(59, 130, 246, 0.12);

  --nav-bg: rgba(11, 15, 25, 0.72);
  --nav-scrolled-bg: rgba(11, 15, 25, 0.88);
  --nav-border: rgba(255, 255, 255, 0.05);
  --nav-shadow: rgba(0, 0, 0, 0.3);

  --blob-color-1: rgba(59, 130, 246, 0.14);
  --blob-color-2: rgba(168, 85, 247, 0.11);
  --blob-color-3: rgba(6, 182, 212, 0.08);
  --grid-color: rgba(255, 255, 255, 0.015);

  /* Dashboard glass card variables */
  --db-card-bg: rgba(19, 27, 46, 0.4);
  --db-card-border: rgba(255, 255, 255, 0.06);
  --db-card-glow: rgba(0, 195, 255, 0.12);
  --db-code-bg: rgba(5, 7, 13, 0.5);
  --db-code-border: rgba(255, 255, 255, 0.03);
  --db-icon-bg: rgba(255, 255, 255, 0.03);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    radial-gradient(ellipse 100% 100% at 75% 30%, var(--blob-color-1) 0%, transparent 80%),
    radial-gradient(ellipse 90% 90% at 20% 70%, var(--blob-color-2) 0%, transparent 80%),
    radial-gradient(ellipse 80% 80% at 80% 90%, var(--blob-color-3) 0%, transparent 70%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
}

/* Make sections transparent to let the premium body background show through */
section,
.page,
.services-section,
.why-section,
.projects-section,
.cta-section,
.about-hero,
.services-page-hero,
.portfolio-hero,
.tech-hero,
.process-hero,
.contact-hero,
footer {
  background: transparent !important;
}

/* Hide static grid and bg in home hero to avoid double-layering with the global background */
.hero-bg,
.hero-grid {
  display: none !important;
}

/* Subtly animated grain texture background overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.014;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Transition for theme switching */
body,
nav,
.service-card,
.why-item,
.project-card,
.step-content,
.contact-form-wrapper,
input,
textarea,
select,
footer,
.vm-card,
.tech-chip,
.modal {
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

/* ---------- FLOATING PILL NAV ---------- */
nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  width: calc(100% - 32px);
  max-width: 1100px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border2);
  border-radius: 100px;
  box-shadow: 0 4px 30px var(--nav-shadow), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: padding .4s var(--ease-out-expo), background .4s, box-shadow .4s, border-color .4s, top .4s var(--ease-out-expo);
}

nav.scrolled {
  padding: 0.55rem 1.75rem;
  top: 10px;
  background: var(--nav-scrolled-bg);
  box-shadow: 0 8px 40px var(--nav-shadow), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--accent);
}

.logo-image {
  height: 30px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover .logo-image {
  transform: scale(1.05);
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 2px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(.8)
  }
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  font-size: .84rem;
  text-decoration: none;
  transition: color .25s, background .25s;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--glow);
}

/* Active Link State  -  pill highlight */
.nav-links a.active {
  color: var(--accent);
  background: var(--glow);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: .45rem 1.25rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s var(--ease-out-expo);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
  border-radius: 100px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--glow);
}

.nav-cta:hover::before {
  opacity: 1;
}

.nav-cta span {
  position: relative;
  z-index: 1;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out-expo);
}

.theme-toggle-btn:hover {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--border2);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out-expo);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--text2);
  border-radius: 2px;
  transition: .3s var(--ease-out-expo);
}

.mobile-nav-open .nav-hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.mobile-nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-open .nav-hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 2rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  font-size: 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}

@media(min-width: 769px) and (max-width: 1024px) {
  nav {
    padding: 0.65rem 1.25rem;
    max-width: 95%;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .logo-image {
    height: 24px;
  }

  .nav-links {
    gap: 0.15rem;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }

  .nav-cta {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
  }

  .services-carousel-track .service-card {
    width: 380px;
    height: 280px;
  }
}

@media(max-width:768px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .nav-hamburger {
    display: flex
  }

  nav {
    padding: 0.75rem 1.25rem;
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 100px;
  }

  /* Mobile adjustments for Portfolio page */
  .portfolio-hero-visual {
    display: none;
  }

  .portfolio-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .featured-project-card {
    display: flex;
    flex-direction: column;
  }

  .featured-info {
    display: flex;
    flex-direction: column;
  }

  .featured-mockup-panel {
    order: 2;
    margin: 1.5rem 0;
  }

  .featured-desc {
    order: 3;
  }

  .featured-features {
    order: 4;
  }

  .featured-stack {
    order: 5;
  }

  .btn-primary {
    order: 6;
  }
}

/* ---------- PAGE SECTIONS ---------- */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, var(--blob-color-1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, var(--blob-color-2) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 90%, var(--blob-color-3) 0%, transparent 50%);
}

/* Animated gradient blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 20s ease-in-out infinite;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, var(--blob-color-1) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: -5%;
  background: radial-gradient(circle, var(--blob-color-2) 0%, transparent 70%);
  animation-delay: -7s;
  animation-duration: 25s;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 40%;
  background: radial-gradient(circle, var(--blob-color-3) 0%, transparent 70%);
  animation-delay: -14s;
  animation-duration: 22s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -40px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(15px, 35px) scale(1.03);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--glow);
  border: 1px solid var(--border2);
  color: var(--accent);
  font-size: .78rem;
  font-family: var(--font-mono);
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

h1.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -.045em;
  color: var(--text);
  margin-bottom: 1.75rem;
}

h1.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

h1.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}

h1.hero-title .word.animate {
  animation: heroWordReveal .8s var(--ease-out-expo) forwards;
}

h1.hero-title .line:nth-child(1) .word {
  --word-delay: 0.15s;
}

h1.hero-title .line:nth-child(2) .word {
  --word-delay: 0.35s;
}

h1.hero-title .line:nth-child(3) .word {
  --word-delay: 0.55s;
}

@keyframes heroWordReveal {
  0% {
    transform: translateY(110%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

h1.hero-title .accent {
  color: var(--accent);
}

h1.hero-title .accent2 {
  color: var(--cyan);
}

/* Hero title glow */
.hero-title-glow {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  font-weight: 400;
}

.hero-sub.animate {
  animation: fadeSlideUp .7s var(--ease-out-expo) .75s forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
}

.hero-actions.animate {
  animation: fadeSlideUp .7s var(--ease-out-expo) .95s forwards;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  padding: .85rem 2.2rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all .35s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .35s;
}

.btn-primary>* {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--glow);
  color: #ffffff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  padding: .85rem 2.2rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all .3s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg2);
  opacity: 0;
  transition: opacity .3s;
}

.btn-ghost>* {
  position: relative;
  z-index: 1;
}

.btn-ghost:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.btn-ghost:hover::before {
  opacity: 1;
}

.hero-stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.hero-stat-row.animate {
  animation: fadeSlideUp .7s var(--ease-out-expo) 1.15s forwards;
}

.hero-stat .num {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
}

.hero-stat .label {
  font-size: .78rem;
  color: var(--text3);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- HERO VISUAL STYLES ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  perspective: 1000px;
}

.hero-visual.animate {
  animation: heroVisualIn .9s var(--ease-out-expo) .5s forwards;
}

@keyframes heroVisualIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cursor-reactive glow */
.hero-cursor-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

[data-theme="dark"] .hero-cursor-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 65%);
}

.hero-visual:hover .hero-cursor-glow {
  opacity: 1;
}

.hero-glow-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite;
}

[data-theme="dark"] .hero-glow-backdrop {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(168, 85, 247, 0.10) 50%, transparent 70%);
}

/* Illustration wrapper and animation */
.illustration-wrapper {
  position: relative;
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out-expo);
  animation: illustrationFloat 6s ease-in-out infinite;
  will-change: transform;
}

.hero-illustration {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(15, 21, 32, 0.05));
  transition: transform 0.5s var(--ease-out-expo), filter 0.4s ease;
}

[data-theme="dark"] .hero-illustration {
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.3));
}

.illustration-wrapper:hover .hero-illustration {
  transform: translateY(-4px) scale(1.015);
}

@keyframes illustrationFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media(max-width:900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stat-row {
    justify-content: center;
    gap: 2rem;
  }

  .hero-visual {
    display: flex;
    height: auto;
    max-height: 540px;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .illustration-wrapper {
    max-width: 580px;
  }

  .hero-illustration {
    max-height: 500px;
  }
}

/* ---------- SECTION SHARED ---------- */
section {
  padding: 7rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 500;
}

.section-label::before {
  content: '//';
  opacity: .5;
}

h2.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.75;
}

/* Reveal system with stagger */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: .08s;
}

.reveal-delay-2 {
  transition-delay: .16s;
}

.reveal-delay-3 {
  transition-delay: .24s;
}

.reveal-delay-4 {
  transition-delay: .32s;
}

.reveal-delay-5 {
  transition-delay: .4s;
}

/* Stagger children */
.stagger-children.visible>* {
  animation: staggerIn .6s var(--ease-out-expo) forwards;
}

.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible>*:nth-child(1) {
  animation-delay: 0s;
}

.stagger-children.visible>*:nth-child(2) {
  animation-delay: .06s;
}

.stagger-children.visible>*:nth-child(3) {
  animation-delay: .12s;
}

.stagger-children.visible>*:nth-child(4) {
  animation-delay: .18s;
}

.stagger-children.visible>*:nth-child(5) {
  animation-delay: .24s;
}

.stagger-children.visible>*:nth-child(6) {
  animation-delay: .30s;
}

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- WHO WE ARE SECTION ---------- */
.who-we-are-section {
  position: relative;
  padding: 5rem 0;
  background: transparent;
  overflow: hidden;
}

/* Background Ambient Glow */
.who-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.who-glow-blob.blob-cyan {
  top: 10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: var(--cyan, #00c3ff);
}

.who-glow-blob.blob-purple {
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: var(--accent, #2563eb);
}

.who-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left Content */
.who-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.who-desc {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 95%;
}

.who-philosophy-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.who-philosophy-strip .strip-dot {
  color: var(--accent);
}

[data-theme="dark"] .who-philosophy-strip .strip-dot {
  color: var(--cyan);
}

.who-teaser-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-link-sm {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
}

.btn-link-sm:hover {
  color: var(--accent);
}

[data-theme="dark"] .btn-link-sm:hover {
  color: var(--cyan);
}

/* Right Preview Component */
.who-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Hide mobile-only preview component on desktop/tablet by default */
.mobile-only-who-card {
  display: none !important;
}

/* Flip Card Container */
.who-flip-card {
  perspective: 1200px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo);
}

.who-flip-card:hover {
  transform: translateY(-5px);
}

.who-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Hover Flip */
@media (hover: hover) {
  .who-flip-card:hover .who-flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* Mobile Click/Tap Flip */
.who-flip-card.flipped .who-flip-card-inner {
  transform: rotateY(180deg);
}

.who-flip-card-front,
.who-flip-card-back {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
}

.who-flip-card-front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
}

.who-group-photo {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.05);
  display: block;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .who-group-photo {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.who-flip-card:hover .who-group-photo {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .who-flip-card:hover .who-group-photo {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.who-flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;

  /* Glassmorphism premium background */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.05);
}

[data-theme="dark"] .who-flip-card-back {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.who-card-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.who-card-back-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 1.5rem;
  text-align: center;
}

.who-card-back-socials {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.who-social-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  color: var(--text2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .who-social-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.who-social-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2px;
  transition: transform 0.3s ease;
}

/* Subtle hover effects on icons */
.who-social-icon:hover {
  transform: translateY(-4px) scale(1.05);
}

.who-social-icon:hover svg {
  transform: scale(1.1);
}

/* Facebook Brand color hover */
.who-social-icon.facebook:hover {
  color: #1877F2;
  border-color: rgba(24, 119, 242, 0.4);
  background: rgba(24, 119, 242, 0.08);
}

[data-theme="dark"] .who-social-icon.facebook:hover {
  background: rgba(24, 119, 242, 0.15);
}

/* Instagram Brand color hover */
.who-social-icon.instagram:hover {
  color: #E4405F;
  border-color: rgba(228, 64, 95, 0.4);
  background: rgba(228, 64, 95, 0.08);
}

[data-theme="dark"] .who-social-icon.instagram:hover {
  background: rgba(228, 64, 95, 0.15);
}

/* LinkedIn Brand color hover */
.who-social-icon.linkedin:hover {
  color: #0A66C2;
  border-color: rgba(10, 102, 194, 0.4);
  background: rgba(10, 102, 194, 0.08);
}

[data-theme="dark"] .who-social-icon.linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
}

/* Gmail Brand color hover */
.who-social-icon.gmail:hover {
  color: #EA4335;
  border-color: rgba(234, 67, 53, 0.4);
  background: rgba(234, 67, 53, 0.08);
}

[data-theme="dark"] .who-social-icon.gmail:hover {
  background: rgba(234, 67, 53, 0.15);
}

.team-teaser-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.teaser-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.03);
  width: 100%;
  max-width: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .teaser-card {
  background: rgba(19, 27, 46, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.teaser-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .teaser-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.teaser-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text3);
}

.teaser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: teaserPulse 1.5s infinite;
}

@keyframes teaserPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.teaser-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avatar-stack {
  display: flex;
  align-items: center;
  margin-left: 6px;
}

.teaser-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-left: -12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s var(--ease-out-expo), z-index 0.3s;
  position: relative;
}

[data-theme="dark"] .teaser-avatar {
  background: #0f172a;
  border-color: #1e293b;
}

.teaser-avatar:hover {
  transform: translateY(-4px) scale(1.1);
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

[data-theme="dark"] .teaser-avatar:hover {
  border-color: var(--cyan);
}

.teaser-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.teaser-count {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.teaser-sub {
  font-size: 0.72rem;
  color: var(--text3);
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 992px) {
  .who-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .who-teaser-actions {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .who-we-are-section {
    padding: 4rem 0;
  }

  .who-title {
    font-size: 2.2rem;
  }

  .who-desc {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .who-philosophy-strip {
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .teaser-card {
    max-width: 100%;
  }
}

/* ---------- 3D CAROUSEL SERVICES ---------- */
.services-section {
  background: transparent;
  position: relative;
  overflow: hidden;
}

@media(min-width: 769px) {
  .services-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
  }
}

.services-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 4rem;
}

.services-carousel-track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  width: 100%;
}

@media(min-width: 769px) {
  .services-carousel-track {
    height: 400px;
    display: block;
    transform-style: preserve-3d;
    perspective: 1200px;
  }
}

.service-card {
  background: var(--surface);
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s var(--ease-out-expo);
  cursor: default;
  border-radius: 16px;
  border: 1px solid var(--border2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Desktop 3D Card positioning */
@media(min-width: 769px) {
  .services-carousel-track .service-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 330px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 10px 40px rgba(31, 38, 135, 0.04);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    margin: 0;
  }

  [data-theme="dark"] .services-carousel-track .service-card {
    background: rgba(19, 27, 46, 0.45);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  }

  /* Active center card styling */
  .services-carousel-track .service-card.active-card {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12), 0 0 24px rgba(37, 99, 235, 0.06);
  }

  [data-theme="dark"] .services-carousel-track .service-card.active-card {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.22), 0 0 24px rgba(59, 130, 246, 0.1);
  }

  /* Prevent standard reveal conflict on desktop for service cards */
  .services-carousel-track .service-card.reveal {
    opacity: 1 !important;
    transition: background 0.3s, border-color 0.3s !important;
  }
}

.service-card:hover {
  background: var(--surface2);
}

@media(min-width: 769px) {
  .services-carousel-track .service-card.active-card:hover {
    transform: translate(-50%, -55%) scale(1.02);
  }

  [data-theme="dark"] .service-card:hover {
    background: rgba(19, 27, 46, 0.65);
  }
}

/* Pagination Dots */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

@media(min-width: 769px) {
  .carousel-dots {
    display: flex;
  }
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text3);
  opacity: 0.3;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.carousel-dots .dot.active {
  opacity: 1;
  transform: scale(1.35);
  background-color: var(--accent);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, .08), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  transition: transform .3s var(--ease-spring);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
}

.service-icon.blue {
  background: rgba(59, 130, 246, .1);
}

.service-icon.purple {
  background: rgba(167, 139, 250, .1);
}

.service-icon.cyan {
  background: rgba(34, 211, 238, .1);
}

.service-icon.green {
  background: rgba(52, 211, 153, .1);
}

.service-icon.amber {
  background: rgba(251, 191, 36, .1);
}

h3.service-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

.service-desc {
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text3);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: .2rem .6rem;
  border-radius: 6px;
  transition: color .2s, border-color .2s;
}

.service-card:hover .tag {
  color: var(--text2);
  border-color: var(--border2);
}

/* ---------- WHY US ---------- */
.why-section {
  background: var(--bg-alt);
  position: relative;
  overflow: visible;
  /* Required for sticky children to work */
  padding: 8rem 0;
}

.why-sticky-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6rem;
  align-items: start;
  position: relative;
}

.why-sticky-left {
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
  /* Offset from top navbar */
  align-self: start;
  z-index: 1;
}

.why-bg-word {
  position: absolute;
  top: -50px;
  left: -20px;
  font-size: 10rem;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--text);
  opacity: 0.015;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

[data-theme="dark"] .why-bg-word {
  opacity: 0.01;
}

/* Ambient glow behind left side */
.why-left-glow {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--blob-color-1) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  animation: ambientLeftGlow 8s infinite ease-in-out;
}

@keyframes ambientLeftGlow {

  0%,
  100% {
    opacity: 0.25;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(1.1);
  }
}

.why-sticky-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.why-sticky-desc {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 3.5rem;
}

.why-value-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 440px;
}

.why-value-item {
  position: relative;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.why-value-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why-value-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Subtle bullet dot or indicator for value statement */
.why-value-text::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

[data-theme="dark"] .why-value-text::before {
  background: var(--cyan);
}

.why-timeline-right {
  position: relative;
}

.why-timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Glassmorphism Why Cards */
.why-timeline-card-wrapper {
  position: relative;
  opacity: 0.35;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
  will-change: transform, opacity;
}

.why-timeline-card-wrapper.active {
  opacity: 1;
  transform: translateY(0);
}

.why-timeline-card-wrapper.completed {
  opacity: 0.55;
  transform: translateY(0);
}

.why-timeline-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.03);
  transition: border-color 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    transform 0.5s var(--ease-out-expo),
    background 0.4s var(--ease-out-expo);
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 2.5rem;
  align-items: center;
  transform: scale(0.98);
  will-change: transform;
}

[data-theme="dark"] .why-timeline-card {
  background: rgba(19, 27, 46, 0.4);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Active state styling */
.why-timeline-card-wrapper.active .why-timeline-card {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.06),
    0 0 24px rgba(37, 99, 235, 0.03),
    inset 0 0 12px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .why-timeline-card-wrapper.active .why-timeline-card {
  background: rgba(19, 27, 46, 0.65);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.12),
    0 0 24px rgba(6, 182, 212, 0.06);
}

/* Elegant hover lift for active/completed cards */
.why-timeline-card-wrapper.active .why-timeline-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .why-timeline-card-wrapper.active .why-timeline-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 24px 48px rgba(6, 182, 212, 0.18);
}

.why-timeline-card-wrapper.completed .why-timeline-card:hover {
  transform: translateY(-4px) scale(1.01);
  opacity: 0.8;
}

.why-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.why-card-step {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

[data-theme="dark"] .why-card-step {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
}

.why-card-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.why-card-text {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}

/* MINI VISUALS DESIGN */
.why-card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 140px;
  position: relative;
}

/* 1. Scalable nodes */
.why-visual-scalable {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scalable-nodes {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-center {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  z-index: 2;
}

.node-ring {
  position: absolute;
  border: 1.5px solid rgba(0, 195, 255, 0.4);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  transform: scale(0.2);
  opacity: 0;
}

.pulse-1 {
  animation: nodePulse 3s infinite linear;
}

.pulse-2 {
  animation: nodePulse 3s infinite linear;
  animation-delay: 1.5s;
}

@keyframes nodePulse {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.node-satellites {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateSatellites 16s infinite linear;
}

.sat {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.sat-1 {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sat-2 {
  bottom: 15%;
  left: 10%;
}

.sat-3 {
  bottom: 15%;
  right: 10%;
}

@keyframes rotateSatellites {
  to {
    transform: rotate(360deg);
  }
}

/* 2. Floating Techstack Code Window */
.why-visual-tech {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-window {
  width: 120px;
  background: rgba(5, 7, 13, 0.85);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.4;
  transition: transform 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}

.why-timeline-card-wrapper.active .tech-window,
.why-timeline-card:hover .tech-window {
  transform: translateY(-4px) rotate(1deg);
  border-color: rgba(37, 99, 235, 0.25);
}

.window-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.window-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.code-lines {
  color: #94a3b8;
}

.code-line {
  white-space: nowrap;
}

.indent {
  padding-left: 10px;
}

.c-accent {
  color: var(--accent);
}

.c-blue {
  color: #3b82f6;
}

.c-cyan {
  color: var(--cyan);
}

.c-purple {
  color: #a855f7;
}

.c-green {
  color: #10b981;
}

/* 3. Mini UI Dashboard Mockup */
.why-visual-ui {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-ui-mockup {
  width: 120px;
  height: 90px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.why-timeline-card-wrapper.active .mini-ui-mockup,
.why-timeline-card:hover .mini-ui-mockup {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(0, 195, 255, 0.25);
}

.ui-header {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.ui-profile {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
}

.ui-nav-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border2);
}

.ui-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 40px;
  padding: 0 6px;
}

.ui-chart-bar {
  width: 12px;
  border-radius: 3px 3px 0 0;
  background: var(--border2);
  transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease;
  height: 10px;
}

.why-timeline-card-wrapper.active .ui-chart-bar.bar-1,
.why-timeline-card:hover .ui-chart-bar.bar-1 {
  height: 28px;
  background: var(--accent);
}

.why-timeline-card-wrapper.active .ui-chart-bar.bar-2,
.why-timeline-card:hover .ui-chart-bar.bar-2 {
  height: 38px;
  background: var(--cyan);
}

.why-timeline-card-wrapper.active .ui-chart-bar.bar-3,
.why-timeline-card:hover .ui-chart-bar.bar-3 {
  height: 22px;
  background: var(--accent2);
}

/* 4. Security Shield */
.why-visual-security {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-shield {
  position: relative;
  width: 50px;
  height: 50px;
  color: var(--text3);
  transition: color 0.4s ease, transform 0.4s ease;
}

.shield-svg {
  width: 100%;
  height: 100%;
}

.why-timeline-card-wrapper.active .security-shield,
.why-timeline-card:hover .security-shield {
  color: var(--cyan);
  transform: scale(1.1);
}

.shield-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.why-timeline-card-wrapper.active .shield-glow,
.why-timeline-card:hover .shield-glow {
  opacity: 0.25;
}

.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  pointer-events: none;
}

.why-timeline-card-wrapper.active .scanner-line,
.why-timeline-card:hover .scanner-line {
  opacity: 1;
  animation: shieldScan 2.5s infinite linear;
}

@keyframes shieldScan {
  0% {
    top: 10%;
  }

  50% {
    top: 90%;
  }

  100% {
    top: 10%;
  }
}

/* 5. Startup progress circle + rocket */
.why-visual-startup {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.startup-progress {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--border2);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke: var(--accent2);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 0.8s ease-out;
}

.why-timeline-card-wrapper.active .ring-fill,
.why-timeline-card:hover .ring-fill {
  stroke-dashoffset: 75.36;
  /* 70% fill */
}

.rocket-icon {
  font-size: 1.5rem;
  transition: transform 0.4s ease;
}

.why-timeline-card-wrapper.active .rocket-icon,
.why-timeline-card:hover .rocket-icon {
  animation: rocketFloat 1.5s infinite ease-in-out;
}

@keyframes rocketFloat {
  0% {
    transform: translate(0, 0) scale(1.1);
  }

  50% {
    transform: translate(2px, -4px) scale(1.1);
  }

  100% {
    transform: translate(0, 0) scale(1.1);
  }
}

/* GLOW BACKGROUND BLOBS */
.why-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.why-glow-blob.blob-1 {
  top: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: var(--accent);
}

.why-glow-blob.blob-2 {
  bottom: 10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: var(--cyan);
}

/* LEFT COLUMN ACCENTS */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-underline {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.title-underline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: underlineSweep 4s infinite linear;
}

@keyframes underlineSweep {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

@media(max-width:991px) {
  .why-sticky-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .why-sticky-left {
    position: static;
    max-width: 100%;
  }

  .why-sticky-desc {
    margin-bottom: 2.5rem;
  }

  .why-timeline-right {
    padding-left: 0;
  }
}

@media(max-width:768px) {
  .why-section {
    padding: 5rem 0;
  }

  .why-timeline-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .why-card-visual {
    justify-content: flex-start;
    width: 100%;
    height: 120px;
  }

  .why-timeline-cards {
    gap: 2.5rem;
  }

  .why-timeline-card:hover {
    transform: none;
  }

  .why-card-title {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-timeline-card-wrapper {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .window-bar span,
  .node-ring,
  .node-satellites,
  .ui-chart-bar,
  .scanner-line,
  .rocket-icon,
  .title-underline::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Preservation of why-item styles for other sections (e.g. About page Core Values) */
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all .35s var(--ease-out-expo);
  cursor: default;
}

.why-item:hover {
  border-color: rgba(37, 99, 235, .2);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.05);
}

.why-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .18);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease-spring);
}

.why-item:hover .why-num {
  transform: scale(1.1);
}

.why-item-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  letter-spacing: -.015em;
}

.why-item-text {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ---------- PROJECTS ---------- */
.projects-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.mobile-projects-btn-wrap {
  display: none;
}

/* Showcase Cards Stack */
.projects-showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  /* Spacious padding between showcase rows */
}

/* Showcase Card Row */
.showcase-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 3.5rem;
  box-shadow: 0 10px 40px rgba(31, 38, 135, 0.03);
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  transition: border-color 0.5s var(--ease-out-expo),
    box-shadow 0.5s var(--ease-out-expo),
    transform 0.5s var(--ease-out-expo),
    background 0.5s var(--ease-out-expo),
    opacity 0.8s var(--ease-out-expo);
  will-change: transform, opacity;
}

[data-theme="dark"] .showcase-card {
  background: rgba(19, 27, 46, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Reveal states */
.showcase-card.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
}

/* Normal visible but inactive state */
.showcase-card.reveal.visible {
  opacity: 0.55;
  transform: translateY(0) scale(0.99);
}

/* Active state when scrolled into center */
.showcase-card.reveal.visible.active-project {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.06);
}

[data-theme="dark"] .showcase-card.reveal.visible.active-project {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.12);
  background: rgba(19, 27, 46, 0.65);
}

/* Completed state (scrolled past) */
.showcase-card.reveal.visible.completed-project {
  opacity: 0.75;
  transform: translateY(0) scale(0.99);
}

/* Desktop Hover Interactions (Only active projects lift & expand) */
@media (hover: hover) and (pointer: fine) {
  .showcase-card.active-project:hover {
    transform: translateY(-8px) scale(1.005);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.1);
  }

  [data-theme="dark"] .showcase-card.active-project:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.2);
    background: rgba(19, 27, 46, 0.7);
  }

  /* Mockup pull apart / depth parallax on hover */
  .showcase-card.active-project:hover .laptop-mockup {
    transform: perspective(1000px) rotateX(6deg) rotateY(8deg) translateZ(15px);
  }

  .showcase-card.active-project:hover .mobile-mockup {
    transform: perspective(1000px) rotateX(4deg) rotateY(-10deg) translateZ(25px);
  }

  /* Tech chips glow softly on hover */
  .showcase-card.active-project:hover .stack-badge {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
    color: var(--accent);
    transform: translateY(-1.5px);
  }

  [data-theme="dark"] .showcase-card.active-project:hover .stack-badge {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    color: var(--cyan);
  }

  /* CTA button shift on hover */
  .showcase-card.active-project:hover .btn-primary-sm span,
  .showcase-card.active-project:hover .btn-ghost-sm span {
    transform: translateY(-1px);
  }
}

/* Left Content Area */
.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Meta bar containing Category & Number Indicator */
.showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.showcase-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

[data-theme="dark"] .showcase-category {
  color: var(--cyan);
}

.showcase-meta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.05);
  color: var(--accent);
  white-space: nowrap;
  transition: all 0.3s var(--ease-out-expo);
}

[data-theme="dark"] .trust-badge {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.05);
  color: var(--cyan);
}

.showcase-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text3);
  font-weight: 500;
  transition: color 0.4s var(--ease-out-expo);
}

.showcase-card.active-project .showcase-number {
  color: var(--accent);
}

[data-theme="dark"] .showcase-card.active-project .showcase-number {
  color: var(--cyan);
}

.showcase-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.showcase-desc {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.75;
  margin: 0;
}

/* Showcase Features List */
.showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.25rem 0;
}

.showcase-features li {
  font-size: 0.925rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.showcase-features li span {
  color: var(--accent);
  font-size: 0.8rem;
}

[data-theme="dark"] .showcase-features li span {
  color: var(--cyan);
}

/* Stack Badges */
.showcase-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Tech chips / stack badges */
.stack-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  /* Pill style */
  display: inline-block;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out-expo);
}

[data-theme="dark"] .stack-badge {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
}

/* Hover glow on hover of chip itself */
.stack-badge:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-1.5px);
}

[data-theme="dark"] .stack-badge:hover {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

/* Action Buttons (Small) */
.showcase-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primary-sm {
  background: var(--text);
  color: var(--bg);
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 6px;
}

.btn-primary-sm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary-sm span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
}

.btn-primary-sm:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .btn-primary-sm:hover {
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
}

.btn-primary-sm:hover::before {
  opacity: 1;
}

.btn-ghost-sm {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 6px;
}

.btn-ghost-sm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg2);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-ghost-sm span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
}

.btn-ghost-sm:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.btn-ghost-sm:hover::before {
  opacity: 1;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
  margin-left: 4px;
}

.btn-primary-sm:hover .btn-arrow,
.btn-ghost-sm:hover .btn-arrow {
  transform: translateX(4px);
}

/* Right Mockup Showcase Area */
.showcase-visual {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient glow blob behind mockups */
.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}

.visual-glow.purple {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 65%);
}

.visual-glow.cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 65%);
}

/* Mockups Layered Depth Layout */
.mockup-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.mockup-window {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

[data-theme="dark"] .mockup-window {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

/* Slow Light Sweep (Glass Reflection) */
.glass-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.06) 40%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.06) 60%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  background-position-x: 150%;
  animation: shineSweep 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes shineSweep {
  0% {
    background-position-x: 150%;
  }

  50% {
    background-position-x: -50%;
  }

  100% {
    background-position-x: -50%;
  }
}

/* Laptop Wrap (Base Positioner) */
.laptop-wrap {
  position: absolute;
  width: 78%;
  height: 220px;
  left: 5%;
  top: 15%;
  z-index: 2;
}

/* Laptop Mockup */
.laptop-mockup {
  transform: perspective(1000px) rotateX(4deg) rotateY(6deg);
  transition: transform 0.6s var(--ease-out-expo);
}

/* Mobile Wrap (Base Positioner) */
.mobile-wrap {
  position: absolute;
  width: 125px;
  height: 240px;
  right: 8%;
  bottom: 8%;
  z-index: 3;
}

/* Mobile Mockup */
.mobile-mockup {
  border-radius: 20px;
  border-width: 3px;
  transform: perspective(1000px) rotateX(3deg) rotateY(-8deg) translateZ(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s var(--ease-out-expo);
}

/* Float keyframe animations */
@keyframes laptopFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes mobileFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Apply floating animations only on visible cards */
.showcase-card.visible .laptop-wrap {
  animation: laptopFloat 6s ease-in-out infinite;
}

.showcase-card.visible .mobile-wrap {
  animation: mobileFloat 5s ease-in-out infinite;
}

/* Mockup Header Window Chrome */
.mockup-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

[data-theme="dark"] .mockup-header {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}

.mockup-header .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.mockup-header .dot.red {
  background: #ef4444;
}

.mockup-header .dot.yellow {
  background: #f59e0b;
}

.mockup-header .dot.green {
  background: #10b981;
}

.mockup-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text3);
  background: var(--bg);
  padding: 1px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

[data-theme="dark"] .mockup-url {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.05);
}

.mockup-body {
  flex: 1;
  padding: 15px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .mockup-body {
  background: #0f172a;
}

/* Mobile Mockup Header */
.mobile-mockup .mockup-header {
  height: 18px;
  justify-content: center;
  padding: 0;
  border-bottom: none;
}

.mobile-speaker {
  width: 32px;
  height: 3px;
  border-radius: 10px;
  background: var(--border2);
}

.mobile-mockup .mockup-body {
  padding: 12px;
}

/* Project Premium Mockup UIs */

/* Escrow dashboard */
.escrow-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.dash-title {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-head);
}

.dash-status-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-status-badge.secure {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.dash-status-badge.secure .pulse-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  animation: chipPulse 1.5s infinite;
}

@keyframes chipPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.milestones-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 0.65rem;
}

[data-theme="dark"] .milestone-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}

.milestone-item.released {
  border-left: 3px solid #10b981;
}

.milestone-item.active {
  border-left: 3px solid var(--accent);
}

[data-theme="dark"] .milestone-item.active {
  border-left-color: var(--cyan);
}

.milestone-item.pending {
  opacity: 0.5;
}

.m-status {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: bold;
}

.released .m-status {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.active .m-status {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="dark"] .active .m-status {
  border-color: var(--cyan);
  color: var(--cyan);
}

.spin-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: spinDotPulse 1s infinite alternate;
}

[data-theme="dark"] .spin-dot {
  background: var(--cyan);
}

@keyframes spinDotPulse {
  from {
    transform: scale(0.8);
    opacity: 0.5;
  }

  to {
    transform: scale(1.3);
    opacity: 1;
  }
}

.m-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.m-title {
  font-weight: 600;
  color: var(--text);
}

.m-amount {
  font-family: var(--font-mono);
  color: var(--text2);
}

/* OTP verification UI for mobile mockup */
.otp-verification-ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.otp-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
}

.otp-desc {
  font-size: 0.55rem;
  color: var(--text3);
  line-height: 1.2;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;
}

.otp-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .otp-box {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}

.otp-box.active {
  border-color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  position: relative;
}

[data-theme="dark"] .otp-box.active {
  border-color: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.otp-box.active::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 12px;
  background: var(--text);
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.otp-btn {
  background: var(--text);
  color: var(--bg);
  font-size: 0.58rem;
  font-weight: 600;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

/* Finance dashboard */
.finance-dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.sync-status {
  background: rgba(147, 51, 234, 0.1);
  color: #a855f7;
  border: 1px solid rgba(147, 51, 234, 0.2);
}

.sync-status .pulse-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a855f7;
  animation: syncPulse 1.5s infinite;
}

@keyframes syncPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7);
  }

  70% {
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
  }
}

.chart-container {
  position: relative;
  height: 60px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

[data-theme="dark"] .chart-container {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}

.sparkline-svg {
  width: 100%;
  height: 100%;
}

.chart-peak-dot {
  animation: peakPulse 1s infinite alternate;
}

@keyframes peakPulse {
  from {
    r: 2px;
    opacity: 0.6;
  }

  to {
    r: 4px;
    opacity: 1;
  }
}

/* Let's style the gradient stops via CSS so they support CSS custom properties perfectly */
.stop-accent-start {
  stop-color: var(--accent);
  stop-opacity: 0.35;
}

.stop-accent-end {
  stop-color: var(--accent);
  stop-opacity: 0;
}

.budget-progress-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text2);
}

.budget-meta .b-val {
  font-weight: 600;
  color: var(--text);
}

.budget-progress-bar {
  height: 5px;
  background: var(--border2);
  border-radius: 100px;
  overflow: hidden;
}

.budget-progress-bar .progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 100px;
}

/* OCR scanner mobile ui */
.ocr-scanner-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  height: 100%;
  align-items: center;
  text-align: center;
}

.ocr-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
}

.receipt-wrapper {
  position: relative;
  width: 75px;
  height: 85px;
  background: var(--bg2);
  border: 1px dashed var(--border2);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

[data-theme="dark"] .receipt-wrapper {
  background: #1e293b;
}

.receipt-paper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .receipt-paper {
  background: #0f172a;
}

.rec-line {
  height: 3px;
  background: var(--border2);
  border-radius: 1px;
}

.rec-line.mini {
  width: 50%;
}

.rec-line.wide {
  width: 85%;
}

.rec-line.bold {
  height: auto;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.scanning-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: laserScan 2s linear infinite;
}

@keyframes laserScan {

  0%,
  100% {
    top: 0px;
  }

  50% {
    top: 85px;
  }
}

.scan-status-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Productivity dashboard */
.productivity-dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.dash-status-badge.building {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.dash-status-badge.building .pulse-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  animation: buildingPulse 1.5s infinite;
}

@keyframes buildingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  }

  70% {
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

.kanban-mini-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kanban-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.col-title {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.k-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.6rem;
}

[data-theme="dark"] .k-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}

.k-card-title {
  font-weight: 600;
  color: var(--text);
}

.k-tag {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.15);
  width: fit-content;
}

.deploy-state {
  border-left: 2px solid var(--cyan);
}

.deploy-progress {
  height: 3px;
  background: var(--border2);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 2px;
}

.deploy-progress .bar-fill {
  width: 70%;
  height: 100%;
  background: var(--cyan);
  animation: deployPulse 1.5s infinite linear;
}

@keyframes deployPulse {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* System health radial mobile ui */
.health-monitoring-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  height: 100%;
  align-items: center;
  text-align: center;
}

.health-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
}

.progress-radial-container {
  width: 50px;
  height: 50px;
}

.radial-progress-svg {
  width: 100%;
  height: 100%;
}

.radial-progress-svg .circle-bg {
  stroke: var(--border2);
}

.radial-progress-svg .circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: progressDraw 2.5s ease-out forwards;
}

@keyframes progressDraw {
  from {
    stroke-dasharray: 0, 100;
  }

  to {
    stroke-dasharray: 92, 100;
  }
}

.circle-percentage {
  font-size: 0.55rem;
  font-weight: 700;
  fill: var(--text);
}

.health-status {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--cyan);
}

/* Floating Mini Cards general styles */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
  pointer-events: none;
  z-index: 5;
}

[data-theme="dark"] .floating-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Position & floating animations for Proj 1 cards */
.dispute-analysis-card {
  top: 10%;
  right: 5%;
  animation: floatCard1 5.5s ease-in-out infinite;
}

.match-score-card {
  bottom: 12%;
  left: 8%;
  padding: 6px 10px;
  animation: floatCard2 4.8s ease-in-out infinite;
}

/* Position & floating animations for Proj 2 cards */
.category-item-1 {
  top: 8%;
  right: 4%;
  animation: floatCard1 6s ease-in-out infinite;
}

.category-item-2 {
  bottom: 14%;
  left: 10%;
  animation: floatCard2 5.2s ease-in-out infinite;
}

/* Position & floating animations for Proj 3 cards */
.automation-trigger-card {
  top: 10%;
  right: 3%;
  font-size: 0.58rem;
  animation: floatCard1 5.8s ease-in-out infinite;
}

.metrics-card {
  bottom: 15%;
  left: 12%;
  padding: 6px 10px;
  animation: floatCard2 4.6s ease-in-out infinite;
}

/* Parallax depth movement on floating cards when container is hovered */
.showcase-card.active-project:hover .dispute-analysis-card,
.showcase-card.active-project:hover .category-item-1,
.showcase-card.active-project:hover .automation-trigger-card {
  transform: translateY(-15px) translateX(10px) translateZ(35px);
}

.showcase-card.active-project:hover .match-score-card,
.showcase-card.active-project:hover .category-item-2,
.showcase-card.active-project:hover .metrics-card {
  transform: translateY(15px) translateX(-10px) translateZ(40px);
}

/* Specific mini details inside floating cards */
.card-icon,
.cat-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface2);
}

[data-theme="dark"] .card-icon,
[data-theme="dark"] .cat-icon {
  background: rgba(255, 255, 255, 0.05);
}

.card-details,
.cat-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.card-label,
.cat-name {
  font-size: 0.52rem;
  color: var(--text3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-value,
.cat-cost {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text);
}

.card-avatars {
  display: flex;
  align-items: center;
}

.avatar {
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .avatar {
  background: #1e293b;
}

.av-2 {
  margin-left: -6px;
}

.match-percentage {
  font-size: 0.58rem;
  font-weight: 700;
  color: #10b981;
}

.metrics-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.m-lbl {
  font-size: 0.52rem;
  color: var(--text3);
  text-transform: uppercase;
}

.m-val {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cyan);
}

@keyframes floatCard1 {
  0% {
    transform: translateY(0) rotate(1deg);
  }

  50% {
    transform: translateY(-8px) rotate(-1deg);
  }

  100% {
    transform: translateY(0) rotate(1deg);
  }
}

@keyframes floatCard2 {
  0% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(8px) rotate(1deg);
  }

  100% {
    transform: translateY(0) rotate(-1deg);
  }
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.7);
  }

  70% {
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
  }
}

/* Finova Card 2 custom phone frames */
.finova-phone-main {
  position: absolute;
  width: 145px;
  height: 270px;
  left: 14%;
  top: 10%;
  z-index: 3;
}

.finova-phone-secondary {
  position: absolute;
  width: 125px;
  height: 230px;
  right: 14%;
  bottom: 12%;
  z-index: 2;
  opacity: 0.85;
}

.showcase-card.visible .finova-phone-main {
  animation: laptopFloat 6.5s ease-in-out infinite;
}

.showcase-card.visible .finova-phone-secondary {
  animation: mobileFloat 5.5s ease-in-out infinite;
}

.finova-dashboard-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.finova-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.finova-logo-text {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  color: #a855f7;
}

.finova-lock-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finova-summary-cards {
  display: flex;
  gap: 6px;
}

.finova-sum-card {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .finova-sum-card {
  background: #1e293b;
}

.finova-sum-card .lbl {
  font-size: 0.45rem;
  color: var(--text3);
  text-transform: uppercase;
}

.finova-sum-card .val {
  font-size: 0.6rem;
  font-weight: 700;
  margin-top: 1px;
}

.finova-sum-card.income .val {
  color: #10b981;
}

.finova-sum-card.expense .val {
  color: #ef4444;
}

.finova-chart-container {
  height: 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

[data-theme="dark"] .finova-chart-container {
  background: #1e293b;
}

.finova-budget-progress {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.finova-budget-progress .budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  color: var(--text3);
}

.finova-budget-progress .budget-progress-bar {
  height: 4px;
  background: var(--border2);
  border-radius: 4px;
  overflow: hidden;
}

.finova-budget-progress .progress {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, var(--accent2));
  border-radius: 4px;
}

.floating-card.finova-floating-insight {
  top: 8%;
  right: 5%;
  animation: floatCard1 5.8s ease-in-out infinite;
}

.floating-card.finova-floating-sync {
  bottom: 12%;
  left: 6%;
  animation: floatCard2 4.6s ease-in-out infinite;
}

.showcase-card.active-project:hover .finova-floating-insight {
  transform: translateY(-12px) translateX(8px) translateZ(30px);
}

.showcase-card.active-project:hover .finova-floating-sync {
  transform: translateY(12px) translateX(-8px) translateZ(35px);
}

/* Chintamani Hospital Card 3 Styles */
.hospital-dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.hospital-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.hospital-logo {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 800;
  color: #14b8a6;
}

.hospital-nav-links {
  display: flex;
  gap: 6px;
  font-size: 0.45rem;
  color: var(--text3);
}

.hospital-nav-links .emergency-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

.hospital-hero {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
}

.hospital-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.hospital-subtitle {
  font-size: 0.52rem;
  color: var(--text3);
  margin-top: 2px;
}

.hospital-cta-btn {
  background: #14b8a6;
  color: white;
  font-size: 0.52rem;
  font-weight: 750;
  padding: 4px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 6px;
  box-shadow: 0 3px 8px rgba(20, 184, 166, 0.25);
  cursor: pointer;
}

.hospital-services {
  display: flex;
  gap: 6px;
}

.h-service-card {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.48rem;
  font-weight: 600;
}

[data-theme="dark"] .h-service-card {
  background: #1e293b;
}

.h-service-card .h-icon {
  font-size: 0.8rem;
}

/* Mobile Booking Slots Mockup */
.hospital-booking-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  justify-content: center;
}

.booking-title {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.doctor-select-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .doctor-select-card {
  background: #1e293b;
}

.doctor-select-card .doc-avatar {
  font-size: 0.8rem;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.slot-item {
  font-size: 0.42rem;
  font-weight: 600;
  text-align: center;
  padding: 3px 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
}

[data-theme="dark"] .slot-item {
  background: #1e293b;
}

.slot-item.selected {
  background: #14b8a6;
  color: white;
  border-color: #14b8a6;
}

.booking-btn {
  background: var(--text);
  color: var(--bg);
  font-size: 0.55rem;
  font-weight: 700;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
}

.floating-card.hospital-floating-emergency {
  top: 9%;
  right: 4%;
  animation: floatCard1 5.6s ease-in-out infinite;
}

.floating-card.hospital-floating-rating {
  bottom: 12%;
  left: 8%;
  animation: floatCard2 4.8s ease-in-out infinite;
}

.showcase-card.active-project:hover .hospital-floating-emergency {
  transform: translateY(-12px) translateX(8px) translateZ(30px);
}

.showcase-card.active-project:hover .hospital-floating-rating {
  transform: translateY(12px) translateX(-8px) translateZ(35px);
}

/* Responsive Grid Layout Rules */
@media(max-width:991px) {
  .showcase-card {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 2.5rem;
  }

  .showcase-visual {
    height: 350px;
    order: -1;
    /* visual on top for tablet/mobile */
  }

  .laptop-wrap {
    width: 75%;
    left: 2%;
  }

  .mobile-wrap {
    right: 5%;
  }

  .finova-phone-main {
    width: 135px;
    height: 250px;
    left: 10%;
  }

  .finova-phone-secondary {
    width: 110px;
    height: 210px;
    right: 10%;
  }

  .floating-card {
    display: none !important;
    /* Hide tiny details on tablet/mobile to stay clean */
  }
}

@media(max-width:768px) {
  .projects-showcase-stack {
    gap: 3rem;
  }

  .showcase-card {
    border-radius: 24px;
    padding: 2rem;
  }

  /* In mobile, reduce dimming effect to keep it readable */
  .showcase-card.reveal.visible {
    opacity: 0.85;
  }

  .showcase-card.reveal.visible.active-project {
    opacity: 1;
  }

  .showcase-visual {
    height: 280px;
  }

  .laptop-wrap {
    width: 80%;
    left: 0;
    top: 10%;
    height: 180px;
  }

  .mobile-wrap {
    width: 100px;
    height: 200px;
    right: 0;
    bottom: 5%;
  }

  .finova-phone-main {
    width: 115px;
    height: 220px;
    left: 2%;
    top: 5%;
  }

  .finova-phone-secondary {
    width: 95px;
    height: 180px;
    right: 2%;
    bottom: 5%;
  }

  .showcase-title {
    font-size: 1.75rem;
  }

  .showcase-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-primary-sm,
  .btn-ghost-sm {
    justify-content: center;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .showcase-card.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .showcase-card.reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .showcase-card.reveal.visible.active-project {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .showcase-card.visible .laptop-wrap,
  .showcase-card.visible .mobile-wrap,
  .glass-shine,
  .scanning-laser,
  .deploy-progress .bar-fill,
  .radial-progress-svg .circle,
  .dash-status-badge .pulse-dot,
  .spin-dot,
  .otp-box.active::after,
  .chart-peak-dot {
    animation: none !important;
  }

  .dispute-analysis-card,
  .match-score-card,
  .category-item-1,
  .category-item-2,
  .automation-trigger-card,
  .metrics-card {
    animation: none !important;
    transform: none !important;
  }

  .showcase-card.active-project:hover {
    transform: none !important;
  }

  .showcase-card.active-project:hover .laptop-mockup,
  .showcase-card.active-project:hover .mobile-mockup {
    transform: none !important;
  }

  .showcase-card.active-project:hover .stack-badge {
    transform: none !important;
  }

  .showcase-card.active-project:hover .btn-primary-sm span,
  .showcase-card.active-project:hover .btn-ghost-sm span {
    transform: none !important;
  }

  .showcase-card.active-project:hover .dispute-analysis-card,
  .showcase-card.active-project:hover .match-score-card,
  .showcase-card.active-project:hover .category-item-1,
  .showcase-card.active-project:hover .category-item-2,
  .showcase-card.active-project:hover .automation-trigger-card,
  .showcase-card.active-project:hover .metrics-card {
    transform: none !important;
  }
}

/* Sticky Stacking Scroll Effect for Projects Section (Desktop/Tablet landscape) */
@media (min-width: 992px) {
  .projects-section {
    overflow: visible !important;
  }

  .projects-showcase-stack {
    position: relative;
    gap: 12vh !important;
    padding-bottom: 12vh;
  }

  .projects-showcase-stack .showcase-card {
    position: sticky !important;
    background: #ffffff !important;
    /* Pure solid white background in light mode */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05) !important;
  }

  [data-theme="dark"] .projects-showcase-stack .showcase-card {
    background: #131b2e !important;
    /* Pure solid dark background to ensure readability in dark mode */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
  }

  /* Ensure cards are fully opaque (opacity 1) when they are visible on the screen */
  .projects-showcase-stack .showcase-card.reveal.visible {
    opacity: 1 !important;
  }

  .projects-showcase-stack .showcase-card.reveal.visible.active-project {
    opacity: 1 !important;
  }

  /* Sticky top offset values and z-indexes for 4 cards */
  .projects-showcase-stack .showcase-card:nth-child(1) {
    top: 120px;
    z-index: 1;
  }

  .projects-showcase-stack .showcase-card:nth-child(2) {
    top: 145px;
    z-index: 2;
  }

  .projects-showcase-stack .showcase-card:nth-child(3) {
    top: 170px;
    z-index: 3;
  }

  .projects-showcase-stack .showcase-card:nth-child(4) {
    top: 195px;
    z-index: 4;
  }

  /* Scale down transition for scrolled-past cards, keeping them fully opaque */
  .projects-showcase-stack .showcase-card.reveal.visible.completed-project {
    transform: scale(0.95) !important;
    transform-origin: top center !important;
    opacity: 1 !important;
  }
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .06) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 5s ease-in-out infinite;
}

@keyframes ctaGlow {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -.04em;
}

.cta-inner p {
  color: var(--text2);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- ABOUT ---------- */
.about-hero {
  min-height: 60vh;
  padding: 10rem 0 5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 30% 50%, rgba(79, 70, 229, .05) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="dark"] .about-hero::after {
  background: radial-gradient(ellipse 60% 60% at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 65%);
}

/* ---------- GLOBAL PAGE HERO BACKGROUNDS ---------- */
.about-hero::before,
.services-page-hero::before,
.portfolio-hero::before,
.tech-hero::before,
.process-hero::before,
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 35%, var(--blob-color-1) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 15% 75%, var(--blob-color-2) 0%, transparent 50%),
    radial-gradient(ellipse 35% 35% at 85% 80%, var(--blob-color-3) 0%, transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}

.about-hero::before {
  opacity: 0.5;
}

.services-page-hero::after,
.portfolio-hero::after,
.tech-hero::after,
.process-hero::after,
.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.5;
}

/* -- About Hero Inner -- */
.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.about-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.about-copy p {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* Section 1 Hero Entrance Animations */
.about-copy .section-label {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-about.active .about-copy .section-label {
  opacity: 1;
  transform: translateY(0);
}

.about-hero-title .about-hero-line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-about.active .about-hero-title .about-hero-line:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

#page-about.active .about-hero-title .about-hero-line:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

#page-about.active .about-hero-title .about-hero-line:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.about-copy p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-about.active .about-copy p:nth-of-type(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

#page-about.active .about-copy p:nth-of-type(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.about-hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-about.active .about-hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Trust Strip */
.about-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-about.active .about-hero-trust {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.about-trust-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.about-trust-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
  color: var(--accent);
  transform: translateY(-1px);
}

.about-trust-check {
  color: var(--accent);
  font-weight: bold;
}

.about-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.about-hero-visual::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

#page-about.active .about-hero-visual {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.25s;
}

/* Hero identity card composition */
.about-id-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

[data-theme="dark"] .about-id-card {
  background: rgba(19, 27, 46, 0.4);
}

.about-id-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.about-id-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.about-id-logo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-expo);
}

.about-id-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.about-id-card:hover .about-id-logo {
  transform: scale(1.02);
}

.about-id-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -.02em;
}

.about-id-type {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text3);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.about-id-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-id-stat {
  text-align: center;
  padding: .75rem .5rem;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .about-id-stat {
  background: rgba(255, 255, 255, 0.03);
}

.about-id-card:hover .about-id-stat {
  border-color: rgba(59, 130, 246, 0.25);
}

.about-id-stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent) !important;
}

.about-id-stat-value {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .35rem;
}

.about-id-stat-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- 3D CARD FLIP ---------- */
.about-id-card-wrap {
  perspective: 1000px;
  width: 100%;
  position: relative;
  outline: none;
}

.about-id-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out-expo);
}

/* Flip on Desktop Hover */
@media (min-width: 1025px) {
  .about-id-card-wrap:hover .about-id-card-inner {
    transform: rotateY(180deg);
  }
}

/* Flip on Focus Within (Keyboard Navigation) */
.about-id-card-wrap:focus-within .about-id-card-inner {
  transform: rotateY(180deg);
}

/* Flip on Mobile Click/Tap via JS class */
.about-id-card-wrap.flipped .about-id-card-inner {
  transform: rotateY(180deg);
}

.about-id-card-front,
.about-id-card-back {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.about-id-card-front {
  position: relative;
  z-index: 2;
}

.about-id-card-back {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotateY(180deg);
  visibility: hidden;
  transition: visibility 0s 0.6s;
}

.about-id-card-wrap:hover .about-id-card-back,
.about-id-card-wrap:focus-within .about-id-card-back,
.about-id-card-wrap.flipped .about-id-card-back {
  visibility: visible;
  transition: visibility 0s 0s;
}

/* Disable translation shift on child cards to avoid 3D jitter */
.about-id-card-wrap .about-id-card:hover {
  transform: none;
}

/* Back Card Styling */
.about-id-card-back-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.about-id-back-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  text-align: center;
}

.about-id-back-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.about-id-social-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.about-id-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  outline: none;
}

[data-theme="dark"] .about-id-social-link {
  background: rgba(255, 255, 255, 0.03);
}

.about-id-social-link:hover,
.about-id-social-link:focus-visible {
  color: var(--accent);
  background: var(--glow);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px var(--glow);
}

.social-icon-svg {
  width: 20px;
  height: 20px;
}

.about-code-snippet {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.75;
  color: var(--text3);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

[data-theme="dark"] .about-code-snippet {
  background: rgba(255, 255, 255, 0.02);
}

.about-code-snippet:hover {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.05);
}

.about-code-snippet .code-keyword {
  color: var(--purple);
}

.about-code-snippet .code-string {
  color: var(--cyan);
}

.about-code-snippet .code-prop {
  color: var(--accent);
}

/* -- Section 2: Our Story -- */
.about-story {
  padding: 6rem 0;
  background: var(--bg2);
}

.about-story-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Horizontal Flexbox for Desktop and Tablet */
@media (min-width: 769px) {
  .about-story-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .about-story-card {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    transition: flex 0.6s var(--ease-out-expo),
      transform 0.6s var(--ease-out-expo),
      border-color 0.6s var(--ease-out-expo),
      background-color 0.6s var(--ease-out-expo),
      box-shadow 0.6s var(--ease-out-expo);
  }

  /* Desktop Hover Interactions (Screens > 1024px) */
  @media (min-width: 1025px) {
    .about-story-grid:hover .about-story-card {
      flex: 0.8;
    }

    .about-story-grid .about-story-card:hover {
      flex: 2;
      background-color: var(--surface2);
      border-color: rgba(59, 130, 246, 0.4);
      box-shadow: 0 16px 35px rgba(59, 130, 246, 0.12);
      transform: translateY(-4px);
    }

    .about-story-card p {
      opacity: 0.75;
      transition: opacity 0.6s var(--ease-out-expo);
    }

    .about-story-grid:hover .about-story-card:not(:hover) p {
      opacity: 0.45;
    }

    .about-story-card:hover p {
      opacity: 1;
    }
  }

  /* Tablet Click Interactions (Screens 769px to 1024px) */
  @media (max-width: 1024px) {
    .about-story-card.expanded {
      flex: 2;
      background-color: var(--surface2);
      border-color: var(--accent);
      box-shadow: 0 16px 35px rgba(59, 130, 246, 0.12);
      transform: translateY(-4px);
    }

    .about-story-grid.has-expanded .about-story-card:not(.expanded) {
      flex: 0.8;
    }

    .about-story-card p {
      opacity: 0.5;
      transition: opacity 0.6s var(--ease-out-expo);
    }

    .about-story-card.expanded p {
      opacity: 1;
    }

    .about-story-grid.has-expanded .about-story-card:not(.expanded) p {
      opacity: 0.35;
    }
  }
}

/* Mobile Vertical Accordion (< 769px) */
@media (max-width: 768px) {
  .about-story-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    cursor: pointer;
    overflow: hidden;
    max-height: 125px;
    /* collapsed height */
    transition: max-height 0.6s var(--ease-out-expo),
      border-color 0.6s var(--ease-out-expo),
      background-color 0.6s var(--ease-out-expo),
      box-shadow 0.6s var(--ease-out-expo),
      transform 0.6s var(--ease-out-expo);
  }

  .about-story-card p {
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
  }

  /* Expanded State */
  .about-story-card.expanded {
    max-height: 350px;
    background-color: var(--surface2);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
  }

  .about-story-card.expanded p {
    opacity: 1;
  }
}

.about-story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.about-story-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.about-story-card:hover .about-story-num {
  transform: scale(1.1) translateY(-2px);
}

.about-story-keyword {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .about-story-keyword {
  background: rgba(59, 130, 246, 0.12);
}

.about-story-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0.25;
  margin-bottom: 1.25rem;
}

.about-story-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

.about-story-card p {
  color: var(--text2);
  font-size: .925rem;
  line-height: 1.8;
}

/* -- Section 3: Mission & Vision -- */
.about-mv {
  padding: 6rem 0;
  background: var(--bg);
}

.about-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-mv-card.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
}

.about-mv-card.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.about-mv-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

[data-theme="dark"] .about-mv-card {
  background: rgba(19, 27, 46, 0.4);
}

.about-mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-mv-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 16px 35px rgba(59, 130, 246, 0.08), 0 0 20px rgba(59, 130, 246, 0.04);
}

.about-mv-card:hover::before {
  opacity: 1;
}

.about-mv-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.4s var(--ease-out-expo), background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.about-mv-card:hover .about-mv-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.about-mv-icon {
  font-size: 2.5rem;
  display: inline-block;
  transition: transform 0.4s var(--ease-out-expo);
}

.about-mv-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: .85rem;
  letter-spacing: -.02em;
}

.about-mv-card p {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.85;
}

/* -- Section 4: Meet the Team -- */
.about-team {
  padding: 6rem 0;
  background: var(--bg2);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text2);
  margin-top: 0.6rem;
  max-width: 600px;
  line-height: 1.6;
}

.about-team-featured.reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo);
}

.about-team-featured.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.about-team-featured {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-color: rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

[data-theme="dark"] .about-team-featured {
  background: rgba(19, 27, 46, 0.4);
}

.about-team-featured::after {
  content: 'FOUNDER';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.about-team-featured:hover {
  transform: translateY(-5px) scale(1.005) !important;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 16px 45px rgba(59, 130, 246, 0.12), 0 0 25px rgba(59, 130, 246, 0.06);
}

.about-team-img-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  padding: 2px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  flex-shrink: 0;
}

.about-team-featured:hover .about-team-img-wrapper {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.about-team-img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .about-team-img {
  background: #131b2e;
}

.about-team-img-wrapper-sm {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  padding: 2px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  margin-bottom: 1.25rem;
}

.about-team-card:hover .about-team-img-wrapper-sm {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

.about-team-img-sm {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .about-team-img-sm {
  background: #131b2e;
}

.about-team-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: .25rem;
  letter-spacing: -.02em;
}

.about-team-featured .about-team-name {
  font-size: 1.5rem;
}

.about-team-role {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  font-weight: 600;
}

.about-team-bio {
  color: var(--text2);
  font-size: .925rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.about-team-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  transition: all 0.3s ease;
}

[data-theme="dark"] .about-team-chip {
  background: rgba(255, 255, 255, 0.04);
}

.about-team-featured:hover .about-team-chip,
.about-team-card:hover .about-team-chip {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.12);
  color: var(--accent);
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Container hover group cohesion */
.about-team-grid:hover .about-team-card:not(:hover) {
  opacity: 0.65;
  transform: scale(0.98);
  filter: blur(1px);
}

.about-team-card.reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  filter: blur(5px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
}

.about-team-card.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.about-team-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), filter 0.4s var(--ease-out-expo);
}

[data-theme="dark"] .about-team-card {
  background: rgba(19, 27, 46, 0.4);
}

.about-team-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08), 0 0 20px rgba(59, 130, 246, 0.05);
}

/* -- Section 5: Core Values -- */
.about-values {
  padding: 6rem 0;
  background: var(--bg);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-value-card.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.about-value-card.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-value-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.about-value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-value-card:hover::before {
  opacity: 1;
}

.about-value-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.06);
}

.about-value-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: transform 0.4s var(--ease-out-expo), filter 0.4s var(--ease-out-expo);
}

.about-value-card:hover .about-value-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35));
}

.about-value-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: .6rem;
  letter-spacing: -.02em;
}

.about-value-card p {
  color: var(--text2);
  font-size: .9rem;
  line-height: 1.75;
}

/* -- Section 6: How We Work -- */
.about-workflow {
  padding: 6rem 0;
  background: var(--bg2);
}

.about-workflow-steps {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  position: relative;
}

.about-workflow-step.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.about-workflow-step.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-workflow-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.about-workflow-step::after {
  content: '';
  position: absolute;
  top: 22px;
  /* aligns with center of 44px badge */
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 1px;
  border-top: 2px dashed var(--border);
  z-index: -1;
  transition: border-color 0.4s ease;
}

.about-workflow-step:last-child::after {
  display: none;
}

.about-workflow-step:hover::after {
  border-top-color: var(--accent);
}

.about-wf-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text3);
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}

.about-workflow-step:hover .about-wf-num {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
  transform: scale(1.05);
}

.about-workflow-step h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: .45rem;
  letter-spacing: -.01em;
}

.about-workflow-step p {
  color: var(--text2);
  font-size: .8rem;
  line-height: 1.6;
  padding: 0 0.5rem;
}

/* -- Section 7: Technology Ecosystem -- */
.about-tech-section {
  padding: 6rem 0;
  background: var(--bg);
}

.about-tech-groups {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 3.5rem;
}

.about-tech-group.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.about-tech-group.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-tech-group {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.about-tech-group-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text3);
  letter-spacing: .06em;
  text-transform: uppercase;
  min-width: 120px;
  padding-top: .55rem;
  flex-shrink: 0;
  font-weight: 600;
}

.about-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

@keyframes chipFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.about-tech-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: .45rem .9rem;
  border-radius: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  animation: chipFloat 4s ease-in-out infinite;
}

.about-tech-chip:nth-child(2n) {
  animation-delay: 0.5s;
  animation-duration: 4.5s;
}

.about-tech-chip:nth-child(3n) {
  animation-delay: 1s;
  animation-duration: 5s;
}

.about-tech-chip:nth-child(4n) {
  animation-delay: 1.5s;
  animation-duration: 3.5s;
}

.about-tech-chip:hover {
  animation-play-state: paused;
  color: var(--accent);
  border-color: rgba(59, 130, 246, .45);
  background: rgba(59, 130, 246, .08);
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.12);
}

/* -- Section 8: Future Vision -- */
.about-future {
  padding: 6rem 0;
  background: var(--bg2);
}

.about-future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-future-col.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.about-future-col.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-future-col {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.about-future-col:nth-child(2) {
  position: relative;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.01);
}

[data-theme="dark"] .about-future-col:nth-child(2) {
  background: rgba(168, 85, 247, 0.03);
}

@keyframes tomorrowPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.02), 0 0 0 0px rgba(168, 85, 247, 0.08);
  }

  50% {
    box-shadow: 0 4px 25px rgba(168, 85, 247, 0.06), 0 0 0 6px rgba(168, 85, 247, 0);
  }
}

#page-about.active .about-future-col:nth-child(2) {
  animation: tomorrowPulse 4s infinite;
}

.about-future-col:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.06);
}

.about-future-col:nth-child(2):hover {
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.12) !important;
}

.about-future-col-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.about-future-col-title .future-badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  padding: .15rem .55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.future-badge-current {
  color: var(--cyan);
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(6, 182, 212, .2);
}

.future-badge-next {
  color: var(--purple);
  background: rgba(167, 139, 250, .08);
  border: 1px solid rgba(167, 139, 250, .2);
}

.about-future-items {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.about-future-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .925rem;
  color: var(--text2);
  transition: border-color 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] .about-future-item {
  background: rgba(255, 255, 255, 0.03);
}

.about-future-col:hover .about-future-item {
  border-color: rgba(59, 130, 246, 0.2);
}

.about-future-col:nth-child(2):hover .about-future-item {
  border-color: rgba(167, 139, 250, 0.2);
}

.about-future-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* -- Section 9: Social Proof Strip -- */
.about-proof-strip {
  padding: 4.5rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-proof-title {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.25rem;
  color: var(--text);
}

.about-proof-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.about-proof-item {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-proof-item:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

.about-proof-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
}

/* -- Section 10: Final CTA -- */
.about-cta {
  padding: 8rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

@keyframes ctaGlowPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.about-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .05) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlowPulse 6s ease-in-out infinite;
}

.about-cta-inner.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.about-cta-inner.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-cta-inner {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

[data-theme="dark"] .about-cta-inner {
  background: rgba(19, 27, 46, 0.4);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.15);
}

.about-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.about-cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 3.2rem);
  font-weight: 855;
  margin-bottom: 1.25rem;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.about-cta-inner p {
  color: var(--text2);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -- About Page Responsive -- */
@media(max-width:991px) {
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-workflow-steps {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    margin-top: 3rem;
  }

  .about-workflow-step {
    width: 100%;
    max-width: 320px;
  }

  .about-workflow-step::after {
    content: '';
    position: absolute;
    top: 44px;
    left: 50%;
    width: 1px;
    height: 2.5rem;
    border-left: 2px dashed var(--border);
    border-top: none;
    transform: translateX(-50%);
  }
}

@media(max-width:768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-mv-grid {
    grid-template-columns: 1fr;
  }

  .about-team-featured {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }

  .about-team-featured .about-team-img-wrapper {
    margin: 0 auto;
  }

  .about-team-featured .about-team-chips {
    justify-content: center;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .about-values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-tech-group {
    flex-direction: column;
    gap: .75rem;
  }

  .about-tech-group-label {
    min-width: auto;
    padding-top: 0;
  }

  .about-future-grid {
    grid-template-columns: 1fr;
  }

  .about-id-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-proof-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
}

@media(max-width:480px) {
  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-id-stats {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .about-cta-inner {
    padding: 3rem 1.5rem;
  }
}

/* -- Reduced Motion Compatibility -- */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .about-copy .section-label,
  .about-hero-title .about-hero-line,
  .about-copy p,
  .about-hero-actions,
  .about-hero-visual,
  .about-hero-trust,
  .about-story-card.reveal,
  .about-mv-card.reveal,
  .about-team-featured.reveal,
  .about-team-card.reveal,
  .about-value-card.reveal,
  .about-workflow-step.reveal,
  .about-tech-group.reveal,
  .about-future-col.reveal,
  .about-cta-inner.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .about-tech-chip {
    animation: none !important;
  }

  .about-cta::before {
    animation: none !important;
  }
}


/* -- Mobile-only About page enhancements -- */

/* CHANGE 2 & 3: Mobile stats card hidden by default on desktop */
.about-mobile-stats-wrap {
  display: none;
}

/* CHANGE 4: On desktop, restore original visual order (Start A Project second).
   HTML DOM order is now: Start A Project first, Meet The Team second.
   We use flex order to show Meet The Team first on desktop. */
.about-btn-start {
  order: 2;
}

.about-btn-meet {
  order: 1;
}

/* CHANGE 6: Desktop  -  featured founder socials stay left-aligned */
.about-team-socials-featured {
  justify-content: flex-start;
}

@media (max-width: 767px) {

  /* CHANGE 1: Show mobile stats card between title and description */
  .about-mobile-stats-wrap {
    display: block;
    width: 100%;
    margin: 1.5rem 0 2.5rem;
    position: relative;
  }

  /* CHANGE 2: Hide the desktop hero visual column on mobile to avoid duplicates */
  .about-hero-visual {
    display: none !important;
  }

  /* CHANGE 4: Reorder CTA buttons  -  Start A Project first on mobile */
  .about-hero-actions {
    display: flex;
    flex-direction: column;
  }

  .about-btn-start {
    order: 1;
  }

  .about-btn-meet {
    order: 2;
  }

  /* CHANGE 5: First story card bottom spacing fix and max-height adjustment */
  .about-story-card-first {
    padding-bottom: 3.5rem;
  }

  .about-story-card-first.expanded {
    max-height: 400px;
    padding-bottom: 3.5rem;
  }

  /* CHANGE 6: Center-align team card content on mobile */
  .about-team-card {
    text-align: center;
  }

  .about-team-card .about-team-img-wrapper-sm {
    margin-left: auto;
    margin-right: auto;
  }

  .about-team-card .about-team-chips {
    justify-content: center;
  }

  .about-team-card .about-team-socials {
    justify-content: center;
  }

  .about-team-card .about-team-bio {
    text-align: center;
  }

  /* Featured founder  -  center socials on mobile */
  .about-team-socials-featured {
    justify-content: center;
  }

  .about-team-featured .about-team-chips {
    justify-content: center;
  }

}

/* ---------- SERVICES PAGE ---------- */
.services-page-hero {
  padding: 10rem 0 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.services-page-hero .section-label {
  opacity: 0;
  transform: translateY(10px);
}

.services-page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(15px);
}

.services-page-hero p {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 600px;
  margin-top: 1.5rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(15px);
}

.services-hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(15px);
}

.services-page-hero.animate .section-label {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.1s forwards;
}

.services-page-hero.animate h1 {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.2s forwards;
}

.services-page-hero.animate p {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.3s forwards;
}

.services-page-hero.animate .services-hero-actions {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.4s forwards;
}

.services-page-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media(max-width: 900px) {
  .services-page-hero .container {
    grid-template-columns: 1fr;
  }
}

.services-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(15px);
}

.services-page-hero.animate .services-hero-trust {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.5s forwards;
}

.services-trust-item {
  font-size: 0.95rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.services-check {
  color: var(--accent);
  font-weight: bold;
}

.services-hero-visual {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(15px) scale(0.98);
}

.services-page-hero.animate .services-hero-visual {
  animation: fadeSlideUpScale 0.8s var(--ease-out-expo) 0.3s forwards;
}

@keyframes fadeSlideUpScale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.services-hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: servicesGlowPulse 6s ease-in-out infinite;
}

@keyframes servicesGlowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.services-eco-blocks {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.services-eco-block {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out-expo);
}

.services-eco-block:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px var(--glow);
}

.services-eco-block .eco-icon {
  font-size: 1.25rem;
}

.services-eco-block .eco-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text1);
}

.web-block {
  top: 10%;
  left: 10%;
  animation: ecoFloat1 5s ease-in-out infinite;
}

.mobile-block {
  top: 15%;
  right: 15%;
  animation: ecoFloat2 6s ease-in-out infinite 0.5s;
}

.software-block {
  top: 48%;
  left: 5%;
  animation: ecoFloat3 5.5s ease-in-out infinite 1s;
}

.cloud-block {
  top: 52%;
  right: 5%;
  animation: ecoFloat1 6.5s ease-in-out infinite 1.5s;
}

.iot-block {
  bottom: 10%;
  left: 20%;
  animation: ecoFloat2 7s ease-in-out infinite 2s;
}

.ai-block {
  top: 34%;
  left: 38%;
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 25px rgba(139, 92, 246, 0.25);
  animation: ecoFloat3 5.8s ease-in-out infinite 0.7s;
}

.ai-block:hover {
  border-color: #8b5cf6;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
}

@keyframes ecoFloat1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes ecoFloat2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes ecoFloat3 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.services-overview {
  padding: 5rem 0;
  background: var(--bg);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.2rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s var(--ease-out-expo);
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.svc-card.visible {
  animation: fadeSlideUpScale 0.6s var(--ease-out-expo) forwards;
}

.svc-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s var(--ease-out-expo);
  display: inline-block;
  line-height: 1;
}

.svc-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--glow);
}

.svc-card:hover .svc-card-icon {
  transform: scale(1.15);
}

.svc-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  color: var(--text1);
}

.svc-card p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.service-detailed {
  padding: 5rem 0;
  background: var(--bg2);
}

.service-full-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  transition: filter 0.5s var(--ease-out-expo);
}

.service-full-item:last-child {
  border-bottom: none;
}

.service-full-item:nth-child(even) .service-full-text {
  order: 2;
}

.service-full-item:nth-child(even) .service-full-visual {
  order: 1;
}

.service-full-item.active-service {
  filter: brightness(1.05);
}

.service-full-item.active-service .service-visual-box {
  box-shadow: 0 10px 40px var(--glow);
  border-color: var(--accent);
}

.service-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  margin-bottom: .75rem;
}

.service-full-item h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-full-item p {
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.feature-list li {
  font-size: 0.95rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease-out-expo);
}

.service-full-item.visible .feature-list li {
  opacity: 1;
  transform: translateX(0);
}

.service-full-item.visible .feature-list li:nth-child(1) {
  transition-delay: 0.1s;
}

.service-full-item.visible .feature-list li:nth-child(2) {
  transition-delay: 0.2s;
}

.service-full-item.visible .feature-list li:nth-child(3) {
  transition-delay: 0.3s;
}

.service-full-item.visible .feature-list li:nth-child(4) {
  transition-delay: 0.4s;
}

.feature-list li::before {
  content: '✓';
  color: var(--accent);
}

.service-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--ease-out-expo) 0.3s;
}

.service-full-item.visible .service-tech-chips {
  opacity: 1;
  transform: translateY(0);
}

.service-tech-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text2);
  transition: all 0.3s var(--ease-out-expo);
  cursor: default;
}

.service-tech-chip:hover {
  background: var(--glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.service-showcase-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.service-showcase-cta:hover {
  color: var(--text1);
  transform: translateX(4px);
}

/* -- Services Custom Mockups -- */
.service-visual-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.6s var(--ease-out-expo);
  animation: floatSoft 6s ease-in-out infinite;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-visual-box:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.02);
}

@keyframes floatSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Browser Mockup */
.mockup-browser {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mockup-browser-header {
  background: var(--bg2);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.mockup-browser-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-browser-header .dot.red {
  background: #ef4444;
}

.mockup-browser-header .dot.yellow {
  background: #f59e0b;
}

.mockup-browser-header .dot.green {
  background: #10b981;
}

.mockup-browser-url {
  margin-left: auto;
  margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.2rem 2rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text3);
  font-family: var(--font-mono);
}

.mockup-browser-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-web-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}

.mockup-web-logo {
  width: 40px;
  height: 8px;
  background: var(--accent);
  border-radius: 4px;
}

.mockup-web-links {
  display: flex;
  gap: 0.5rem;
}

.mockup-web-link {
  width: 25px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

.mockup-web-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 0.5rem 0;
}

.mockup-web-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text1);
  font-family: var(--font-head);
}

.mockup-web-btn {
  font-size: 0.65rem;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
}

.mockup-web-analytics {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: auto;
}

.analytics-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.analytics-label {
  font-size: 0.75rem;
  color: var(--text2);
}

.analytics-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #10b981;
}

.analytics-graph {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 25px;
}

.graph-bar {
  width: 6px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: height 0.3s;
}

/* Phone Mockup */
.mockup-phone {
  width: 170px;
  height: 290px;
  background: var(--bg);
  border: 6px solid #1f2937;
  border-radius: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mockup-phone-notch {
  width: 70px;
  height: 14px;
  background: #1f2937;
  border-radius: 0 0 10px 10px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mockup-phone-body {
  flex: 1;
  padding: 1.2rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-app-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.app-avatar {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
}

.app-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text1);
  font-family: var(--font-head);
}

.mockup-app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mockup-app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mockup-app-card.notification {
  border-left: 3px solid var(--accent);
  animation: alertPulse 2s infinite;
}

@keyframes alertPulse {

  0%,
  100% {
    border-left-color: var(--accent);
  }

  50% {
    border-left-color: #10b981;
  }
}

.card-icon-blue {
  font-size: 0.9rem;
}

.mockup-app-card .card-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text1);
}

.mockup-app-card .card-subtitle {
  font-size: 0.55rem;
  color: var(--text2);
}

.mockup-app-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-lbl {
  font-size: 0.5rem;
  color: var(--text3);
}

.mockup-app-nav {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  padding-top: 0.4rem;
  margin-top: auto;
}

.nav-icon {
  font-size: 0.8rem;
  opacity: 0.5;
}

.nav-icon.active {
  opacity: 1;
  color: var(--accent);
}

/* Cloud Mockup */
.mockup-cloud {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cloud-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 2;
  transition: all 0.3s;
}

.cloud-node:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.node-icon {
  font-size: 1.1rem;
}

.node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text1);
}

.pipeline-node {
  border-color: #10b981;
}

.pipeline-flow {
  width: 80px;
  height: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-left: 0.5rem;
}

.flow-dot {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 15px;
  background: #10b981;
  animation: pipeFlow 2s linear infinite;
}

@keyframes pipeFlow {
  0% {
    left: -15px;
  }

  100% {
    left: 80px;
  }
}

.cloud-nodes-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.cloud-connection-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.conn-line {
  position: absolute;
  background: var(--border);
}

.conn-line.vertical {
  top: 25%;
  left: 50%;
  width: 2px;
  height: 50%;
  transform: translateX(-50%);
}

.conn-line.horizontal {
  top: 55%;
  left: 15%;
  right: 15%;
  height: 2px;
}

/* Desktop Mockup */
.mockup-desktop {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mockup-desktop-header {
  background: var(--bg2);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.win-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.win-dot.red {
  background: #ef4444;
}

.win-dot.yellow {
  background: #f59e0b;
}

.win-dot.green {
  background: #10b981;
}

.desktop-app-title {
  font-size: 0.68rem;
  color: var(--text2);
  margin-left: 0.5rem;
  font-family: var(--font-mono);
}

.mockup-desktop-body {
  flex: 1;
  display: flex;
}

.desktop-sidebar {
  width: 75px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-item {
  font-size: 0.55rem;
  color: var(--text3);
  padding: 0.25rem;
  border-radius: 4px;
  cursor: default;
}

.sidebar-item.active {
  background: var(--accent);
  color: #fff;
}

.desktop-content {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.desktop-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.desktop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
}

.d-card-val {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text1);
}

.d-card-lbl {
  font-size: 0.5rem;
  color: var(--text3);
}

.desktop-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  font-size: 0.55rem;
  padding: 0.15rem 0;
}

.table-header {
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

.table-row {
  color: var(--text3);
  border-bottom: 1px dashed var(--border);
}

.table-row:last-child {
  border-bottom: none;
}

.status-badge {
  font-size: 0.45rem;
  padding: 0.05rem 0.25rem;
  border-radius: 100px;
  text-align: center;
  width: fit-content;
}

.status-badge.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-badge.yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* IoT Mockup */
.mockup-iot {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.iot-dashboard {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.iot-dash-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  color: var(--text1);
}

.iot-status-online {
  color: #10b981;
  animation: pulseText 2s infinite;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.iot-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.iot-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.sensor-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.sensor-label {
  font-size: 0.55rem;
  color: var(--text3);
}

.device-switch {
  width: 32px;
  height: 18px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  cursor: default;
}

.device-switch.active {
  background: #10b981;
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}

.device-switch.active .switch-knob {
  left: 16px;
}

.iot-flow {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: auto;
}

.iot-node {
  font-size: 0.58rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--text2);
}

.iot-arrow {
  font-size: 0.6rem;
  color: var(--text3);
}

@media(max-width:900px) {
  .service-full-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-full-item:nth-child(even) .service-full-text,
  .service-full-item:nth-child(even) .service-full-visual {
    order: unset;
  }
}

@media (max-width: 767px) {
  .service-full-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .service-full-text {
    display: contents;
  }

  .service-num {
    order: 1;
  }

  .service-full-item h2 {
    order: 2;
    margin-bottom: 0;
  }

  .service-full-visual {
    order: 3;
    margin: 1.5rem 0 2rem;
  }

  .service-full-item p {
    order: 4;
    margin-bottom: 1.5rem;
  }

  .feature-list {
    order: 5;
    margin-bottom: 1.5rem;
  }

  .service-tech-chips {
    order: 6;
    margin-bottom: 1.5rem;
  }

  .service-showcase-cta {
    order: 7;
  }

  /* Specific ordering overrides for Android Applications (card 2) */
  #android-applications .service-num {
    order: 1;
  }

  #android-applications h2 {
    order: 2;
    margin-bottom: 0;
  }

  #android-applications .service-full-visual {
    order: 3;
    margin: 1.5rem 0 2rem;
  }

  #android-applications .service-full-text p {
    order: 4;
    margin-bottom: 1.5rem;
  }

  #android-applications .feature-list {
    order: 5;
    margin-bottom: 1.5rem;
  }

  #android-applications .service-tech-chips {
    order: 6;
    margin-bottom: 1.5rem;
  }

  #android-applications .service-showcase-cta {
    order: 7;
  }

  /* Specific ordering overrides for Desktop Software (card 4) */
  #desktop-software .service-num {
    order: 1;
  }

  #desktop-software h2 {
    order: 2;
    margin-bottom: 0;
  }

  #desktop-software .service-full-visual {
    order: 3;
    margin: 1.5rem 0 2rem;
  }

  #desktop-software .service-full-text p {
    order: 4;
    margin-bottom: 1.5rem;
  }

  #desktop-software .feature-list {
    order: 5;
    margin-bottom: 1.5rem;
  }

  #desktop-software .service-tech-chips {
    order: 6;
    margin-bottom: 1.5rem;
  }

  #desktop-software .service-showcase-cta {
    order: 7;
  }
}

.who-needs {
  padding: 5rem 0;
  background: var(--bg);
}

.who-needs .who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.who-needs .who-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(20px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
  box-sizing: border-box;
}

.who-needs .who-card.visible {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) forwards;
}

.who-needs .who-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px var(--glow);
}

.who-needs .who-card h4 {
  font-family: var(--font-head);
  color: var(--accent);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.who-needs .who-card p {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.how-we-deliver {
  padding: 5rem 0;
  background: var(--bg2);
}

.services-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.services-workflow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(20px);
  height: 100%;
  box-sizing: border-box;
}

.services-workflow-step.visible {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) forwards;
}

.services-workflow-step:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--glow);
}

.services-workflow-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: bold;
  color: #fff;
  z-index: 1;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s;
}

.services-workflow-step:hover .services-workflow-number {
  transform: scale(1.1);
}

.services-workflow-card {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: none;
  transform: none !important;
  transition: none;
}

.services-workflow-card h4 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text1);
}

.services-workflow-card p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.why-us {
  padding: 5rem 0;
  background: var(--bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 2.2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s;
  opacity: 0;
  transform: translateY(20px);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
}

.trust-card.visible {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) forwards;
}

.trust-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px var(--glow);
}

.trust-card h4 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
  color: var(--text1);
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.service-addons {
  padding: 5rem 0;
  background: var(--bg2);
}

.services-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.services-addon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(20px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
}

.services-addon-card.visible {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) forwards;
}

.services-addon-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--glow);
}

.services-addon-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0;
  color: var(--text1);
}

.services-addon-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.faq-section {
  padding: 5rem 0;
  background: var(--bg);
}

.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-color: var(--accent);
}

.faq-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  transition: background 0.3s;
}

.faq-header:hover {
  background: var(--bg2);
}

.faq-header h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out-expo);
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.faq-body-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.6;
}

.final-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--accent) 0%, #1e3a8a 100%);
  text-align: center;
  color: #fff;
  position: relative;
}

.final-cta-inner {
  opacity: 0;
  transform: translateY(20px);
}

.final-cta-inner.visible {
  animation: fadeSlideUp 0.8s var(--ease-out-expo) forwards;
}

.final-cta h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.final-cta .btn-primary {
  background: #fff;
  color: var(--accent);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.final-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- PORTFOLIO PAGE ---------- */
.portfolio-hero {
  padding: 10rem 0 5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.portfolio-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portfolio-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Hero Load Animations */
.portfolio-hero .section-label,
.portfolio-hero h1,
.portfolio-hero p,
.portfolio-hero .portfolio-hero-actions,
.portfolio-hero-visual {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}

.portfolio-hero-visual {
  transform: scale(0.95);
}

.portfolio-hero.animate .section-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.portfolio-hero.animate h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.portfolio-hero.animate p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.portfolio-hero.animate .portfolio-hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.portfolio-hero.animate .portfolio-hero-visual {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.5s;
}

.portfolio-hero-copy .section-label {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--text1);
  margin: 0;
}

.portfolio-hero-copy p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text2);
  margin: 0;
  max-width: 580px;
}

.portfolio-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stacked Mockup Visual in Hero */
.portfolio-hero-visual {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup-stack {
  position: relative;
  width: 280px;
  height: 200px;
}

.mockup-card-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-6deg) translate(-20px, 10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[data-theme="dark"] .mockup-card-1 {
  background: rgba(15, 23, 42, 0.4);
}

.mockup-card-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border2);
  border-radius: 16px;
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(4deg) translate(20px, -10px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[data-theme="dark"] .mockup-card-2 {
  background: rgba(30, 41, 59, 0.4);
}

.mockup-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

.mockup-bar.short {
  width: 40%;
}

.mockup-bar.medium {
  width: 70%;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mockup-box {
  height: 35px;
  background: var(--bg2);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.mockup-circ {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
}

/* ---------- SECTION: FEATURED PROJECT ---------- */
.featured-project-section {
  padding: 5rem 0;
  background: var(--bg2);
  position: relative;
}

.featured-project-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.featured-project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.featured-project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.08);
}

.featured-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.featured-info .btn-primary span {
  display: inline-block;
  transition: transform 0.3s;
}

.featured-info .btn-primary:hover span {
  transform: translateX(4px);
}

.featured-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.featured-info h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text1);
  margin: 0;
}

.featured-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text2);
  margin: 0;
}

.featured-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  margin: 0.5rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text2);
}

.feature-icon {
  color: var(--green);
  font-weight: bold;
}

.featured-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stack-badge {
  transition: all 0.3s var(--ease-out-expo);
}

.stack-badge:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 12px var(--glow);
  transform: translateY(-2px);
}

/* Mockup Display Panel */
@keyframes mockupFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.featured-mockup-panel {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  animation: mockupFloat 5s ease-in-out infinite;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

.featured-project-card:hover .featured-mockup-panel {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.featured-project-card .mobile-only {
  display: none !important;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.mockup-dots {
  display: flex;
  gap: 0.35rem;
}

.mockup-dot-item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-dot-item.red {
  background: #ef4444;
}

.mockup-dot-item.yellow {
  background: #eab308;
}

.mockup-dot-item.green {
  background: #22c55e;
}

.mockup-tab {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: var(--text2);
}

.mockup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.mockup-row:last-child {
  margin-top: auto;
}

.mockup-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mockup-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text3);
  text-transform: uppercase;
}

.mockup-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text1);
}

.mockup-val.green {
  color: var(--green);
}

.mockup-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ---------- SECTION: PROJECT SHOWCASE ---------- */
.project-showcase-section {
  padding: 6rem 0;
  background: var(--bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.project-grid .showcase-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo), border-color 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
  height: 100%;
  box-sizing: border-box;
}

.project-grid .showcase-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-grid .showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px var(--glow);
}

.project-grid .showcase-visual {
  height: 150px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-grid .showcase-visual>* {
  transition: transform 0.5s var(--ease-out-expo);
}

.project-grid .showcase-card:hover .showcase-visual>* {
  transform: scale(1.05);
}

.project-grid .showcase-card:hover .visual-future {
  transform: scale(1.08);
}

.project-grid .showcase-card .btn-ghost {
  transition: all 0.3s var(--ease-out-expo);
}

.project-grid .showcase-card:hover .btn-ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.showcase-stack .stack-badge {
  transition: all 0.3s var(--ease-out-expo);
}

.showcase-stack .stack-badge:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 10px var(--glow);
  transform: translateY(-2px);
}

/* Visual Content styles for project visualizers */
.visual-expense {
  width: 80%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.visual-company {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 85%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.6rem;
}

.visual-iot {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  line-height: 1.6;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visual-biz {
  width: 80%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.visual-future {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed var(--purple);
  animation: rotateFuture 12s linear infinite;
}

@keyframes rotateFuture {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.showcase-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
}

.showcase-body h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text1);
  margin: 0;
  letter-spacing: -0.02em;
}

.showcase-body p {
  font-size: 1 rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.showcase-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

/* ---------- SECTION: COMING SOON ---------- */
.coming-soon-sec {
  padding: 5rem 0;
  background: var(--bg2);
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}

.coming-soon-sec.visible {
  opacity: 1;
  transform: translateY(0);
}

.coming-soon-sec h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text1);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.coming-soon-sec p {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- SECTION: PORTFOLIO CTA ---------- */
.portfolio-cta-section {
  padding: 6rem 0;
  background: var(--bg);
}

.portfolio-cta-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 4rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(25px);
  transition: transform 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}

.portfolio-cta-card.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ctaGlowPulse {

  0%,
  100% {
    opacity: 0.12;
  }

  50% {
    opacity: 0.22;
  }
}

.portfolio-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 60%);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  animation: ctaGlowPulse 8s ease-in-out infinite;
}

.portfolio-cta-card h2,
.portfolio-cta-card p,
.portfolio-cta-card .portfolio-cta-actions {
  position: relative;
  z-index: 1;
}

.portfolio-cta-card h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text1);
  margin: 0;
  letter-spacing: -0.03em;
}

.portfolio-cta-card p {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 580px;
  margin: 0;
  line-height: 1.65;
}

.portfolio-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio-cta-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--glow);
}

/* ---------- RESPONSIVE OVERRIDES ---------- */
@media(max-width:991px) {
  .portfolio-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .portfolio-hero-copy {
    align-items: center;
  }

  .portfolio-hero-actions {
    justify-content: center;
  }

  .featured-project-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
}

@media(max-width:480px) {
  .featured-project-card {
    padding: 1.75rem;
  }

  .featured-features {
    grid-template-columns: 1fr;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 22px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
  animation: modalIn .4s var(--ease-out-expo);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text2);
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease-out-expo);
}

.modal-close:hover {
  background: var(--surface2);
  transform: scale(1.05);
}

.modal-industry {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  margin-bottom: .75rem;
}

.modal h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -.025em;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section h4 {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

.modal-section p {
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.75;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {

  .portfolio-hero .section-label,
  .portfolio-hero h1,
  .portfolio-hero p,
  .portfolio-hero .portfolio-hero-actions,
  .portfolio-hero-visual,
  .featured-project-card,
  .featured-mockup-panel,
  .stack-badge,
  .project-grid .showcase-card,
  .project-grid .showcase-visual>*,
  .coming-soon-sec,
  .portfolio-cta-card {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ---------- TECH PAGE ---------- */
.tech-hero {
  padding: 10rem 0 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.tech-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.tech-hero .container {
  position: relative;
  z-index: 1;
}

.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.tech-category h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: .75rem;
  letter-spacing: -.015em;
}

.tech-category h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.tech-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.tech-chip {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .7rem 1.15rem;
  transition: all .3s var(--ease-out-expo);
  cursor: default;
}

.tech-chip:hover {
  border-color: rgba(37, 99, 235, .2);
  background: var(--surface2);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(30, 40, 80, 0.05);
}

.tech-chip-icon {
  font-size: 1.3rem;
}

.tech-chip-name {
  font-size: .875rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -.01em;
}

.tech-chip-role {
  font-size: .75rem;
  color: var(--text3);
  font-family: var(--font-mono);
}

/* ---------- PROCESS PAGE ---------- */
.process-hero {
  padding: 10rem 0 4rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.process-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.process-hero .container {
  position: relative;
  z-index: 1;
}

.process-page-timeline {
  position: relative;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
}

/* Static background line */
.process-page-line-bg {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border2);
  transform: translateX(-50%);
  z-index: 1;
}

/* Glowing progress filling line */
.process-page-line-active {
  position: absolute;
  left: 50%;
  top: 0;
  height: 0%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--purple));
  transform: translateX(-50%);
  z-index: 2;
  transition: height 0.12s ease-out;
  box-shadow: 0 0 10px var(--accent), 0 0 18px var(--accent2);
}

.process-page-step {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
  position: relative;
  z-index: 3;
  transition: all 0.5s ease;
}

.process-page-title-side {
  display: flex;
  flex-direction: column;
  opacity: 0.45;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.process-page-step:nth-child(odd) .process-page-title-side {
  text-align: right;
  padding-right: 1.5rem;
  grid-column: 1;
  transform: translateX(-15px);
}

.process-page-step:nth-child(even) .process-page-title-side {
  text-align: left;
  padding-left: 1.5rem;
  grid-column: 3;
  transform: translateX(15px);
}

.process-page-side-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text3);
  letter-spacing: .08em;
  margin-bottom: 0.4rem;
  font-weight: 600;
  transition: color 0.4s;
}

.process-page-step.active .process-page-side-num {
  color: var(--accent);
}

.process-page-title-side h3 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--text);
  margin-top: 0.25rem;
  transition: color 0.4s;
}

.process-page-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.02);
  opacity: 0.45;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

[data-theme="dark"] .process-page-card {
  background: rgba(19, 27, 46, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.process-page-step:nth-child(odd) .process-page-card {
  grid-column: 3;
  transform: scale(0.98) translateX(15px);
}

.process-page-step:nth-child(even) .process-page-card {
  grid-column: 1;
  transform: scale(0.98) translateX(-15px);
}

/* Active step animations */
.process-page-step.active .process-page-title-side {
  opacity: 1;
  transform: translateX(0);
}

.process-page-step.active .process-page-card {
  opacity: 1;
  transform: scale(1.01) translateX(0);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08), 0 0 20px rgba(37, 99, 235, 0.04);
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .process-page-step.active .process-page-card {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.06);
  background: rgba(19, 27, 46, 0.85);
}

.process-page-card p {
  font-size: .925rem;
  color: var(--text2);
  line-height: 1.75;
}

.process-page-center {
  display: flex;
  justify-content: center;
  grid-column: 2;
}

.process-page-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border2);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  z-index: 5;
  box-shadow: 0 0 0 0px transparent;
}

/* Active Dot Glow & Pulse */
.process-page-step.active .process-page-dot {
  background: #ffffff;
  box-shadow: 0 0 15px var(--accent), 0 0 0 6px rgba(37, 99, 235, 0.18);
  animation: activeDotPulse 2s infinite ease-in-out;
}

[data-theme="dark"] .process-page-step.active .process-page-dot {
  box-shadow: 0 0 15px var(--accent), 0 0 0 6px rgba(59, 130, 246, 0.22);
}

@keyframes activeDotPulse {

  0%,
  100% {
    box-shadow: 0 0 12px var(--accent), 0 0 0 5px rgba(37, 99, 235, 0.18);
  }

  50% {
    box-shadow: 0 0 20px var(--accent), 0 0 0 8px rgba(37, 99, 235, 0.35);
  }
}

/* Responsive timeline layout */
@media(max-width:768px) {

  .process-page-line-bg,
  .process-page-line-active {
    left: 20px;
    transform: none;
  }

  .process-page-step {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 1;
  }

  .process-page-step:nth-child(odd) .process-page-title-side,
  .process-page-step:nth-child(even) .process-page-title-side,
  .process-page-step:nth-child(odd) .process-page-card,
  .process-page-step:nth-child(even) .process-page-card {
    transform: none !important;
    opacity: 0.5;
  }

  .process-page-step.active:nth-child(odd) .process-page-title-side,
  .process-page-step.active:nth-child(even) .process-page-title-side,
  .process-page-step.active:nth-child(odd) .process-page-card,
  .process-page-step.active:nth-child(even) .process-page-card {
    opacity: 1;
  }

  .process-page-step:nth-child(odd) .process-page-title-side,
  .process-page-step:nth-child(even) .process-page-title-side {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0;
    margin-bottom: 0.5rem;
  }

  .process-page-step:nth-child(odd) .process-page-card,
  .process-page-step:nth-child(even) .process-page-card {
    grid-column: 2;
    grid-row: 2;
    padding: 1.5rem;
  }

  .process-page-step .process-page-center {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-content: flex-start;
    padding-left: 10px;
    padding-top: 6px;
  }

  .process-page-step.active .process-page-dot {
    animation: none;
    box-shadow: 0 0 10px var(--accent), 0 0 0 4px rgba(37, 99, 235, 0.15);
  }
}

@media (max-width: 767px) {
  .process-page-step .process-page-center {
    padding-left: 14px;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {

  .process-page-title-side,
  .process-page-card {
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .process-page-line-active {
    transition: none !important;
  }

  .process-page-dot {
    animation: none !important;
  }
}

/* ---------- CONTACT PAGE ---------- */
.contact-hero {
  padding: 10rem 0 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.contact-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  margin-top: 4rem;
  align-items: flex-start;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.contact-info p {
  color: var(--text2);
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  transition: transform .25s var(--ease-out-expo);
}

.contact-item:hover {
  transform: translateX(4px);
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .06);
  border: 1px solid rgba(37, 99, 235, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text {}

.contact-item-label {
  font-size: .75rem;
  color: var(--text3);
  font-family: var(--font-mono);
  margin-bottom: .2rem;
}

.contact-item-val {
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
}

.contact-item-val a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item-val a:hover {
  color: var(--accent);
}

.wa-button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: #25D366;
  color: #fff;
  border-radius: 12px;
  padding: .9rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  margin-top: 1rem;
  transition: all .3s var(--ease-out-expo);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

.wa-button:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 22px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(30, 40, 80, 0.04);
  position: relative;
  overflow: hidden;
}

/* Unified inner layout */
.contact-form-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.contact-char-column {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.contact-fields-column {
  flex-grow: 1;
}

/* SVG Character container */
.character-container {
  width: 180px;
  height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.char-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-style: preserve-3d;
}

.character-container:hover {
  transform: rotateY(8deg) rotateX(-4deg);
}

/* Glow behind character */
.char-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
  filter: blur(25px);
  z-index: 0;
  top: 50px;
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
  transition: background 0.4s;
}

[data-theme="dark"] .char-glow {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Transition timings for head, visor, and HUDs */
.assist-head-group,
.assist-visor,
.assist-visor-pulse,
.assist-torso-group,
.assist-core-heart,
.assist-mic-tip,
.assist-hud-l,
.assist-hud-r {
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), fill 0.3s, stroke 0.3s, opacity 0.3s, d 0.5s;
}

/* --- ANIMATION STATES --- */

/* Idle state */
.character-container.idle {
  animation: assistantFloat 6s ease-in-out infinite;
}

.character-container.idle .assist-head-group {
  animation: headBob 6s ease-in-out infinite;
}

.character-container.idle .assist-hud-l {
  animation: hudFloatL 4.5s ease-in-out infinite;
}

.character-container.idle .assist-hud-r {
  animation: hudFloatR 5s ease-in-out infinite;
}

.character-container.idle .assist-orbit-1 {
  animation: orbitSpin1 15s linear infinite;
  transform-origin: 110px 185px;
}

.character-container.idle .assist-orbit-2 {
  animation: orbitSpin2 20s linear infinite;
  transform-origin: 110px 185px;
}

.character-container.idle .assist-core-heart {
  animation: coreHeartPulse 2.5s ease-in-out infinite;
  transform-origin: 110px 205px;
}

@keyframes assistantFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes headBob {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-3px) rotate(0.5deg);
  }
}

@keyframes hudFloatL {

  0%,
  100% {
    transform: rotateY(22deg) translate3d(0, 0, 15px);
  }

  50% {
    transform: rotateY(22deg) translate3d(0, -6px, 15px);
  }
}

@keyframes hudFloatR {

  0%,
  100% {
    transform: rotateY(-22deg) translate3d(0, 0, 15px);
  }

  50% {
    transform: rotateY(-22deg) translate3d(0, -5px, 15px);
  }
}

@keyframes orbitSpin1 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpin2 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@keyframes coreHeartPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 3px var(--cyan));
  }
}

/* Input focus states (Look/React toward the inputs on the right) */
.character-container.focus-name .assist-head-group {
  transform: translate(6px, -3px) rotate(2deg);
}

.character-container.focus-name .assist-visor-pulse {
  transform: translate(4px, -2px);
}

.character-container.focus-name .assist-hud-r {
  transform: rotateY(-12deg) translate3d(5px, -8px, 20px);
}

.character-container.focus-email .assist-head-group {
  transform: translate(6px, 0px) rotate(3deg);
}

.character-container.focus-email .assist-visor-pulse {
  transform: translate(4px, 0px);
}

.character-container.focus-email .assist-hud-r {
  transform: rotateY(-12deg) translate3d(5px, -3px, 20px);
}

.character-container.focus-service .assist-head-group {
  transform: translate(5px, 3px) rotate(2deg);
}

.character-container.focus-service .assist-visor-pulse {
  transform: translate(3px, 2px);
}

.character-container.focus-service .assist-hud-r {
  transform: rotateY(-15deg) translate3d(2px, 4px, 15px);
}

.character-container.focus-msg .assist-head-group {
  transform: translate(3px, 7px) rotate(4deg);
}

.character-container.focus-msg .assist-visor-pulse {
  transform: translate(2px, 4px);
}

.character-container.focus-msg .assist-hud-r {
  transform: rotateY(-18deg) translate3d(2px, 8px, 10px);
}

/* Typing animation state */
.character-container.typing .assist-head-group {
  animation: typingBob 0.3s infinite ease-in-out alternate;
}

.character-container.typing .assist-visor-pulse {
  stroke: var(--accent2);
  filter: drop-shadow(0 0 2px var(--accent2));
}

.character-container.typing .hud-line-1,
.character-container.typing .hud-line-2,
.character-container.typing .hud-line-3,
.character-container.typing .hud-line-4,
.character-container.typing .hud-line-5,
.character-container.typing .hud-line-6,
.character-container.typing .hud-line-7 {
  animation: codeLineFlash 0.25s infinite ease-in-out alternate;
}

.character-container.typing .hud-line-1 {
  animation-delay: 0.02s;
}

.character-container.typing .hud-line-2 {
  animation-delay: 0.06s;
}

.character-container.typing .hud-line-3 {
  animation-delay: 0.1s;
}

.character-container.typing .hud-line-4 {
  animation-delay: 0.14s;
}

.character-container.typing .hud-line-5 {
  animation-delay: 0.18s;
}

.character-container.typing .hud-line-6 {
  animation-delay: 0.22s;
}

.character-container.typing .hud-line-7 {
  animation-delay: 0.26s;
}

.character-container.typing .hud-chart-line {
  animation: chartJitter 0.15s infinite alternate ease-in-out;
}

@keyframes typingBob {
  0% {
    transform: translateY(0) rotate(1deg);
  }

  100% {
    transform: translateY(2px) rotate(2deg);
  }
}

@keyframes codeLineFlash {
  0% {
    opacity: 0.35;
    transform: scaleX(0.95);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes chartJitter {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-2px);
  }
}

/* Celebration / Success Animation state */
.character-container.success {
  animation: successPulse 2s infinite ease-in-out;
}

.character-container.success .assist-head-group {
  animation: successHeadBob 0.6s infinite alternate ease-in-out;
}

.character-container.success .assist-visor {
  stroke: var(--green);
  fill: linear-gradient(180deg, #10b981 0%, #064e3b 100%);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.character-container.success .assist-visor-pulse {
  stroke: #ffffff;
  filter: drop-shadow(0 0 4px #ffffff);
  d: path("M90 98 L102 106 L128 88");
  /* Morph visor wave to a clean checkmark */
}

.character-container.success .assist-mic-tip,
.character-container.success .assist-core-heart {
  fill: var(--green) !important;
  stroke: var(--green) !important;
  filter: drop-shadow(0 0 6px var(--green));
}

.character-container.success .assist-hud-l,
.character-container.success .assist-hud-r {
  animation: successHudsFloat 0.8s infinite alternate ease-in-out;
  opacity: 0.9;
}

.character-container.success .char-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
}

@keyframes successPulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes successHeadBob {
  0% {
    transform: rotate(-1deg) translateY(-2px);
  }

  100% {
    transform: rotate(1deg) translateY(2px);
  }
}

@keyframes successHudsFloat {
  0% {
    transform: translate3d(0, 0, 20px) rotateY(10deg);
  }

  100% {
    transform: translate3d(0, -12px, 30px) rotateY(15deg);
  }
}

/* Form groups and glows */
.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group .form-error {
  font-size: .72rem;
  color: var(--red);
  font-family: var(--font-mono);
  margin-top: .3rem;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: rgba(220, 38, 38, .5);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

label {
  font-size: .82rem;
  color: var(--text2);
  display: block;
  margin-bottom: .4rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1.15rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  outline: none;
  font-weight: 400;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--text3);
  opacity: 1;
  /* Firefox override */
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: rgba(15, 23, 42, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

input:focus,
textarea:focus,
select:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(37, 99, 235, 0.2), 0 0 40px rgba(6, 182, 212, 0.1);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 20px rgba(6, 182, 212, 0.25), 0 0 40px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.submit-btn {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: .95rem;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s var(--ease-out-expo);
  font-family: var(--font-body);
  margin-top: .25rem;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
}

.submit-btn span {
  position: relative;
  z-index: 1;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, .25);
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-right: .5rem;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem;
}

.form-success .check {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: checkBounce .5s var(--ease-spring);
}

@keyframes checkBounce {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.form-success p {
  color: var(--text2);
  line-height: 1.7;
}

@media(max-width:1024px) {
  .contact-form-inner {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .character-container {
    width: 140px;
    height: 190px;
  }
}

@media(max-width:768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  .character-container,
  .assist-head-group,
  .assist-visor,
  .assist-visor-pulse,
  .assist-torso-group,
  .assist-core-heart,
  .assist-hud-l,
  .assist-hud-r,
  .assist-orbit-1,
  .assist-orbit-2,
  .char-glow {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- FOOTER ---------- */
#global-footer {
  position: relative;
  background: var(--bg);
  padding: 6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 195, 255, 0.4), var(--accent), transparent);
  box-shadow: 0 0 30px 2px rgba(37, 99, 235, 0.2);
}

/* 1. CTA Strip */
.footer-cta-strip {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cta-strip-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.cta-strip-desc {
  font-size: 1.05rem;
  color: var(--text2);
}

.cta-strip-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 2. Main Grid */
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text3);
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-col a::after {
  content: '→';
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-left: 0.5rem;
  font-family: system-ui;
}

.footer-col a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 1.5rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* 3. Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text3);
}

/* Responsive */
@media(max-width:1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 4rem;
  }

  .footer-cta-strip {
    padding: 2.5rem;
  }
}

@media(max-width:768px) {
  .footer-cta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
  }

  .cta-strip-title {
    font-size: 1.75rem;
  }
}

@media(max-width:480px) {
  .footer-cta-strip {
    padding: 1.5rem;
  }
}

/* Mobile-only footer centering (<768px) */
@media (max-width: 767px) {
  #global-footer {
    text-align: center !important;
  }

  /* Single-column stacked layout */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Center the brand / logo block */
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Center the logo anchor (overrides the inline style flex-start) */
  .footer-brand .nav-logo {
    justify-content: center !important;
    width: 100% !important;
  }

  /* Limit description width and center it */
  .footer-brand p {
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  /* Center the availability pill */
  .availability-pill {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Center social icons row */
  .footer-socials {
    justify-content: center !important;
    width: 100% !important;
  }

  /* Center each nav/contact column heading and list */
  .footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-col h4 {
    text-align: center !important;
    width: 100% !important;
  }

  .footer-col ul {
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-col li {
    width: 100% !important;
    text-align: center !important;
  }

  .footer-col a {
    text-align: center !important;
  }

  /* Disable the translateX hover shift so centered links don't jump right */
  .footer-col a:hover {
    transform: none !important;
  }

  /* Hide the pseudo-element arrow on mobile to prevent layout shift */
  .footer-col a::after {
    display: none !important;
    content: none !important;
  }

  /* Center the bottom copyright bar */
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-bottom p {
    text-align: center !important;
    width: 100% !important;
  }
}

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}

.wa-tooltip {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: .8rem;
  padding: .45rem .9rem;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all .3s var(--ease-out-expo);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-weight: 500;
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: none;
}

.wa-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
  transition: all .3s var(--ease-out-expo);
  animation: wa-pulse 2.5s infinite;
  position: relative;
}

.wa-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  animation: waPing 2.5s infinite;
}

@keyframes waPing {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.wa-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .45);
  animation: none;
}

.wa-fab:hover::before {
  animation: none;
  opacity: 0;
}

@keyframes wa-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, .3)
  }

  50% {
    box-shadow: 0 4px 32px rgba(37, 211, 102, .55), 0 0 0 8px rgba(37, 211, 102, .08)
  }
}

/* ---------- SCROLL BAR ---------- */
::-webkit-scrollbar {
  width: 5px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px
}

/* ---------- UTILITY ---------- */
.text-accent {
  color: var(--accent);
}

.text-cyan {
  color: var(--cyan);
}

.text-purple {
  color: var(--purple);
}

.text-green {
  color: var(--green);
}

.mt-1 {
  margin-top: 1rem
}

.mt-2 {
  margin-top: 2rem
}

.mt-3 {
  margin-top: 3rem
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax-layer {
    transform: none !important;
  }

  .floating-stat-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile animation reduction */
@media (max-width: 768px) {
  .hero-blob {
    opacity: 0.15;
    animation-duration: 30s;
  }

  .hero-title-glow {
    display: none;
  }

  .service-card:hover {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }

  .portfolio-item:hover {
    transform: none;
  }

  .why-item:hover {
    transform: none;
  }

  section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero-inner {
    padding: 5rem 1.5rem 2rem;
  }
}

/* ---------- PRELOADER ---------- */
body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
  animation: bodyScrollUnlock 0.1s 4.5s forwards;
}

@keyframes bodyScrollUnlock {
  to {
    overflow: auto !important;
    height: auto !important;
  }
}

.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;

  /* Exact copy of the website/body background styles for seamless transition */
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    radial-gradient(ellipse 100% 100% at 75% 30%, var(--blob-color-1) 0%, transparent 80%),
    radial-gradient(ellipse 90% 90% at 20% 70%, var(--blob-color-2) 0%, transparent 80%),
    radial-gradient(ellipse 80% 80% at 80% 90%, var(--blob-color-3) 0%, transparent 70%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;

  /* Fallback/safeguard: if JS hangs, fade out after 4.5 seconds */
  animation: preloaderTimeout 0.5s cubic-bezier(0.25, 1, 0.5, 1) 4.5s forwards;
}

.preloader-overlay.zoom-out {
  /* Fade out the full overlay background */
  transition: opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.1s cubic-bezier(0.25, 1, 0.5, 1) !important;
  opacity: 0;
  visibility: hidden;
}

.preloader-overlay.zoom-out .preloader-content {
  /* Zoom in the black box inside the overlay */
  animation: preloaderBoxZoom 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes preloaderBoxZoom {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: scale(2.0);
    opacity: 0;
    filter: blur(16px);
  }
}

.preloader-content {
  width: clamp(320px, 90vw, 1000px);
  background-color: #05070d;
  /* Premium dark background box */
  border-radius: 32px;
  padding: 60px 40px;
  box-shadow: 0 0 60px rgba(0, 195, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  /* Subtle blue glow and inner border */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100000;
  transform-origin: center center;
  will-change: transform;
}

.preloader-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

@media (max-width: 768px) {
  .preloader-content {
    padding: 40px 20px;
    border-radius: 24px;
    width: clamp(280px, 92vw, 500px);
  }
}

/* Text Styles */
.preloader-svg-text,
.preloader-svg-text-mask-only {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 94px;
  letter-spacing: -0.035em;
  text-transform: none;
}

.preloader-svg-text {
  fill: #ffffff;
  stroke: #05070d;
  /* Matches the black box background to cleanly hide artifacts */
  stroke-width: 3px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.preloader-svg-text-mask-only {
  fill: #ffffff;
  stroke: none;
}

/* Liquid Wave Animation CSS */
.wave-rise-group {
  animation: preloaderWaveRise 2.8s cubic-bezier(0.5, 0, 0.3, 1) forwards;
}

.preloader-wave-path {
  transform-origin: center bottom;
}

.preloader-wave-path-front {
  fill: url(#preloader-accent-grad);
  opacity: 0.95;
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 12px var(--cyan));
  animation: waveScrollFront 3s linear infinite;
}

.preloader-wave-path-back {
  fill: url(#preloader-accent-grad);
  opacity: 0.6;
  filter: brightness(0.85) saturate(1.1);
  animation: waveScrollBack 2s linear infinite;
}

@keyframes preloaderWaveRise {
  0% {
    transform: translateY(120px);
  }

  100% {
    transform: translateY(-130px);
  }
}

@keyframes waveScrollFront {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-1000px);
  }
}

@keyframes waveScrollBack {
  0% {
    transform: translateX(-1000px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes preloaderTimeout {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ---------- TECHNOLOGY PAGE SECTIONS ---------- */
.tech-hero {
  padding: 10rem 0 4rem;
  background: transparent;
  position: relative;
  text-align: center;
}

.tech-categories-section,
.tech-choices-section,
.tech-future-section,
.tech-cta-section {
  padding: 4rem 0;
  background: transparent;
}

/* Category Grid */
.tech-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.tech-category-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.tech-category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

/* Card image styles */
.tech-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

/* Image blend gradient */
.tech-card-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--surface));
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.4s var(--ease-out-expo);
}

.tech-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.tech-category-card:hover .tech-card-img {
  transform: scale(1.05);
}

.tech-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tech-category-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.tech-category-icon svg {
  width: 24px;
  height: 24px;
}

.tech-category-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.tech-category-card p {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Tech Chips */
.tech-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  /* Push chips to the bottom if description height varies */
}

.tech-stack-chip {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  transition: all 0.2s ease;
}

.tech-category-card:hover .tech-stack-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

/* Choices Grid */
.tech-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tech-choice-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-choice-card>*:not(.card-bg-img) {
  position: relative;
  z-index: 2;
}

.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(1px);
  z-index: 0;
  transition: transform 0.8s var(--ease-out-expo), opacity 0.2s;
  pointer-events: none;
}

.tech-choice-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tech-choice-card:hover .card-bg-img {
  transform: scale(1.05);
  opacity: 0.4;
}

.tech-choice-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: black;
  margin-bottom: 0.5rem;
}

.tech-choice-card p {
  font-size: 0.9rem;
  color: var(--text3);
  line-height: 1.5;
}

/* Future Grid */
.tech-future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.tech-future-card {
  background: transparent;
  border: 1px dashed var(--border2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-future-card:hover {
  border-color: var(--accent);
  background: rgba(79, 70, 229, 0.02);
}

.tech-future-card h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* =========================================================================
   PHASE 2: TECHNOLOGY PREMIUM UPGRADES
   ========================================================================= */

/* 1. Floating Tech Marquee */
.tech-marquee-section {
  padding: 2rem 0 4rem;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.tech-marquee-section::before,
.tech-marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.tech-marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.tech-marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.tech-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1.5rem;
}

.tech-marquee-content {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
  animation: scroll-marquee 25s linear infinite;
}

.tech-marquee:hover .tech-marquee-content {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% - 1.5rem));
  }
}

/* 2. Ecosystem Workflow */
.tech-ecosystem-section {
  padding: 4rem 0;
}

.workflow-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0;
  flex-wrap: nowrap;
}

.workflow-line {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.5;
}

.workflow-step {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0.5rem;
}

.workflow-node {
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 1rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.35s ease;
  cursor: default;
}

.workflow-step:hover .workflow-node {
  transform: translateY(-5px);
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

@media(max-width:900px) {
  .workflow-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .workflow-line {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
  }
}

/* 3. Technology In Action */
.tech-action-section {
  padding: 4rem 0;
}

.tech-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-action-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-action-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tech-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  background: var(--surface2);
}

.tech-action-card:hover::after {
  opacity: 1;
}

.tech-action-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.tech-action-card p {
  font-size: 0.95rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* 4. Trust Banner */
.tech-trust-section {
  padding: 4rem 0 6rem;
}

.tech-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tech-trust-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--surface2);
  /* solid fallback so the image overlay works cleanly */
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-trust-card>*:not(.card-bg-img) {
  position: relative;
  z-index: 2;
}

.tech-trust-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tech-trust-card:hover .card-bg-img {
  transform: scale(1.05);
  opacity: 0.5;
}

.tech-trust-icon {
  color: var(--accent2);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.tech-trust-card:hover .tech-trust-icon {
  transform: scale(1.1);
}

.tech-trust-icon svg {
  width: 32px;
  height: 32px;
}

.tech-trust-card h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tech-trust-card p {
  font-size: 0.9rem;
  color: var(--text3);
  line-height: 1.5;
}

/* ---------- BUTTON HOVER READABILITY & VISIBILITY FIXES ---------- */
.btn-primary,
.btn-ghost,
.btn-primary-sm,
.btn-ghost-sm,
.nav-cta,
.submit-btn,
.wa-button,
.wa-fab {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before,
.btn-ghost::before,
.btn-primary-sm::before,
.btn-ghost-sm::before,
.nav-cta::before,
.submit-btn::before,
.wa-button::before {
  z-index: 1 !important;
}

.btn-primary>*,
.btn-ghost>*,
.btn-primary-sm>*,
.btn-ghost-sm>*,
.nav-cta>*,
.submit-btn>*,
.wa-button>*,
.wa-fab>* {
  position: relative;
  z-index: 2 !important;
}

.btn-primary span,
.btn-ghost span,
.btn-primary-sm span,
.btn-ghost-sm span,
.nav-cta span,
.submit-btn span,
.wa-button span,
.wa-fab span {
  position: relative;
  z-index: 2 !important;
}

.btn-primary svg,
.btn-ghost svg,
.btn-primary-sm svg,
.btn-ghost-sm svg,
.nav-cta svg,
.submit-btn svg,
.wa-button svg,
.wa-fab svg {
  position: relative;
  z-index: 2 !important;
}


/* ---------- FOOTER SOCIAL MEDIA LINKS ---------- */
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
}

.social-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
}

.social-link:hover {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow);
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* ---------- ABOUT PAGE TEAM SECTION UPGRADES ---------- */
.about-team-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .about-team-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px;
  }
}

/* Change sizes of member card images to 110px–140px (suggested 110px) */
.about-team-img-wrapper-sm {
  width: 110px !important;
  height: 110px !important;
  border-radius: 24px !important;
  margin: 0 auto 1.25rem !important;
  /* Centered in card */
}

.about-team-img-sm {
  width: 100% !important;
  height: 100% !important;
  border-radius: 22px !important;
  object-fit: cover;
}

.about-team-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 22px !important;
  object-fit: cover;
}

/* Social icons in team cards */
.about-team-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.about-team-socials .social-link {
  width: 32px;
  height: 32px;
}

.about-team-socials .social-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- GLOBAL RESPONSIVENESS OVERRIDES & REFINEMENTS ---------- */
@media(max-width:768px) {

  /* Prevent sticky hovers on touch devices */
  .about-story-card:hover,
  .vm-card:hover,
  .about-value-card:hover,
  .services-addon-card:hover,
  .tech-category-card:hover,
  .tech-action-card:hover,
  .tech-trust-card:hover,
  .tech-choice-card:hover,
  .who-group-photo:hover,
  .about-team-card:hover,
  .about-team-featured:hover,
  .showcase-card:hover,
  .project-card:hover,
  .why-item:hover,
  .services-workflow-step:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .tech-category-card:hover .tech-card-img,
  .tech-trust-card:hover::before,
  .tech-choice-card:hover::before {
    transform: none !important;
  }
}

@media(max-width:480px) {

  /* Scaled headings for small mobile viewports */
  h1,
  .hero-title,
  .about-hero h1,
  .services-page-hero h1,
  .portfolio-hero h1,
  .tech-hero h1,
  .process-hero h1,
  .contact-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
  }

  h2,
  .who-title,
  .coming-soon-sec h2 {
    font-size: clamp(1.5rem, 7vw, 1.95rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
  }

  h3 {
    font-size: clamp(1.2rem, 6vw, 1.35rem) !important;
  }

  /* Stack action buttons full width for touch friendliness */
  .hero-actions,
  .who-teaser-actions,
  .about-cta-actions,
  .portfolio-cta-actions,
  .about-teaser-actions,
  .services-hero-actions,
  .cta-actions,
  .portfolio-hero-actions,
  .wa-button {
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-actions a,
  .who-teaser-actions a,
  .about-cta-actions a,
  .portfolio-cta-actions a,
  .about-teaser-actions a,
  .services-hero-actions button,
  .cta-actions a,
  .portfolio-hero-actions a,
  .wa-button {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Modals optimization on small screens */
  .modal-overlay {
    padding: 1rem !important;
  }

  .modal {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  .modal h2 {
    font-size: 1.35rem !important;
  }

  .modal-close {
    top: 1rem !important;
    right: 1rem !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
}

/* =========================================================================
   WHO BENEFITS MOST: OVERLAPPING CMS STACKING SLIDER
   ========================================================================= */
.who-needs {
  padding: 5rem 0;
  background: var(--bg);
  overflow: hidden;
  /* Prevent horizontal scrollbars from off-screen cards */
}

.benefits-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 3.5rem 0 0;
  box-sizing: border-box;
  overflow: hidden;
  /* Contain the stack inside the slider wrapper */
}

.benefits-viewport {
  position: relative;
  width: 100%;
  height: 280px;
  /* Desktop viewport height */
  overflow: hidden;
  /* Contain stacked card deck boundaries */
}

.benefits-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.benefits-track.who-grid {
  display: block !important;
  margin: 0 !important;
  gap: 0 !important;
}

.benefits-card {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  /* Width of desktop cards */
  height: 100% !important;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(200px) scale(0.79);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* Contain contents within card boundaries */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    z-index 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  animation: none !important;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 2rem;
}

/* Inactive card text hiding to prevent bleeding */
.benefits-card p {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.benefits-card:not(.benefits-active) p {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

/* Inactive title and icon badge scaling */
.benefits-card h4 {
  transition: font-size 0.4s ease, opacity 0.4s ease;
}

.benefits-card:not(.benefits-active) h4 {
  font-size: 0.95rem;
  /* Inactive small title */
}

.benefits-card .benefits-badge {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.benefits-card:not(.benefits-active) .benefits-badge {
  transform: scale(0.8);
  /* Inactive small icon */
}

/* Small circular badge styling */
.benefits-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  background: var(--surface2);
}

/* Fully Opaque Pastel backgrounds for Light Mode */
.benefits-card[data-card-index="0"] {
  background: linear-gradient(135deg, #eef5ff, #dbe9fe) !important;
}

.benefits-card[data-card-index="1"] {
  background: linear-gradient(135deg, #eefdf5, #d1fae5) !important;
}

.benefits-card[data-card-index="2"] {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
}

.benefits-card[data-card-index="3"] {
  background: linear-gradient(135deg, #fff5f5, #fee2e2) !important;
}

.benefits-card[data-card-index="4"] {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff) !important;
}

.benefits-card[data-card-index="5"] {
  background: linear-gradient(135deg, #ecfeff, #cffafe) !important;
}

.benefits-card[data-card-index="6"] {
  background: linear-gradient(135deg, #fdf2f8, #fbcfe8) !important;
}

.benefits-card[data-card-index="7"] {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
}

.benefits-card[data-card-index="8"] {
  background: linear-gradient(135deg, #f7fee7, #ecfccb) !important;
}

/* Fully Opaque Pastel/Deep backgrounds for Dark Mode (maintaining contrast) */
[data-theme="dark"] .benefits-card[data-card-index="0"] {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
}

[data-theme="dark"] .benefits-card[data-card-index="1"] {
  background: linear-gradient(135deg, #064e3b, #022c22) !important;
}

[data-theme="dark"] .benefits-card[data-card-index="2"] {
  background: linear-gradient(135deg, #451a03, #290f02) !important;
}

[data-theme="dark"] .benefits-card[data-card-index="3"] {
  background: linear-gradient(135deg, #450a0a, #270303) !important;
}

[data-theme="dark"] .benefits-card[data-card-index="4"] {
  background: linear-gradient(135deg, #3b0764, #22033c) !important;
}

[data-theme="dark"] .benefits-card[data-card-index="5"] {
  background: linear-gradient(135deg, #083344, #041d28) !important;
}

[data-theme="dark"] .benefits-card[data-card-index="6"] {
  background: linear-gradient(135deg, #500724, #2d0313) !important;
}

[data-theme="dark"] .benefits-card[data-card-index="7"] {
  background: linear-gradient(135deg, #431407, #240a02) !important;
}

[data-theme="dark"] .benefits-card[data-card-index="8"] {
  background: linear-gradient(135deg, #1a2e05, #0d1a02) !important;
}

/* Custom Badge Backgrounds & Borders matching each card's theme in Light Mode */
.benefits-card[data-card-index="0"] .benefits-badge {
  background: #dbe9fe;
  border-color: rgba(37, 99, 235, 0.15);
}

.benefits-card[data-card-index="1"] .benefits-badge {
  background: #d1fae5;
  border-color: rgba(5, 150, 105, 0.15);
}

.benefits-card[data-card-index="2"] .benefits-badge {
  background: #fef3c7;
  border-color: rgba(217, 119, 6, 0.15);
}

.benefits-card[data-card-index="3"] .benefits-badge {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.15);
}

.benefits-card[data-card-index="4"] .benefits-badge {
  background: #f3e8ff;
  border-color: rgba(124, 58, 237, 0.15);
}

.benefits-card[data-card-index="5"] .benefits-badge {
  background: #cffafe;
  border-color: rgba(8, 145, 178, 0.15);
}

.benefits-card[data-card-index="6"] .benefits-badge {
  background: #fbcfe8;
  border-color: rgba(219, 39, 119, 0.15);
}

.benefits-card[data-card-index="7"] .benefits-badge {
  background: #ffedd5;
  border-color: rgba(217, 119, 6, 0.15);
}

.benefits-card[data-card-index="8"] .benefits-badge {
  background: #ecfccb;
  border-color: rgba(101, 163, 13, 0.15);
}

/* Custom Badge Backgrounds & Borders matching each card's theme in Dark Mode */
[data-theme="dark"] .benefits-card[data-card-index="0"] .benefits-badge {
  background: #1e293b;
  border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .benefits-card[data-card-index="1"] .benefits-badge {
  background: #064e3b;
  border-color: rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .benefits-card[data-card-index="2"] .benefits-badge {
  background: #78350f;
  border-color: rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .benefits-card[data-card-index="3"] .benefits-badge {
  background: #7f1d1d;
  border-color: rgba(248, 113, 113, 0.2);
}

[data-theme="dark"] .benefits-card[data-card-index="4"] .benefits-badge {
  background: #581c87;
  border-color: rgba(192, 132, 252, 0.2);
}

[data-theme="dark"] .benefits-card[data-card-index="5"] .benefits-badge {
  background: #164e63;
  border-color: rgba(34, 211, 238, 0.2);
}

[data-theme="dark"] .benefits-card[data-card-index="6"] .benefits-badge {
  background: #831843;
  border-color: rgba(244, 114, 182, 0.2);
}

[data-theme="dark"] .benefits-card[data-card-index="7"] .benefits-badge {
  background: #7c2d12;
  border-color: rgba(251, 146, 60, 0.2);
}

[data-theme="dark"] .benefits-card[data-card-index="8"] .benefits-badge {
  background: #365314;
  border-color: rgba(163, 230, 53, 0.2);
}

/* Stacking positions and scale rules (6 visible cards in stack on desktop, 20px offset, opacity 0.20) */

/* Card 1: Front active card */
.benefits-card.benefits-active {
  z-index: 9;
  opacity: 1;
  transform: translateX(0px) scale(1);
  pointer-events: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .benefits-card.benefits-active {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Card 2: peeks on the right */
.benefits-card.benefits-next {
  z-index: 8;
  opacity: 0.20;
  transform: translateX(20px) scale(0.97);
  pointer-events: none;
}

/* Card 3: peeks further right */
.benefits-card.benefits-third {
  z-index: 7;
  opacity: 0.20;
  transform: translateX(40px) scale(0.94);
  pointer-events: none;
}

/* Card 4 */
.benefits-card.benefits-fourth {
  z-index: 6;
  opacity: 0.20;
  transform: translateX(60px) scale(0.91);
  pointer-events: none;
}

/* Card 5 */
.benefits-card.benefits-fifth {
  z-index: 5;
  opacity: 0.20;
  transform: translateX(80px) scale(0.88);
  pointer-events: none;
}

/* Card 6 */
.benefits-card.benefits-sixth {
  z-index: 4;
  opacity: 0.20;
  transform: translateX(100px) scale(0.85);
  pointer-events: none;
}

/* Card 7 (Hidden on desktop to keep 5 cards stacked behind) */
.benefits-card.benefits-seventh {
  z-index: 3;
  opacity: 0;
  transform: translateX(120px) scale(0.82);
  pointer-events: none;
}

/* Card 8+: hidden upcoming card */
.benefits-card.benefits-far {
  z-index: 2;
  opacity: 0;
  transform: translateX(150px) scale(0.79);
  pointer-events: none;
}

/* Past cards (slid into the stack behind) */
.benefits-card.benefits-past {
  z-index: 1;
  opacity: 0;
  transform: translateX(120px) scale(0.82);
  pointer-events: none;
}

/* Navigation wrapper positioning */
.benefits-nav-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  /* Align arrows to the left */
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* RESPONSIVE OVERRIDES */

/* Tablet: Reduced card width and tighter translation step (15px offsets, 5 cards visible) */
@media (max-width: 1024px) {
  .benefits-viewport {
    height: 300px;
  }

  .benefits-card {
    max-width: 380px;
    padding: 1.75rem;
  }

  .benefits-card.benefits-active {
    transform: translateX(0px) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .benefits-card.benefits-next {
    transform: translateX(15px) scale(0.97);
    opacity: 0.20;
  }

  .benefits-card.benefits-third {
    transform: translateX(30px) scale(0.94);
    opacity: 0.20;
  }

  .benefits-card.benefits-fourth {
    transform: translateX(45px) scale(0.91);
    opacity: 0.20;
  }

  .benefits-card.benefits-fifth {
    transform: translateX(60px) scale(0.88);
    opacity: 0.20;
  }

  .benefits-card.benefits-sixth,
  .benefits-card.benefits-seventh {
    transform: translateX(75px) scale(0.85);
    opacity: 0;
  }

  .benefits-card.benefits-far {
    transform: translateX(100px) scale(0.79);
    opacity: 0;
  }

  .benefits-card.benefits-past {
    transform: translateX(75px) scale(0.85);
    opacity: 0;
  }
}

/* Mobile: Single card + partial next card preview (35px peeking edge) */
@media (max-width: 768px) {
  .benefits-slider {
    padding: 0 1.5rem;
  }

  .benefits-viewport {
    height: 330px;
  }

  .benefits-card {
    max-width: 260px;
    padding: 1.5rem;
  }

  .benefits-card.benefits-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0px) scale(1);
    pointer-events: auto;
  }

  .benefits-card.benefits-next {
    opacity: 0.20;
    visibility: visible;
    transform: translateX(35px) scale(0.96);
    pointer-events: none;
  }

  .benefits-card.benefits-third,
  .benefits-card.benefits-fourth,
  .benefits-card.benefits-fifth,
  .benefits-card.benefits-sixth,
  .benefits-card.benefits-seventh,
  .benefits-card.benefits-far,
  .benefits-card.benefits-past {
    opacity: 0;
    visibility: hidden;
    transform: translateX(35px) scale(0.96);
    pointer-events: none;
  }
}

/* =========================================================================
   PROJECT OVERVIEW MODAL SYSTEM
   ========================================================================= */
.project-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(11, 15, 25, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
  padding: 1.5rem;
}

.project-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.92);
  transition: transform 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-clip: padding-box;
}

:root[data-theme="dark"] .project-modal-container {
  background: rgba(19, 27, 46, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.05);
}

:root[data-theme="light"] .project-modal-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(30, 40, 80, 0.1);
  box-shadow: 0 25px 50px -12px rgba(30, 40, 80, 0.15);
}

.project-modal-overlay.open .project-modal-container {
  transform: scale(1);
}

.project-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  transform: rotate(90deg);
}

.project-modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.project-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-modal-industry {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.project-modal-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.project-modal-status.live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.15);
}

.project-modal-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.project-modal-tagline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.project-modal-section {
  margin-bottom: 1.5rem;
}

.project-modal-section h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.project-modal-section p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text2);
}

.project-modal-features-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.project-modal-features-list li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.project-modal-features-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 0.5em;
  flex-shrink: 0;
}

.project-modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.project-modal-tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s ease;
}

.project-modal-tech-badge:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.project-modal-body::-webkit-scrollbar {
  width: 6px;
}

.project-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.project-modal-body::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}

.project-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text3);
}

body.project-modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

@media (max-width: 640px) {
  .project-modal-overlay {
    padding: 1rem;
  }

  .project-modal-body {
    padding: 1.75rem;
  }

  .project-modal-title {
    font-size: 1.6rem;
  }

  .project-modal-tagline {
    font-size: 0.95rem;
  }

  .project-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
  }
}

/* Mobile responsiveness fixes (<768px) for Home and Services page hero sections */
@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .hero-visual,
  .hero-illustration,
  .illustration-wrapper {
    display: none !important;
  }

  .services-hero-visual {
    display: none !important;
  }

  /* Mobile stack for Cloud Solutions Mockup to prevent overflow alignment issues */
  .cloud-nodes-grid {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: auto;
  }

  .cloud-connection-lines {
    display: none;
  }

  /* Mobile-only micro-adjustments for Home Page Hero */
  .hero-badge::before {
    display: none !important;
  }

  h1.hero-title {
    font-size: clamp(2.85rem, 10vw, 3.68rem) !important;
  }

  /* Mobile layout change: show mobile card and hide desktop container */
  .mobile-only-who-card {
    display: block !important;
    margin: 1.5rem auto 2rem;
  }

  .who-right {
    display: none !important;
  }

  /* Mobile-only horizontal slider for What We Build section */
  .services-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
    margin-top: 1.5rem !important;
  }

  .services-carousel-wrapper::-webkit-scrollbar {
    display: none;
  }

  .services-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem;
    padding: 0 1.5rem;
    width: max-content;
    will-change: transform;
  }

  .services-carousel-track .service-card {
    flex: 0 0 280px;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0;
    padding: 1.5rem 1.25rem !important;
    transform: none !important;
    transition: none !important;
  }

  .services-carousel-track .service-icon {
    margin-bottom: 1rem !important;
  }

  .services-carousel-track .service-desc {
    margin-bottom: 1rem !important;
  }

  .services-section .section-label {
    margin-bottom: 0.5rem !important;
  }

  .services-section h2.section-title {
    font-size: 1.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  .services-section .section-sub {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .carousel-dots {
    display: flex !important;
    margin-top: 1.5rem !important;
  }

  .services-section {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 2rem 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile overrides for Selected Work section */
  .projects-header .btn-ghost {
    display: none !important;
  }

  .mobile-projects-btn-wrap {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .mobile-projects-btn-wrap .btn-ghost {
    display: inline-flex !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Mobile overrides for Who We Are section - Explore Our Story button */
  .btn-link-sm {
    border: 1px solid var(--accent);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s var(--ease-out-expo);
  }

  /* Portfolio Page Mobile Overrides */
  .portfolio-hero-visual {
    display: none !important;
  }

  .portfolio-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .featured-project-card .mobile-only {
    display: flex !important;
  }

  .featured-project-card .desktop-only {
    display: none !important;
  }

  .featured-mockup-panel.mobile-only {
    height: auto !important;
    min-height: 180px;
  }

  .featured-info .btn-primary {
    align-self: center !important;
  }

  /* Mobile Navigation UX Active States */
  .mobile-menu {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .mobile-menu a {
    text-align: center !important;
    width: max-content !important;
  }

  .mobile-menu a.active {
    color: var(--accent) !important;
    background: var(--glow) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 100px !important;
    font-weight: 800 !important;
    width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05) !important;
    margin-left: 0 !important;
    transition: all 0.25s ease !important;
  }
}

/* Custom visual styling for Shantilal Super Mart project card visual mockup */
.visual-store {
  width: 80%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Force balanced 2x2 layout on desktop/laptop screens for 4 project cards */
@media (min-width: 992px) {
  .project-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Floating cards styling for Shantilal project on Home Page */
.floating-card.shantilal-floating-growth {
  bottom: 15%;
  left: -8%;
  animation: floatCard2 4.6s ease-in-out infinite;
}

.floating-card.shantilal-floating-stock {
  top: 20%;
  right: -8%;
  animation: floatCard1 5.8s ease-in-out infinite;
}

.showcase-card.active-project:hover .shantilal-floating-growth {
  transform: translateY(12px) translateX(-8px) translateZ(35px);
}

.showcase-card.active-project:hover .shantilal-floating-stock {
  transform: translateY(-12px) translateX(8px) translateZ(30px);
}

/* --------------------------------------------------------- */
/* PORTFOLIO MORE WORKS GRID: STATIC CARDS, FULL SCREENSHOTS  */
/* --------------------------------------------------------- */

/* Card: let height grow naturally from content  -  no forced aspect-ratio */
.project-grid .showcase-card {
  position: relative !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  filter: none !important;
  aspect-ratio: unset !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
  background: var(--surface) !important;
}

/* Disable all hover animations / lift effects */
.project-grid .showcase-card:hover {
  transform: none !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
  border-color: var(--border2) !important;
}

/* Image wrapper: no fixed height  -  shrinks/grows with the image */
.project-grid .showcase-visual {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--border) !important;
  transition: none !important;
  flex-shrink: 0 !important;
}

/* Image: full width, natural height  -  shows ENTIRE screenshot, no cropping */
.project-grid .showcase-visual img {
  width: 50% !important;
  height: auto !important;
  display: block !important;
  object-fit: unset !important;
  transition: none !important;
}

/* Kill any hover scale on the image */
.project-grid .showcase-card:hover .showcase-visual>* {
  transform: none !important;
}

/* Content body: comfortable spacing, flex column */
.project-grid .showcase-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  padding: 1.75rem !important;
}

/* Zero out the inline margin-bottom on the badge wrapper */
.project-grid .showcase-body>div:first-child {
  margin-bottom: 0 !important;
}

.project-grid .showcase-body h3 {
  font-size: 1.15rem !important;
  margin: 0 !important;
}

.project-grid .showcase-body p {
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.project-grid .showcase-stack {
  margin-top: 0 !important;
  gap: 0.35rem !important;
}

.project-grid .stack-badge {
  font-size: 0.7rem !important;
  padding: 0.15rem 0.45rem !important;
}

.project-grid .showcase-body .btn-ghost {
  margin-top: auto !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* Tablet: keep same natural sizing, just ensure no overflow */
@media (max-width: 991px) {
  .project-grid .showcase-card {
    aspect-ratio: unset !important;
    height: auto !important;
  }
}

/* Mobile: single column, full image still visible */
@media (max-width: 767px) {
  .project-grid .showcase-card {
    aspect-ratio: unset !important;
    height: auto !important;
  }

  .project-grid .showcase-body {
    padding: 1.25rem !important;
    gap: 0.7rem !important;
  }

  .project-grid .showcase-body p {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
  }
}

@media (max-width: 480px) {
  .project-grid .showcase-body {
    padding: 1.1rem !important;
    gap: 0.65rem !important;
  }
}

/* =========================================================================
   PROJECT OVERVIEW & PORTFOLIO MODAL VIDEO PLAYER
   ========================================================================= */
.modal-video-wrapper,
.project-modal-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 1.25rem 0 1.5rem 0;
  background: #090d16;
  border: 1px solid var(--border2);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:root[data-theme="dark"] .modal-video-wrapper,
:root[data-theme="dark"] .project-modal-video-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.12);
}

:root[data-theme="light"] .modal-video-wrapper,
:root[data-theme="light"] .project-modal-video-wrapper {
  border: 1px solid rgba(30, 40, 80, 0.12);
  box-shadow: 0 16px 36px -8px rgba(30, 40, 80, 0.15);
}

.modal-video-player,
.project-modal-video-player {
  width: 100%;
  max-height: 440px;
  display: block;
  object-fit: contain;
  background: #000;
  outline: none;
  border-radius: 13px;
}