/* ============================================================
   IMMERSIVE.CSS — Advanced Visual Layer
   Holographic effects, cursor spotlight, energy pulses,
   3D depth, scanning lines, volumetric light, premium glass
   ============================================================ */

/* === CURSOR SPOTLIGHT === */
.cursor-spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.06) 0%,
        rgba(124, 58, 237, 0.03) 30%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    will-change: transform;
    mix-blend-mode: screen;
}

@media (max-width: 768px) {
    .cursor-spotlight { display: none; }
}

/* === HERO IMMERSIVE UPGRADES === */
.hero {
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 60%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
}

/* Hero holographic ring */
.hero-holo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.08);
    animation: holo-ring-breathe 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-holo-ring::before {
    content: '';
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.06);
    animation: holo-ring-breathe 6s ease-in-out infinite reverse;
}

.hero-holo-ring::after {
    content: '';
    position: absolute;
    inset: 80px;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.05);
    animation: holo-ring-breathe 8s ease-in-out infinite;
}

@keyframes holo-ring-breathe {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

/* Hero AI Core — interactive 3D focal element */
.hero-ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    z-index: 0;
    pointer-events: none;
}

.ai-core-orb {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%,
        rgba(37, 99, 235, 0.12) 0%,
        rgba(124, 58, 237, 0.06) 40%,
        transparent 70%);
    animation: core-pulse 4s ease-in-out infinite;
    filter: blur(1px);
}

.ai-core-orb::before {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(6, 182, 212, 0.15) 0%,
        rgba(37, 99, 235, 0.08) 50%,
        transparent 70%);
    animation: core-inner-pulse 3s ease-in-out infinite 0.5s;
}

.ai-core-orb::after {
    content: '';
    position: absolute;
    inset: 35%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 60%);
    animation: core-inner-pulse 2.5s ease-in-out infinite 1s;
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes core-inner-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* Rotating orbit lines around core */
.ai-core-orbit {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    border: 1px dashed rgba(37, 99, 235, 0.12);
    animation: orbit 20s linear infinite;
}

.ai-core-orbit:nth-child(2) {
    inset: -20%;
    border-color: rgba(124, 58, 237, 0.08);
    animation-duration: 30s;
    animation-direction: reverse;
}

.ai-core-orbit:nth-child(3) {
    inset: -30%;
    border-color: rgba(6, 182, 212, 0.06);
    animation-duration: 40s;
}

/* Floating orbit dots */
.ai-core-orbit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
    transform: translateX(-50%);
}

.ai-core-orbit:nth-child(2)::before {
    background: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
    top: auto;
    bottom: 0;
}

.ai-core-orbit:nth-child(3)::before {
    background: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    left: 0;
    top: 50%;
}

@media (max-width: 768px) {
    .hero-ai-core { width: 200px; height: 200px; }
    .hero-holo-ring { width: 320px; height: 320px; }
}

/* === SECTION ENERGY DIVIDERS === */
.energy-divider {
    position: relative;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(37, 99, 235, 0.3) 20%,
        rgba(124, 58, 237, 0.4) 50%,
        rgba(6, 182, 212, 0.3) 80%,
        transparent 100%);
    overflow: visible;
}

.energy-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(37, 99, 235, 0.6),
        rgba(124, 58, 237, 0.8),
        rgba(6, 182, 212, 0.6),
        transparent);
    filter: blur(4px);
}

.energy-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, transparent);
    border-radius: 2px;
    animation: energy-travel 4s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

@keyframes energy-travel {
    0% { left: -60px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 60px); opacity: 0; }
}

/* === HOLOGRAPHIC CARD EFFECT === */
.card-holo {
    position: relative;
    overflow: hidden;
}

.card-holo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(37, 99, 235, 0.03) 45%,
        rgba(124, 58, 237, 0.04) 50%,
        rgba(6, 182, 212, 0.03) 55%,
        transparent 60%
    );
    transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    pointer-events: none;
}

.card-holo:hover::before {
    left: 100%;
}

/* Card glow border on hover */
.card-holo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(37, 99, 235, 0.2) 25%,
        rgba(124, 58, 237, 0.15) 50%,
        rgba(6, 182, 212, 0.2) 75%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.card-holo:hover::after {
    opacity: 1;
}

/* === 3D TILT CARD SYSTEM === */
[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
}

[data-tilt] > * {
    transform: translateZ(20px);
}

/* === SCANNING LINE EFFECT === */
.scan-line-effect {
    position: relative;
    overflow: hidden;
}

.scan-line-effect::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(6, 182, 212, 0.5),
        rgba(37, 99, 235, 0.6),
        rgba(6, 182, 212, 0.5),
        transparent);
    animation: scan-sweep 4s ease-in-out infinite;
    opacity: 0;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    pointer-events: none;
    z-index: 2;
}

@keyframes scan-sweep {
    0% { top: -2px; opacity: 0; }
    5% { opacity: 0.6; }
    95% { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* === GLOWING BORDER SYSTEM === */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--glow-color, rgba(37, 99, 235, 0.5)),
        transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

/* === ENHANCED GLASSMORPHISM === */
.glass-premium {
    background: rgba(13, 13, 37, 0.4);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-premium:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* === AMBIENT GLOW BACKGROUNDS === */
.section-glow {
    position: relative;
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 60%;
    background: radial-gradient(ellipse,
        rgba(37, 99, 235, 0.04) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* === HOLOGRAPHIC SHIMMER TEXT === */
.text-shimmer {
    position: relative;
    display: inline-block;
}

.text-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    animation: text-shimmer-sweep 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes text-shimmer-sweep {
    0%, 100% { left: -50%; }
    50% { left: 150%; }
}

/* === MAGNETIC BUTTON GLOW === */
.btn-magnetic {
    position: relative;
    transition:
        transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.5),
        rgba(124, 58, 237, 0.5),
        rgba(6, 182, 212, 0.5));
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

.btn-magnetic:hover::before {
    opacity: 0.5;
}

/* === FLOATING PARTICLES (CSS-only ambient) === */
.ambient-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.4);
    animation: float-particle linear infinite;
}

.ambient-particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; background: rgba(37, 99, 235, 0.3); }
.ambient-particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; background: rgba(124, 58, 237, 0.3); width: 3px; height: 3px; }
.ambient-particle:nth-child(3) { left: 45%; animation-duration: 18s; animation-delay: 4s; background: rgba(6, 182, 212, 0.3); }
.ambient-particle:nth-child(4) { left: 65%; animation-duration: 14s; animation-delay: 1s; background: rgba(37, 99, 235, 0.25); width: 3px; height: 3px; }
.ambient-particle:nth-child(5) { left: 80%; animation-duration: 16s; animation-delay: 3s; background: rgba(124, 58, 237, 0.25); }
.ambient-particle:nth-child(6) { left: 92%; animation-duration: 20s; animation-delay: 5s; background: rgba(6, 182, 212, 0.2); width: 4px; height: 4px; }

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(90vh) scale(1); }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

/* === STATS SECTION GLOW UPGRADE === */
.stats-strip {
    background:
        linear-gradient(180deg, rgba(13, 13, 37, 0.6) 0%, rgba(13, 13, 37, 0.3) 100%);
    border-image: linear-gradient(90deg,
        transparent,
        rgba(37, 99, 235, 0.3),
        rgba(124, 58, 237, 0.3),
        transparent) 1;
}

.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.stat-item:hover::after {
    opacity: 1;
    width: 60px;
}

/* === TESTIMONIAL CARD UPGRADE === */
.testimonial-card {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(37, 99, 235, 0.4),
        transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

/* === TIMELINE ENHANCED === */
.timeline-item {
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(4px);
}

.timeline-dot {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.15);
    box-shadow: 0 0 24px var(--accent-glow);
}

/* === NAV PREMIUM UPGRADE === */
.nav.scrolled {
    background: rgba(0, 0, 10, 0.75);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    width: 100%;
    background: var(--grad-primary);
    height: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* === FOOTER PREMIUM === */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(37, 99, 235, 0.3),
        rgba(124, 58, 237, 0.2),
        transparent);
}

/* === CTA SECTION PREMIUM === */
.cta-section {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
}

/* === PRODUCT CARD GLOW ON HOVER === */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(37, 99, 235, 0.03),
        transparent,
        rgba(124, 58, 237, 0.02),
        transparent
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-glow 8s linear infinite;
    pointer-events: none;
}

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

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

/* === INTERACTIVE HOVER GLOW SPOT === */
.hover-glow-spot {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--spot-color, rgba(37, 99, 235, 0.08)), transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

/* === PREFERS REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .hero-holo-ring,
    .hero-holo-ring::before,
    .hero-holo-ring::after,
    .ai-core-orb,
    .ai-core-orb::before,
    .ai-core-orb::after,
    .ai-core-orbit,
    .energy-divider::after,
    .ambient-particle,
    .scan-line-effect::after,
    .text-shimmer::after,
    .product-card::before {
        animation: none !important;
    }

    .cursor-spotlight {
        display: none !important;
    }
}

/* === GRID OVERLAY (subtle tech grid) === */
.tech-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* === NOISE TEXTURE OVERLAY === */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
    mix-blend-mode: overlay;
}

/* === HERO TITLE GLOW === */
.hero-title .text-gradient {
    text-shadow: none;
    filter: drop-shadow(0 0 40px rgba(37, 99, 235, 0.15));
}

/* === PRODUCT ICON PULSE ON HOVER === */
.product-card:hover .product-icon {
    box-shadow: 0 0 20px var(--accent-glow);
    transition: box-shadow 0.3s ease;
}

/* === SECTION REVEAL DEPTH === */
.section {
    transform-style: preserve-3d;
}

/* === BADGE ENHANCED === */
.badge {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.badge:hover {
    transform: translateY(-1px);
}

.badge-blue:hover { box-shadow: 0 0 12px rgba(37, 99, 235, 0.3); }
.badge-purple:hover { box-shadow: 0 0 12px rgba(124, 58, 237, 0.3); }
.badge-cyan:hover { box-shadow: 0 0 12px rgba(6, 182, 212, 0.3); }
.badge-yellow:hover { box-shadow: 0 0 12px rgba(251, 191, 36, 0.3); }

/* === INPUT FOCUS GLOW === */
.input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 0 20px rgba(37, 99, 235, 0.08);
}

/* === FORM BUTTON ENHANCED === */
.btn-primary {
    position: relative;
    z-index: 1;
}

/* === SCROLL INDICATOR ENHANCED === */
.scroll-indicator-line {
    position: relative;
    overflow: hidden;
}

.scroll-indicator-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(37, 99, 235, 0.8);
    border-radius: 4px;
    animation: scroll-dot-travel 2s ease-in-out infinite;
}

@keyframes scroll-dot-travel {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
