/* ============================================================
   RAGHAVAN TECHNOLOGIES — HIGH-TECH ANIMATED BACKGROUND SYSTEM
   Subtle, precision SVG & CSS geometric animations
   ============================================================ */

/* ── Container Base ────────────────────────────────────────── */
.tech-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Ensure parent section has relative positioning and clips overflow */
.hero,
.solution-hero,
.products-hero,
.product-hero,
.page-hero,
.about-hero,
.careers-hero,
.stats-section,
.cta-section,
.quantum-difference {
    position: relative;
    overflow: hidden;
}

.footer {
    overflow: hidden;
}

/* Ensure content stays comfortably above background */
.hero-content,
.solution-hero > .container,
.solution-hero h1,
.products-hero h1,
.products-hero .hero-tag,
.products-hero p,
.product-hero .container,
.page-hero-content,
.footer-content,
.container {
    position: relative;
    z-index: 1;
}

/* ── SVG Layer Base ────────────────────────────────────────── */
.tech-svg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── Geometry & Stroke Styles ──────────────────────────────── */
.tech-stroke-faint {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    fill: none;
    vector-effect: non-scaling-stroke;
}

.tech-stroke-dim {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.2;
    fill: none;
    vector-effect: non-scaling-stroke;
}

.tech-stroke-neon-cyan {
    stroke: rgba(6, 182, 212, 0.35);
    stroke-width: 1.2;
    fill: none;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.2));
}

.tech-stroke-neon-orange {
    stroke: rgba(255, 107, 53, 0.42);
    stroke-width: 1.2;
    fill: none;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.24));
}

.tech-stroke-neon-emerald {
    stroke: rgba(16, 185, 129, 0.32);
    stroke-width: 1.2;
    fill: none;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.18));
}

/* ── Reticle & Concentric Measurement Rings ────────────────── */
.tech-reticle-wrap {
    position: absolute;
    width: 680px;
    height: 680px;
    opacity: 0.75;
    pointer-events: none;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-reticle-top-right {
    top: -120px;
    right: -100px;
}

.tech-reticle-center-right {
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
}

.tech-reticle-top-left {
    top: -140px;
    left: -120px;
}

.tech-reticle-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tech-spin-clockwise {
    animation: techRotateClockwise 110s linear infinite;
    transform-origin: 340px 340px;
    will-change: transform;
}

.tech-spin-counter {
    animation: techRotateCounter 150s linear infinite;
    transform-origin: 340px 340px;
    will-change: transform;
}

.tech-spin-fast {
    animation: techRotateClockwise 60s linear infinite;
    transform-origin: 340px 340px;
    will-change: transform;
}

/* ── Waveguide / Circuit Drawing Lines (Intensity reduced by 70%) ── */
.tech-draw-line-1 {
    stroke-dasharray: 400 1200;
    stroke-dashoffset: 1600;
    animation: techDashDraw1 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 3px rgba(6, 182, 212, 0.15));
}

.tech-draw-line-2 {
    stroke-dasharray: 500 1400;
    stroke-dashoffset: 1900;
    animation: techDashDraw2 28s cubic-bezier(0.4, 0, 0.2, 1) infinite -8s;
    filter: drop-shadow(0 0 3px rgba(6, 182, 212, 0.15));
}

.tech-draw-line-3 {
    stroke-dasharray: 300 900;
    stroke-dashoffset: 1200;
    animation: techDashDraw3 18s cubic-bezier(0.4, 0, 0.2, 1) infinite -4s;
    filter: drop-shadow(0 0 3px rgba(255, 107, 53, 0.15));
}

/* ── Fast-Moving & Pulsing Dots Removed Across All Pages ────── */
.tech-pulse-node-orange,
.tech-pulse-node-cyan,
.tech-pulse-node-emerald,
.lottie-wave-dot {
    display: none !important;
}

/* Remove fast-spinning dotted rings from reticles */
.tech-reticle-wrap circle[stroke-dasharray*="4 12"],
.tech-reticle-wrap circle[stroke-dasharray*="4 14"],
.tech-reticle-wrap circle[stroke-dasharray*="4 "] {
    display: none !important;
}

/* ── Floating Geometric Elements ───────────────────────────── */
.tech-float-box {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 28, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 6px;
    pointer-events: none;
}

.tech-float-1 {
    animation: techFloating1 18s ease-in-out infinite alternate;
    will-change: transform;
}

.tech-float-2 {
    animation: techFloating2 24s ease-in-out infinite alternate;
    will-change: transform;
}

.tech-float-3 {
    animation: techFloating3 20s ease-in-out infinite alternate;
    will-change: transform;
}

/* Micro Telemetry Badges */
.tech-telemetry-tag {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding: 3px 6px;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tech-telemetry-tag::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-primary, #ff6b35);
    box-shadow: 0 0 6px var(--accent-primary, #ff6b35);
}

/* ── Section Transition Accent Lines ───────────────────────── */
.tech-divider-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.04) 20%, 
        rgba(255, 107, 53, 0.25) 50%, 
        rgba(255, 255, 255, 0.04) 80%, 
        transparent 100%
    );
}

.tech-divider-line::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.8), transparent);
    filter: blur(1px);
    animation: techLaserSweep 12s ease-in-out infinite;
}

/* ── Keyframe Definitions ──────────────────────────────────── */
@keyframes techRotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes techRotateCounter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes techDashDraw1 {
    0% { stroke-dashoffset: 1600; opacity: 0.03; }
    20% { opacity: 0.25; }
    50% { stroke-dashoffset: 0; opacity: 0.27; }
    80% { opacity: 0.25; }
    100% { stroke-dashoffset: -1600; opacity: 0.03; }
}

@keyframes techDashDraw2 {
    0% { stroke-dashoffset: 1900; opacity: 0.04; }
    25% { opacity: 0.28; }
    50% { stroke-dashoffset: 0; opacity: 0.25; }
    75% { opacity: 0.28; }
    100% { stroke-dashoffset: -1900; opacity: 0.04; }
}

@keyframes techDashDraw3 {
    0% { stroke-dashoffset: 1200; opacity: 0.03; }
    30% { opacity: 0.24; }
    50% { stroke-dashoffset: 0; opacity: 0.25; }
    70% { opacity: 0.24; }
    100% { stroke-dashoffset: -1200; opacity: 0.03; }
}

@keyframes techNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.28; }
    50% { transform: scale(1.35); opacity: 0.7; }
}

@keyframes techReticleNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes techFloating1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-12px, -18px) rotate(2deg); }
    100% { transform: translate(8px, -28px) rotate(-1deg); }
}

@keyframes techFloating2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(16px, -15px) rotate(-2deg); }
    100% { transform: translate(-10px, -24px) rotate(1.5deg); }
}

@keyframes techFloating3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-14px, 12px) scale(1.03); }
    100% { transform: translate(12px, -14px) scale(0.97); }
}

@keyframes techLaserSweep {
    0% { left: -120px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* ── Lottie-Style Animated Feature Icons ────────────────────── */
.feature-icon {
    transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05) !important;
    background: rgba(255, 107, 53, 0.2) !important;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.22) !important;
}

.feature-icon-svg {
    width: 32px;
    height: 32px;
    overflow: visible;
    display: block;
}

/* 1. Future-proof Shield Animations */
.lottie-shield-path {
    stroke-dasharray: 75;
    stroke-dashoffset: 0;
    animation: lottieDrawShield 6s ease-in-out infinite;
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.lottie-shield-ring {
    transform-origin: 12px 12px;
    animation: lottieRotateClockwise 12s linear infinite;
}

.lottie-shield-core {
    animation: lottieCorePulse 3s ease-in-out infinite;
}

.feature-card:hover .lottie-shield-path {
    animation: lottieDrawShieldFast 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.6));
}

.feature-card:hover .lottie-shield-ring {
    animation: lottieRotateClockwise 4s linear infinite;
    opacity: 1;
}

/* 2. Accelerated Bolt Animations */
.lottie-bolt-path {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
    animation: lottieBoltPulse 3.5s ease-in-out infinite;
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.lottie-bolt-trail {
    stroke-dasharray: 10 20;
    animation: lottieTrailDraw 3s linear infinite;
}

.feature-card:hover .lottie-bolt-path {
    animation: lottieBoltPulseFast 1s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.8));
}

.feature-card:hover .lottie-bolt-trail {
    animation: lottieTrailDraw 1.2s linear infinite;
    opacity: 0.9;
}

/* 3. Entropy-rich Hypercube Animations */
.lottie-cube-outer {
    stroke-dasharray: 85;
    animation: lottieCubeDraw 7s ease-in-out infinite;
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.lottie-cube-inner {
    stroke-dasharray: 35;
    animation: lottieCubeInnerDraw 5s ease-in-out infinite -1.5s;
}

.lottie-cube-node {
    transform-origin: 12px 12px;
    animation: lottieNodePulse 3s ease-in-out infinite;
}

.feature-card:hover .lottie-cube-outer {
    animation: lottieCubeDrawFast 2.2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.6));
}

.feature-card:hover .lottie-cube-node {
    transform: scale(1.4);
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.9));
}

/* 4. Measurable Waveform Animations */
.lottie-wave-path {
    stroke-dasharray: 70;
    stroke-dashoffset: 140;
    animation: lottieWaveDraw 3.5s linear infinite;
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.lottie-wave-dot {
    animation: lottieWaveDotScan 3.5s linear infinite;
}

.feature-card:hover .lottie-wave-path {
    animation: lottieWaveDraw 1.8s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.7));
}

.feature-card:hover .lottie-wave-dot {
    animation: lottieWaveDotScan 1.8s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 1));
}

/* ── Lottie Keyframe Definitions ────────────────────────────── */
@keyframes lottieDrawShield {
    0%, 100% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 40; }
}

@keyframes lottieDrawShieldFast {
    0% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 75; }
    100% { stroke-dashoffset: 150; }
}

@keyframes lottieRotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes lottieCorePulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.8)); }
}

@keyframes lottieBoltPulse {
    0%, 100% { stroke-dashoffset: 0; opacity: 0.85; }
    50% { stroke-dashoffset: 30; opacity: 1; }
}

@keyframes lottieBoltPulseFast {
    0% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 60; }
    100% { stroke-dashoffset: 120; }
}

@keyframes lottieTrailDraw {
    from { stroke-dashoffset: 30; }
    to { stroke-dashoffset: -30; }
}

@keyframes lottieCubeDraw {
    0%, 100% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 45; }
}

@keyframes lottieCubeDrawFast {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 170; }
}

@keyframes lottieCubeInnerDraw {
    0%, 100% { stroke-dashoffset: 0; opacity: 0.5; }
    50% { stroke-dashoffset: 25; opacity: 1; }
}

@keyframes lottieNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.9)); }
}

@keyframes lottieWaveDraw {
    0% { stroke-dashoffset: 140; }
    100% { stroke-dashoffset: 0; }
}

@keyframes lottieWaveDotScan {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.9)); }
}

/* ── Stats Quantum Wave Animation ──────────────────────────── */
.tech-stats-wave {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tech-stats-wave-beam {
    stroke-dasharray: 220 780;
    stroke-dashoffset: 1000;
    animation: techStatsWaveDraw 8s linear infinite;
    opacity: 0.4;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.45));
}

@keyframes techStatsWaveDraw {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

/* ── Product Light Beam Loop Animation ─────────────────────── */
.product-beam-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.product-beam-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.product-beam-track {
    stroke: rgba(255, 107, 53, 0.14);
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
    fill: none;
}

.product-beam-runner {
    stroke: #ff6b35;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 180 820;
    stroke-dashoffset: 0;
    animation: productBeamTravel 4.5s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.95)) drop-shadow(0 0 2px #ffffff);
}

.product-orbit-track {
    stroke: rgba(6, 182, 212, 0.18);
    stroke-width: 1;
    stroke-dasharray: 3 5;
    fill: none;
}

.product-orbit-beam {
    stroke: #06b6d4;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 160 840;
    stroke-dashoffset: 0;
    animation: productOrbitTravel 3.6s linear infinite;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.9)) drop-shadow(0 0 2px #ffffff);
}

.product-beam-corners {
    stroke: rgba(255, 107, 53, 0.35);
    stroke-width: 1.5;
    fill: none;
}

.product-card:hover .product-beam-runner,
.prod-card:hover .product-beam-runner {
    animation-duration: 2.2s;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 1)) drop-shadow(0 0 4px #ffffff);
}

.product-card:hover .product-orbit-beam,
.prod-card:hover .product-orbit-beam {
    animation-duration: 1.8s;
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 1)) drop-shadow(0 0 4px #ffffff);
}

@keyframes productBeamTravel {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes productOrbitTravel {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

/* ── Product Contour Snake Beam (Razor-Thin Laser Beam) ── */
.product-snake-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 82%;
    border-radius: 24px;
}

.product-snake-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.product-snake-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.product-snake-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 2 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-snake-glow {
    fill: none;
    stroke: #ff7844;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100 900;
    stroke-dashoffset: 1000;
    animation: productSnakeTravel 4.5s linear infinite;
    opacity: 0.5;
    filter: blur(2px) drop-shadow(0 0 6px rgba(255, 107, 53, 0.8));
}

.product-snake-beam {
    fill: none;
    stroke: #ff6b35;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 120 880;
    stroke-dashoffset: 1000;
    animation: productSnakeTravel 4.5s linear infinite;
    filter: drop-shadow(0 0 6px #ff6b35) drop-shadow(0 0 2px #ffffff);
}

.product-snake-core {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 75 925;
    stroke-dashoffset: 1000;
    animation: productSnakeTravel 4.5s linear infinite;
    filter: drop-shadow(0 0 2px #ffffff);
}

.product-snake-container:hover .product-snake-beam {
    animation-duration: 2.2s;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 1)) drop-shadow(0 0 3px #ffffff);
}

.product-snake-container:hover .product-snake-glow {
    animation-duration: 2.2s;
    opacity: 0.8;
}

.product-snake-container:hover .product-snake-core {
    animation-duration: 2.2s;
}

@keyframes productSnakeTravel {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

/* ── Reduced Motion Accessibility ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tech-spin-clockwise,
    .tech-spin-counter,
    .tech-spin-fast,
    .tech-draw-line-1,
    .tech-draw-line-2,
    .tech-draw-line-3,
    .tech-stats-wave-beam,
    .product-beam-runner,
    .product-orbit-beam,
    .product-snake-beam,
    .product-snake-glow,
    .product-snake-core,
    .tech-pulse-node-orange,
    .tech-pulse-node-cyan,
    .tech-pulse-node-emerald,
    .tech-float-1,
    .tech-float-2,
    .tech-float-3,
    .tech-divider-line::after,
    .lottie-shield-path,
    .lottie-shield-ring,
    .lottie-shield-core,
    .lottie-bolt-path,
    .lottie-bolt-trail,
    .lottie-cube-outer,
    .lottie-cube-inner,
    .lottie-cube-node,
    .lottie-wave-path,
    .lottie-wave-dot {
        animation: none !important;
        transform: none !important;
    }
}



