/* ==========================================================================
   RICHEEY DESIGNS — DESIGN SYSTEM & CORE STYLESHEET
   Architect: Tshiamo Richeey Mafojane
   Tech Aesthetics: Cyber-Modern, Dark Glassmorphism, Neon Holographic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Syne:wght@600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-deep: #05070D;
  --bg-surface: #0A0F1D;
  --bg-card: rgba(13, 20, 36, 0.72);
  --bg-card-hover: rgba(19, 30, 54, 0.85);
  --bg-elevated: rgba(23, 36, 65, 0.6);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 240, 255, 0.3);
  --border-glow: rgba(139, 92, 246, 0.4);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #00F0FF;

  --neon-cyan: #00F0FF;
  --neon-purple: #8B5CF6;
  --neon-pink: #EC4899;
  --neon-green: #10B981;
  --neon-amber: #F59E0B;

  --grad-primary: linear-gradient(135deg, #00F0FF 0%, #8B5CF6 50%, #EC4899 100%);
  --grad-surface: linear-gradient(180deg, rgba(16, 26, 48, 0.8) 0%, rgba(8, 13, 24, 0.9) 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.15) 0%, transparent 70%);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

/* Selection */
::selection {
  background: var(--neon-cyan);
  color: #000000;
}

/* --- Background Cyber Canvas & Grid --- */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.65;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  pointer-events: none;
}

/* Ambient glow blobs */
.glow-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  animation: float-slow 18s ease-in-out infinite alternate;
}
.glow-orb-1 {
  top: 10%;
  left: -100px;
  background: var(--neon-cyan);
}
.glow-orb-2 {
  bottom: 20%;
  right: -100px;
  background: var(--neon-purple);
  animation-duration: 22s;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-mono {
  font-family: var(--font-mono);
}

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

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-full);
}

.section-title {
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* --- Navigation Header --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 20px 0;
}

.header-nav.scrolled {
  padding: 12px 0;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}
.nav-logo:hover {
  transform: scale(1.02);
}
.nav-logo img {
  height: 42px;
  width: auto;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  border-radius: var(--radius-full);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Live Operational Pulse */
.sys-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px var(--neon-green);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid var(--neon-green);
  animation: pulse-ring 2s infinite;
}

/* Sound Effect Button */
.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.audio-toggle-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--border-accent);
  background: rgba(0, 240, 255, 0.08);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: rgba(7, 11, 22, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-subtle);
  z-index: 1050;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}
.mobile-nav-drawer.open {
  right: 0;
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.mobile-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
}
.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-link:hover, .mobile-link.active {
  color: var(--neon-cyan);
}
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-primary);
  color: #05070D;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5), 0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-glow {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border-color: var(--border-accent);
}
.btn-glow:hover {
  background: var(--neon-cyan);
  color: #05070D;
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* --- Cards & Glass Panels --- */
.tech-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.15);
  background: var(--bg-card-hover);
}

.card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.tech-card:hover .card-top-accent {
  opacity: 1;
}

/* Card Icon Box */
.icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan);
  transition: all var(--transition-normal);
}
.tech-card:hover .icon-box {
  transform: scale(1.1) rotate(4deg);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.icon-box-purple {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--neon-purple);
}
.tech-card:hover .icon-box-purple {
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* --- Hero Section Styles --- */
.hero-section {
  padding-top: 170px;
  padding-bottom: 110px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(13, 22, 42, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
}

.hero-title {
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Tech Interactive Terminal Mockup */
.hero-terminal {
  background: #080D1A;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
  position: relative;
}

.terminal-header {
  background: #0D1426;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}
.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.t-dot-red { background: #EF4444; }
.t-dot-yellow { background: #F59E0B; }
.t-dot-green { background: #10B981; }

.terminal-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 24px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #CBD5E1;
  min-height: 280px;
}

.t-prompt {
  color: var(--neon-cyan);
}
.t-highlight {
  color: #38BDF8;
}
.t-keyword {
  color: #EC4899;
}
.t-string {
  color: #34D399;
}
.t-comment {
  color: #64748B;
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--neon-cyan);
  vertical-align: middle;
  animation: cursor-blink 1s infinite;
  margin-left: 4px;
}

/* Stats Counter Row */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* --- Tech Stacks & Marquee --- */
.tech-marquee-wrapper {
  overflow: hidden;
  padding: 24px 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.tech-tag-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.tech-tag-pill:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* --- Services Matrix Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-body h3 {
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.service-card-body p {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-features li span.check-icon {
  color: var(--neon-cyan);
  font-weight: bold;
}

/* --- Projects / Portfolio Showcase --- */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.18);
}

.project-preview {
  height: 220px;
  background: #0D1627;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview-graphic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-preview-graphic {
  transform: scale(1.06);
}

.project-overlay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(6, 9, 17, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.project-info {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-mini-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* --- Ecosystem / Umbrella Companies Showcase --- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.venture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.venture-card-flagship {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.12);
}

.venture-card-media {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.12);
}

.venture-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.badge-flagship {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.badge-umbrella {
  background: rgba(245, 158, 11, 0.1);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- Project Estimator / Calculator (calculator.html) --- */
.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.calc-step {
  margin-bottom: 32px;
}

.calc-step-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--neon-cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.calc-chip {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.calc-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.calc-chip.selected {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  font-weight: 600;
}

/* Output Box */
.calc-output-card {
  background: #080D1A;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: sticky;
  top: 100px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.15);
}

.calc-price-display {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 20px 0;
}

.calc-price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

/* --- Contact & Intake Form (contact.html) --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}
.contact-channel-card:hover {
  border-color: var(--neon-cyan);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(8, 13, 26, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
  background: rgba(11, 18, 36, 0.9);
}

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

/* --- Founder Bio Card (about.html) --- */
.founder-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 35px rgba(0, 240, 255, 0.15);
  margin-top: 40px;
}

.founder-avatar-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-accent);
  background: #0c1424;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-avatar-wrap svg {
  width: 80%;
  height: 80%;
}

.founder-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.founder-spec-box {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.founder-spec-label {
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.founder-spec-val {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* --- Call To Action Section --- */
.cta-banner {
  background: linear-gradient(135deg, rgba(16, 26, 48, 0.9) 0%, rgba(13, 20, 36, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 70px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.2);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Footer --- */
.site-footer {
  background: #04060A;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
  position: relative;
}

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

.footer-brand p {
  margin: 18px 0 24px;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--neon-cyan);
}

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

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0D1627;
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), var(--shadow-glow-cyan);
  z-index: 2000;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Animations Keyframes --- */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

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

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.15); }
}

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

/* --- Responsive Media Queries (Laptops, Tablets & Mobile Phones) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .calc-grid,
  .founder-card,
  .ecosystem-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Navigation Bar Adjustments */
  .nav-links,
  .sys-status-badge,
  .nav-right-actions > .btn-glow {
    display: none !important;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-right-actions {
    gap: 8px;
  }
  .brand-logo img {
    height: 34px !important;
    width: 34px !important;
  }
  .brand-name {
    font-size: 0.95rem !important;
  }

  /* Grid Reductions */
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .stat-item::after {
    display: none !important;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Card and Section Spacing */
  .section {
    padding: 60px 0;
  }
  .tech-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }
}

/* Dedicated Mobile Cell Phone Optimizations (Screen width <= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 50px 0;
  }
  .tech-card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }
  h1, .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.2rem !important;
  }
  .hero-desc {
    font-size: 0.95rem !important;
  }

  /* Touch Input Sizing to prevent iOS Safari auto-zoom */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Responsive Calculator Grid */
  .calc-options-grid {
    grid-template-columns: 1fr !important;
  }

  /* Mobile Tables Horizontal Scrolling */
  .leads-table-container {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}
