/* ============================================
   href.solutions — Core Styles
   Dark-Tech / Cyber-Modern Aesthetic
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d14;
  --bg-card: rgba(13, 14, 22, 0.85);
  --bg-glass: rgba(13, 14, 22, 0.6);
  --bg-nav: rgba(10, 10, 15, 0.85);
  
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  
  --accent-blue: #0066ff;
  --accent-cyan: #00e5ff;
  --accent-purple: #7b2fff;
  --accent-violet: #a855f7;
  --accent-electric: #2563ff;
  
  --neon-blue: rgba(0, 102, 255, 0.8);
  --neon-cyan: rgba(0, 229, 255, 0.8);
  --neon-purple: rgba(123, 47, 255, 0.6);
  
  --glow-blue: 0 0 20px rgba(0, 102, 255, 0.3);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
  --glow-purple: 0 0 20px rgba(123, 47, 255, 0.3);
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 229, 255, 0.2);
  
  /* Typography */
  --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-wide: 1400px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-Index Scale */
  --z-background: -1;
  --z-content: 1;
  --z-card: 10;
  --z-nav: 1000;
  --z-overlay: 2000;
  --z-cursor: 9999;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- Section Styles --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3), 0 0 40px rgba(0, 229, 255, 0.1);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  transition: all var(--transition-base);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-blue), var(--accent-purple), transparent);
  opacity: 0.5;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.nav-logo .dot {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-logo:hover {
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--transition-base);
  z-index: 2;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

/* Mobile Navigation */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 2;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(30px);
  z-index: var(--z-nav);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.mobile-menu a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
}

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.1);
}

/* Neon Tracer Effect on Buttons */
.btn-tracer {
  position: relative;
  isolation: isolate;
}

.btn-tracer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--tracer-angle, 0deg), transparent 40%, var(--accent-cyan), var(--accent-blue), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-tracer:hover::before {
  opacity: 1;
}

.btn-tracer::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-secondary);
  border-radius: inherit;
  z-index: -1;
}

.btn-tracer:hover::after {
  background: linear-gradient(135deg, var(--bg-secondary), rgba(0, 229, 255, 0.05));
}

/* Fix: btn-primary + btn-tracer combo was covering the gradient fill
   with a dark inset, leaving near-black text unreadable. Keep the
   solid gradient fill visible under the tracer glow instead. */
.btn-primary.btn-tracer::after {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
}

.btn-primary.btn-tracer:hover::after {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
}

/* --- Cards --- */
.card-3d {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-base);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
}

.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(0, 229, 255, 0.15) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: rgba(0, 229, 255, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 229, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-3d:hover::before {
  opacity: 1;
}

.card-3d:hover::after {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  margin-bottom: 20px;
  color: var(--accent-cyan);
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.card-3d:hover .card-icon {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  transform: translateZ(10px);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* --- Tracer Border Animation --- */
.tracer-border {
  position: relative;
  overflow: hidden;
}

.tracer-border .tracer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tracer-border .tracer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  border-radius: 2px;
  offset-path: rect(0 100% 100% 0);
  animation: tracer-move 4s linear infinite;
}

@keyframes tracer-move {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 560px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 700px;
  height: 500px;
  perspective: 1200px;
  z-index: 1;
}

.browser-mockup {
  width: 100%;
  height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(3deg);
  transform-style: preserve-3d;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 229, 255, 0.05);
  position: relative;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.browser-content {
  padding: 24px;
  position: relative;
  height: calc(100% - 44px);
  overflow: hidden;
}

/* Wireframe Animation in Browser */
.wireframe-line {
  position: absolute;
  background: rgba(0, 229, 255, 0.15);
  border-radius: 4px;
  animation: wireframe-appear 2s ease-out forwards;
  opacity: 0;
}

@keyframes wireframe-appear {
  0% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; transform: scaleX(1); }
}

.wireframe-block {
  position: absolute;
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 6px;
  animation: block-assemble 1.5s ease-out forwards;
  opacity: 0;
}

@keyframes block-assemble {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.code-fragment {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0, 229, 255, 0.3);
  white-space: nowrap;
  animation: code-blink 3s ease-in-out infinite;
}

@keyframes code-blink {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 0.4; }
}

/* --- Services Carousel --- */
.carousel-section {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 40s linear infinite;
}

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

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

.carousel-card {
  flex: 0 0 280px;
  padding: 28px;
  margin: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.carousel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 255, 0.05);
}

.carousel-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.12);
  margin-bottom: 16px;
  color: var(--accent-cyan);
  font-size: 1rem;
}

.carousel-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.carousel-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Timeline --- */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 58px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  opacity: 0.3;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.timeline-node-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.timeline-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 160px;
  margin: 0 auto;
}

/* --- Service Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 229, 255, 0.05);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-size: 1.25rem;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.service-card-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  padding: 8px 14px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 6px;
  display: inline-block;
}

.service-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-feature-tag {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
}

/* --- Portfolio --- */
.portfolio-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(123, 47, 255, 0.05));
}

.portfolio-card-image img,
.portfolio-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.03), rgba(123, 47, 255, 0.03));
}

.portfolio-card:hover .portfolio-card-image img,
.portfolio-card:hover .portfolio-card-placeholder {
  transform: scale(1.08);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px;
}

.portfolio-card-info {
  padding: 24px;
}

.portfolio-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.portfolio-card-industry {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.portfolio-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tag {
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 4px;
}

/* --- Featured Project Browser --- */
.featured-browser {
  max-width: 900px;
  margin: 60px auto 0;
  perspective: 1200px;
}

.featured-browser .browser-mockup {
  transform: rotateY(-2deg) rotateX(2deg);
  height: 450px;
  width: 100%;
}

/* --- Contact Form --- */
.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-base);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 0 20px rgba(0, 229, 255, 0.05);
  background: rgba(0, 229, 255, 0.02);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group .error-message {
  font-size: 0.75rem;
  color: #ff4444;
  margin-top: 6px;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ff4444;
}

.form-group.error .error-message {
  display: block;
}

/* Contact Info Panel */
.contact-info {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.contact-info-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.contact-info-logo .dot {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.contact-info-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-info-value a {
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
}

.contact-info-value a:hover {
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* Communication Visualization */
.comm-visualization {
  margin-top: 32px;
  padding: 24px;
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.comm-node {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-align: center;
  position: relative;
  z-index: 2;
}

.comm-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  opacity: 0.3;
  animation: comm-pulse 2s ease-in-out infinite;
}

@keyframes comm-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.5; }
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-blue), var(--accent-purple), transparent);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo .dot {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-cyan);
}

.footer-bottom a:hover {
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* --- Background Effects --- */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: var(--z-background);
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(123, 47, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 102, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: var(--z-background);
}

/* Scan Line Effect */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.08), transparent);
  z-index: var(--z-background);
  pointer-events: none;
  animation: scan-down 8s linear infinite;
}

@keyframes scan-down {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* Particle Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-background);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  text-align: center;
}

.page-hero .section-subtitle {
  margin: 0 auto;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-box {
  position: relative;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  animation: cta-border-rotate 6s linear infinite;
}

@keyframes cta-border-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Disclaimer --- */
.pricing-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: inline-block;
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.custom-cursor.hovering {
  width: 48px;
  height: 48px;
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
}

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

  html {
    scroll-behavior: auto;
  }

  .carousel-track {
    animation: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .timeline-step {
    opacity: 1;
    transform: none;
  }

  .scan-line {
    display: none;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .timeline {
    flex-direction: column;
    gap: 24px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 18px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    text-align: left;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .timeline-node {
    margin: 0;
    min-width: 36px;
  }

  .timeline-desc {
    margin: 0;
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .card-3d {
    padding: 24px;
  }

  .contact-form {
    padding: 24px;
  }

  .portfolio-card-image {
    height: 180px;
  }
}

/* --- Neon Tracer SVG Animation --- */
.neon-tracer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.neon-tracer rect {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  stroke-dasharray: 100 800;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
  animation: trace-perimeter 4s linear infinite;
}

@keyframes trace-perimeter {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -900; }
}

/* --- Animated Number Counter --- */
.counter {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* --- Loading / Transition --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
  animation: loader-blink 1s ease-in-out infinite;
}

@keyframes loader-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Section Divider --- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 0;
}

/* --- Additional Enhancements --- */

/* Nav scrolled state */
.nav-scrolled {
  background: rgba(10, 10, 15, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive local section grid */
@media (max-width: 1024px) {
  #local > .container > div {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* Carousel fade edges */
.carousel-section::before,
.carousel-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.carousel-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

/* Tracer border for CTA */
.cta-box {
  position: relative;
}

/* Enhanced focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Subtle glow on section labels */
.section-label {
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* Service grid responsive */
@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px;
  }

  .service-card-header {
    flex-direction: column;
    gap: 12px;
  }

  .service-features {
    gap: 6px;
  }

  .service-feature-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
}

/* Comm visualization responsive */
@media (max-width: 480px) {
  .comm-visualization .comm-node {
    font-size: 0.5rem;
    padding: 4px 8px;
  }
}

/* Hero eyebrow animation */
.hero-eyebrow {
  animation: fadeSlideIn 0.8s ease-out 0.3s both;
}

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

/* Smooth font loading */
body {
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Carousel card hover glow */
.carousel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(0, 229, 255, 0.2) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.carousel-card:hover::after {
  opacity: 1;
}

/* Selection color */
::selection {
  background: rgba(0, 229, 255, 0.2);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(0, 229, 255, 0.2);
  color: var(--text-primary);
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================ */

/* --- Inline grid fixes (homepage cards) --- */
@media (max-width: 768px) {
  /* Value proposition cards grid */
  #value-proposition > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Local section 2-col grid */
  #local > .container > div {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Page hero reduce padding */
  .page-hero {
    padding: 120px 0 40px;
  }

  /* CTA box mobile */
  .cta-box {
    padding: 40px 20px;
  }

  /* Featured browser mobile */
  .featured-browser .browser-mockup {
    height: 300px;
    transform: rotateY(0) rotateX(0);
  }

  /* Contact form mobile */
  .contact-form {
    padding: 24px;
  }

  /* Contact info panel */
  .contact-info {
    padding: 24px;
  }

  .contact-info-logo {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }

  /* Comm visualization shrink */
  .comm-visualization {
    padding: 16px;
  }

  .comm-visualization .comm-node {
    font-size: 0.5rem;
    padding: 4px 6px;
  }

  /* Carousel cards slightly smaller */
  .carousel-card {
    flex: 0 0 240px;
    padding: 20px;
    margin: 0 8px;
  }

  .carousel-card-title {
    font-size: 0.85rem;
  }

  .carousel-card-desc {
    font-size: 0.75rem;
  }

  /* Hero eyebrow adjust */
  .hero-eyebrow {
    font-size: 0.65rem;
  }

  /* Hero description hidden on small mobile to save space */
  .hero-description {
    display: none;
  }

  /* Portfolio card image */
  .portfolio-card-image {
    height: 180px;
  }

  /* Section label smaller */
  .section-label {
    font-size: 0.65rem;
  }

  /* Pricing disclaimer */
  .pricing-disclaimer {
    font-size: 0.7rem;
    padding: 10px 12px;
  }

  /* Button sizing */
  .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 0.7rem;
  }

  /* Reduce container padding */
  .container {
    padding: 0 16px;
  }

  /* Footer padding */
  .footer {
    padding: 48px 0 32px;
  }

  .footer-bottom {
    font-size: 0.7rem;
  }

  /* Service card features wrap */
  .service-features {
    gap: 4px;
  }

  .service-feature-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  /* Portfolio filters scroll */
  .portfolio-filters {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.7rem;
  }

  /* Reduce stagger delays on mobile for snappier feel */
  .stagger-1 { transition-delay: 0.05s; }
  .stagger-2 { transition-delay: 0.1s; }
  .stagger-3 { transition-delay: 0.15s; }
  .stagger-4 { transition-delay: 0.2s; }
  .stagger-5 { transition-delay: 0.25s; }
  .stagger-6 { transition-delay: 0.3s; }

  /* Grid background smaller for performance */
  .bg-grid {
    background-size: 40px 40px;
  }
}

/* --- Very small screens --- */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  .mobile-menu a {
    font-size: 1.1rem;
  }

  .carousel-card {
    flex: 0 0 200px;
    padding: 16px;
  }

  .portfolio-card-info {
    padding: 16px;
  }

  .portfolio-card-title {
    font-size: 0.95rem;
  }

  .contact-form .form-group label {
    font-size: 0.65rem;
  }

  .contact-form .form-group input,
  .contact-form .form-group select,
  .contact-form .form-group textarea {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.25);
}

/* ============================================
   href.solutions — Extended Components
   Neon Headlines, Trust Counters, Pricing Tiers,
   Why-Us Grid, Reviews, Quote, FAQ, Blog, Flowchart
   ============================================ */

/* --- Neon 3D Headline Text --- */
.neon-heading {
  position: relative;
  color: #f5fbff;
  -webkit-text-stroke: 1px rgba(0, 229, 255, 0.35);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.15),
    0 2px 0 rgba(0,229,255,0.5),
    0 3px 0 rgba(0,229,255,0.4),
    0 4px 4px rgba(0,0,0,0.6),
    0 0 12px rgba(0,229,255,0.55),
    0 0 30px rgba(0,102,255,0.45),
    0 0 60px rgba(123,47,255,0.3);
  animation: neon-afterglow 3.6s ease-in-out infinite alternate;
}

@keyframes neon-afterglow {
  0% {
    text-shadow:
      0 1px 0 rgba(255,255,255,0.15),
      0 2px 0 rgba(0,229,255,0.5),
      0 3px 0 rgba(0,229,255,0.4),
      0 4px 4px rgba(0,0,0,0.6),
      0 0 12px rgba(0,229,255,0.55),
      0 0 30px rgba(0,102,255,0.45),
      0 0 60px rgba(123,47,255,0.3);
  }
  100% {
    text-shadow:
      0 1px 0 rgba(255,255,255,0.2),
      0 2px 0 rgba(0,229,255,0.65),
      0 3px 0 rgba(0,229,255,0.55),
      0 4px 6px rgba(0,0,0,0.6),
      0 0 20px rgba(0,229,255,0.8),
      0 0 46px rgba(0,102,255,0.6),
      0 0 90px rgba(123,47,255,0.45);
  }
}

.neon-heading .accent-word {
  color: var(--accent-cyan);
}

@media (prefers-reduced-motion: reduce) {
  .neon-heading { animation: none; }
}

/* --- Hero Photo Background --- */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
  filter: saturate(1.15) contrast(1.05) brightness(0.85);
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

.hero-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,15,0.55) 0%, rgba(10,10,15,0.75) 55%, var(--bg-primary) 100%),
    linear-gradient(90deg, var(--bg-primary) 0%, rgba(10,10,15,0.35) 30%, rgba(10,10,15,0.1) 55%);
  z-index: 1;
}

.hero-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 2;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-bg img { animation: none; }
}

/* ============================================
   TRUST SIGNAL COUNTERS
   ============================================ */
.trust-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -20px;
}

.trust-counter-card {
  position: relative;
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all var(--transition-base);
}

.trust-counter-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 0 20px rgba(0,229,255,0.08);
}

.trust-counter-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(0,229,255,0.4);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.trust-counter-label {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* ============================================
   PRICING TIERS (3-TIER PACKAGES)
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 30px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(0,229,255,0.25), transparent 40%, transparent 60%, rgba(123,47,255,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 40px rgba(0,229,255,0.1);
}

.pricing-card.featured {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(180deg, rgba(0,229,255,0.06), var(--bg-card) 30%);
  transform: scale(1.04);
}

.pricing-card.featured:hover {
  transform: translateY(-10px) scale(1.06);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: -34px;
  transform: rotate(40deg);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #05050a;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 40px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,229,255,0.35);
}

.pricing-tier-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.pricing-tier-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-tier-audience {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing-price .amount {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0,229,255,0.25);
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 4px rgba(0,229,255,0.5));
}

.pricing-features li.not-included {
  color: var(--text-muted);
  opacity: 0.55;
}

.pricing-features li.not-included svg { color: var(--text-muted); }

.pricing-card .btn { width: 100%; text-align: center; justify-content: center; }

/* ============================================
   WHY CHOOSE US — 6 CARD GRID
   ============================================ */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-us-card {
  position: relative;
  padding: 30px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.why-us-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), 0 0 24px rgba(0,229,255,0.08);
}

.why-us-card:active,
.why-us-card.tapped {
  transform: translateY(-2px) scale(0.98);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0,229,255,0.2), 0 0 30px rgba(0,229,255,0.25);
}

.why-us-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.why-us-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  margin-bottom: 18px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-us-card:hover .why-us-icon {
  transform: rotate(-8deg) scale(1.1);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}

.why-us-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-us-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   REVIEW / TESTIMONIAL CAROUSEL
   ============================================ */
.review-carousel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  min-height: 280px;
}

.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
  padding: 40px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  text-align: center;
}

.review-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 18px;
  color: #ffcc33;
  filter: drop-shadow(0 0 6px rgba(255,204,51,0.5));
}

.review-quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.review-author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.review-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,229,255,0.6);
  transform: scale(1.3);
}

/* ============================================
   QUOTE / GET-A-QUOTE FORM
   ============================================ */
.quote-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 44px;
  position: relative;
}

.quote-wrapper .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.quote-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.quote-success.visible { display: block; }
.quote-wrapper form.hidden { display: none; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.open {
  border-color: rgba(0, 229, 255, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--accent-cyan);
  transition: transform 0.35s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(0,229,255,0.1); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ============================================
   FOOTER — TRUST BADGES + RESOURCES
   ============================================ */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 20px;
}

.footer-badge svg { width: 12px; height: 12px; }

.footer-resources {
  margin-top: 8px;
}

.footer-resources a {
  font-size: 0.78rem;
}

.footer-resources .footer-link::after {
  content: '↗';
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.6;
}

/* ============================================
   SERVICES LIST (Services page — image + desc + learn more)
   ============================================ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-list-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-list-item:hover {
  border-color: rgba(0, 229, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 24px rgba(0,229,255,0.06);
  transform: translateY(-4px);
}

.service-list-image {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.service-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-list-item:hover .service-list-image img {
  transform: scale(1.08);
}

.service-list-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,15,0.15), rgba(10,10,15,0.55));
}

.service-list-body {
  padding: 26px 28px 26px 0;
  display: flex;
  flex-direction: column;
}

.service-list-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.service-list-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-list-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-list-learnmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0,229,255,0.3);
  transition: all var(--transition-fast);
}

.service-list-learnmore svg { transition: transform var(--transition-fast); }

.service-list-item:hover .service-list-learnmore {
  border-color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0,229,255,0.5);
}

.service-list-item:hover .service-list-learnmore svg {
  transform: translateX(4px);
}

/* ============================================
   INTERACTIVE PACKAGE PICKER FLOWCHART
   ============================================ */
.flowchart {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 44px;
  text-align: center;
  position: relative;
}

.flowchart-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.flowchart-progress-dot {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
  transition: all var(--transition-base);
}

.flowchart-progress-dot.done { background: var(--accent-cyan); box-shadow: 0 0 8px rgba(0,229,255,0.6); }
.flowchart-progress-dot.current { background: var(--accent-blue); }

.flowchart-step { display: none; animation: fc-fade-in 0.5s ease; }
.flowchart-step.active { display: block; }

@keyframes fc-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.flowchart-question {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.flowchart-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.flowchart-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.flowchart-option {
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.flowchart-option:hover {
  border-color: var(--accent-cyan);
  background: rgba(0,229,255,0.06);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35), 0 0 20px rgba(0,229,255,0.1);
}

.flowchart-result {
  text-align: center;
}

.flowchart-result-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.flowchart-result-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.flowchart-result-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 28px;
}

.flowchart-restart {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-detail-hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 60px;
  overflow: hidden;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.service-detail-image {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.service-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-bottom: 34px;
  position: relative;
}

.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(0,229,255,0.3), transparent);
}

.process-step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.process-step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.process-step-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

.responsibility-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 28px 30px;
  margin: 20px 0;
}

.responsibility-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

.responsibility-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.responsibility-box p:last-child { margin-bottom: 0; }

.cost-tips {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.cost-tips li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cost-tips li svg { flex-shrink: 0; width: 16px; height: 16px; color: #4ade80; margin-top: 3px; }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,255,0.22);
  box-shadow: 0 20px 46px rgba(0,0,0,0.4), 0 0 24px rgba(0,229,255,0.08);
}

.blog-card-image { height: 200px; overflow: hidden; position: relative; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.08); }

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.blog-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 0.5px; }
.blog-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; flex-grow: 1; }

.blog-card-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.blog-card-full-inner { padding-top: 4px; }

.blog-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: none;
  border: none;
  cursor: pointer;
  width: fit-content;
}

.blog-card-toggle svg { transition: transform 0.3s ease; }
.blog-card.expanded .blog-card-toggle svg { transform: rotate(180deg); }

/* ============================================
   ABOUT PAGE — SCROLL STORY (unique scroll effect)
   ============================================ */
.scroll-story {
  position: relative;
}

.scroll-story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scroll-story-track {
  display: flex;
  gap: 40px;
  will-change: transform;
  padding: 0 8vw;
}

.scroll-story-panel {
  flex: 0 0 min(560px, 82vw);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 44px;
}

.scroll-story-panel .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.scroll-story-panel h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.scroll-story-panel p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.scroll-story-spacer {
  height: 260vh;
}

.scroll-progress-rail {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--border-subtle);
  z-index: 3;
}

.scroll-progress-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 12px rgba(0,229,255,0.6);
  height: 0%;
}

@media (prefers-reduced-motion: reduce), (max-width: 900px) {
  .scroll-story-sticky { position: relative; height: auto; padding: 20px 0; }
  .scroll-story-track { flex-direction: column; transform: none !important; padding: 0 24px; }
  .scroll-story-panel { flex: none; }
  .scroll-story-spacer { height: auto; }
}

/* --- About stat badges --- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.trust-badge-pill:hover {
  border-color: rgba(0,229,255,0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.trust-badge-pill svg { width: 16px; height: 16px; color: var(--accent-cyan); }

/* --- Ethics list --- */
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ethics-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.ethics-item .why-us-icon { margin-bottom: 0; flex-shrink: 0; }
.ethics-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.ethics-item p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* --- Image frame w/ tech border (used throughout) --- */
.tech-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.tech-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tech-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,15,0.85) 100%);
  pointer-events: none;
}

.tech-frame-caption {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

/* --- Section overline helper for pages without hero --- */
.mini-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}

/* ============================================
   RESPONSIVE — NEW COMPONENTS
   ============================================ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card.featured { grid-column: 1 / -1; transform: none; order: -1; }
  .pricing-card.featured:hover { transform: translateY(-8px); }
  .why-us-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .service-list-item { grid-template-columns: 220px 1fr; }
  .ethics-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .trust-counters { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { grid-column: auto; }
  .why-us-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .service-list-item { grid-template-columns: 1fr; }
  .service-list-image { min-height: 160px; }
  .service-list-body { padding: 22px 22px 26px; }
  .quote-wrapper { padding: 28px 22px; }
  .quote-wrapper .form-row { grid-template-columns: 1fr; }
  .flowchart { padding: 30px 20px; }
  .flowchart-options { grid-template-columns: 1fr; }
  .review-slide { padding: 30px 24px; }
  .mini-stats-strip { grid-template-columns: 1fr 1fr; }
  .scroll-story-panel { padding: 30px; }
}

@media (max-width: 480px) {
  .trust-counters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-counter-card { padding: 20px 10px; }
  .trust-counter-value { font-size: 1.5rem; }
  .pricing-card { padding: 28px 22px; }
  .pricing-price .amount { font-size: 1.9rem; }
  .review-quote { font-size: 1rem; }
  .footer-badges { gap: 8px; }
}

/* ============================================
   href.solutions — Round 2 Additions
   Flashy Demo CTA, Flowchart Checklist, Footer Social/CTA
   ============================================ */

/* --- Flashy "Live Demo" CTA button (portfolio page) --- */
.flashy-cta-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(123,47,255,0.12));
  border: 1px solid rgba(0,229,255,0.35);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  animation: flashy-pulse 2.4s ease-in-out infinite;
}

.flashy-cta-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--accent-cyan), var(--accent-purple), var(--accent-blue), var(--accent-cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: flashy-spin 4s linear infinite;
}

.flashy-cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: flashy-shimmer 2.6s ease-in-out infinite;
}

@keyframes flashy-spin {
  to { filter: hue-rotate(360deg); }
}

@keyframes flashy-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0,229,255,0.25), 0 0 60px rgba(123,47,255,0.12); }
  50% { box-shadow: 0 0 50px rgba(0,229,255,0.5), 0 0 90px rgba(123,47,255,0.3); }
}

@keyframes flashy-shimmer {
  0% { left: -60%; }
  100% { left: 130%; }
}

.flashy-cta-btn:hover {
  transform: translateY(-6px) scale(1.03);
}

.flashy-cta-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #05050a;
  font-size: 1.3rem;
  margin-bottom: 8px;
  box-shadow: 0 0 30px rgba(0,229,255,0.5);
}

.flashy-cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.flashy-cta-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

@media (prefers-reduced-motion: reduce) {
  .flashy-cta-btn, .flashy-cta-btn::before, .flashy-cta-btn::after { animation: none; }
}

/* --- Flowchart: services checklist step --- */
.flowchart-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
}

.flowchart-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.flowchart-checkbox-item:hover {
  border-color: rgba(0,229,255,0.3);
  color: var(--text-primary);
}

.flowchart-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.flowchart-checkbox-item.checked {
  border-color: var(--accent-cyan);
  background: rgba(0,229,255,0.06);
  color: var(--text-primary);
}

/* --- Footer: social icons + secondary CTAs --- */
.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  transition: all var(--transition-base);
}

.footer-social-icon svg { width: 18px; height: 18px; }

.footer-social-icon:hover {
  color: var(--accent-cyan);
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 16px rgba(0,229,255,0.25);
  transform: translateY(-3px);
}

.footer-social-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  margin: 0 4px;
}

.footer-live-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #05050a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-base);
}

.footer-live-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.35);
}

.footer-message-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #05050a !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  transition: all var(--transition-base);
}

.footer-message-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.3);
}

@media (max-width: 480px) {
  .flowchart-checklist { grid-template-columns: 1fr; }
  .flashy-cta-btn { padding: 26px 30px; }
  .flashy-cta-title { font-size: 1.2rem; }
}
