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

/* Color System - Variables */
:root {
  --red:           #E60000;
  --red-dim:       #9B0012;
  --red-glow:      rgba(230, 0, 0, 0.3);
  --red-ultra-dim: rgba(230, 0, 0, 0.08);
  --black:         #050505;
  --black2:        #0A0A0A;
  --black3:        #0F0F0F;
  --silver:        #C8CDD6;
  --silver-light:  #E8ECF2;
  --silver-dim:    #6B7280;
  --white:         #F5F5F5;
  --glass-border:  rgba(255, 255, 255, 0.06);
  --glass-bg:      rgba(255, 255, 255, 0.03);
}

/* Reset and HTML Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--black);
}
body {
  width: 100%;
  background-color: transparent;
  color: var(--white);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Hide default cursor on desktop */
@media (min-width: 1024px) {
  body {
    cursor: none;
  }
  a, button, input, textarea, select, [role="button"], .qnav-card, .tech-pill, .service-card, .project-card, .price-card {
    cursor: none;
  }
}

/* 1.4 Scanline + Noise Overlay */
body::before {
  content: '';
  position: fixed; 
  inset: 0; 
  z-index: 9990;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.015) 2px, rgba(0,0,0,0.015) 4px
  );
  pointer-events: none;
}

/* 1.5 Scrollbar */
::-webkit-scrollbar { 
  width: 3px; 
}
::-webkit-scrollbar-track { 
  background: var(--black); 
}
::-webkit-scrollbar-thumb { 
  background: var(--red); 
  border-radius: 0; 
}

/* Lenis Smooth Scroll Configuration */
html.lenis {
  height: auto;
}
.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis-stopped {
  overflow: hidden;
}
.lenis-scrolling iframe {
  pointer-events: none;
}

/* Custom Selection */
::selection {
  background-color: var(--red);
  color: var(--white);
}

/* 1.1 Typography Rules */
h1, h2, h3, .section-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--white);
}

h1 {
  letter-spacing: -0.02em;
}

h2 {
  letter-spacing: -0.01em;
}

p, li, label, input, textarea, select {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
}

.hud-text, .mono, .label-tag, .stat-label, .code-block, .preloader-percent, .qnav-card {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.15em;
}

/* Uppercase Section Labels */
.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
}

/* 1.3 Custom Cursor */
#cursor-dot {
  position: fixed;
  width: 8px; 
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
  display: none;
}

#cursor-ring {
  position: fixed;
  width: 40px; 
  height: 40px;
  border: 1px solid rgba(230, 0, 0, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  display: none;
}

@media (min-width: 1024px) {
  #cursor-dot, #cursor-ring {
    display: block;
  }
}

/* Cursor on hover */
body.cursor-hover #cursor-dot { 
  width: 16px; 
  height: 16px; 
  background: var(--white);
}

body.cursor-hover #cursor-ring { 
  width: 60px; 
  height: 60px; 
  border-color: var(--red); 
}

/* Background canvas */
#scroll-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Keep canvas behind all content */
  pointer-events: none;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

#scroll-canvas.warp-active {
  transform: scale(1.06);
  filter: brightness(1.2) contrast(1.1) blur(1.5px);
}

@keyframes scanline-anim {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}
.animate-scanner {
  animation: scanline-anim 3s linear infinite;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(15, 15, 15, 0.85);
  border-color: var(--red);
  box-shadow: 0 0 30px var(--red-glow);
}

/* Custom Navigation underline reveal */
.nav-link-item {
  position: relative;
}
.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link-item:hover::after {
  transform: scaleX(1);
}

/* Cinematic Preloader Split System */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: transparent;
  pointer-events: all;
}

.preloader-panel-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: #030303;
  z-index: 1;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.preloader-panel-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: #030303;
  z-index: 1;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
}

.preloader-laser {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  z-index: 2;
  box-shadow: 0 0 8px var(--red), 0 0 24px var(--red), 0 0 48px rgba(230, 0, 0, 0.4);
  transform: translateY(-50%) scaleX(0);
  transform-origin: center;
}

.preloader-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Glow effects */
.glow-text-ruby {
  text-shadow: 0 0 10px rgba(230, 0, 0, 0.5), 0 0 20px rgba(230, 0, 0, 0.3);
}

/* Magnetic buttons */
.btn-cinematic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile fullscreen nav menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(5,5,5,0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

/* Hamburger animations */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open .line-1 {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open .line-2 {
  opacity: 0;
}
.hamburger.open .line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero elements */
.hero-glow {
  position: absolute; 
  width: 700px; 
  height: 700px;
  background: radial-gradient(circle, rgba(230,0,0,0.18) 0%, transparent 70%);
  top: 5%; 
  right: 30%; 
  pointer-events: none; 
  z-index: 0;
  animation: glow-float 12s ease-in-out infinite alternate;
}

@keyframes glow-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 40px) scale(1.15); }
}

#hero-section::before {
  content: '';
  position: absolute; 
  inset: 0; 
  z-index: 0;
  background-image:
    linear-gradient(rgba(200,205,214,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,205,214,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

#hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    rgba(5,5,5,0.85) 0%,
    rgba(5,5,5,0.6) 50%,
    rgba(5,5,5,0.3) 100%
  );
  pointer-events: none;
}

/* Corner HUD Brackets */
.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(230,0,0,0.5);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.hud-corner.tl { top: 20px; left: 20px; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 20px; right: 20px; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 20px; right: 20px; border-width: 0 2px 2px 0; }

/* System Label Tag */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(230,0,0,0.08);
  border: 1px solid rgba(230,0,0,0.3);
  border-radius: 0;
  padding: 6px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #E60000;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #E60000;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 8px #E60000;
}

/* Heading left border wrap */
.hero-heading-wrap {
  border-left: 3px solid #E60000;
  padding-left: 32px;
  box-shadow: -8px 0 24px rgba(230,0,0,0.3);
}

.hero-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero-heading .word {
  color: var(--white);
}
.hero-heading .outline {
  color: transparent;
  -webkit-text-stroke: 2px #E60000;
}
.hero-heading .red {
  color: #E60000;
}

/* Primary Button */
.btn-primary {
  background: #E60000;
  color: #050505;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 24px rgba(230,0,0,0.4);
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background: #ff1a1a;
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(230,0,0,0.6);
}

/* Secondary Button Text Link */
.btn-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(200,205,214,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(230,0,0,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-text:hover {
  color: #fff;
  border-color: #E60000;
}

/* Stats Glass Panel */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 56px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,5,5,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
}
.stat-item {
  padding: 20px 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-num span {
  color: #E60000;
}
.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(200,205,214,0.5);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Decorative Code Block */
.hero-code {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5,5,5,0.75);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 2px solid #E60000;
  padding: 24px 28px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
  max-width: 340px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 40px rgba(230,0,0,0.08);
  display: none;
}
@media (min-width: 1024px) {
  .hero-code {
    display: block;
  }
}
.code-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.code-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.code-dots .dot.red { background: #E60000; }
.code-dots .dot.yellow { background: #ffb400; }
.code-dots .dot.green { background: #29c740; }
.code-dots .code-filename {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(200,205,214,0.4);
  margin-left: 10px;
  letter-spacing: 0.1em;
}
.c-comment { color: #6B7280; }
.c-key { color: #E8ECF2; }
.c-str { color: #E60000; }
.c-num { color: #64b5f6; }

/* Quick-Nav Cards */
.hero-quicknav {
  position: absolute;
  right: 28%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qnav-card {
  display: block;
  width: 220px;
  padding: 14px 20px;
  padding-left: 54px;
  background: rgba(5, 5, 5, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(200, 205, 214, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.qnav-card em {
  display: block;
  font-style: normal;
  font-size: 8px;
  color: rgba(200, 205, 214, 0.3);
  margin-top: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qnav-card .qn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #E60000;
  font-weight: 700;
  left: 20px;
}

.qnav-card:has(.qn:last-child) {
  padding-left: 20px;
  padding-right: 54px;
}

.qnav-card:has(.qn:last-child) .qn {
  left: auto;
  right: 20px;
}

.qnav-card:hover {
  background: rgba(5, 5, 5, 0.85);
  border-color: #E60000;
  color: #fff;
  transform: translateX(-4px);
  box-shadow: -4px 0 20px rgba(230, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(200,205,214,0.4);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #E60000, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}


/* Section Service Card style adjustments */
.service-card {
  border: 1px solid var(--glass-border);
  background: rgba(10,10,10,0.6); 
  backdrop-filter: blur(8px);
  padding: 40px 32px; 
  position: relative; 
  overflow: visible !important;
  z-index: 2;
  
  /* Initial state for viewport reveal animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s !important;
}

.service-card.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 2px;
  background: var(--red); 
  transform: scaleX(0); 
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 10;
}

.service-card:hover { 
  background: rgba(15,15,15,0.9); 
  border-color: rgba(255,255,255,0.1);
}

.service-card:hover::before { 
  transform: scaleX(1); 
}

/* Horizontal scroll portfolio */
.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  width: 300vw;
  height: 100vh;
}

.portfolio-slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card {
  border: 1px solid var(--glass-border); 
  border-left: 3px solid transparent;
  background: var(--black2); 
  padding: 40px 36px;
  min-width: 500px; 
  transition: border-left-color 0.3s, transform 0.3s, border-color 0.3s;
}

@media (max-width: 640px) {
  .project-card {
    min-width: 100%;
  }
}

.project-card:hover { 
  border-left-color: var(--red); 
  transform: translateY(-4px); 
  border-color: rgba(255,255,255,0.1);
}

.project-tag { 
  font-family: 'Share Tech Mono', monospace; 
  font-size: 10px; 
  letter-spacing: 0.15em; 
  color: var(--red); 
  background: var(--red-ultra-dim); 
  padding: 4px 12px; 
}

.project-result { 
  font-family: 'Share Tech Mono', monospace; 
  font-size: 11px; 
  color: var(--silver-dim); 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  letter-spacing: 0.1em;
}

.project-result::before { 
  content: ''; 
  width: 4px; 
  height: 4px; 
  background: var(--red); 
  border-radius: 50%; 
  flex-shrink: 0; 
}

/* SVG Laser Drawing path rules */
.laser-path {
  stroke: var(--red);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px var(--red)) drop-shadow(0 0 12px rgba(230,0,0,0.5));
}

.laser-line-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.1s linear;
}

/* Testimonials Cards */
.testi-card {
  border: 1px solid var(--glass-border); 
  background: var(--black2);
  padding: 36px; 
  position: relative; 
  overflow: hidden;
  
  /* Initial state for viewport reveal animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s !important;
}

.testi-card.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.testi-card::after {
  content: '\201C'; 
  position: absolute; 
  top: -10px; 
  right: 16px;
  font-size: 120px; 
  line-height: 1; 
  color: rgba(230, 0, 0, 0.06);
  font-family: Georgia, serif; 
  pointer-events: none;
}

/* Pricing growth card standout design */
.price-card.popular {
  border-color: rgba(230,0,0,0.4) !important;
  border-top: 2px solid var(--red) !important;
  background: rgba(15,5,5,0.9);
  box-shadow: 0 0 40px rgba(230,0,0,0.08);
}

.popular-badge {
  position: absolute; 
  top: -1px; 
  right: 28px;
  background: var(--red); 
  color: #050505;
  font-family: 'Share Tech Mono', monospace; 
  font-size: 10px; 
  letter-spacing: 0.15em;
  padding: 4px 14px; 
  text-transform: uppercase;
  font-weight: 700;
}

/* CTA Banner Diagonal Stripe Overlay */
#cta-banner::before {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(0,0,0,0.05) 40px, rgba(0,0,0,0.05) 41px);
  pointer-events: none;
}

/* Form inputs styling */
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 1px var(--red), 0 0 12px rgba(230,0,0,0.15);
  outline: none;
}

/* Chatbot interface animations */
#chatbot-window {
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#chatbot-window.open {
  transform: translateY(0);
  animation: chatWindowGlow 3s ease infinite alternate;
}

@keyframes chatWindowGlow {
  0%   { box-shadow: 0 0 18px rgba(230,0,0,0.15), 0 8px 32px rgba(0,0,0,0.6); }
  100% { box-shadow: 0 0 34px rgba(230,0,0,0.32), 0 8px 40px rgba(0,0,0,0.7); }
}

/* ── Bubble slide-in keyframe ─────────────────────────────────────────────── */
@keyframes chatBubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Base bubble ─────────────────────────────────────────────────────────── */
.chat-msg-bubble {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  animation: chatBubbleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* User bubble — right-aligned */
.chat-msg-user {
  align-self: flex-end;
  margin-left: auto;
  background: rgba(230,0,0,0.12);
  border: 1px solid rgba(230,0,0,0.3);
  color: #fff;
  text-align: right;
}

/* Bot bubble — left-aligned */
.chat-msg-bot {
  align-self: flex-start;
  margin-right: auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  text-align: left;
}

/* Labels above bubbles */
.chat-msg-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.chat-msg-label--bot {
  color: #e60000;
}

/* ── Typing indicator dots ─────────────────────────────────────────────────── */
.chat-typing-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
  animation: chatBubbleIn 0.3s ease both;
}

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

.chat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e60000;
  margin: 2px 3px 0;
  animation: chatDotBounce 1.2s infinite ease-in-out;
}
.chat-dot:nth-child(2) { animation-delay: 0.18s; }
.chat-dot:nth-child(3) { animation-delay: 0.36s; }

/* Input disabled state */
#chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* pulseRed keyframes */
@keyframes pulseRed {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(230, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
  }
}

.pulse-ring {
  animation: pulseRed 2.5s infinite;
}

/* Blinking dot for online status */
@keyframes blinkGreen {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.blink-dot {
  animation: blinkGreen 1.5s infinite;
}

/* --- Generic Interactive Box Hover Animations --- */
.service-card, .project-card, .testi-card, .price-card, .process-card, .glass-card, .glass-panel, .stat-item, .hero-code, .qnav-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
}

.service-card:hover, .project-card:hover, .testi-card:hover, .price-card:hover, .process-card:hover, .glass-card:hover, .glass-panel:hover, .stat-item:hover, .hero-code:hover, .qnav-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(230, 0, 0, 0.2) !important;
  border-color: rgba(230, 0, 0, 0.5) !important;
  background: rgba(15, 15, 15, 0.9) !important;
}

/* Make elements inside hovered boxes bold and bright */
.service-card:hover h1, .service-card:hover h2, .service-card:hover h3, .service-card:hover h4, .service-card:hover .project-title, .service-card:hover .testi-name, .service-card:hover .stat-num,
.project-card:hover h1, .project-card:hover h2, .project-card:hover h3, .project-card:hover h4, .project-card:hover .project-title, .project-card:hover .testi-name, .project-card:hover .stat-num,
.testi-card:hover h1, .testi-card:hover h2, .testi-card:hover h3, .testi-card:hover h4, .testi-card:hover .project-title, .testi-card:hover .testi-name, .testi-card:hover .stat-num,
.process-card:hover h1, .process-card:hover h2, .process-card:hover h3, .process-card:hover h4, .process-card:hover .project-title, .process-card:hover .testi-name, .process-card:hover .stat-num,
.glass-card:hover h1, .glass-card:hover h2, .glass-card:hover h3, .glass-card:hover h4, .glass-card:hover .project-title, .glass-card:hover .testi-name, .glass-card:hover .stat-num,
.glass-panel:hover h1, .glass-panel:hover h2, .glass-panel:hover h3, .glass-panel:hover h4, .glass-panel:hover .project-title, .glass-panel:hover .testi-name, .glass-panel:hover .stat-num,
.stat-item:hover h1, .stat-item:hover h2, .stat-item:hover h3, .stat-item:hover h4, .stat-item:hover .project-title, .stat-item:hover .testi-name, .stat-item:hover .stat-num,
.hero-code:hover h1, .hero-code:hover h2, .hero-code:hover h3, .hero-code:hover h4, .hero-code:hover .project-title, .hero-code:hover .testi-name, .hero-code:hover .stat-num,
.qnav-card:hover h1, .qnav-card:hover h2, .qnav-card:hover h3, .qnav-card:hover h4, .qnav-card:hover .project-title, .qnav-card:hover .testi-name, .qnav-card:hover .stat-num {
  font-weight: 900 !important;
  color: var(--white) !important;
}

.service-card:hover p, .service-card:hover span, .service-card:hover label, .service-card:hover .project-desc, .service-card:hover .testi-quote, .service-card:hover .stat-label,
.project-card:hover p, .project-card:hover span, .project-card:hover label, .project-card:hover .project-desc, .project-card:hover .testi-quote, .project-card:hover .stat-label,
.testi-card:hover p, .testi-card:hover span, .testi-card:hover label, .testi-card:hover .project-desc, .testi-card:hover .testi-quote, .testi-card:hover .stat-label,
.process-card:hover p, .process-card:hover span, .process-card:hover label, .process-card:hover .project-desc, .process-card:hover .testi-quote, .process-card:hover .stat-label,
.glass-card:hover p, .glass-card:hover span, .glass-card:hover label, .glass-card:hover .project-desc, .glass-card:hover .testi-quote, .glass-card:hover .stat-label,
.glass-panel:hover p, .glass-panel:hover span, .glass-panel:hover label, .glass-panel:hover .project-desc, .glass-panel:hover .testi-quote, .glass-panel:hover .stat-label,
.stat-item:hover p, .stat-item:hover span, .stat-item:hover label, .stat-item:hover .project-desc, .stat-item:hover .testi-quote, .stat-item:hover .stat-label,
.hero-code:hover p, .hero-code:hover span, .hero-code:hover label, .hero-code:hover .project-desc, .hero-code:hover .testi-quote, .hero-code:hover .stat-label,
.qnav-card:hover p, .qnav-card:hover span, .qnav-card:hover label, .qnav-card:hover .project-desc, .qnav-card:hover .testi-quote, .qnav-card:hover .stat-label {
  color: var(--white) !important;
}

/* Wiggle animation for icons/avatars inside hovered boxes */
.service-card:hover i, .service-card:hover img, .service-card:hover svg, .service-card:hover .testi-avatar, .service-card:hover .w-8,
.project-card:hover i, .project-card:hover img, .project-card:hover svg, .project-card:hover .testi-avatar, .project-card:hover .w-8,
.testi-card:hover i, .testi-card:hover img, .testi-card:hover svg, .testi-card:hover .testi-avatar, .testi-card:hover .w-8,
.process-card:hover i, .process-card:hover img, .process-card:hover svg, .process-card:hover .testi-avatar, .process-card:hover .w-8,
.glass-card:hover i, .glass-card:hover img, .glass-card:hover svg, .glass-card:hover .testi-avatar, .glass-card:hover .w-8,
.glass-panel:hover i, .glass-panel:hover img, .glass-panel:hover svg, .glass-panel:hover .testi-avatar, .glass-panel:hover .w-8,
.stat-item:hover i, .stat-item:hover img, .stat-item:hover svg, .stat-item:hover .testi-avatar, .stat-item:hover .w-8,
.hero-code:hover i, .hero-code:hover img, .hero-code:hover svg, .hero-code:hover .testi-avatar, .hero-code:hover .w-8,
.qnav-card:hover i, .qnav-card:hover img, .qnav-card:hover svg, .qnav-card:hover .testi-avatar, .qnav-card:hover .w-8 {
  animation: boxWiggle 0.6s ease-in-out infinite alternate !important;
}

@keyframes boxWiggle {
  0% { transform: rotate(-5deg) scale(1.1); }
  100% { transform: rotate(5deg) scale(1.1); }
}

/* --- Scroll-to-Top Ship Button --- */
.scroll-top-ship {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px) scale(0.8);
  z-index: 99;
  background: rgba(5, 5, 5, 0.85);
  border: 1.5px solid rgba(230, 0, 0, 0.4);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(230, 0, 0, 0.2);
}

.scroll-top-ship:hover {
  border-color: #E60000;
  transform: translateX(-50%) translateY(-5px) scale(1.15);
  box-shadow: 0 0 25px rgba(230, 0, 0, 0.6);
}

.scroll-top-ship.visible {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.ship-fire {
  position: absolute;
  bottom: -6px;
  width: 8px;
  height: 8px;
  background: #E60000;
  border-radius: 50%;
  filter: blur(1px);
  animation: shipThruster 0.15s infinite alternate;
  box-shadow: 0 0 8px #E60000;
  opacity: 0;
  transition: opacity 0.2s;
}

.scroll-top-ship:hover .ship-fire {
  opacity: 1;
}

@keyframes shipThruster {
  0% { transform: scaleY(1) translateY(0); }
  100% { transform: scaleY(1.8) translateY(2px); }
}

/* --- Head Football Game Layout Styles --- */
.arcade-cabinet {
  background: rgba(10, 10, 10, 0.95);
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 50px rgba(230, 0, 0, 0.15);
}

/* 4. MOBILE RESPONSIVENESS RULES */
@media (max-width: 1024px) {
  .hero-code { display: none !important; }
  .hero-quicknav { display: none !important; }
  .hero-heading { font-size: clamp(52px, 12vw, 80px); }
}

@media (max-width: 768px) {
  section { padding: 60px 20px !important; }
  nav { padding: 14px 20px !important; }
  .nav-desktop-links, .nav-desktop-cta { display: none !important; }
  .nav-mobile-hamburger { display: flex !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .testi-grid { grid-template-columns: 1fr !important; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .contact-inner { grid-template-columns: 1fr !important; }
  .process-stats { grid-template-columns: 1fr 1fr !important; }
  .hero-stats { gap: 20px !important; flex-wrap: wrap !important; }
  .hero-heading { font-size: clamp(48px, 13vw, 72px) !important; }
}
