/*
 * ePaperWale - Modern Premium CSS Styling
 * Inspired by Stripe and Framer design systems.
 */

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

:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Primary Harmonious Palette */
    --color-dark-bg: #090e24;
    --color-dark-surface: #12183d;
    --color-primary-grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    --color-accent-grad: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --color-glass-bg: rgba(18, 24, 61, 0.6);
    --color-glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-bg);
    color: #f3f4f6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Glassmorphism Premium Utility */
.glass-panel {
    background: var(--color-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
}

.glass-panel-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
    transform: translateY(-5px);
    background: rgba(20, 27, 68, 0.85);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.3);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090e24;
}
::-webkit-scrollbar-thumb {
    background: #252d5a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Floating Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

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

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.animate-pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient text utility */
.text-gradient-purple {
    background: var(--color-primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: var(--color-accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom interactive flipbook stylesheet */
.flipbook-container {
    perspective: 1500px;
}

.flipbook-page {
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

/* Hotspot pulse for Area Mapping */
.hotspot-pulse {
    background: rgba(124, 58, 237, 0.4);
    border: 2px solid #7c3aed;
    border-radius: 4px;
    animation: hotspot-glow 2.5s infinite;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.hotspot-pulse:hover {
    background: rgba(236, 72, 153, 0.5);
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
}

@keyframes hotspot-glow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.95;
    }
}

/* Exit intent popup support */
.modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease-out;
}
