/* ==========================================================================
   GENERIC SOLUTION - EDITORIAL ARCHITECTURAL STYLESHEET
   Design Language: Obsidian Dark (#0D0D0D) & Luminous Paper (#F5F5F3)
   Typography: Hanken Grotesk & Space Mono
   ========================================================================== */

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

:root {
  --surface-dark: #0D0D0D;
  --surface-dark-card: #181818;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353534;
  --surface-light: #F5F5F3;
  --surface-light-card: #FFFFFF;
  --text-dark-primary: #121212;
  --text-dark-secondary: #636360;
  --text-light-primary: #FFFFFF;
  --text-light-secondary: #A3A3A3;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark-hover: rgba(255, 255, 255, 0.22);
  --border-light-hover: rgba(0, 0, 0, 0.22);
  --accent-emerald: #10B981;

  /* Eli5 Responsive Architectural Layout Engine (1400px max grid with fluid gutters) */
  --container-max: 1400px;
  --gutter: clamp(20px, 4vw, 56px);
  --page-pad: max(var(--gutter), calc((100% - var(--container-max)) / 2));
}

html {
  scroll-behavior: smooth;
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--surface-dark);
  color: #e5e2e1;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Typography Utility Classes */
.font-mono-code {
  font-family: 'Space Mono', monospace;
}

/* Architectural Container matching Eli5 responsive layout engine (1400px centered box) */
.container-wide {
  width: 100%;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
}

/* Precision Hairline Borders */
.border-hairline-dark {
  border: 1px solid var(--border-dark);
}
.border-hairline-light {
  border: 1px solid var(--border-light);
}

/* Subtle Architectural Grid Background */
.bg-grid-pattern-dark {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-grid-pattern-light {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Pill buttons transition */
.btn-pill {
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pill:hover {
  transform: translateY(-1px);
}
.btn-pill:active {
  transform: translateY(0);
}

/* Telemetry pulse animation */
@keyframes telemetry-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.15);
  }
}

.animate-telemetry-pulse {
  animation: telemetry-pulse 2.2s infinite ease-in-out;
}

/* Glow gradient */
.radial-glow {
  background: radial-gradient(circle at 50% 50%, rgba(200, 198, 197, 0.08) 0%, transparent 70%);
}

/* Quick Filter Tab Active States */
.tab-btn.active {
  background-color: #FFFFFF !important;
  color: #121212 !important;
  font-weight: 600;
}

.tab-btn-light.active {
  background-color: #121212 !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

/* Accordion Smooth Expand */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}
.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
  opacity: 1;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Selected Work progressive reveal & gradient */
.cases-cards-wrapper {
  position: relative;
  overflow: hidden;
  max-height: 1950px;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  .cases-cards-wrapper {
    max-height: 1260px;
  }
}

.cases-gradient-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 24rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2.5rem;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(to top, #F5F5F3 0%, #F5F5F3 25%, rgba(245, 245, 243, 0.95) 55%, rgba(245, 245, 243, 0.4) 80%, rgba(245, 245, 243, 0) 100%);
}

/* ==========================================================================
   Smooth Section Scroll Reveal Animation (Linear / Apple style)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.scroll-reveal.is-revealed {
  transform: none !important;
  will-change: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Modal Backdrop */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

/* Toast Notification */
#toast-notification {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Range input customization */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
}

/* Keyboard badge helper */
.kbd-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hide scrollbar utility */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Category Filter Icon Hover Micro-Interactions (itshover.com style)
   ========================================================================== */

/* 1. Autonomous AI: brain-circuit-icon */
.brain-outline {
  transition: opacity 0.3s ease;
}
.solution-filter-btn:hover .brain-outline {
  animation: itshoverBrainPulse 1.8s ease-in-out infinite;
}
@keyframes itshoverBrainPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.circuit-line {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.4s ease, opacity 0.3s ease;
}
.solution-filter-btn:hover .circuit-line {
  animation: itshoverCircuitDraw 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes itshoverCircuitDraw {
  0% {
    stroke-dashoffset: 24;
    opacity: 0.1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.terminal {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.solution-filter-btn:hover .terminal-1 {
  animation: itshoverTerminalPulse 0.9s ease-in-out infinite;
  animation-delay: 0.1s;
}
.solution-filter-btn:hover .terminal-2 {
  animation: itshoverTerminalPulse 0.9s ease-in-out infinite;
  animation-delay: 0.25s;
}
.solution-filter-btn:hover .terminal-3 {
  animation: itshoverTerminalPulse 0.9s ease-in-out infinite;
  animation-delay: 0.4s;
}
.solution-filter-btn:hover .terminal-4 {
  animation: itshoverTerminalPulse 0.9s ease-in-out infinite;
  animation-delay: 0.55s;
}
@keyframes itshoverTerminalPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.8);
    opacity: 1;
  }
}

/* 2. Core Modernization: gear-icon */
.gear-rotator {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gear-center {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease;
}
.solution-filter-btn:hover .gear-rotator {
  transform: rotate(90deg);
}
.solution-filter-btn:hover .gear-center {
  animation: itshoverGearCenter 0.6s ease-out;
}
@keyframes itshoverGearCenter {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* 3. Cloud & SRE: cloud-3-icon */
.cloud-path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease;
}
.solution-filter-btn:hover .cloud-path {
  animation: itshoverCloudFloat 1.6s ease-in-out infinite;
}
@keyframes itshoverCloudFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

.cloud-dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.solution-filter-btn:hover .cloud-dot-1 {
  animation: itshoverCloudDot 0.9s ease-in-out infinite;
  animation-delay: 0s;
}
.solution-filter-btn:hover .cloud-dot-2 {
  animation: itshoverCloudDot 0.9s ease-in-out infinite;
  animation-delay: 0.2s;
}
.solution-filter-btn:hover .cloud-dot-3 {
  animation: itshoverCloudDot 0.9s ease-in-out infinite;
  animation-delay: 0.4s;
}
@keyframes itshoverCloudDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.6);
  }
}

/* 4. Enterprise Security: shield-check */
.shield-body {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.3s ease;
}
.solution-filter-btn:hover .shield-body {
  animation: itshoverShieldPop 0.45s ease-out;
}
@keyframes itshoverShieldPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.shield-check {
  stroke-dasharray: 18;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease, opacity 0.2s ease;
}
.solution-filter-btn:hover .shield-check {
  animation: itshoverShieldCheckDraw 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes itshoverShieldCheckDraw {
  0% {
    stroke-dashoffset: 18;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* 5. Data & MLOps: chart-histogram-icon */
.histogram-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 0.25s ease;
}
.histogram-curve {
  stroke-dasharray: 35;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease, opacity 0.2s ease;
}
.solution-filter-btn:hover .histogram-bar-1 {
  animation: itshoverBarRise 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}
.solution-filter-btn:hover .histogram-bar-2 {
  animation: itshoverBarRise 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}
.solution-filter-btn:hover .histogram-bar-3 {
  animation: itshoverBarRise 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}
.solution-filter-btn:hover .histogram-bar-4 {
  animation: itshoverBarRise 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}
.solution-filter-btn:hover .histogram-curve {
  animation: itshoverCurveDraw 0.5s ease-in-out 0.22s both;
}
@keyframes itshoverBarRise {
  0% {
    transform: scaleY(0.15);
    opacity: 0.3;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes itshoverCurveDraw {
  0% {
    stroke-dashoffset: 35;
    opacity: 0.2;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ==========================================================================
   Scroll To Top Floating Action Button (Animated Mouse Icon)
   ========================================================================== */
#scroll-to-top-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

#scroll-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scroll-to-top-btn:hover {
  transform: translateY(-4px);
}

#scroll-to-top-btn:active {
  transform: translateY(-1px) scale(0.95);
}

/* Mouse Scroll Animation Keyframes */
@keyframes scrollUpChevron1 {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes scrollUpChevron2 {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-3px);
    opacity: 0.35;
  }
}

@keyframes scrollUpWheel {
  0% {
    transform: translateY(2.5px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(-2.5px);
    opacity: 0;
  }
}

.scroll-up-chevron.chevron-1 {
  animation: scrollUpChevron1 1.6s ease-in-out infinite;
}

.scroll-up-chevron.chevron-2 {
  animation: scrollUpChevron2 1.6s ease-in-out 0.25s infinite;
}

.scroll-up-wheel {
  animation: scrollUpWheel 1.6s ease-in-out infinite;
}

/* Intensify animation rhythm on hover */
#scroll-to-top-btn:hover .scroll-up-chevron.chevron-1 {
  animation: scrollUpChevron1 0.85s ease-in-out infinite;
}

#scroll-to-top-btn:hover .scroll-up-chevron.chevron-2 {
  animation: scrollUpChevron2 0.85s ease-in-out 0.15s infinite;
}

#scroll-to-top-btn:hover .scroll-up-wheel {
  animation: scrollUpWheel 0.85s ease-in-out infinite;
}

/* ============================================================================
   10. METHODOLOGY STEP 04 DYNAMIC BLINK ON SCROLL TOUCH
   ============================================================================ */
#methodology-step-4 .route-dot {
  background-color: #d4d4d4;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#methodology-step-4.is-active .route-dot {
  background-color: #171717 !important;
  animation: step4BlinkBlack 1.2s ease-in-out infinite;
}

#methodology-step-4.is-active .step-num {
  color: #171717 !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

@keyframes step4BlinkBlack {
  0%, 100% {
    background-color: #171717;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 0 0 rgba(23, 23, 23, 0.45);
  }
  50% {
    background-color: #171717;
    opacity: 0.15;
    transform: scale(0.85);
    box-shadow: 0 0 0 5px rgba(23, 23, 23, 0);
  }
}

/* ==========================================================================
   Hero Typewriter & Blinking Ellipsis Animation
   ========================================================================== */
@keyframes heroDotsBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-dots-blink {
  display: inline-block;
  animation: heroDotsBlink 1.1s ease-in-out infinite;
  will-change: opacity;
}

/* ==========================================================================
   Architecture Blueprint Planning Graph & Flowchart
   ========================================================================== */
.graph-node {
  fill: #191919;
  stroke: #383838;
  stroke-width: 1.2px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.graph-node:hover {
  fill: #222222;
  stroke: #3B82F6;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.35));
}

.graph-node-decision {
  fill: #1C1C1C;
  stroke: #444444;
  stroke-width: 1.2px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.graph-node-decision:hover {
  fill: #242424;
  stroke: #60A5FA;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
}

.graph-line {
  stroke: #4B5563;
  stroke-width: 1.4px;
  fill: none;
}

.pill-bg {
  fill: #1E1E22;
  stroke: #3F3F46;
  stroke-width: 1px;
}

.pulse-dot {
  fill: #60A5FA;
  filter: drop-shadow(0 0 4px #3B82F6);
}

.blueprint-graph-container {
  scrollbar-width: thin;
  scrollbar-color: #383838 #141414;
}

.blueprint-graph-container::-webkit-scrollbar {
  height: 6px;
}

.blueprint-graph-container::-webkit-scrollbar-track {
  background: #141414;
  border-radius: 4px;
}

.blueprint-graph-container::-webkit-scrollbar-thumb {
  background: #383838;
  border-radius: 4px;
}

.blueprint-graph-container::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

/* ==========================================================================
   Services Page & Devicon Tech Stack Styling
   ========================================================================== */
.tech-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #EDEDED;
  font-family: 'Space Mono', monospace;
  font-size: 0.825rem;
  line-height: 1.15rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-badge-chip:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.service-card {
  position: relative;
  background-color: rgba(24, 24, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(30, 30, 30, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.subnav-sticky {
  position: sticky;
  top: 5rem;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(13, 13, 13, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Leadership Profile Avatar: Black & White with Color Reveal on Hover
   ========================================================================== */
.leadership-avatar-bw {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  transition: filter 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .leadership-avatar-bw,
.leadership-avatar-bw:hover {
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
  transform: scale(1.06);
}

