/*
Theme Name: Astra Child - Hi-Infotech
Template: astra
Version: 1.0.1
Description: Hi-Infotech child theme. Brand palette + premium hero helpers for Elementor.
Text Domain: astra-child-hiinfotech
*/

/* =========================================================
   HI-INFOTECH BRAND PALETTE  ("Precision Tech")
   Use these variables anywhere: var(--hi-blue) etc.
   ========================================================= */
:root{
  /* Primary */
  --hi-navy:#0A1A33;        /* Midnight Navy - top bar, footer, headings, dark sections */
  --hi-blue:#1E6BFF;        /* Electric Blue - buttons, links, active menu, icons */
  --hi-blue-deep:#0047D9;   /* Deep Blue - hover / gradient end */
  /* Accent */
  --hi-amber:#FFB020;       /* Signal Amber - highlights, badges, offers */
  --hi-cyan:#00C2FF;        /* Circuit Cyan - secondary accent, glow */
  /* Neutrals */
  --hi-ink:#1A2433;         /* Body text */
  --hi-slate:#5B6B82;       /* Secondary text */
  --hi-steel:#C9D4E5;       /* Text on dark */
  --hi-border:#DCE4F0;      /* Borders */
  --hi-ice:#EEF4FF;         /* Light cards / hover bg */
  --hi-cloud:#F5F8FC;       /* Page background */
  --hi-white:#FFFFFF;
  /* Status */
  --hi-success:#16A34A;
  --hi-error:#DC2626;
  /* Gradients */
  --hi-grad-btn:linear-gradient(135deg,#1E6BFF 0%,#0047D9 100%);
  --hi-grad-hero:linear-gradient(135deg,#0A1A33 0%,#10295A 100%);
  /* Fonts */
  --hi-font-head:'Poppins',sans-serif;  /* 600-800 */
  --hi-font-body:'Inter',sans-serif;    /* 400-600 */
  --hi-ease:cubic-bezier(.22,.61,.36,1);
}

/* =========================================================
   HERO SLIDER  (Elementor container with CSS class: hi-hero)
   Images & slide speed: Elementor > Container > Style > Background > Slideshow
   ========================================================= */
.hi-hero{overflow:hidden;isolation:isolate}
.hi-hero .elementor-background-slideshow{z-index:0}
.hi-hero > .elementor-background-overlay{z-index:1}
.hi-hero > .e-con-inner{position:relative;z-index:3}

/* soft tech grid + glow layer */
.hi-hero::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background-image:
    radial-gradient(600px 400px at 85% 20%,rgba(0,194,255,.16),transparent 70%),
    linear-gradient(rgba(201,212,229,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(201,212,229,.05) 1px,transparent 1px);
  background-size:auto,56px 56px,56px 56px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 55%);
          mask-image:linear-gradient(90deg,transparent 0%,#000 55%);
}

/* Badge pill */
.hi-badge .elementor-heading-title{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 16px;border-radius:999px;
  background:rgba(255,176,32,.10);border:1px solid rgba(255,176,32,.35);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
.hi-badge .elementor-heading-title::before{
  content:"";width:8px;height:8px;border-radius:50%;background:var(--hi-amber);
  box-shadow:0 0 0 0 rgba(255,176,32,.6);animation:hiPulse 2s infinite;
}
@keyframes hiPulse{0%{box-shadow:0 0 0 0 rgba(255,176,32,.55)}70%{box-shadow:0 0 0 10px rgba(255,176,32,0)}100%{box-shadow:0 0 0 0 rgba(255,176,32,0)}}

/* Gradient highlight word inside headings: wrap word in <span class="hi-grad-text"> */
.hi-grad-text{
  background:linear-gradient(90deg,#00C2FF 0%,#1E6BFF 33%,#FFB020 66%,#00C2FF 100%);
  background-size:300% auto;-webkit-background-clip:text;background-clip:text;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
  -webkit-text-fill-color:transparent;animation:hiShine 6s linear infinite;
}
@keyframes hiShine{to{background-position:300% center}}
.hi-nowrap{white-space:nowrap}

/* Primary button */
.hi-btn-primary .elementor-button{
  background:var(--hi-grad-btn)!important;
  box-shadow:0 12px 30px -10px rgba(30,107,255,.7);
  transition:transform .35s var(--hi-ease),box-shadow .35s var(--hi-ease);
}
.hi-btn-primary .elementor-button:hover{transform:translateY(-3px);box-shadow:0 18px 40px -12px rgba(30,107,255,.9)}
/* Ghost button */
.hi-btn-ghost .elementor-button{
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:transform .35s var(--hi-ease),background-color .35s var(--hi-ease),border-color .35s;
}
.hi-btn-ghost .elementor-button:hover{transform:translateY(-3px)}

/* Glass stat cards */
.hi-glass{
  -webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);
  transition:transform .45s var(--hi-ease),border-color .45s,box-shadow .45s;
}
.hi-glass:hover{transform:translateY(-6px);border-color:rgba(0,194,255,.45)!important;box-shadow:0 24px 50px -20px rgba(0,194,255,.35)}

/* Floating card gentle motion */
.hi-float{animation:hiFloat 6s ease-in-out infinite}
@keyframes hiFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

/* Scroll cue */
.hi-scroll-cue{animation:hiBob 2.2s ease-in-out infinite}
@keyframes hiBob{0%,100%{transform:translateY(0);opacity:.6}50%{transform:translateY(8px);opacity:1}}

@media (max-width:767px){
  .hi-hero::after{-webkit-mask-image:none;mask-image:none;opacity:.5}
  .hi-float{animation:none}
}
@media (prefers-reduced-motion:reduce){
  .hi-grad-text,.hi-float,.hi-scroll-cue,.hi-badge .elementor-heading-title::before{animation:none}
}
