/* ==========================================================================
   DocuPulse DMS - Coming Soon Webpage Custom Stylesheet
   Combines Glassmorphism, Modern Enterprise Gradients & Micro-Animations
   ========================================================================== */

/* Custom Font Family Fallbacks & Root Variables */
:root {
    --bg-dark: #070a12;
    --bg-card: rgba(15, 23, 42, 0.7);
    --border-glass: rgba(255, 255, 255, 0.12);
    --primary-blue: #2563eb;
    --accent-cyan: #06b6d4;
    --accent-purple: #7c3aed;
    --glow-cyan: rgba(6, 182, 212, 0.35);
    --glow-purple: rgba(124, 58, 237, 0.35);
}

/* Global Reset & Base Setup */
body {
    background-color: var(--bg-dark);
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Grid Pattern Background Overlay */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Floating Blurred Ambient Orbs */
.glow-orb-1 {
    position: absolute;
    top: -10%;
    left: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 14s ease-in-out infinite alternate;
}

.glow-orb-2 {
    position: absolute;
    top: 30%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(70px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
    position: absolute;
    bottom: -10%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(65px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

/* Glassmorphism Card Container */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 25px 60px rgba(6, 182, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Glass Badge */
.glass-badge {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

/* Countdown Card */
.glass-countdown-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.85rem;
    padding: 0.85rem 0.5rem;
    min-width: 72px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Gradient Text Effect */
.gradient-text-cyan-purple {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-blue-cyan {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom DMS Interactive HTML/CSS Illustration */
.dms-illustration-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.2);
}

/* Floating Card inside Illustration */
.floating-doc-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* OCR Laser Scanning Beam Effect */
.ocr-scanner-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.ocr-laser-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #06b6d4, #38bdf8, transparent);
    box-shadow: 0 0 15px #06b6d4, 0 0 30px #38bdf8;
    z-index: 10;
    animation: ocrScan 3.5s ease-in-out infinite alternate;
}

.ocr-grid-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 6px,
        rgba(6, 182, 212, 0.05) 6px,
        rgba(6, 182, 212, 0.05) 7px
    );
    pointer-events: none;
}

/* Connected Workflow Nodes */
.workflow-badge-1 {
    animation: floatSlow 5s ease-in-out infinite alternate;
}

.workflow-badge-2 {
    animation: floatSlow 6s ease-in-out 1s infinite alternate-reverse;
}

.workflow-badge-3 {
    animation: floatSlow 5.5s ease-in-out 0.5s infinite alternate;
}

/* Progress Bar Custom Styling */
.progress-bar-dms {
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #7c3aed 100%);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    border-radius: 50rem;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Technology Highlight Badges */
.tech-tag {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.4rem 0.9rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.tech-tag:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: translateY(-2px);
}

/* Button Custom Styles */
.btn-primary-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover, .btn-primary-gradient:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-glass:hover, .btn-outline-glass:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Animation Keyframes */
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes floatSlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes ocrScan {
    0% { top: 0%; opacity: 0.8; }
    50% { opacity: 1; }
    100% { top: 96%; opacity: 0.8; }
}

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

.pulsing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 10px #06b6d4;
    animation: pulseGlowDot 2s infinite ease-in-out;
}

/* Smooth Focus States for Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #38bdf8 !important;
    outline-offset: 3px !important;
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .ocr-laser-beam {
        display: none;
    }
}
