/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Colors - Deep Dark Theme */
    --bg-primary: #0a0a0c;        /* Deepest dark */
    --bg-secondary: #121216;      /* Slightly lighter for cards/sections */
    --bg-tertiary: #1a1a24;
    
    --text-main: #f8f9fa;         /* Off-white */
    --text-muted: #a1a1aa;        /* Light grayish-blue for paragraphs */
    
    /* Accents: Cyan & Suble Violet */
    --accent-primary: #00e5ff;    /* Vibrant Cyan */
    --accent-primary-hover: #00b8cc;
    --accent-secondary: #7b2cbf;  /* Deep subtle violet/purple */

    /* Variables para visualizaciones y OBT */
    --cyan: var(--accent-primary);
    --purple: var(--accent-secondary);
    --green: #22c55e;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --section-padding: 6rem 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =========================================
   CSS RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    display: block;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* =========================================
   UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--bg-secondary);
}

.align-center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    background-color: rgba(0, 229, 255, 0.1);
    border-radius: 100px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
}
.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-whatsapp {
    background-color: #25D366; /* WhatsApp brand color */
    color: #fff;
}
.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), padding var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

.logo span {
    color: var(--accent-primary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-item:hover {
    color: var(--text-main);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Mobile Menu Active State */
.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem; /* offset for nav */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Ambient Glow Effects */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.15;
    animation: float 10s infinite alternate ease-in-out;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background-color: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background-color: var(--accent-secondary);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 1.5rem;
    border-left: 2px solid var(--accent-primary);
    padding-left: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    border: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-normal);
}

.portfolio-card:hover {
    border-color: rgba(123, 44, 191, 0.4);
}

.portfolio-visual {
    height: 220px;
    background-color: #121216;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,229,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.portfolio-card:hover .portfolio-visual::before {
    background: radial-gradient(circle at center, rgba(123,44,191,0.08) 0%, transparent 70%);
}

.abstract-art {
    width: 100%;
    height: 100%;
    max-width: 400px;
}

/* SVG Abstract Art Classes */
.primary { fill: var(--accent-primary); }
.secondary { fill: var(--accent-secondary); }
.primary-stroke { stroke: var(--accent-primary); }
.secondary-stroke { stroke: var(--accent-secondary); }

.primary-fill { fill: var(--accent-primary); }
.secondary-fill { fill: var(--accent-secondary); }
.primary-dark-fill { fill: #007685; }
.secondary-dark-fill { fill: #481e73; }

.connection-line { stroke: rgba(0,229,255,0.3); stroke-width: 1.5; }
.connection-line-faint { stroke: rgba(123,44,191,0.25); stroke-width: 1; }
.ring { stroke-width: 1; stroke-dasharray: 4, 4; }
.primary-ring { stroke: var(--accent-primary); }
.secondary-ring { stroke: var(--accent-secondary); }

.flow-line { stroke: rgba(0,229,255,0.5); stroke-width: 2; }
.flow-line-dotted { stroke-width: 1.5; }

.wave { opacity: 0.8; }
.net-link { stroke: rgba(255,255,255,0.1); stroke-width: 1.5; }
.particle-stream { stroke-width: 1.5; stroke-dasharray: 2, 4; opacity: 0.6; }

.op-60 { opacity: 0.6; }

/* Filter Glows */
.glow-node { filter: drop-shadow(0 0 6px var(--accent-primary)); }
.glow-line { filter: drop-shadow(0 0 6px var(--accent-primary)); }
.glow-poly { filter: drop-shadow(0 0 10px var(--accent-primary)); }
.glow-filter { filter: drop-shadow(0 0 8px var(--accent-secondary)); }

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}
@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.pulse { animation: pulse 3s infinite; transform-box: fill-box; transform-origin: center; }
.pulse-slow { animation: pulse 4.5s infinite; transform-box: fill-box; transform-origin: center; }
.pulse-fast { animation: pulse 1.5s infinite; transform-box: fill-box; transform-origin: center; }
.float-anim { animation: floatAnim 4s ease-in-out infinite; }

.portfolio-content {
    padding: 2rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    font-weight: 500;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.link-arrow span {
    transition: transform var(--transition-fast);
    margin-left: 0.5rem;
}

.link-arrow:hover span {
    transform: translateX(4px);
}

/* Quote Block Section */
.quote-block {
    margin-top: 4rem;
    padding: 3.5rem 2rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.quote-icon {
    margin: 0 auto 1.5rem;
    opacity: 0.8;
}

.quote-block blockquote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 400;
    max-width: 750px;
    margin: 0 auto;
    font-style: italic;
}

.quote-block blockquote strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* =========================================
   FOOTER & CONTACT
   ========================================= */
.footer {
    padding-top: 6rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.footer-title {
    margin-bottom: 1rem;
}

.footer-title span {
    color: var(--accent-primary);
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-brand p {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* =========================================
   GEO ORCHESTRATION ANIMATION (Card 1)
   ========================================= */
.geo-scene-wrapper {
  transform: scale(0.5);
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scene#geo-scene {
  position: relative;
  width: 520px;
  height: 420px;
  flex-shrink: 0;
}

/* ── SVG network layer ── */
.geo-network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.geo-conn-line {
  stroke: var(--accent-primary);
  stroke-width: 0.6;
  opacity: 0.12;
  stroke-dasharray: 4 3;
  animation: geoDashScroll 8s linear infinite;
}

@keyframes geoDashScroll {
  to { stroke-dashoffset: -56; }
}

/* ── Field Nodes ── */
.geo-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary), 0 0 20px rgba(0,229,255,0.25);
  z-index: 2;
}
.geo-node::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.3);
  animation: geoNodePulse 2.5s ease-in-out infinite;
}
@keyframes geoNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.8); opacity: 0; }
}

.geo-node.geo-purple {
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary), 0 0 20px rgba(123,44,191,0.25);
}
.geo-node.geo-purple::after {
  border-color: rgba(123,44,191,0.3);
}

/* Node labels */
.geo-node-label {
  position: absolute;
  font-size: 8px; /* Slightly larger for legibility after scaling down */
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  pointer-events: none;
}

/* ── Data Particles ── */
.geo-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.geo-particle.geo-purple {
  background: var(--accent-secondary);
  box-shadow: 0 0 6px var(--accent-secondary);
}

/* ── Central Hub ── */
.geo-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  z-index: 5;
}

.geo-hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08); /* glass-border */
  animation: geoHubRotate 20s linear infinite;
}
.geo-hub-ring::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
}
@keyframes geoHubRotate { to { transform: rotate(360deg); } }

.geo-hub-ring-inner {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.06);
  animation: geoHubRotate 12s linear infinite reverse;
}

.geo-hub-glow {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
  animation: geoGlowPulse 3s ease-in-out infinite;
  transition: opacity 0.15s ease;
}
@keyframes geoGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ── Dashboard inside hub ── */
.geo-dashboard {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

/* Mini bar chart */
.geo-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}
.geo-mini-bar {
  width: 6px;
  border-radius: 2px 2px 0 0;
  animation: geoBarGrow 2s ease-in-out infinite alternate;
}
.geo-mini-bar:nth-child(1) { background: var(--accent-primary); height: 60%; animation-delay: 0s; }
.geo-mini-bar:nth-child(2) { background: var(--accent-secondary); height: 85%; animation-delay: 0.3s; }
.geo-mini-bar:nth-child(3) { background: var(--accent-primary); height: 45%; animation-delay: 0.6s; }
.geo-mini-bar:nth-child(4) { background: var(--accent-secondary); height: 70%; animation-delay: 0.9s; }
.geo-mini-bar:nth-child(5) { background: var(--accent-primary); height: 90%; animation-delay: 1.2s; }
.geo-mini-bar:nth-child(6) { background: var(--accent-secondary); height: 55%; animation-delay: 1.5s; }
.geo-mini-bar:nth-child(7) { background: var(--accent-primary); height: 75%; animation-delay: 0.2s; }

@keyframes geoBarGrow {
  0% { transform: scaleY(0.5); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Mini donut */
.geo-mini-donut {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-primary) 0deg 110deg,
    var(--accent-secondary) 110deg 200deg,
    rgba(255,255,255,0.08) 200deg 280deg,
    var(--accent-primary) 280deg 330deg,
    rgba(123,44,191,0.4) 330deg 360deg
  );
  animation: geoDonutSpin 6s linear infinite;
  position: relative;
}
.geo-mini-donut::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #121216; /* match visual bg */
}
@keyframes geoDonutSpin { to { transform: rotate(360deg); } }

/* Counter */
.geo-hub-counter {
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

/* ── Floating data snippets ── */
.geo-data-snippet {
  position: absolute;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace;
  opacity: 0;
  animation: geoSnippetFloat 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
}
@keyframes geoSnippetFloat {
  0%, 100% { opacity: 0; transform: translateY(5px); }
  20%, 80% { opacity: 1; transform: translateY(0); }
}

/* ── Background grid ── */
.geo-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

/* ── Ambient particles ── */
.geo-ambient {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  animation: geoAmbientDrift linear infinite;
}
@keyframes geoAmbientDrift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-80px) translateX(20px); opacity: 0; }
}

/* =========================================
   PIPELINE INGESTION ANIMATION (Card 2)
   ========================================= */
.pipe-scene-wrapper {
  transform: scale(0.57);
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scene#pipe-scene {
  position: relative;
  width: 580px;
  height: 380px;
  flex-shrink: 0;
}

/* ── Background subtle grid ── */
.pipe-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

/* ── SVG Layer ── */
.pipe-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Input stream lines (left side) ── */
.pipe-stream-line {
  fill: none;
  stroke-width: 1.2;
  opacity: 0.25;
}
.pipe-stream-line.animated {
  animation: pipeStreamDash 3s linear infinite;
}
@keyframes pipeStreamDash {
  to { stroke-dashoffset: -40; }
}

/* ── Hexagon processor ── */
.pipe-hex-outer {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-width: 1.8;
  opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(123,44,191,0.4));
}
.pipe-hex-inner {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 1;
  opacity: 0.3;
  animation: pipeHexInnerSpin 8s linear infinite reverse;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes pipeHexInnerSpin { to { transform: rotate(360deg); } }

.pipe-hex-core {
  fill: var(--accent-primary);
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(0,229,255,0.6));
  animation: pipeCorePulse 1.5s ease-in-out infinite;
}
@keyframes pipeCorePulse {
  0%, 100% { opacity: 0.7; r: 6; }
  50% { opacity: 1; r: 8; }
}

.pipe-hex-glow {
  fill: url(#pipe-hexGlow);
  opacity: 0.5;
  animation: pipeGlowPulse 2s ease-in-out infinite;
}
@keyframes pipeGlowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ── Processing ring inside hex ── */
.pipe-proc-ring {
  fill: none;
  stroke: rgba(123,44,191,0.2);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  animation: pipeProcSpin 4s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes pipeProcSpin { to { transform: rotate(360deg); } }

/* ── Data packets (left side) ── */
.pipe-packet {
  position: absolute;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 6px;
  padding: 2px 4px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.pipe-packet.xlsx { background: rgba(0,229,255,0.12); border: 1px solid rgba(0,229,255,0.25); color: var(--accent-primary); }
.pipe-packet.csv  { background: rgba(123,44,191,0.12); border: 1px solid rgba(123,44,191,0.25); color: var(--accent-secondary); }
.pipe-packet.xls  { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); color: #f59e0b; }
.pipe-packet.err  { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; }

/* ── Output dashboard area (right) ── */
.pipe-out-zone {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  z-index: 5;
}

/* Mini sparkline */
.pipe-spark-row {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: pipeFadeSlideIn 0.6s ease forwards;
}
.pipe-spark-row:nth-child(1) { animation-delay: 0.5s; }
.pipe-spark-row:nth-child(2) { animation-delay: 0.8s; }
.pipe-spark-row:nth-child(3) { animation-delay: 1.1s; }

@keyframes pipeFadeSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.pipe-spark-lbl {
  font-size: 8px; /* Slightly increased */
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 32px;
}

.pipe-spark-cvs {
  width: 80px;
  height: 22px;
}

/* Mini horizontal bars */
.pipe-hbar-grp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: pipeFadeSlideIn 0.6s ease forwards;
  animation-delay: 1.4s;
}
.pipe-hbar-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pipe-hbar-lbl {
  font-size: 7px; /* Increased */
  color: rgba(255,255,255,0.3);
  width: 18px;
  text-align: right;
  font-family: 'Courier New', monospace;
}
.pipe-hbar-trk {
  width: 85px;
  height: 5px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}
.pipe-hbar-fill {
  height: 100%;
  border-radius: 2px;
  animation: pipeBarExpand 2s ease-in-out infinite alternate;
}
@keyframes pipeBarExpand {
  0% { width: 60%; }
  100% { width: var(--target); }
}

/* Stats counter */
.pipe-stat-blk {
  opacity: 0;
  animation: pipeFadeSlideIn 0.6s ease forwards;
  animation-delay: 1.7s;
}
.pipe-stat-val {
  font-size: 18px; /* Slightly increased for scaling */
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.pipe-stat-lbl {
  font-size: 8px; /* Increased */
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 1px;
}

/* ── Speed badge ── */
.pipe-speed-bdg {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  z-index: 5;
}
.pipe-spd-old {
  color: rgba(239,68,68,0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,0.3);
}
.pipe-spd-arr {
  color: var(--accent-primary);
  font-size: 11px;
}
.pipe-spd-new {
  color: var(--accent-primary);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0,229,255,0.4);
}

/* ── Incoming file count ── */
.pipe-file-ctr {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 5;
}
.pipe-file-val {
  font-size: 14px; /* Increased */
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  font-family: 'Courier New', monospace;
}
.pipe-file-lbl {
  font-size: 8px; /* Increased */
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* =========================================
   RAG KNOWLEDGE BASE ANIMATION (Card 3)
   ========================================= */
.rag-scene-wrapper {
  transform: scale(0.57);
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scene#rag-scene {
  position: relative;
  width: 580px;
  height: 380px;
  flex-shrink: 0;
}

.rag-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.rag-archive-zone {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  z-index: 4;
}

.rag-video-file {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  animation: rag-fileAwaken 1.5s ease forwards;
  position: relative;
  overflow: hidden;
}

.rag-video-file::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.04) 50%, transparent 100%);
  animation: rag-fileScan 3s ease-in-out infinite;
  opacity: 0;
}

@keyframes rag-fileScan {
  0% { transform: translateX(-100%); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.rag-video-file:nth-child(1) { animation-delay: 0.1s; }
.rag-video-file:nth-child(1)::after { animation-delay: 0.5s; }
.rag-video-file:nth-child(2) { animation-delay: 0.3s; }
.rag-video-file:nth-child(2)::after { animation-delay: 1.2s; }
.rag-video-file:nth-child(3) { animation-delay: 0.5s; }
.rag-video-file:nth-child(3)::after { animation-delay: 1.9s; }
.rag-video-file:nth-child(4) { animation-delay: 0.7s; }
.rag-video-file:nth-child(4)::after { animation-delay: 2.6s; }
.rag-video-file:nth-child(5) { animation-delay: 0.9s; }
.rag-video-file:nth-child(5)::after { animation-delay: 0.8s; }
.rag-video-file:nth-child(6) { animation-delay: 1.1s; }
.rag-video-file:nth-child(6)::after { animation-delay: 1.5s; }
.rag-video-file:nth-child(7) { animation-delay: 1.3s; }
.rag-video-file:nth-child(7)::after { animation-delay: 2.2s; }

@keyframes rag-fileAwaken {
  0% { opacity: 0; transform: translateX(-8px); }
  60% { opacity: 0.3; }
  100% { opacity: 1; transform: translateX(0); }
}

.rag-file-icon {
  width: 12px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}
.rag-file-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 0;
  height: 0;
  border-left: 5px solid rgba(255,255,255,0.2);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}
.rag-file-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.5px;
}

.rag-file-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rag-file-name {
  font-size: 6px;
  color: rgba(255,255,255,0.3);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3px;
}
.rag-file-size {
  font-size: 5px;
  color: rgba(255,255,255,0.15);
  font-family: 'Courier New', monospace;
}

.rag-archive-label {
  font-size: 7px;
  color: rgba(255,255,255,0.15);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  text-align: right;
}
.rag-archive-size {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.rag-voice-zone {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 5;
}

.rag-waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 80px;
}
.rag-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--accent-primary);
  transition: height 0.15s ease;
  box-shadow: 0 0 4px rgba(0,229,255,0.2);
}

.rag-voice-label {
  font-size: 7px;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.rag-chat-bubble {
  padding: 6px 10px;
  border-radius: 8px 8px 8px 2px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  max-width: 110px;
  opacity: 0;
  animation: rag-bubbleIn 0.5s ease forwards;
  animation-delay: 2s;
}
.rag-chat-text {
  font-size: 7px;
  color: var(--accent-primary);
  opacity: 0.8;
  line-height: 1.5;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.rag-chat-cursor {
  display: inline-block;
  width: 4px;
  height: 8px;
  background: var(--accent-primary);
  margin-left: 2px;
  animation: rag-cursorBlink 0.8s step-end infinite;
  vertical-align: middle;
}
@keyframes rag-cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes rag-bubbleIn {
  from { opacity: 0; transform: translateY(5px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rag-transcript-particle {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 5px;
  color: rgba(255,255,255,0.2);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  white-space: nowrap;
}

.rag-main-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

@keyframes rag-streamDash {
  to { stroke-dashoffset: -40; }
}

/* =========================================
   BI DASHBOARD ANIMATION (Card 4)
   ========================================= */
.bi-scene-wrapper {
  transform: scale(0.55);
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scene#bi-scene {
  position: relative;
  width: 620px;
  height: 420px;
  flex-shrink: 0;
}

.bi-bg-grid {
  position: absolute;
  inset: 0;
  background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%,black 20%,transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%,black 20%,transparent 78%);
}

.bi-gcp-col {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}

.bi-svc-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  animation: bi-nodeIn .6s ease forwards;
  position: relative;
}

.bi-svc-node::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
  transform: translateY(-50%);
}

@keyframes bi-nodeIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.bi-svc-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.bi-svc-label {
  font-size: 6.5px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.3;
}

.bi-svc-sub {
  font-size: 5.5px;
  color: rgba(255,255,255,.18);
  font-family: 'Courier New', monospace;
}

.bi-dash-zone {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 235px;
  height: 310px;
  border-radius: 6px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  z-index: 5;
  opacity: 0;
  animation: bi-dashIn .8s ease forwards;
  animation-delay: 1.4s;
}

@keyframes bi-dashIn {
  from { opacity: 0; transform: translateY(-50%) scale(.96); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.bi-dash-header {
  padding: 6px 10px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bi-dash-title {
  font-size: 7px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.bi-dash-live {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 5.5px;
  color: #22c55e;
  letter-spacing: .5px;
}

.bi-dash-live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22c55e;
  animation: bi-livePulse 1.5s ease-in-out infinite;
}

@keyframes bi-livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 3px #22c55e; }
  50% { opacity: .4; box-shadow: none; }
}

.bi-kpi-row {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
}

.bi-kpi-card {
  flex: 1;
  padding: 5px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.04);
}

.bi-kpi-val {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}

.bi-kpi-label {
  font-size: 5px;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 1px;
}

.bi-dash-body {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bi-dash-row {
  display: flex;
  gap: 6px;
}

.bi-map-box {
  width: 105px;
  height: 80px;
  border-radius: 3px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}

.bi-chart-box {
  flex: 1;
  height: 80px;
  border-radius: 3px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  position: relative;
  padding: 4px;
}

.bi-chart-label {
  font-size: 5px;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}

.bi-dash-row2 {
  display: flex;
  gap: 6px;
}

.bi-table-box {
  flex: 1;
  height: 76px;
  border-radius: 3px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  overflow: hidden;
}

.bi-table-header-row {
  display: flex;
  gap: 0;
  padding: 3px 5px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.bi-table-th {
  font-size: 4.5px;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: .3px;
  flex: 1;
}

.bi-table-row {
  display: flex;
  padding: 2.5px 5px;
  border-bottom: 1px solid rgba(255,255,255,.02);
}

.bi-table-td {
  font-size: 5px;
  color: rgba(255,255,255,.18);
  flex: 1;
  font-family: 'Courier New', monospace;
}

.bi-donut-box {
  width: 70px;
  height: 76px;
  border-radius: 3px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.bi-main-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.bi-pipe-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 5px rgba(0,229,255,.4);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.bi-update-flash {
  position: absolute;
  inset: 0;
  background: rgba(0,229,255,.03);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  border-radius: 6px;
  transition: opacity .3s;
}

@keyframes bi-dashFlow {
  to { stroke-dashoffset: -40; }
}

/* =========================================
   RESPONSIVE DESIGN 
   ========================================= */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px; /* nav height offset approximately */
        left: 0;
        width: 100%;
        background-color: var(--bg-tertiary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .nav-item.btn-outline {
        border-color: transparent;
        padding: 0;
        color: var(--accent-primary);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.5rem; }
}

/* =========================================
   PROJECT MODAL
   ========================================= */
.project-modal {
  margin: auto;
  padding: 0;
  border: none;
  background: var(--bg-color);
  border-radius: 12px;
  width: 90vw;
  max-width: 1000px;
  height: 90vh;
  max-height: 700px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 229, 208, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: scale(0.9);
}

.project-modal[open] {
  opacity: 1;
  transform: scale(1);
}

.project-modal::backdrop {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  .modal-content {
    flex-direction: column;
  }
}

@media (min-width: 992px) {
  .modal-content {
    flex-direction: row;
  }
}

.modal-visual-container {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 40vh;
}

.modal-visual-container .geo-scene-wrapper,
.modal-visual-container .pipe-scene-wrapper,
.modal-visual-container .rag-scene-wrapper,
.modal-visual-container .bi-scene-wrapper {
  transform: scale(0.8) !important;
  width: 100%;
  height: 100%;
}

@media (min-width: 992px) {
  .modal-visual-container .geo-scene-wrapper,
  .modal-visual-container .pipe-scene-wrapper,
  .modal-visual-container .rag-scene-wrapper,
  .modal-visual-container .bi-scene-wrapper {
    transform: scale(1.1) !important;
  }
}

@media (max-width: 768px) {
  .modal-visual-container .geo-scene-wrapper,
  .modal-visual-container .pipe-scene-wrapper,
  .modal-visual-container .rag-scene-wrapper,
  .modal-visual-container .bi-scene-wrapper {
    transform: scale(0.65) !important;
  }
}

@media (max-width: 480px) {
  .modal-visual-container .geo-scene-wrapper,
  .modal-visual-container .pipe-scene-wrapper,
  .modal-visual-container .rag-scene-wrapper,
  .modal-visual-container .bi-scene-wrapper {
    transform: scale(0.5) !important;
  }
}

.modal-text-content {
  flex: 1;
  padding: 40px;
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
}

@media (max-width: 992px) {
  .modal-text-content {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
  }
}

.modal-text-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-color);
  line-height: 1.3;
}

.modal-text-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--accent-primary);
  color: #000;
  transform: scale(1.1);
}

/* =========================================
   ADDITIONAL CAPABILITIES
   ========================================= */
.additional-capabilities {
  margin-top: 4rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.cap-card {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 229, 208, 0.2);
}

.cap-card.featured-cap {
  grid-column: span 2;
  flex-direction: row;
  gap: 1.5rem;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
}

.featured-cap .cap-visual-placeholder {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  min-height: 240px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-placeholder-border {
  position: absolute;
  inset: 1.5rem;
  border: 1px dashed rgba(0, 229, 208, 0.3);
  border-radius: 8px;
  background: linear-gradient(45deg, rgba(0, 229, 208, 0.03) 25%, transparent 25%, transparent 50%, rgba(0, 229, 208, 0.03) 50%, rgba(0, 229, 208, 0.03) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
}

.featured-cap .cap-content {
  flex: 1;
  padding: 2rem 2rem 2rem 0;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.featured-cap h4 {
  font-size: 1.35rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-cap p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.cap-card.compact {
  align-items: flex-start;
  justify-content: center;
}

.cap-card.compact .cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 208, 0.08);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.cap-card.compact:nth-child(even) .cap-icon {
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-secondary);
}

.cap-card.compact h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--text-color);
  line-height: 1.4;
}

.cap-card.compact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-card.featured-cap {
    grid-column: span 2;
    flex-direction: column;
  }
  .featured-cap .cap-visual-placeholder {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }
  .featured-cap .cap-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .cap-card.featured-cap {
    grid-column: span 1;
  }
}

/* =========================================
   OBT SEARCH ENGINE ANIMATION
   ========================================= */
.obt-scene-wrapper {
  transform: scale(0.65);
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 1200px) {
  .obt-scene-wrapper { transform: scale(0.55); }
}
@media (max-width: 900px) {
  .obt-scene-wrapper { transform: scale(0.7); }
}
@media (max-width: 600px) {
  .obt-scene-wrapper { transform: scale(0.48); }
}

.scene#obt-scene {
  position: relative;
  width: 580px;
  height: 400px;
  flex-shrink: 0;
}

.obt-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.01) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.01) 1px,transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%,black 20%,transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%,black 20%,transparent 80%);
}

.obt-search-bar {
  position: absolute;top:22px;left:50%;transform:translateX(-50%);
  width:320px;height:34px;
  border-radius:17px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  display:flex;align-items:center;
  padding:0 14px;gap:8px;
  z-index:10;
  box-shadow:0 0 30px rgba(0,229,208,.03);
  transition:border-color .3s,box-shadow .3s;
}
.obt-search-bar.active {
  border-color:rgba(0,229,208,.25);
  box-shadow:0 0 40px rgba(0,229,208,.06);
}
.obt-search-icon {
  width:14px;height:14px;
  border:1.5px solid rgba(255,255,255,.2);
  border-radius:50%;
  position:relative;flex-shrink:0;
}
.obt-search-icon::after {
  content:'';position:absolute;
  bottom:-3px;right:-3px;
  width:5px;height:1.5px;
  background:rgba(255,255,255,.2);
  transform:rotate(45deg);
  transform-origin:left center;
}
.obt-search-text {
  font-size:11px;color:rgba(255,255,255,.35);
  font-family:'Courier New',monospace;
  letter-spacing:.3px;
  flex:1;
  overflow:hidden;white-space:nowrap;
}
.obt-search-cursor {
  display:inline-block;width:1px;height:13px;
  background:var(--cyan);
  animation:obt-blink .7s step-end infinite;
  vertical-align:middle;margin-left:1px;
}
@keyframes obt-blink {0%,100%{opacity:1}50%{opacity:0}}

.obt-search-time {
  font-size:8px;color:var(--cyan);
  font-family:'Courier New',monospace;
  opacity:0;transition:opacity .3s;
  white-space:nowrap;
}
.obt-search-time.show {opacity:1}

.obt-matrix-canvas {
  position:absolute;
  top:65px;left:50%;transform:translateX(-50%);
  z-index:2;
}

.obt-scan-beam {
  position:absolute;
  top:65px;left:50%;transform:translateX(-50%);
  width:480px;height:2px;
  background:linear-gradient(90deg,transparent 0%,var(--cyan) 50%,transparent 100%);
  opacity:0;z-index:4;
  box-shadow:0 0 15px rgba(0,229,208,.3),0 0 40px rgba(0,229,208,.1);
  pointer-events:none;
  transition:opacity .2s;
}

.obt-results-zone {
  position:absolute;
  bottom:16px;left:50%;transform:translateX(-50%);
  display:flex;gap:8px;
  z-index:6;
}
.obt-result-card {
  padding:8px 11px;
  border-radius:5px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  opacity:0;
  transform:translateY(10px);
  transition:opacity .4s ease,transform .4s ease,border-color .4s;
  min-width:110px;
}
.obt-result-card.show {
  opacity:1;transform:translateY(0);
  border-color:rgba(0,229,208,.12);
}
.obt-result-card.highlight {
  border-color:rgba(0,229,208,.3);
  box-shadow:0 0 12px rgba(0,229,208,.06);
}
.obt-rc-name {font-size:8px;color:rgba(255,255,255,.45);font-weight:600;margin-bottom:2px;letter-spacing:.3px}
.obt-rc-field {font-size:6.5px;color:rgba(255,255,255,.2);font-family:'Courier New',monospace;line-height:1.6;letter-spacing:.2px}
.obt-rc-match {color:var(--cyan);font-weight:600}

.obt-stats-bar {
  position:absolute;bottom:100px;left:50%;transform:translateX(-50%);
  display:flex;gap:24px;z-index:5;
  opacity:0;animation:obt-fadeUp .5s ease forwards;animation-delay:1s;
}
@keyframes obt-fadeUp {from{opacity:0;transform:translateX(-50%) translateY(6px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
.obt-stat-item {text-align:center}
.obt-stat-val {font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.3px}
.obt-stat-lbl {font-size:6px;color:rgba(255,255,255,.18);text-transform:uppercase;letter-spacing:.8px;margin-top:1px}

.obt-bq-badge {
  position:absolute;top:24px;right:24px;
  display:flex;align-items:center;gap:5px;
  padding:4px 8px;border-radius:3px;
  background:rgba(139,92,246,.06);
  border:1px solid rgba(139,92,246,.12);
  z-index:8;
  opacity:0;animation:obt-fadeUp .5s ease forwards;animation-delay:.5s;
}
.obt-bq-icon {width:10px;height:10px;border-radius:2px;background:rgba(139,92,246,.25);display:flex;align-items:center;justify-content:center;font-size:6px;color:var(--purple)}
.obt-bq-text {font-size:6.5px;color:rgba(139,92,246,.5);letter-spacing:.5px;text-transform:uppercase}

.obt-platform-row {
  position:absolute;top:24px;left:24px;
  display:flex;gap:6px;z-index:8;
  opacity:0;animation:obt-fadeUp .5s ease forwards;animation-delay:.7s;
}
.obt-plat-icon {
  width:20px;height:20px;border-radius:3px;
  background:var(--glass);border:1px solid var(--glass-border);
  display:flex;align-items:center;justify-content:center;
  font-size:9px;
}
.obt-plat-label {
  font-size:5px;color:rgba(255,255,255,.12);text-transform:uppercase;
  letter-spacing:.4px;margin-top:2px;text-align:center;
}
