/* ===================================================
   KNOX HOLDING COMPANY — FUTURISTIC ENHANCEMENTS
   Sophisticated, restrained, deliberate futurism
   =================================================== */

/* ===================================================
   GRADIENT MESH BACKGROUNDS (Dark sections only)
   Subtle, shifting color fields — never overwhelming
   =================================================== */
.gradient-mesh-dark {
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(26, 107, 100, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(90, 52, 138, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(26, 74, 122, 0.04) 0%, transparent 70%),
    var(--dark);
  position: relative;
}

.gradient-mesh-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 60% 20%, rgba(199, 80, 0, 0.05) 0%, transparent 40%);
  animation: mesh-shift 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mesh-shift {
  0%, 100% { opacity: 0.5; transform: translate(0, 0); }
  33% { opacity: 0.8; transform: translate(2%, 1%); }
  66% { opacity: 0.6; transform: translate(-1%, 2%); }
}

/* ===================================================
   PULSING DATA BEAMS
   1px lines that breathe — subtle signal of life
   =================================================== */
.data-beam {
  position: relative;
  overflow: hidden;
}

.data-beam::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--beam-color, rgba(26, 107, 100, 0.4)) 20%,
    var(--beam-color, rgba(26, 107, 100, 0.8)) 50%,
    var(--beam-color, rgba(26, 107, 100, 0.4)) 80%,
    transparent 100%
  );
  animation: beam-pulse 4s ease-in-out infinite;
}

.data-beam-top::after { top: 0; }
.data-beam-bottom::after { bottom: 0; }

@keyframes beam-pulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.95); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* ===================================================
   GLASSMORPHISM CARDS
   Frosted glass — modern AI aesthetic
   =================================================== */
.glass-card {
  background: rgba(245, 240, 232, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 240, 232, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(245, 240, 232, 0.06);
  border-color: rgba(245, 240, 232, 0.15);
  transform: translateY(-2px);
}

/* ===================================================
   ARCHITECTURAL GRID OVERLAY
   Faint blueprint lines on cream backgrounds
   =================================================== */
.grid-overlay {
  position: relative;
}

.grid-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(26, 23, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 23, 20, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* ===================================================
   HOVER GLOW EFFECTS
   Micro-interactions with purpose
   =================================================== */
.hover-glow {
  transition: box-shadow 0.4s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 40px rgba(26, 107, 100, 0.15);
}

/* Subsidiary-specific glow colors */
.glow-intel:hover { box-shadow: 0 0 40px rgba(26, 107, 100, 0.2); }
.glow-growth:hover { box-shadow: 0 0 40px rgba(199, 80, 0, 0.2); }
.glow-creative:hover { box-shadow: 0 0 40px rgba(90, 52, 138, 0.2); }
.glow-labs:hover { box-shadow: 0 0 40px rgba(26, 74, 122, 0.2); }
.glow-ops:hover { box-shadow: 0 0 40px rgba(199, 80, 0, 0.2); }
.glow-advisory:hover { box-shadow: 0 0 40px rgba(26, 48, 64, 0.25); }
.glow-media:hover { box-shadow: 0 0 40px rgba(138, 107, 26, 0.2); }
.glow-talent:hover { box-shadow: 0 0 40px rgba(26, 90, 42, 0.2); }

/* ===================================================
   SUBSIDIARY PATTERN SYSTEM
   Abstract energy signatures — unified but distinct
   =================================================== */

/* Base pattern container */
.domain-pattern {
  position: relative;
  overflow: hidden;
}

.domain-pattern::before {
  content: '';
  position: absolute;
  inset: -50%;
  opacity: 0.03;
  pointer-events: none;
  animation: pattern-drift 60s linear infinite;
}

@keyframes pattern-drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-5%, -5%) rotate(360deg); }
}

/* Knox Intel: Circuit board micro-pattern */
.pattern-intel::before {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10h40v40H10z' fill='none' stroke='%231A6B64' stroke-width='0.5'/%3E%3Cpath d='M10 30h20v20H10zM30 10h20v20H30z' fill='none' stroke='%231A6B64' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%231A6B64'/%3E%3C/svg%3E");
}

/* Knox Growth: Upward velocity lines */
.pattern-growth::before {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(199, 80, 0, 0.1) 10px,
    rgba(199, 80, 0, 0.1) 11px
  );
  animation: pattern-rise 30s linear infinite;
}

@keyframes pattern-rise {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

/* Knox Creative: Flowing gradient mesh */
.pattern-creative::before {
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(90, 52, 138, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 80%, rgba(90, 52, 138, 0.08) 0%, transparent 50%);
  animation: creative-flow 15s ease-in-out infinite;
}

@keyframes creative-flow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -2%) scale(1.05); }
}

/* Knox Labs: Code bracket motifs */
.pattern-labs::before {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='5' y='25' font-family='monospace' font-size='12' fill='%231A4A7A' opacity='0.3'/%3E%3Cpath d='M8 12l-4 8 4 8M32 12l4 8-4 8' fill='none' stroke='%231A4A7A' stroke-width='1'/%3E%3C/svg%3E");
}

/* Knox Ops: Process flow arrows */
.pattern-ops::before {
  background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 25h25M30 20l5 5-5 5' fill='none' stroke='%23C75000' stroke-width='0.8' opacity='0.25'/%3E%3C/svg%3E");
}

/* Knox Advisory: Precision grid lines */
.pattern-advisory::before {
  background-image: 
    linear-gradient(rgba(26, 48, 64, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 48, 64, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Knox Media: Wave patterns */
.pattern-media::before {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0, 50 10 T100 10' fill='none' stroke='%238A6B1A' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 100px 40px;
}

/* Knox Talent: Network node connections */
.pattern-talent::before {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='%231A5A2A'/%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%231A5A2A'/%3E%3Ccircle cx='50' cy='50' r='1.5' fill='%231A5A2A'/%3E%3Cpath d='M30 30L10 10M30 30L50 50' stroke='%231A5A2A' stroke-width='0.3'/%3E%3C/svg%3E");
}

/* ===================================================
   TEXT GRADIENT ACCENTS
   For key headlines — sophisticated color shifts
   =================================================== */
.text-gradient-intel {
  background: linear-gradient(135deg, #1A6B64 0%, #2A9B94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-growth {
  background: linear-gradient(135deg, #C75000 0%, #E87020 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-creative {
  background: linear-gradient(135deg, #5A348A 0%, #8A64BA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================================
   SCROLL REVEAL ANIMATIONS
   Content emerges with purpose
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===================================================
   SUBSIDIARY-SPECIFIC BEAM COLORS
   Set via CSS custom properties
   =================================================== */
.domain-knox-intel { --beam-color: rgba(26, 107, 100, 0.6); }
.domain-knox-growth { --beam-color: rgba(199, 80, 0, 0.6); }
.domain-knox-creative { --beam-color: rgba(90, 52, 138, 0.6); }
.domain-knox-labs { --beam-color: rgba(26, 74, 122, 0.6); }
.domain-knox-ops { --beam-color: rgba(199, 80, 0, 0.6); }
.domain-knox-advisory { --beam-color: rgba(26, 48, 64, 0.8); }
.domain-knox-media { --beam-color: rgba(138, 107, 26, 0.6); }
.domain-knox-talent { --beam-color: rgba(26, 90, 42, 0.6); }
