@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

[x-cloak] {
    display: none !important;
}

.js .animate-fade-up {
    opacity: 0;
    will-change: transform, opacity;
}

.js .sp-animated {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Animated Gradient Background */
.animated-bg {
    background: linear-gradient(-45deg, #eff6ff, #f5f3ff, #ecfeff, #fff1f2);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Animation */
.float {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
    will-change: transform;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Blob Animation */
.blob,
.animate-blob {
    animation: blob-bounce 12s infinite ease-in-out;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes blob-bounce {

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

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glow:hover::after {
    left: 100%;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Feature Icon Box */
.feature-icon {
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.glass-card:hover .feature-icon::before {
    opacity: 0.4;
}

/* Tech Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.bg-grid-white {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Premium Hover Shimmer for Cards */
.glass-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.8s ease-in-out;
    z-index: 5;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 150%;
}

/* Extra Premium 3D Lift & Double-Layer Glow Aura */
.glass-card:hover {
    transform: perspective(1000px) translateY(-8px) scale(1.05) rotateX(3deg) rotateY(-3deg) rotateZ(1deg);
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(99, 102, 241, 0.4); /* Indigo glow border */
    box-shadow: 
        0 30px 60px -15px rgba(37, 99, 235, 0.22), 
        0 0 40px 4px rgba(124, 58, 237, 0.12),
        0 1px 1px 0 rgba(255, 255, 255, 0.8) inset;
    z-index: 20;
}

/* Icon scale, rotation, and drop-shadow on card hover */
.glass-card:hover svg {
    transform: scale(1.15) rotate(4deg);
    filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.2));
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* Smooth transitions for all SVGs */
svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Sub-card styling details */
.glass-card div div:hover {
    border-color: rgba(99, 102, 241, 0.45) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.15);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button Glow Enhancements */
.btn-glow {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 
        0 15px 30px -5px rgba(37, 99, 235, 0.4),
        0 0 25px 2px rgba(124, 58, 237, 0.25) !important;
}

/* Animate page scroll indicator */
#scroll-progress {
    transition: transform 0.1s ease-out;
}

/* Beautiful, subtle hover effect for contact and demo pages */
.contact-page-card, .demo-page-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.contact-page-card:hover, .demo-page-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(37, 99, 235, 0.3) !important; /* Soft blue border */
    box-shadow: 
        0 20px 40px -15px rgba(37, 99, 235, 0.12), 
        0 0 25px 2px rgba(37, 99, 235, 0.05),
        0 1px 1px 0 rgba(255, 255, 255, 0.8) inset !important;
    z-index: 10;
}

.contact-page-card::before, .demo-page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.8s ease-in-out;
    z-index: 5;
    pointer-events: none;
}

.contact-page-card:hover::before, .demo-page-card:hover::before {
    left: 150%;
}

.contact-page-card:hover svg, .demo-page-card:hover svg {
    transform: scale(1.08) translateY(-1px) !important;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.15)) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* High-Tech CCTV Scanline Overlay */
.scan-container {
    position: relative;
    overflow: hidden;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.8) 50%, transparent);
    animation: scanning 3s linear infinite;
    z-index: 30;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

@keyframes scanning {
    0% { transform: translateY(0); }
    50% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

/* Simulated AI Bounding Box Tracker */
.ai-tracker-box {
    position: absolute;
    border: 2px solid #22c55e; /* Green active target */
    border-radius: 4px;
    animation: pulse-target 1.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 25;
}

@keyframes pulse-target {
    0%, 100% { border-color: rgba(34, 197, 94, 0.8); box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
    50% { border-color: rgba(34, 197, 94, 0.3); box-shadow: 0 0 2px rgba(34, 197, 94, 0.1); }
}

/* Tech surveillance corner brackets */
.tech-bracket-tl {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    pointer-events: none;
    z-index: 10;
}
.tech-bracket-tr {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    pointer-events: none;
    z-index: 10;
}
.tech-bracket-bl {
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    pointer-events: none;
    z-index: 10;
}
.tech-bracket-br {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    pointer-events: none;
    z-index: 10;
}

/* Spotlight pointer-tracker card hover border glow */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(circle 140px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(59, 130, 246, 0.4), transparent 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 4;
}

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

/* Premium Tech-SaaS forms text fields styling */
.tech-input {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 0.75rem !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tech-input:focus {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(37, 99, 235, 0.75) !important;
    box-shadow: 
        0 0 0 3px rgba(37, 99, 235, 0.12),
        0 10px 20px -10px rgba(37, 99, 235, 0.1) !important;
    transform: translateY(-1px);
}

/* Tech dot grid background texture */
.dot-grid-bg {
    background-size: 20px 20px;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
}

/* Pricing Glow Borders */
.pro-card-glow {
    box-shadow: 
        0 0 40px -10px rgba(124, 58, 237, 0.25),
        0 25px 50px -12px rgba(37, 99, 235, 0.15) !important;
}
.pro-card-glow:hover {
    box-shadow: 
        0 0 50px 2px rgba(124, 58, 237, 0.35),
        0 35px 60px -15px rgba(37, 99, 235, 0.3) !important;
}

