/* 
  WebQuench Main Website Customs 
  (Tailwind is imported via CDN in index.html, so this file handles global overrides & bespoke animations)
*/

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

html,
body {
  font-family: 'Inter', sans-serif;
  background-color: #020202;
  /* Deep Navy Baseline */
  color: #FAF8F5;
  /* Ivory text */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scroll from HUD or blobs */
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.font-data {
  font-family: 'JetBrains Mono', monospace;
}



/* Magnetic Button Feel - ENHANCED FOR HIGHER CONVERSION (Larger, brighter) */
.btn-magnetic {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0A0F16 !important;
  background-color: #00C2FF !important;
  border-radius: 9999px;
  padding: 1.125rem 2.25rem;
  transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 14px rgba(0, 194, 255, 0.15);
}

@media (max-width: 768px) {
  .btn-magnetic {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.75rem !important;
  }
}

.btn-magnetic:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(0, 194, 255, 0.6);
  /* Stronger hover glow */
  color: #000;
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: inherit;
}

.btn-magnetic:hover::before {
  transform: translateY(0);
}

/* Feature Card Hover - Subtly raises and glows the card */
.feature-card {
  transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* baseline */
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 194, 255, 0.4);
  box-shadow: 0 10px 40px -10px rgba(0, 194, 255, 0.15);
  background-color: rgba(16, 24, 36, 0.8);
  /* Slightly darker focus */
}

/* Icon floating bounce on hover inside cards */
.feature-card:hover .card-icon {
  transform: scale(1.1) translateY(-2px);
  transition: all 300ms ease;
}

.card-icon {
  transition: all 300ms ease;
}

/* Data Stream Animations */
@keyframes data-stream {
  from {
    stroke-dashoffset: 6;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.animate-data-stream {
  animation: data-stream 1s linear infinite;
}

/* Float Animation for aesthetic elements */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

/* --- HUD & TACTICAL AESTHETICS (V3) --- */

/* CRT Scanlines Overlay */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.1));
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.6;
}

/* Cyber/HUD Corner Brackets */
.hud-brackets {
  position: relative;
  border-radius: 0;
  /* Override any Tailwind rounding */
}

.hud-brackets::before,
.hud-brackets::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #00C2FF;
  transition: all 300ms ease;
  z-index: 10;
  pointer-events: none;
}

.hud-brackets::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.hud-brackets::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.hud-brackets:hover::before {
  width: 25px;
  height: 25px;
}

.hud-brackets:hover::after {
  width: 25px;
  height: 25px;
}

/* Terminal Text Pulse */
.terminal-alert {
  animation: terminal-blink 2s step-end infinite;
  font-family: 'JetBrains Mono', monospace;
  color: #ef4444;
  /* red-500 equivalent */
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes terminal-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Scroll Progress / Back to Top HUD */
#hud-progress {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #00C2FF;
  letter-spacing: 2px;
  z-index: 9999;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 300ms ease;
}

@media (max-width: 1024px) {
  #hud-progress, .scanlines {
    display: none !important;
  }
}

#hud-progress:hover {
  opacity: 1;
}

.progress-bar-container {
  width: 2px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #00C2FF;
  height: 0%;
  /* JS will update this */
  transition: height 100ms ease-out;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.8);
}

/* --- ADVANCED VISUAL COMPS --- */

/* Circular Hub Animations */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-slow-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 40px rgba(0, 194, 255, 0.2), inset 0 0 20px rgba(0, 194, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 80px rgba(0, 194, 255, 0.5), inset 0 0 40px rgba(0, 194, 255, 0.4);
  }
}

.hub-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}

.hub-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 194, 255, 0.15);
}

.hub-ring-dashed {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  /* Use translate instead of transform to allow rotate animation */
  translate: -50% -50%;
  border: 2px dashed rgba(0, 194, 255, 0.2);
  transform-origin: center center;
}

.orbit-cw {
  animation: spin-slow 40s linear infinite;
}

.orbit-ccw {
  animation: spin-slow-reverse 50s linear infinite;
}

.hub-node {
  will-change: transform;
  position: absolute;
  background: #101824;
  /* surface color */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 10px;
  /* Counter-rotate so icons stay upright */
  transform-origin: center center;
}

.hub-node.counter-cw {
  animation: spin-slow-reverse 40s linear infinite;
}

.hub-node.counter-ccw {
  animation: spin-slow 50s linear infinite;
}

/* New V4 Speeds */
@keyframes spin-fast {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-fast-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes data-stream {
  from {
    stroke-dashoffset: 100;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.orbit-fast-cw {
  animation: spin-fast 15s linear infinite;
}

.orbit-fast-ccw {
  animation: spin-fast-reverse 20s linear infinite;
}

.hub-node.counter-fast-cw {
  animation: spin-fast-reverse 15s linear infinite;
}

.hub-node.counter-fast-ccw {
  animation: spin-fast 20s linear infinite;
}

/* HUD Popups for Nodes */
.hud-popup {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.4);
  color: #00C2FF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: popup-fade 10s infinite;
}

/* Stagger the popups so they don't all show at once */
.popup-delay-1 {
  animation-delay: 2s;
}

.popup-delay-2 {
  animation-delay: 5s;
}

.popup-delay-3 {
  animation-delay: 8s;
}

@keyframes popup-fade {

  0%,
  80%,
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }

  10%,
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 4s ease-in-out infinite;
  border: 1px solid rgba(0, 194, 255, 0.4);
  background: rgba(0, 194, 255, 0.05);
  
  z-index: 10;
}

/* --- MINI UI CAPABILITY CARDS --- */

/* 1. Terminal Block (Typing Effect) */
.terminal-block {
  background: #05080c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #8F8F99;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.typewriter-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #00C2FF;
  animation: typing 6s steps(40, end) infinite, blink-caret .75s step-end infinite;
  display: inline-block;
  max-width: 100%;
  color: #FAF8F5;
}

@keyframes typing {

  0%,
  15% {
    width: 0
  }

  60%,
  100% {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: #00C2FF;
  }
}

/* 2. Mini Calendar (Sales CRM) */
.mini-calendar {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.cal-day {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #8F8F99;
  font-weight: 500;
}

.cal-day.active {
  background: rgba(0, 194, 255, 0.1);
  border-color: rgba(0, 194, 255, 0.4);
  color: #00C2FF;
}

/* Float Click Cursor */
.cursor-float {
  animation: float-click 3s ease-in-out infinite;
}

@keyframes float-click {
  0% {
    transform: translate(15px, 15px);
  }

  40% {
    transform: translate(0, 0) scale(0.9);
  }

  50% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(15px, 15px);
  }
}

/* 3. Metric Pill (Traffic & Pages) */
.metric-pill {
  background: #05080c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.metric-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #00C2FF;
  border-radius: 50%;
  animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 194, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 194, 255, 0);
  }
}

/* ========================================================
   GLOBAL ZYRO OVERRIDES 
   (Forcing Hostinger Sub-Pages to Match the HUD Aesthetic)
   ======================================================== */

html, body {
  background-color: #0A0F16 !important;
  color: #FAF8F5 !important;
}

/* Force extreme dark backgrounds on all Hostinger containers */
.page, 
.block-layout, 
.block-header, 
.background, 
[class^="block-"], 
[class^="layout-"] {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Force headings to Ivory and JetBrains font on sub-pages */
.page h1, .page h2, .page h3, .page h4, .page h5, .page h6,
.block-layout h1, .block-layout h2, .block-layout h3 {
  color: #FAF8F5 !important;
  font-family: 'JetBrains Mono', monospace !important;
}

/* Force body text to muted ivory and Poppins/Inter on sub-pages */
.page p, .block-layout p, .page span:not(.item-content__icon-container), .block-layout span, 
.page li, .block-layout li {
  color: #E2E8F0 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Force Anchor Links */
.page a, .block-layout a {
  color: #00C2FF !important;
  text-decoration: none !important;
}

/* Force primary buttons on Zyro subpages to look like HUD buttons */
.grid-button--primary, .grid-button, .btn-primary {
  background-color: #0A0F16 !important;
  color: #00C2FF !important;
  border-radius: 0px !important;
  border: 1px solid #00C2FF !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  font-family: 'JetBrains Mono', monospace !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.2) !important;
}

.grid-button--primary:hover, .grid-button:hover, .btn-primary:hover {
  background-color: #00C2FF !important;
  color: #0A0F16 !important;
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.6) !important;
}

/* Mobile Menus & Navs inside Zyro */
.block-header-layout-mobile__dropdown, 
.block-header-item__dropdown {
  background-color: rgba(10, 15, 22, 0.95) !important;
  border: 1px solid #00C2FF !important;
}

/* Force Grid Images padding so they feel more like screens */
.layout-element__component--GridImage img {
  border-radius: 0px !important;
  
}

/* ==========================================================================
   GHL EMBED STANDARD - WIDGET WRAPPER & SKELETON LOADER
   ========================================================================== */

/* 1. Exact Dimension Containers */
.widget-wrapper {
    width: 100%;
    /* Max-width can be adjusted based on if it's a form vs a large calendar */
    max-width: 650px; 
    margin: 0 auto;
    
    background: #1c1c1c; /* WebQuench Dark Theme - Matches iframe background */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 194, 255, 0.05); /* Subtle Cyber Aqua glow */
    position: relative;
    overflow: hidden;
}

/* 2. Skeleton Loader */
.skeleton-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #1c1c1c;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

/* Custom WebQuench themed spinner */
.skeleton-loader::after {
    content: "";
    width: 50px; height: 50px;
    border: 3px solid rgba(0, 194, 255, 0.1);
    border-top: 3px solid #00C2FF; /* WebQuench Cyber Aqua */
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* 3. Smooth Iframe Fade-in */
.widget-wrapper iframe {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.widget-wrapper iframe.loaded {
    opacity: 1;
}
.bg-glow-accent {
  background: radial-gradient(circle, rgba(0, 194, 255, 0.4) 0%, rgba(0, 194, 255, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
