/* ==========================================================================
   REALBITS CODERS - DESIGN SYSTEM & MASTER STYLESHEET
   Tagline: "Where Ideas Become Code"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #05070e;
  --bg-dark: #080d1a;
  --bg-card: rgba(14, 22, 38, 0.72);
  --bg-card-hover: rgba(19, 30, 52, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 242, 254, 0.35);
  --border-glow: rgba(127, 0, 255, 0.4);

  /* Brand Accents */
  --cyan: #00f2fe;
  --blue: #4facfe;
  --violet: #8a2be2;
  --purple: #7f00ff;
  --mint: #00f5a0;
  --amber: #ffb703;
  --rose: #ff007f;

  /* Text Colors */
  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-code: #38bdf8;

  /* Typography - Clean, modern, highly readable */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Gradients */
  --grad-cyan-blue: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-violet-cyan: linear-gradient(135deg, #7f00ff 0%, #00f2fe 100%);
  --grad-purple-pink: linear-gradient(135deg, #7f00ff 0%, #ff007f 100%);
  --grad-emerald-cyan: linear-gradient(135deg, #00f5a0 0%, #00f2fe 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: clip;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-deep);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Light Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.ambient-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7f00ff 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.ambient-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00f2fe 0%, transparent 70%);
  top: 25%;
  right: -150px;
}

.ambient-glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #00f5a0 0%, transparent 70%);
  bottom: 10%;
  left: 10%;
}

/* Custom Cursor Glow */
.cursor-glow {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(127, 0, 255, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  transition: transform 0.15s ease-out, opacity 0.3s;
}

/* Containers & Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

section {
  padding: 4.2rem 0;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.35s ease;
  background: rgba(5, 7, 14, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar.scrolled {
  padding: 0.7rem 0;
  background: rgba(5, 7, 14, 0.92);
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-logo-img.logo-light {
  display: none;
}

.brand-logo-img.logo-dark {
  display: block;
}

[data-theme="light"] .brand-logo-img.logo-light {
  display: block;
}

[data-theme="light"] .brand-logo-img.logo-dark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-cyan-blue);
  transition: width 0.3s var(--ease-smooth);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Primary & Secondary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-cyan-blue);
  color: #060911;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 242, 254, 0.5);
  filter: brightness(1.08);
}

.btn-glow-purple {
  background: var(--grad-violet-cyan);
  color: #ffffff;
  box-shadow: 0 4px 22px rgba(127, 0, 255, 0.4);
}

.btn-glow-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(127, 0, 255, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6.2rem;
  padding-bottom: 3.2rem;
  position: relative;
  overflow: hidden;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  gap: 3.2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  background: rgba(10, 16, 30, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.hero-badge-pill .badge-prefix {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.hero-badge-pill .typing-container {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 1px;
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 245, 160, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-title .gradient-text-alt {
  background: var(--grad-violet-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-container {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 600;
  border-bottom: 2px solid var(--mint);
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.stat-number span {
  color: var(--cyan);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ==========================================================================
   HERO STUDIO CODE ENGINE & LIVE APP SHOWCASE
   ========================================================================== */
.hero-visual-card.studio-window {
  position: relative;
  border-radius: 18px;
  background: #090e1a;
  border: 1px solid rgba(0, 242, 254, 0.22);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8),
              0 0 28px -5px rgba(0, 242, 254, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 465px;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  transition: transform 0.25s ease-out, box-shadow 0.3s ease;
  overflow: visible;
  will-change: transform;
}

.studio-ambient-glow {
  position: absolute;
  top: -10%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(127, 0, 255, 0.1) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* macOS Window Header */
.studio-window-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(13, 20, 36, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  gap: 0.5rem;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

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

.dot-close { background: #ff5f56; box-shadow: 0 0 5px rgba(255, 95, 86, 0.5); }
.dot-minimize { background: #ffbd2e; box-shadow: 0 0 5px rgba(255, 189, 46, 0.5); }
.dot-maximize { background: #27c93f; box-shadow: 0 0 5px rgba(39, 201, 63, 0.5); }

.studio-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.studio-tabs::-webkit-scrollbar { display: none; }

.studio-tab {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.26rem 0.52rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.studio-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.studio-tab.active {
  color: var(--cyan);
  background: rgba(0, 242, 254, 0.09);
  border-color: rgba(0, 242, 254, 0.25);
  font-weight: 600;
}

.studio-live-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.18rem 0.45rem;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.3);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--mint);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.live-dot-ping {
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--mint);
  animation: ping-pulse 1.8s infinite;
}

@keyframes ping-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Studio Tab Contents */
.studio-tab-content {
  display: none;
  position: relative;
  z-index: 1;
  background: #060a14;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
  height: 285px;
  min-height: 285px;
  max-height: 285px;
  overflow: hidden;
}

.studio-tab-content.active {
  display: block;
  animation: fadeInPane 0.25s ease forwards;
}

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

/* Tab 1: Code Editor Viewport */
.code-editor-viewport {
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  background: #080d19;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-editor-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.code-row {
  display: flex;
  align-items: baseline;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-num {
  width: 24px;
  color: #475569;
  user-select: none;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.c-comment { color: #64748b; font-style: italic; }
.c-keyword { color: #f43f5e; font-weight: 600; }
.c-type { color: #38bdf8; }
.c-fn { color: #a78bfa; font-weight: 600; }
.c-string { color: #34d399; }
.c-val { color: #fbbf24; }

.code-cursor {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: var(--cyan);
  vertical-align: middle;
  margin-left: 3px;
  animation: blink-cursor 1s infinite;
}

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

/* Studio Terminal */
.studio-terminal {
  background: #04070e;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.48;
}

.terminal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-status-left {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

.term-icon {
  color: var(--cyan);
  font-weight: 700;
}

.term-tag {
  color: #64748b;
  font-family: var(--font-mono);
}

.term-stream {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.term-log {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}

.term-ok {
  color: var(--mint);
  font-weight: 700;
}

.term-highlight {
  color: #e2e8f0;
}

.term-active-line {
  color: var(--cyan);
  margin-top: 1px;
}

.term-pulse-icon {
  color: var(--cyan);
  font-size: 0.6rem;
  animation: pulse-dot 1.2s infinite;
}

/* Tab 2: Preview Smartphone Simulation */
.preview-app-container {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(14, 22, 38, 0.9) 0%, #060a14 100%);
  height: 285px;
}

.preview-phone-mockup {
  width: 100%;
  max-width: 300px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.85rem 0.25rem;
  font-size: 0.68rem;
  font-family: var(--font-body);
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-screen-content {
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-brand-chip {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.74rem;
  color: #060a14;
}

.app-brand-chip strong {
  font-size: 0.82rem;
  color: #ffffff;
  display: block;
}

.app-brand-chip small {
  font-size: 0.64rem;
  color: #94a3b8;
  display: block;
}

.app-status-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.phone-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
}

.card-caption {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.card-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.2rem 0 0.4rem;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
}

.card-badge-inc {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mint);
}

.phone-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  padding-top: 2px;
}

.phone-sparkline span {
  flex: 1;
  background: linear-gradient(to top, var(--cyan), var(--mint));
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}

.phone-feed-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}

.feed-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.feed-green { background: rgba(0, 245, 160, 0.15); color: var(--mint); }
.feed-cyan { background: rgba(0, 242, 254, 0.15); color: var(--cyan); }

.feed-info strong {
  display: block;
  font-size: 0.74rem;
  color: #ffffff;
}

.feed-info small {
  display: block;
  font-size: 0.62rem;
  color: #94a3b8;
}

/* Tab 5: Telemetry & Architecture */
.telemetry-dashboard {
  padding: 0.8rem 1rem;
  height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.telemetry-header h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #ffffff;
}

.telemetry-header p {
  font-size: 0.68rem;
  color: #94a3b8;
}

.telemetry-ping-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.telemetry-card {
  background: rgba(14, 22, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.45rem;
  text-align: center;
}

.telemetry-icon {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  display: block;
}

.telemetry-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.telemetry-lbl {
  font-size: 0.62rem;
  color: #94a3b8;
}

.telemetry-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 22, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.68rem;
  color: #94a3b8;
}

.flow-step.active {
  color: var(--cyan);
  font-weight: 700;
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.flow-arrow {
  color: #475569;
}

/* Floating Badges */
.visual-floating-badge {
  position: absolute;
  padding: 0.5rem 0.85rem;
  background: rgba(10, 16, 29, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 242, 254, 0.14);
  animation: float-badge 4s infinite ease-in-out;
  z-index: 5;
}

.visual-floating-badge.badge-top {
  top: -14px;
  left: -10px;
}

.visual-floating-badge.badge-bottom {
  bottom: -14px;
  right: -10px;
  animation-delay: 2s;
}

.visual-badge-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.badge-cyan { background: rgba(0, 242, 254, 0.2); color: var(--cyan); }
.badge-purple { background: rgba(127, 0, 255, 0.25); color: #c084fc; }

.visual-badge-text {
  display: flex;
  flex-direction: column;
}

.visual-badge-text strong {
  font-size: 0.82rem;
  color: white;
}

.visual-badge-text small {
  font-size: 0.66rem;
  color: var(--text-secondary);
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   PARTNER / TRUST MARQUEE
   ========================================================================== */
.marquee-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 13, 26, 0.5);
  overflow: hidden;
}

.marquee-title {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: scroll-marquee 28s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.05rem;
  opacity: 0.65;
  transition: opacity 0.3s;
}

.marquee-item:hover {
  opacity: 1;
  color: var(--cyan);
}

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

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   SERVICES GRID (6 CORE SERVICES)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-cyan-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 242, 254, 0.15);
  background: var(--bg-card-hover);
}

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

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(4deg);
  background: var(--grad-cyan-blue);
  color: #060911;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.service-card.purple-accent:hover .service-icon-box {
  background: var(--grad-violet-cyan);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(127, 0, 255, 0.5);
}

.service-card.mint-accent:hover .service-icon-box {
  background: var(--grad-emerald-cyan);
  color: #060911;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.5);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-white);
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.service-features-list li svg {
  color: var(--mint);
  flex-shrink: 0;
}

.service-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.tech-chip {
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-code);
}

/* ==========================================================================
   WORKFLOW / "IDEA TO CODE" PROCESS PIPELINE
   ========================================================================== */
.process-section {
  background: radial-gradient(circle at 50% 50%, rgba(13, 22, 40, 0.6) 0%, transparent 80%);
}

.pipeline-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.pipeline-wrapper::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe 0%, #7f00ff 50%, #00f5a0 100%);
  opacity: 0.35;
  z-index: 1;
}

.pipeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem 1.2rem;
  transition: var(--transition);
}

.pipeline-step:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15);
}

.step-node-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.3);
  transition: var(--transition);
}

.pipeline-step:hover .step-node-number {
  background: var(--cyan);
  color: #060911;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.8);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-white);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   PORTFOLIO / SHOWCASE WITH FILTERS
   ========================================================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--grad-cyan-blue);
  color: #060911;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.15);
}

.portfolio-thumbnail {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.portfolio-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.portfolio-card:hover .portfolio-thumbnail img {
  transform: scale(1.08);
}

.portfolio-category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cyan);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.portfolio-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.portfolio-metrics {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.82rem;
}

.portfolio-metrics strong {
  color: var(--mint);
}

.portfolio-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ==========================================================================
   INTERACTIVE PROJECT COST & TIMELINE ESTIMATOR
   ========================================================================== */
.estimator-card {
  background: linear-gradient(135deg, rgba(14, 22, 38, 0.85) 0%, rgba(8, 13, 26, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.1);
  position: relative;
  overflow: hidden;
}

.estimator-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(127, 0, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: flex-start;
}

.estimator-step-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.estimator-step-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  color: var(--text-white);
}

.estimator-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.calc-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.calc-option svg {
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.calc-option:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 242, 254, 0.4);
}

.calc-option.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.25);
}

.calc-option.active svg {
  transform: scale(1.15);
  color: var(--mint);
}

.calc-option-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
}

.calc-option-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Feature Checkboxes */
.estimator-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.feature-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
}

.feature-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-checkbox-label.checked {
  background: rgba(127, 0, 255, 0.12);
  border-color: rgba(127, 0, 255, 0.5);
  color: #ffffff;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-checkbox-label.checked .custom-checkbox {
  background: var(--purple);
  border-color: var(--purple);
}

/* Estimator Live Summary Card */
.estimator-summary-panel {
  background: rgba(6, 10, 18, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 6rem;
}

.summary-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  font-size: 0.9rem;
}

.summary-details-list li {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.summary-details-list li strong {
  color: var(--text-white);
}

.estimate-price-box {
  background: rgba(0, 242, 254, 0.08);
  border: 1px dashed rgba(0, 242, 254, 0.4);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.estimate-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.estimate-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
}

.estimate-time {
  font-size: 0.85rem;
  color: var(--mint);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* ==========================================================================
   TECH RADAR / STACK SECTION
   ========================================================================== */
.tech-tabs-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tech-tab-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tech-tab-btn.active, .tech-tab-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.tech-grid-display {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}

.tech-item-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.tech-item-box:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

.tech-icon-wrapper {
  font-size: 2rem;
  line-height: 1;
}

.tech-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}

.tech-category-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   TESTIMONIALS / TRUST SECTION
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 0, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--amber);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  font-style: italic;
}

.client-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-violet-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
}

.client-info h4 {
  font-size: 0.95rem;
  color: var(--text-white);
  font-weight: 600;
}

.client-info span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT & PROJECT INITIATION HUB
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.2rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.contact-info-content p, .contact-info-content a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-content a:hover {
  color: var(--cyan);
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 2.8rem;
  backdrop-filter: blur(20px);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

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

/* Custom Dropdown Styling (Send Project Requirements) */
.custom-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.custom-dropdown-wrap .dropdown-leading-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s ease, color 0.2s ease;
}

.custom-dropdown-wrap .dropdown-chevron-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease, color 0.2s ease;
}

select.form-control.styled-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.92rem 2.85rem 0.92rem 2.85rem;
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

select.form-control.styled-select:hover {
  border-color: rgba(0, 242, 254, 0.45);
  background: rgba(20, 32, 54, 0.95);
}

select.form-control.styled-select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(20, 32, 54, 1);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.25), 0 8px 25px rgba(0, 242, 254, 0.15);
}

.custom-dropdown-wrap:focus-within .dropdown-chevron-icon {
  transform: translateY(-50%) rotate(180deg);
  color: var(--cyan);
}

.custom-dropdown-wrap:focus-within .dropdown-leading-icon {
  transform: translateY(-50%) scale(1.1);
  color: var(--cyan);
}

select.form-control.styled-select option {
  background-color: #0b1120;
  color: #f1f5f9;
  padding: 12px 14px;
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #03050a;
  padding: 3.8rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 2.8rem;
}

.footer-brand-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 1.2rem;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.8rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.social-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}

.social-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.2);
  border-color: #1877f2;
  color: #1877f2;
}

.social-btn.instagram:hover {
  background: rgba(225, 48, 108, 0.2);
  border-color: #e1306c;
  color: #e1306c;
}

.social-btn.linkedin:hover {
  background: rgba(10, 102, 194, 0.2);
  border-color: #0a66c2;
  color: #0a66c2;
}

.social-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  color: #25d366;
}

/* ==========================================================================
   MODAL DIALOG (Case Study & Project Details)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #090e1c;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-smooth);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 0, 127, 0.3);
  border-color: var(--rose);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.5rem;
}

.modal-challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.mobile-nav-cta {
  display: none;
}

/* ==========================================================================
   THEME TOGGLE BUTTON & LIGHT MODE THEME
   ========================================================================== */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.theme-toggle-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.theme-toggle-btn svg {
  transition: transform 0.4s var(--ease-smooth);
}

.theme-toggle-btn:hover svg {
  transform: rotate(30deg);
}

/* ==========================================================================
   10. LIGHT THEME COMPREHENSIVE DESIGN SYSTEM & OVERRIDES
   High-contrast, vibrant, and clean styling for daylight viewing
   ========================================================================== */
[data-theme="light"] {
  /* Crisp Light Backgrounds */
  --bg-deep: #f8fafc;
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-subtle: #e2e8f0;
  --border-highlight: rgba(2, 132, 199, 0.35);
  --border-glow: rgba(109, 40, 217, 0.2);

  /* High-Contrast Brand Accents for Light Backgrounds (WCAG AAA compliant) */
  --cyan: #0284c7;       /* Rich Deep Sapphire/Cyan (replaces faint neon) */
  --blue: #2563eb;       /* Royal Blue */
  --violet: #7c3aed;     /* Deep Violet */
  --purple: #6d28d9;     /* Regal Purple */
  --mint: #059669;       /* Deep Emerald Green (replaces faint neon mint) */
  --amber: #d97706;      /* Warm Amber/Gold */
  --rose: #e11d48;       /* Deep Ruby Rose */

  /* Deep Readable Typography */
  --text-white: #0f172a;     /* Deep Slate/Charcoal for headings */
  --text-primary: #1e293b;   /* Main readable body text */
  --text-secondary: #475569; /* Balanced slate-600 */
  --text-muted: #64748b;     /* Slate-500 */
  --text-code: #0369a1;      /* Deep code blue */

  /* Vibrant Rich Gradients */
  --grad-cyan-blue: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-violet-cyan: linear-gradient(135deg, #6d28d9 0%, #0284c7 100%);
  --grad-purple-pink: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --grad-emerald-cyan: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  --grad-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Global Light Mode Layout */
[data-theme="light"] body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

[data-theme="light"] .ambient-glow {
  opacity: 0.08;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
}

/* Header & Navigation */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0284c7;
}

[data-theme="light"] .mobile-menu-toggle {
  color: #0f172a;
}

/* Hero Section */
[data-theme="light"] .hero-badge-pill {
  background: #f0f9ff;
  border-color: #bae6fd;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .hero-badge-pill .badge-prefix {
  color: #475569;
}

[data-theme="light"] .hero-badge-pill .typing-container {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

[data-theme="light"] .hero-badge-pill .pulse-dot {
  background-color: #059669;
  box-shadow: 0 0 8px #059669;
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

[data-theme="light"] .hero-title .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title .gradient-text-alt {
  background: linear-gradient(135deg, #6d28d9 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .typing-container {
  color: #059669;
  border-bottom-color: #059669;
}

[data-theme="light"] .hero-description {
  color: #475569;
}

[data-theme="light"] .stat-number {
  color: #0f172a;
}

[data-theme="light"] .stat-number span {
  color: #0284c7;
}

[data-theme="light"] .hero-stats {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .hero-visual-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .visual-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .visual-badge-text strong {
  color: #0f172a;
}

/* Partner Marquee */
[data-theme="light"] .marquee-section {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .marquee-item {
  color: #475569;
}

[data-theme="light"] .marquee-item:hover {
  color: #0284c7;
}

/* Section Common Headers */
[data-theme="light"] .section-tag {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

[data-theme="light"] .section-title {
  color: #0f172a;
}

[data-theme="light"] .section-subtitle {
  color: #475569;
}

/* Service Cards */
[data-theme="light"] .service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .service-card:hover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .service-icon-box {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0284c7;
}

[data-theme="light"] .service-card:hover .service-icon-box {
  background: var(--grad-cyan-blue);
  color: #ffffff;
}

[data-theme="light"] .service-title {
  color: #0f172a;
}

[data-theme="light"] .service-description {
  color: #475569;
}

[data-theme="light"] .service-features-list li {
  color: #334155;
}

[data-theme="light"] .service-features-list li svg {
  color: #059669;
}

[data-theme="light"] .service-tech-chips {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .tech-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0369a1;
}

/* Process Section */
[data-theme="light"] .process-section {
  background: #f8fafc;
}

[data-theme="light"] .pipeline-step {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .pipeline-step:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .step-node-number {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .pipeline-step:hover .step-node-number {
  background: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .step-title {
  color: #0f172a;
}

[data-theme="light"] .step-desc {
  color: #475569;
}

[data-theme="light"] .pipeline-wrapper::before {
  background: linear-gradient(90deg, #0284c7 0%, #7c3aed 50%, #059669 100%);
  opacity: 0.25;
}

/* Portfolio Section */
[data-theme="light"] .portfolio-filters .filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
  background: var(--grad-cyan-blue);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .portfolio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .portfolio-card:hover {
  border-color: #0284c7;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 0 20px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .portfolio-category-tag {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .portfolio-title {
  color: #0f172a;
}

[data-theme="light"] .portfolio-desc {
  color: #475569;
}

[data-theme="light"] .portfolio-metrics {
  background: #f1f5f9;
  color: #334155;
}

[data-theme="light"] .portfolio-metrics strong {
  color: #059669;
}

/* Cost Estimator Section */
[data-theme="light"] .estimator-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .estimator-card::before {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .estimator-step-label {
  color: #0284c7;
}

[data-theme="light"] .estimator-step-heading {
  color: #0f172a;
}

[data-theme="light"] .calc-option {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .calc-option:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

[data-theme="light"] .calc-option.active {
  background: #e0f2fe;
  border-color: #0284c7;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .calc-option-title {
  color: #0f172a;
}

[data-theme="light"] .calc-option-desc {
  color: #475569;
}

[data-theme="light"] .calc-option svg {
  color: #0284c7;
}

[data-theme="light"] .calc-option.active svg {
  color: #059669;
}

[data-theme="light"] .feature-checkbox-label {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .feature-checkbox-label:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .feature-checkbox-label.checked {
  background: #f3e8ff;
  border-color: #7c3aed;
  color: #0f172a;
}

[data-theme="light"] .custom-checkbox {
  border-color: #94a3b8;
}

[data-theme="light"] .feature-checkbox-label.checked .custom-checkbox {
  background: #7c3aed;
  border-color: #7c3aed;
}

[data-theme="light"] .estimator-summary-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .summary-heading {
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .summary-details-list li {
  color: #475569;
}

[data-theme="light"] .summary-details-list li strong {
  color: #0f172a;
}

[data-theme="light"] .estimate-price-box {
  background: #e0f2fe;
  border: 1.5px dashed #0284c7;
}

[data-theme="light"] .estimate-value {
  color: #0284c7;
}

[data-theme="light"] .estimate-time {
  color: #059669;
}

/* Tech Stack Radar */
[data-theme="light"] .tech-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .tech-tab-btn.active,
[data-theme="light"] .tech-tab-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .tech-item-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .tech-item-box:hover {
  border-color: #0284c7;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .tech-name {
  color: #0f172a;
}

[data-theme="light"] .tech-category-pill {
  color: #64748b;
}

/* Testimonials */
[data-theme="light"] .testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .testimonial-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .rating-stars {
  color: #d97706;
}

[data-theme="light"] .testimonial-text {
  color: #334155;
}

[data-theme="light"] .client-info h4 {
  color: #0f172a;
}

[data-theme="light"] .client-info span {
  color: #64748b;
}

/* Contact Hub & Form */
[data-theme="light"] .contact-highlight-card,
[data-theme="light"] .contact-form-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-info-icon {
  background: #e0f2fe;
  color: #0284c7;
}

[data-theme="light"] .contact-info-content h4 {
  color: #0f172a;
}

[data-theme="light"] .contact-info-content p,
[data-theme="light"] .contact-info-content a {
  color: #475569;
}

[data-theme="light"] .contact-info-content a:hover {
  color: #0284c7;
}

[data-theme="light"] .contact-form-heading {
  color: #0f172a !important;
}

[data-theme="light"] .form-label {
  color: #1e293b;
}

[data-theme="light"] .form-control {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .form-control::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

[data-theme="light"] select.form-control {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

[data-theme="light"] select.form-control option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Light Mode Overrides for Custom Dropdowns */
[data-theme="light"] .custom-dropdown-wrap .dropdown-leading-icon {
  color: #0284c7;
}

[data-theme="light"] .custom-dropdown-wrap .dropdown-chevron-icon {
  color: #64748b;
}

[data-theme="light"] select.form-control.styled-select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] select.form-control.styled-select:hover {
  border-color: #0284c7 !important;
  background: #f8fafc !important;
}

[data-theme="light"] select.form-control.styled-select:focus {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2), 0 4px 12px rgba(2, 132, 199, 0.1) !important;
}

[data-theme="light"] .custom-dropdown-wrap:focus-within .dropdown-chevron-icon {
  color: #0284c7;
}

[data-theme="light"] select.form-control.styled-select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Light Mode Overrides for Hero Studio Showcase */
[data-theme="light"] .hero-visual-card.studio-window {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 25px rgba(2, 132, 199, 0.08);
}

[data-theme="light"] .studio-window-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .studio-tab {
  color: #64748b;
}

[data-theme="light"] .studio-tab:hover {
  color: #0f172a;
  background: #f1f5f9;
}

[data-theme="light"] .studio-tab.active {
  color: #0284c7;
  background: #e0f2fe;
  border-color: #bae6fd;
}

[data-theme="light"] .studio-tab-content {
  background: #ffffff;
}

[data-theme="light"] .code-editor-viewport {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .code-num {
  color: #94a3b8;
}

[data-theme="light"] .c-comment { color: #64748b; }
[data-theme="light"] .c-keyword { color: #d946ef; }
[data-theme="light"] .c-type { color: #0284c7; }
[data-theme="light"] .c-fn { color: #7c3aed; }
[data-theme="light"] .c-string { color: #059669; }
[data-theme="light"] .c-val { color: #d97706; }

[data-theme="light"] .studio-terminal {
  background: #0f172a;
}

[data-theme="light"] .preview-app-container {
  background: radial-gradient(circle at center, #f1f5f9 0%, #e2e8f0 100%);
}

[data-theme="light"] .preview-phone-mockup {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .phone-status-bar {
  color: #64748b;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .app-brand-chip strong {
  color: #0f172a;
}

[data-theme="light"] .phone-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .card-price {
  color: #0f172a;
}

[data-theme="light"] .phone-feed-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .feed-info strong {
  color: #0f172a;
}

[data-theme="light"] .telemetry-dashboard {
  background: #ffffff;
}

[data-theme="light"] .telemetry-header h4 {
  color: #0f172a;
}

[data-theme="light"] .telemetry-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .telemetry-val {
  color: #0f172a;
}

[data-theme="light"] .telemetry-flow {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* Footer Section */
[data-theme="light"] .site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .footer-brand-info p {
  color: #475569;
}

[data-theme="light"] .footer-col-title {
  color: #0f172a !important;
}

[data-theme="light"] .footer-links a {
  color: #475569;
}

[data-theme="light"] .footer-links a:hover {
  color: #0284c7;
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .footer-bottom-links a {
  color: #64748b;
}

[data-theme="light"] .footer-bottom-links a:hover {
  color: #0284c7;
}

[data-theme="light"] .social-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .social-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .social-btn.whatsapp:hover {
  background: #dcfce7;
  border-color: #059669;
  color: #059669;
}

/* Modal Window */
[data-theme="light"] .modal-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .modal-body h2 {
  color: #0f172a !important;
}

[data-theme="light"] .modal-challenge-box,
[data-theme="light"] .modal-solution-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .modal-close-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .modal-close-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* Buttons */
[data-theme="light"] .btn-outline {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-outline:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .btn-primary {
  background: var(--grad-cyan-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   11. PORTFOLIO CARD ACTION BUTTONS (Direct Links & Case Study)
   ========================================================================== */
.portfolio-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.portfolio-actions-row .card-live-btn {
  flex: 1.2;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.portfolio-actions-row .card-study-btn {
  flex: 0.9;
  font-size: 0.82rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  justify-content: center;
}

[data-theme="light"] .portfolio-actions-row {
  border-top-color: #e2e8f0;
}

/* ==========================================================================
   12. SMOOTH SCROLL REVEAL & MICRO-ANIMATIONS
   ========================================================================== */
/* Multi-Directional Dynamic Scroll Reveals */
.reveal-on-scroll,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-pop,
.reveal-header {
  opacity: 0;
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.reveal-on-scroll,
.reveal-up {
  transform: translateY(18px);
}

.reveal-left {
  transform: translateX(-18px);
}

.reveal-right {
  transform: translateX(18px);
}

.reveal-pop {
  transform: scale(0.96) translateY(12px);
}

.reveal-header {
  transform: translateY(16px);
}

/* Revealed State */
.reveal-on-scroll.is-revealed,
.reveal-up.is-revealed,
.reveal-left.is-revealed,
.reveal-right.is-revealed,
.reveal-pop.is-revealed,
.reveal-header.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Tech Icon Micro-Hover Bounce */
.tech-item-box:hover .tech-icon-wrapper {
  transform: scale(1.18) rotate(4deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-icon-wrapper {
  transition: transform 0.3s ease;
}

/* Floating animation on badges */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.visual-floating-badge {
  animation: float-gentle 4s ease-in-out infinite;
}

.badge-bottom {
  animation-delay: 2s;
}

/* Enhanced Footer Visibility in Light Mode */
[data-theme="light"] .site-footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .footer-brand-info p {
  color: #334155 !important;
}

[data-theme="light"] .footer-col-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-links li {
  color: #334155 !important;
}

[data-theme="light"] .footer-links a:hover {
  color: #0284c7 !important;
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-weight: 500 !important;
}

[data-theme="light"] .footer-bottom div,
[data-theme="light"] .footer-bottom-links a {
  color: #334155 !important;
}

[data-theme="light"] .footer-bottom-links a:hover {
  color: #0284c7 !important;
}

/* ==========================================================================
   HERO STUDIO NEW PANES (WhatsApp API & Scope Estimator)
   ========================================================================== */
.studio-tab {
  position: relative;
  overflow: hidden;
}

.studio-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  animation: tabProgress 2s linear infinite;
}

@keyframes tabProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* WhatsApp Automation Pane */
.whatsapp-mockup-wrapper {
  padding: 0.75rem 1rem;
  height: 285px;
  min-height: 285px;
  background: radial-gradient(circle at center, rgba(14, 22, 38, 0.95) 0%, #060a14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-chat-window {
  width: 100%;
  max-width: 320px;
  background: #0b141a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.wa-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: #202c33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-avatar-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wa-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00a884;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.74rem;
}

.wa-avatar-row strong {
  display: block;
  font-size: 0.82rem;
  color: #e9edef;
}

.wa-avatar-row small {
  display: block;
  font-size: 0.64rem;
  color: #8696a0;
}

.wa-verified-badge {
  font-size: 0.62rem;
  color: #00a884;
  background: rgba(0, 168, 132, 0.15);
  border: 1px solid rgba(0, 168, 132, 0.3);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.wa-chat-body {
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 14px 14px;
}

.wa-bubble {
  max-width: 88%;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.4;
  position: relative;
}

.wa-bubble p {
  margin: 0;
}

.wa-incoming {
  align-self: flex-start;
  background: #202c33;
  color: #d1d7db;
  border-top-left-radius: 2px;
}

.wa-outgoing {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 2px;
}

.wa-time {
  display: block;
  text-align: right;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}

.wa-read-tick {
  color: #53bdeb;
  font-weight: 700;
  margin-left: 2px;
}

.wa-chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: #202c33;
  color: #8696a0;
  font-size: 0.7rem;
}

.wa-send-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00a884;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

/* AI Scope Calculator Pane */
.studio-calc-wrapper {
  padding: 0.8rem 1rem;
  height: 285px;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.calc-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-chip-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.calc-live-badge {
  font-size: 0.64rem;
  color: var(--mint);
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.calc-input-display {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.calc-prompt-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

.calc-prompt-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #38bdf8;
  line-height: 1.4;
  margin: 0;
}

.calc-breakdown-list {
  background: rgba(10, 16, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.calc-row strong {
  color: #ffffff;
  font-family: var(--font-mono);
}

.calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.2rem 0;
}

.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-total-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  letter-spacing: 0.04em;
}

.calc-total-row small {
  font-size: 0.64rem;
  color: var(--text-muted);
  display: block;
}

.calc-total-amount {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--mint);
  font-weight: 800;
}

/* ==========================================================================
   REALBITS AI CHATBOT WIDGET STYLES (Dynamic Island & Animated Mascot)
   ========================================================================== */
.rb-chatbot-container {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 2147483647 !important; /* Top-most layer across the entire web page, floating above all sections & footer */
  font-family: var(--font-body);
  pointer-events: auto !important;
  display: block !important;
}

/* Dynamic Island Floating Launcher */
.rb-chatbot-launcher.island-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  height: 52px;
  border-radius: 9999px;
  background: rgba(10, 16, 30, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75),
              0 0 25px rgba(0, 242, 254, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.rb-chatbot-launcher.island-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(0, 242, 254, 0.65);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(0, 242, 254, 0.4);
}

.island-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(127, 0, 255, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(6px);
}

.rb-chatbot-launcher.island-launcher:hover .island-glow {
  opacity: 1;
}

/* Mascot Pod */
.island-mascot-pod {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 242, 254, 0.3), rgba(127, 0, 255, 0.35));
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
  overflow: visible;
}

/* Animated Mascot SVG Styles */
.animated-mascot-svg {
  transform-origin: center;
  animation: mascotBob 2.8s infinite ease-in-out;
  overflow: visible;
}

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

/* Blinking Anime Eyes */
@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.12); }
}

.mascot-eye-group {
  transform-origin: 20px 19.5px;
  animation: eyeBlink 3.8s infinite ease-in-out;
}

/* Ear Wiggles */
@keyframes earWiggleLeft {
  0%, 84%, 100% { transform: rotate(0deg); }
  87% { transform: rotate(-8deg); }
  92% { transform: rotate(4deg); }
}

@keyframes earWiggleRight {
  0%, 84%, 100% { transform: rotate(0deg); }
  89% { transform: rotate(8deg); }
  93% { transform: rotate(-5deg); }
}

.ear-left {
  transform-origin: 10px 17px;
  animation: earWiggleLeft 4.5s infinite ease-in-out;
}

.ear-right {
  transform-origin: 30px 17px;
  animation: earWiggleRight 4.5s infinite ease-in-out;
}

/* Island Info Labels */
.island-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.island-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.island-status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mint);
  animation: pulse-ring 2s infinite ease-out;
}

.island-subtitle {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.launcher-icon-close {
  display: none;
  align-items: center;
  justify-content: center;
}

/* Morph Island When Opened */
.rb-chatbot-container.is-open .island-info,
.rb-chatbot-container.is-open .island-mascot-pod {
  display: none;
}

.rb-chatbot-container.is-open .rb-chatbot-launcher.island-launcher {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  background: #f43f5e;
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.45);
}

.rb-chatbot-container.is-open .launcher-icon-close {
  display: flex;
  color: #ffffff;
}

/* Chat Prompt Teaser Tooltip */
.rb-chatbot-teaser {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 270px;
  background: rgba(14, 22, 38, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  animation: floatTeaser 4s infinite ease-in-out;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999999 !important;
}

.rb-chatbot-teaser.is-hidden {
  display: none !important;
}

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

.teaser-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 2px;
}

.teaser-text span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: block;
}

.teaser-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.teaser-close:hover {
  color: white;
}

/* Chatbot Window */
.rb-chatbot-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  z-index: 999999 !important;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 100px);
  background: rgba(8, 13, 26, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 254, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(20px);
  transform-origin: bottom right;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rb-chatbot-container.is-open .rb-chatbot-window {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Window Header */
.chatbot-header {
  padding: 0.9rem 1rem;
  background: rgba(14, 22, 40, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chatbot-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #03050a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.avatar-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid #060a14;
}

.chatbot-title-box h4 {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
}

.chatbot-status {
  font-size: 0.68rem;
  color: var(--mint);
  display: block;
}

.chatbot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-wa-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.35);
  border-radius: 6px;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.chat-wa-header-btn:hover {
  background: rgba(0, 245, 160, 0.22);
}

.chat-header-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.chat-header-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* Messages Body */
.chatbot-messages-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  font-size: 0.82rem;
  line-height: 1.5;
  animation: fadeInMsg 0.25s ease-out;
}

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

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  word-break: break-word;
}

.chat-msg.bot .chat-msg-bubble {
  background: rgba(20, 32, 54, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-top-left-radius: 3px;
}

.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #040814;
  font-weight: 500;
  border-top-right-radius: 3px;
}

.chat-msg-time {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 4px;
}

.chat-msg.user .chat-msg-time {
  text-align: right;
}

.chat-quote-card {
  background: rgba(10, 16, 29, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-top: 6px;
  font-size: 0.8rem;
}

.chat-quote-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mint);
  margin: 4px 0;
  font-family: var(--font-display);
}

.chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background: rgba(0, 242, 254, 0.25);
}

/* Typing Indicator */
.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.85rem;
  background: rgba(20, 32, 54, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border-top-left-radius: 3px;
  align-self: flex-start;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Quick Chips */
.chatbot-quick-chips {
  padding: 0.5rem 0.85rem;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 16, 30, 0.6);
}
.chatbot-quick-chips::-webkit-scrollbar { display: none; }

.chip-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--cyan);
}

/* Input Bar */
.chatbot-input-bar {
  padding: 0.75rem 0.85rem;
  background: rgba(14, 22, 38, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input-bar input:focus {
  border-color: var(--cyan);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cyan);
  border: none;
  color: #040814;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  background: #38bdf8;
}

/* Light Mode Overrides for Chatbot & Studio Panes */
[data-theme="light"] .whatsapp-mockup-wrapper {
  background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .wa-chat-window {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wa-chat-header {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .wa-avatar-row strong {
  color: #0f172a;
}

[data-theme="light"] .wa-avatar-row small {
  color: #64748b;
}

[data-theme="light"] .wa-chat-body {
  background-color: #f8fafc;
}

[data-theme="light"] .wa-incoming {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .wa-outgoing {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #bbf7d0;
}

[data-theme="light"] .wa-time {
  color: #64748b;
}

[data-theme="light"] .wa-chat-footer {
  background: #f1f5f9;
  color: #64748b;
}

[data-theme="light"] .studio-calc-wrapper {
  background: #ffffff;
}

[data-theme="light"] .calc-input-display {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .calc-breakdown-list {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .calc-row {
  color: #334155;
}

[data-theme="light"] .calc-row strong {
  color: #0f172a;
}

[data-theme="light"] .calc-total-amount {
  color: #0284c7;
}

[data-theme="light"] .rb-chatbot-window {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 25px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .chatbot-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .chatbot-title-box h4 {
  color: #0f172a;
}

[data-theme="light"] .chat-msg.bot .chat-msg-bubble {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .chat-quote-card {
  background: #ffffff;
  border-color: #cbd5e1;
}

[data-theme="light"] .chat-typing-dots {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .chatbot-quick-chips {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .chip-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme="light"] .chip-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .chatbot-input-bar {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .chatbot-input-bar input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .rb-chatbot-launcher.island-launcher {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12),
              0 0 25px rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .island-title {
  color: #0f172a;
}

[data-theme="light"] .island-subtitle {
  color: #0284c7;
}

[data-theme="light"] .rb-chatbot-teaser {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .teaser-text strong {
  color: #0284c7;
}

[data-theme="light"] .teaser-text span {
  color: #475569;
}






/* ==========================================================================
   RESPONSIVE DESIGN (Tablets, iPads & Mobile Devices) - ROOT CASCADE
   ========================================================================== */

@media (max-width: 1100px) {
  .hero-title { font-size: 3.2rem; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-wrapper { grid-template-columns: repeat(3, 1fr); }
  .pipeline-wrapper::before { display: none; }
  .tech-grid-display { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .cursor-glow {
    display: none !important;
  }

  .navbar {
    z-index: 10000;
  }

  /* Hero Section Reset: prevent vertical centering cut-off behind navbar */
  .hero-section {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    padding-top: calc(72px + 2.2rem) !important;
    padding-bottom: 3.5rem !important;
    overflow: visible !important;
  }

  #hero-canvas {
    pointer-events: none !important;
  }

  .hero-grid { 
    grid-template-columns: 1fr !important; 
    gap: 2.8rem !important; 
    text-align: center !important; 
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
  }

  .hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 1.2rem !important;
    letter-spacing: -0.02em !important;
  }

  .hero-title .gradient-text,
  .hero-title .text-gradient {
    display: inline !important;
    background: var(--grad-cyan-blue) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  .hero-badge-pill {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1.2rem !important;
    max-width: 100% !important;
  }

  .hero-description { 
    margin-left: auto !important; 
    margin-right: auto !important; 
    max-width: 580px !important;
    font-size: 1.05rem !important;
    line-height: 1.68 !important;
    margin-bottom: 2rem !important;
  }

  .hero-actions { 
    display: flex !important;
    justify-content: center !important; 
    gap: 1rem !important;
    margin-bottom: 2.2rem !important;
  }

  .hero-stats {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding-top: 1.4rem !important;
    border-top: 1px solid var(--border-subtle) !important;
  }

  .hero-visual-card.studio-window {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .services-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }

  .estimator-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
  }

  .estimator-summary-panel { 
    position: static; 
  }

  .estimator-options-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }

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

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

  .pipeline-wrapper { 
    grid-template-columns: repeat(2, 1fr); 
  }

  /* Mobile Navbar Drawer */
  .nav-actions .btn {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(8, 13, 26, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    display: none;
    z-index: 99998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.mobile-open {
    display: flex !important;
    animation: mobileDrawerFade 0.25s ease-out;
  }

  .nav-links .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.6rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-nav-cta {
    display: flex !important;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.5rem;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: #e2e8f0;
  }

  [data-theme="light"] .nav-links .nav-link {
    color: #0f172a;
    border-bottom-color: #f1f5f9;
  }
}

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

@media (max-width: 600px) {
  /* ==========================================================================
     GLOBAL MOBILE RULES — No element > 100vw, 16px side padding everywhere
     ========================================================================== */
  html, body {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  * {
    max-width: 100vw;
    box-sizing: border-box;
  }

  section {
    padding: 2.5rem 0 !important;
  }

  .container {
    padding: 0 16px !important;
  }

  .brand-logo-img {
    height: 36px !important;
  }

  .section-title {
    font-size: 1.9rem !important;
    line-height: 1.22 !important;
  }

  .section-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1.8rem !important;
  }

  /* ==========================================================================
     HERO SECTION — ZERO TEXT CUTOFF, ZERO OVERLAP, FULLY READABLE
     Mobile order: badge → title → description → buttons → stats → studio card
     ========================================================================== */
  .hero-section {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    padding-top: calc(64px + 1.2rem) !important;
    padding-bottom: 2rem !important;
    overflow: visible !important;
  }

  #hero-canvas {
    pointer-events: none !important;
  }

  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center !important;
    padding: 0 !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  /* --- Badge Pill (Step 1) --- */
  .hero-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100% !important;
    width: auto !important;
    padding: 6px 14px !important;
    font-size: 0.76rem !important;
    gap: 6px !important;
    border-radius: 9999px !important;
    margin-bottom: 14px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .hero-badge-pill .pulse-dot {
    width: 7px !important;
    height: 7px !important;
    flex-shrink: 0 !important;
  }

  .hero-badge-pill .badge-prefix {
    font-size: 0.73rem !important;
    flex-shrink: 0 !important;
  }

  .hero-badge-pill .typing-container {
    font-size: 0.75rem !important;
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    border-bottom: 1.5px solid var(--cyan) !important;
    padding-bottom: 1px !important;
  }

  /* --- Hero Title (Step 2) --- */
  .hero-title {
    font-size: clamp(26px, 7.5vw, 34px) !important;
    line-height: 1.18 !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.02em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    overflow: visible !important;
    text-align: center !important;
    text-wrap: balance !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    text-overflow: unset !important;
    max-height: none !important;
  }

  .hero-title br {
    display: block !important;
  }

  .hero-title .gradient-text,
  .hero-title .gradient-text-alt {
    display: inline-block !important;
    background: var(--grad-cyan-blue) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  /* --- Hero Description (Step 3) — Equal square block, balanced lines --- */
  .hero-description {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    padding: 0 4px !important;
    color: var(--text-secondary) !important;
    max-width: 96% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: center !important;
    text-wrap: pretty !important;
    overflow: visible !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    white-space: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    display: block !important;
    max-height: none !important;
    height: auto !important;
    clip: unset !important;
    -webkit-mask: none !important;
    mask: none !important;
  }

  /* --- CTA Buttons (Steps 4+5) — Side-by-side single row --- */
  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 20px auto !important;
    gap: 8px !important;
  }

  .hero-actions .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    gap: 6px !important;
  }

  .hero-actions .btn.btn-primary {
    flex: 1.2 1 0 !important;
  }

  .hero-actions .btn.btn-outline {
    flex: 0.85 1 0 !important;
  }

  .hero-actions .btn span {
    display: inline-block !important;
    line-height: 1.25 !important;
  }

  .hero-actions .btn svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
  }

  /* --- Stats Row (Step 6) — 3-column grid, clean spacing --- */
  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 16px 12px !important;
    background: rgba(14, 22, 38, 0.55) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 14px !important;
    border: 1px solid var(--border-subtle) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  [data-theme="light"] .hero-stats {
    background: rgba(248, 250, 252, 0.9) !important;
    border-color: #e2e8f0 !important;
  }

  .stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .stat-number {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .stat-label {
    font-size: 0.6rem !important;
    line-height: 1.25 !important;
    margin-top: 4px !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.02em !important;
    word-break: break-word !important;
  }

  /* --- Studio Code Editor Window (Step 7) — below stats, clean gap --- */
  .hero-visual-card.studio-window {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .studio-ambient-glow {
    display: none !important;
  }

  .visual-floating-badge {
    display: none !important;
  }

  .studio-window-header {
    display: flex !important;
    align-items: center !important;
    padding: 8px 10px !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .window-controls {
    display: none !important;
  }

  .studio-live-pill {
    display: none !important;
  }

  .studio-tabs {
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 3px !important;
    justify-content: flex-start !important;
  }

  .studio-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .studio-tab {
    flex-shrink: 0 !important;
    padding: 4px 8px !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    gap: 3px !important;
  }

  .studio-tab svg {
    width: 10px !important;
    height: 10px !important;
  }

  .studio-tab-content {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .code-editor-viewport {
    padding: 10px 12px !important;
    font-size: 0.67rem !important;
    line-height: 1.45 !important;
  }

  .code-num {
    width: 18px !important;
    font-size: 0.6rem !important;
  }

  .code-row {
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }

  .studio-terminal {
    padding: 8px 12px !important;
    font-size: 0.67rem !important;
  }

  /* Studio Tab Mockups on Mobile */
  .preview-app-container {
    padding: 10px !important;
  }

  .preview-phone-mockup {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .whatsapp-mockup-wrapper {
    padding: 8px !important;
  }

  .wa-chat-window {
    max-width: 100% !important;
    width: 100% !important;
  }

  .studio-calc-wrapper {
    padding: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .calc-breakdown-list {
    font-size: 0.75rem !important;
  }

  .telemetry-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .telemetry-card {
    padding: 10px 12px !important;
  }

  .telemetry-val {
    font-size: 1.1rem !important;
  }

  /* ==========================================================================
     SERVICES & PORTFOLIO — single column, no overflow
     ========================================================================== */
  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .service-card {
    padding: 1.5rem !important;
  }

  .portfolio-img-box {
    height: 195px !important;
  }

  .portfolio-action-row {
    flex-direction: column !important;
    gap: 0.6rem !important;
    width: 100% !important;
  }

  .portfolio-action-row .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ==========================================================================
     TECH STACK — horizontal scroll tabs, 3-col grid
     ========================================================================== */
  .tech-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.4rem !important;
    padding-bottom: 0.5rem !important;
    justify-content: flex-start !important;
  }

  .tech-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.82rem !important;
    padding: 0.45rem 0.9rem !important;
  }

  .tech-grid-display {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.6rem !important;
  }

  .tech-item-box {
    padding: 0.9rem 0.5rem !important;
  }

  .tech-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.25rem !important;
  }

  .tech-item-box span {
    font-size: 0.72rem !important;
  }

  /* ==========================================================================
     COST ESTIMATOR — single column options
     ========================================================================== */
  .estimator-options-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .option-card {
    padding: 0.85rem 1rem !important;
  }

  .estimator-features-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .feature-item {
    padding: 0.75rem 0.9rem !important;
  }

  .estimator-summary-panel {
    padding: 1.25rem !important;
  }

  .summary-cta-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ==========================================================================
     PIPELINE & TESTIMONIALS — single column
     ========================================================================== */
  .pipeline-wrapper {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .pipeline-step {
    padding: 1.3rem !important;
  }

  .testimonial-card {
    padding: 1.3rem !important;
  }

  /* ==========================================================================
     CONTACT & FORM
     ========================================================================== */
  .contact-highlight-card,
  .contact-form-panel {
    padding: 1.3rem !important;
  }

  .form-group-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
  }

  .submit-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ==========================================================================
     CASE STUDY MODAL
     ========================================================================== */
  .modal-overlay {
    padding: 10px !important;
  }

  .modal-container {
    padding: 1.3rem !important;
    max-width: 95vw !important;
    width: 100% !important;
    max-height: 90vh !important;
  }

  .modal-body {
    padding: 0.5rem 0.2rem !important;
  }

  .modal-title {
    font-size: 1.4rem !important;
  }

  .modal-challenge-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* ==========================================================================
     FOOTER
     ========================================================================== */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
    padding-bottom: 80px !important; /* Room for floating chatbot bubble */
  }

  .footer-bottom-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }

  /* ==========================================================================
     FLOATING CHATBOT — safe bottom-right positioning, never covers CTAs
     ========================================================================== */
  .rb-chatbot-container {
    bottom: 20px !important;
    right: 16px !important;
    z-index: 999 !important;
  }

  .rb-chatbot-launcher.island-launcher {
    height: 46px !important;
    padding: 4px 12px 4px 4px !important;
    gap: 6px !important;
  }

  .island-mascot-pod {
    width: 36px !important;
    height: 36px !important;
  }

  .island-title {
    font-size: 0.78rem !important;
  }

  .island-subtitle {
    font-size: 0.62rem !important;
  }

  .rb-chatbot-teaser {
    display: none !important;
  }

  /* Native Mobile Bottom-Sheet for opened chatbot */
  .rb-chatbot-window {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 85vh !important;
    max-height: 85vh !important;
    border-radius: 22px 22px 0 0 !important;
    border-bottom: none !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
    z-index: 100000 !important;
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
  }

  .rb-chatbot-container.is-open .rb-chatbot-window {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .rb-chatbot-container.is-open .rb-chatbot-launcher.island-launcher {
    display: none !important;
  }

  .chatbot-input-bar {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  [data-theme="light"] .rb-chatbot-window {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(2, 132, 199, 0.35) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
  }
}

/* ==========================================================================
   EXTRA SMALL DEVICES (320px–380px)
   ========================================================================== */
@media (max-width: 380px) {
  .hero-title {
    font-size: 26px !important;
    line-height: 1.18 !important;
  }

  .hero-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .hero-badge-pill {
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
  }

  .hero-badge-pill .typing-container {
    max-width: 130px !important;
  }

  .hero-actions {
    gap: 6px !important;
    margin-bottom: 16px !important;
  }

  .hero-actions .btn {
    padding: 8px 5px !important;
    font-size: 0.74rem !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    gap: 4px !important;
  }

  .hero-actions .btn svg {
    width: 13px !important;
    height: 13px !important;
  }

  .stat-number {
    font-size: 1.05rem !important;
  }

  .stat-label {
    font-size: 0.55rem !important;
  }

  .tech-grid-display {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .section-title {
    font-size: 1.65rem !important;
  }
}
