/* ==========================================================================
   Qcode — "Terminal Rigor" AI positioning theme
   Loaded last: overrides blue.css/style.css accent + adds new hero/services
   elements. Kept in its own file so the base template stays untouched.
   ========================================================================== */

@import url(https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap);

:root{
  --qc-amber:#E8A33D;
  --qc-amber-dark:#C97F1F;
  --qc-amber-light:#F4C579;
  --qc-ink-0:#08090A;
  --qc-ink-1:#0F1114;
  --qc-ink-2:#171A1E;
  --qc-line:#262A30;
  --qc-dim:#9195A0;
  --qc-green:#7EE787;
  --qc-blue:#5E8CFF;
}

/* ---- global shaded-black animated background --------------------------
   #particles-js now lives at the top of <body> (moved in index.html) as a
   single fixed backdrop, instead of being scoped to the hero only, so the
   same animated network runs, faded, behind every section as you scroll. */
#particles-js{
  position:fixed !important;
  top:0; left:0;
  width:100vw !important;
  height:100vh !important;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 900px 600px at 20% 15%, #1B1E22 0%, transparent 60%),
    radial-gradient(ellipse 800px 700px at 85% 60%, #16181C 0%, transparent 55%),
    linear-gradient(180deg, var(--qc-ink-1) 0%, var(--qc-ink-0) 100%);
}

body{ background-color: var(--qc-ink-0); position:relative; }

header, .navbar-fixed-top, main, footer, .jumbotron-main,
section#ideology, section#services, section#about, section#contact,
footer.footer-padding{
  position:relative;
  z-index:1;
}

/* Bootstrap's .jumbotron ships an opaque #eee background — it used to be
   hidden under #particles-js as a child; now that the canvas is a fixed,
   page-wide layer, the jumbotron itself must stay transparent. */
.jumbotron.jumbotron-main{ background-color: transparent; }

.navbar-default{
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a{
  text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 1px 2px rgba(0,0,0,.7);
}
.navbar-default .navbar-toggle{ box-shadow:none; }
@media (max-width: 767px){
  /* the mobile dropdown needs a surface behind it, or the menu items are
     unreadable over whatever section happens to be scrolled underneath */
  .navbar-default .navbar-collapse.in,
  .navbar-default .navbar-collapse.collapsing{
    background: rgba(10,11,13,0.92);
  }
}

.background1{ background-color: rgba(18,20,23,0.80) !important; }
.background2{ background-color: rgba(12,14,16,0.66) !important; }
#our-process-title{ background-color: rgba(20,22,25,0.72) !important; }

footer.footer-padding{ background: rgba(10,11,13,0.55); }

/* ---- accent color: amber, replacing the blue.css defaults ------------- */
a{ color: var(--qc-amber); }
a:focus, a:hover{ color: var(--qc-amber-light); }

#royal_preloader.royal_preloader_number .royal_preloader_percentage:after{
  border-left-color: var(--qc-amber);
}

.btn-default:hover,
.btn-default.active, .btn-default:active, .open>.dropdown-toggle.btn-default,
.btn-default.active.focus, .btn-default.active:focus, .btn-default.active:hover,
.btn-default:active.focus, .btn-default:active:focus, .btn-default:active:hover,
.open>.dropdown-toggle.btn-default.focus, .open>.dropdown-toggle.btn-default:focus, .open>.dropdown-toggle.btn-default:hover{
  background-color: var(--qc-amber);
  border-color: var(--qc-amber);
}

.btn-primary{ background-color: var(--qc-amber); border-color: var(--qc-amber); }
.btn-primary:hover,
.btn-primary.active, .btn-primary:active, .open>.dropdown-toggle.btn-primary,
.btn-primary.active.focus, .btn-primary.active:focus, .btn-primary.active:hover,
.btn-primary:active.focus, .btn-primary:active:focus, .btn-primary:active:hover,
.btn-primary.focus, .btn-primary:focus{
  background-color: var(--qc-amber-dark);
  border-color: var(--qc-amber-dark);
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:focus, .navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:focus, .navbar-default .navbar-nav > .active > a:hover{
  color: var(--qc-amber-light);
}
.navbar-default .navbar-toggle{ border-color: var(--qc-amber); background-color: var(--qc-amber); }
.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover{ background-color: var(--qc-amber-dark); }

.services-icon{ color: var(--qc-amber); }

/* ==========================================================================
   Site-wide typography — same JetBrains Mono / IBM Plex Sans pairing used
   in the hero and the AI Engineering card, applied consistently everywhere
   ========================================================================== */
body{ font-family:'IBM Plex Sans', sans-serif; }

.section-title h2,
#our-process-title h4,
.process-intro h2, .process-content h2,
.heading-1,
.service-name, .service-title,
.hero-brand,
#hello-intro h2{
  font-family:'JetBrains Mono', monospace;
  letter-spacing:-.01em;
}

#hello-intro h3{
  font-family:'IBM Plex Sans', sans-serif;
  font-weight:300;
}

#our-process-title h4{
  letter-spacing:.14em;
  font-weight:700;
}

.process-number{
  font-family:'JetBrains Mono', monospace;
  color: var(--qc-dim);
}

/* ==========================================================================
   Values — "// principle" variant: left-accented definition blocks instead
   of the old centered 01/02/03 numeral + hover flip-card
   ========================================================================== */
#our-process .row{ display:flex; flex-wrap:wrap; }
#our-process .process-box{
  min-height:0;
  display:flex;
  align-items:center;
  border-right-color: var(--qc-line);
}
#our-process .process-box:hover{ background-image:none; }

.value-card{
  --accent:#E8A33D;
  text-align:left;
  max-width:360px;
  margin:0 auto;
  padding-left:22px;
  border-left:3px solid var(--accent);
}
.value-icon{
  display:block;
  font-size:22px;
  color: var(--accent);
  margin-bottom:12px;
}
.value-eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  color: var(--accent);
  letter-spacing:.02em;
  margin:0 0 8px;
}
.value-title{
  font-family:'JetBrains Mono', monospace;
  font-weight:700;
  font-size:21px;
  color:#fff;
  margin:0 0 12px;
}
.value-desc{
  font-size:14.5px;
  line-height:1.65;
  color: var(--qc-dim);
  margin:0;
}
.value-desc strong{ color:#fff; }

@media (max-width: 767px){
  #our-process .process-box{ border-right:none !important; border-bottom:1px solid var(--qc-line); }
  .value-card{ max-width:none; }
}

/* ==========================================================================
   Services — every card in one consistent style, the flagship AI card
   just gets the amber outline + Core badge on top of it
   ========================================================================== */
/* Equal-height cards per row: every services row becomes a flex row so all
   3 cards stretch to match the tallest one, whatever its copy length. */
#services .row{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
}
#services .row > [class*="col-"]{
  display:flex;
}

.services-box{
  --qc-gray: #4A4F58;
  --accent: var(--qc-gray);       /* resting colour: grey for everyone */
  --accent-hover: var(--qc-gray); /* colour to switch to on hover, set per-card below */
  width:100%;
  height:100%;
  min-height:300px;
  display:flex;
  flex-direction:column;
  border-radius:8px;
  text-align:center;
  border:1px solid var(--accent);
  border:1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}
.services-box .text-small{
  flex:1 1 auto;
}
.services-box .btn{
  align-self:center;
}
.services-box:hover{
  --accent: var(--accent-hover);
  transform: translateY(-3px);
}
.services-box .service-name{
  font-size:16px;
  font-weight:600;
  color:#fff;
}
.services-box .services-icon{
  font-size:34px;
  display:inline-block;
  margin-bottom:6px;
  color: var(--accent) !important;
  transition: color .18s ease;
}

/* Resting state is grey for every card; hovering swaps in that card's step
   of one continuous 14-step HSL sweep (same saturation/lightness, hue
   stepped ~22° apart) — like dragging a hue slider across the grid order
   below. The AI Engineering flagship is excluded and stays amber always. */
.services-box:has(.pe-7s-airplay){ --accent-hover:#DDC44B; }  /* 1. Web Application */
.services-box:has(.pe-7s-shield){ --accent-hover:#BFDD4B; }   /* 2. Security */
.services-box:has(.pe-7s-signal){ --accent-hover:#89DD4B; }   /* 3. IoT */
.services-box:has(.pe-7s-plugin){ --accent-hover:#53DD4B; }   /* 4. Microservices */
.services-box:has(.pe-7s-paint){ --accent-hover:#4BDD7A; }    /* 5. UX/UI Design */
.services-box:has(.pe-7s-diamond){ --accent-hover:#4BDDB0; }  /* 6. Top technologies */
.services-box:has(.pe-7s-repeat){ --accent-hover:#4BD3DD; }   /* 7. DevOps & Automation */
.services-box:has(.pe-7s-users){ --accent-hover:#4B9DDD; }    /* 8. Support */
.services-box:has(.pe-7s-plug){ --accent-hover:#4B67DD; }     /* 9. Integrations */
.services-box:has(.pe-7s-check){ --accent-hover:#654BDD; }    /* 10. Quality Assurance */
.services-box:has(.pe-7s-phone){ --accent-hover:#9B4BDD; }    /* 11. Mobile Applications */
.services-box:has(.pe-7s-cloud){ --accent-hover:#D24BDD; }    /* 12. Cloud Solutions */
.services-box:has(.pe-7s-gym){ --accent-hover:#DD4BB2; }      /* 13. Training */
.services-box:has(.pe-7s-network){ --accent-hover:#DD4B7C; }  /* 14. Blockchain */

/* AI Engineering flagship: always amber, never grey, unaffected by hover */
.services-box-flagship{
  --accent: var(--qc-amber) !important;
}

/* ==========================================================================
   Hero — eyebrow / headline / terminal commit panel
   ========================================================================== */
.hero-row{ display:flex; flex-wrap:wrap; align-items:center; gap:56px; padding: 40px 0; }
.hero-copy{ flex:1 1 460px; min-width:300px; }
.hero-term-col{ flex:1 1 380px; min-width:300px; max-width:480px; }

.hero-brand{
  font-family:'JetBrains Mono', monospace;
  font-weight:700;
  font-size:14px;
  letter-spacing:.14em;
  color:#fff;
  margin:0 0 22px;
}

.hero-eyebrow{
  font-family:'JetBrains Mono', monospace;
  color: var(--qc-amber);
  font-size:13px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin:0 0 18px;
}

.hero-headline{
  font-family:'JetBrains Mono', monospace;
  font-weight:700;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height:1.14;
  letter-spacing:-.01em;
  color:#fff;
  margin:0 0 20px;
}

.hero-sub{
  font-family:'IBM Plex Sans', sans-serif;
  font-size:17px;
  line-height:1.65;
  color: var(--qc-dim);
  max-width:44ch;
  margin:0 0 26px;
}

.hero-ticker{
  font-family:'JetBrains Mono', monospace;
  font-size:13px;
  color: var(--qc-dim);
  overflow:hidden;
  height:24px;
  margin-bottom:30px;
}
.hero-ticker h1{
  margin:0;
  height:24px;
  font-size:13px;
  font-weight:500;
  color: var(--qc-amber);
  -webkit-transition: margin-top .5s ease-in-out;
  transition: margin-top .5s ease-in-out;
}
.hero-ticker h1:before{ content:"$ "; color: var(--qc-dim); }

.hero-row .btn-white{
  color: var(--qc-ink-0);
  background: var(--qc-amber);
  border-color: var(--qc-amber);
  font-family:'IBM Plex Sans', sans-serif;
  font-weight:600;
}
.hero-row .btn-white:hover, .hero-row .btn-white:focus{
  background: var(--qc-amber-dark);
  border-color: var(--qc-amber-dark);
  color:#fff;
}

.hero-terminal{
  background: var(--qc-ink-2);
  border:1px solid var(--qc-line);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 20px 44px -22px rgba(0,0,0,.6);
}
.hero-terminal-bar{
  display:flex; gap:6px;
  padding:11px 14px;
  border-bottom:1px solid var(--qc-line);
}
.hero-terminal-bar span{
  width:9px; height:9px; border-radius:50%;
  background:#3A3E45; display:block;
}
.hero-terminal-body{
  padding:18px 20px;
  font-family:'JetBrains Mono', monospace;
  font-size:12.5px;
  line-height:1.95;
}
.hero-terminal-body .t-line{ color:#EDEAE3; }
.hero-terminal-body .t-dim{ color: var(--qc-dim); }
.hero-terminal-body .t-green{ color: var(--qc-green); }
.hero-terminal-body .t-blue{ color: var(--qc-blue); }
.hero-terminal-body .t-amber{ color: var(--qc-amber); }
.hero-terminal-body .t-gap{ height:10px; }

@media (max-width: 767px){
  .hero-row{ padding-top:24px; }
}

/* ==========================================================================
   Services — AI Engineering flagship card (merged, unnumbered, leads the grid)
   ========================================================================== */
.services-box-flagship{
  border:1px solid var(--qc-amber) !important;
  background: rgba(232,163,61,0.06);
  position:relative;
}
.services-box-flagship .services-kicker{
  font-family:'JetBrains Mono', monospace;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: var(--qc-ink-0);
  background: var(--qc-amber);
  align-self:center;
  padding:3px 9px;
  border-radius:100px;
  margin-bottom:14px;
}
