/*
 * features.css
 * Dedicated external CSS for features-overview.html.
 * Consolidates all interactive 3D, particle, tech-grid, and glassmorphism styling.
 */

body {
    background-color: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
}

/* Background Grids & Technical Patterns */
.bg-grid-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(139, 92, 246, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
}

.tech-grid {
    background-image: linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Section 1 Unique Styling: 3D Command Center */
.glass-panel {
    background: rgba(30, 27, 75, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

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

.glow-purple {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.isometric-view {
    perspective: 2000px;
}

.dashboard-mockup {
    transform: rotateX(20deg) rotateY(-15deg) rotateZ(2deg);
    transform-style: preserve-3d;
}

.ghost-note-highlight {
    border-left: 3px solid #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.feature-icon-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(30, 27, 75, 0.4));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Section 2: Discover More Ways Grid Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
}

/* Icon Glow and Scale */
.icon-glow {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.glass-card:hover .icon-glow {
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.8));
    transform: scale(1.1) translateZ(20px);
}

/* Card inner elements translation for 3D depth */
.card-content {
    transform: translateZ(10px);
}

/* Particle Background Layer */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.2;
    transition: transform 0.2s ease-out;
}

/* Animations & Keyframes */
.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

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

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

.animate-cascade-in {
    animation: cascade-in 3s ease-in-out infinite;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotateX(20deg) rotateY(-15deg);
    }

    50% {
        transform: translateY(-20px) rotateX(20deg) rotateY(-15deg);
    }
}

@keyframes float-simple {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cascade-in {
    0% {
        transform: translateY(-40px) scale(0.5);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(120px) scale(0.8);
        opacity: 0;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Entrance */
.stagger-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.stagger-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.stagger-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.stagger-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

.stagger-5 {
    animation-delay: 0.5s;
    opacity: 0;
}

.stagger-6 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Section A: AI Qualification Deep Dive */
.circuit-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L90 10 L90 90 L10 90 Z' fill='none' stroke='%23a855f7' stroke-width='0.1' stroke-opacity='0.2'/%3E%3Ccircle cx='10' cy='10' r='0.5' fill='%23a855f7' fill-opacity='0.3'/%3E%3C/svg%3E");
}

.radial-glow {
    background: radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
}

.glow-text-purple {
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.8), 0 0 30px rgba(168, 85, 247, 0.4);
}

.animated-path {
    stroke-dasharray: 8, 16;
}

/* Animations for Section A */
.animate-pulse-slow {
    animation: pulse-custom 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-stream-flow {
    animation: stream-dash 3s linear infinite;
}

.animate-glow-breath {
    animation: glow-breath-custom 4s ease-in-out infinite;
}

@keyframes pulse-custom {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
        filter: blur(40px);
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
        filter: blur(80px);
    }
}

@keyframes glow-breath-custom {

    0%,
    100% {
        box-shadow: 0 0 20px 5px rgba(168, 85, 247, 0.3);
    }

    50% {
        box-shadow: 0 0 60px 15px rgba(168, 85, 247, 0.6);
    }
}

@keyframes float-flat {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes stream-dash {
    to {
        stroke-dashoffset: -24;
    }
}

/* Prospect Directory Section Styles */
.prospect-glass-panel {
    background: rgba(30, 15, 36, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(189, 141, 206, 0.2);
}
.mist-fade {
    background: linear-gradient(to bottom, transparent, #1e0f24);
}
.neon-glow {
    box-shadow: 0 0 15px rgba(236, 91, 19, 0.3);
}

/* Precision Routing Section Styles */
.routing-glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.bg-grid-tech {
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s ease-in-out forwards infinite;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.node-pulse {
    animation: nodePulse 3s infinite;
}

@keyframes nodePulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.3; }
}

.routing-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
}

/* Seamless Automation Section Styles */
@keyframes automationDash {
  to {
    stroke-dashoffset: -20;
  }
}
.automation-flow-line {
  stroke-dasharray: 10, 10;
  animation: automationDash 1s linear infinite;
}

.glass-node-3d {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.glass-node-3d:hover {
  border-color: rgba(168, 85, 247, 0.8);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  transform: translateY(-5px) scale(1.02);
}

.radial-gradient-bg {
  background: 
    radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
    #020617;
}

.automation-grid-pattern {
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.command-header {
  letter-spacing: -0.02em;
}

.automation-icon-glow {
  position: relative;
}
.automation-icon-glow::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: currentColor;
  filter: blur(12px);
  opacity: 0.5;
  border-radius: inherit;
  z-index: -1;
  animation: breath-automation 3s ease-in-out infinite;
}

.workflow-container {
  perspective: 1200px;
}

.tilt-panel {
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.6s ease-out;
}

.workflow-container:hover .tilt-panel {
  transform: rotateY(-5deg) rotateX(2deg);
}

/* White-Label Architecture Section Styles */
.wl-glass-panel {
  background: rgba(15, 15, 30, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wl-glow-purple { box-shadow: 0 0 50px -10px rgba(124, 58, 237, 0.4); }
.wl-glow-neon { box-shadow: 0 0 60px -15px rgba(168, 85, 247, 0.5); }

.wl-stack-perspective {
  perspective: 3000px;
}

.wl-panel-float {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.wl-panel-1 { transform: rotateX(20deg) rotateY(-15deg) rotateZ(5deg) translateY(-80px) translateZ(80px); }
.wl-panel-2 { transform: rotateX(20deg) rotateY(-15deg) rotateZ(5deg) translateY(40px) translateZ(0px); }
.wl-panel-3 { transform: rotateX(20deg) rotateY(-15deg) rotateZ(5deg) translateY(160px) translateZ(-80px); }

.wl-fiber-optic {
  background: linear-gradient(to bottom,
    transparent,
    rgba(168, 85, 247, 0.1) 20%,
    rgba(168, 85, 247, 0.8) 50%,
    rgba(168, 85, 247, 0.1) 80%,
    transparent);
  width: 2px;
  height: 120%;
  position: absolute;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  animation: wlFlow 4s infinite linear;
}



@keyframes wlFlow {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.wl-floating-anim {
  animation: wlSubtleBounce 6s ease-in-out infinite alternate;
}

@keyframes wlSubtleBounce {
  from { transform: rotateX(20deg) rotateY(-15deg) rotateZ(5deg) translateY(-80px) translateZ(80px); }
  to { transform: rotateX(20deg) rotateY(-15deg) rotateZ(5deg) translateY(-95px) translateZ(80px); }
}


@media (max-width:767px) {
    .search-wrapper {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
}