
/* Custom CSS for ProEase Hup Landing Page - Streamlined Version */

/* ===== CSS VARIABLES FOR THEME COLORS ===== */
:root {
    /* Base font size for rem calculations - allows user browser font size preferences */
    font-size: 16px; /* Default browser size, but will scale with user preferences */
    
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-hero: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 70%);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(30, 41, 59, 0.1);
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-secondary: #6366f1;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-indigo: #6366f1;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    
    /* Enhanced Gradient Variables */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    
    /* Background Gradients */
    --bg-gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --bg-gradient-blue: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    --bg-gradient-indigo: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
    
    /* Shadow Gradients */
    --shadow-gradient: 0 10px 25px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05);
    --shadow-gradient-hover: 0 20px 40px -4px rgba(59, 130, 246, 0.15), 0 8px 16px -4px rgba(59, 130, 246, 0.1);
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 70%);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-primary: #60a5fa;
    --accent-primary-hover: #3b82f6;
    --accent-secondary: #818cf8;
    --accent-blue: #60a5fa;
    --accent-blue-hover: #3b82f6;
    --accent-indigo: #818cf8;
    --accent-green: #34d399;
    --accent-purple: #a78bfa;
    --accent-yellow: #fbbf24;
    --accent-red: #f87171;
    
    /* Enhanced Dark Gradient Variables */
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
    --gradient-secondary: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-accent: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-cool: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    
    /* Dark Background Gradients */
    --bg-gradient-light: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    --bg-gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    --bg-gradient-indigo: linear-gradient(135deg, #312e81 0%, #3730a3 50%, #4338ca 100%);
    
    /* Dark Shadow Gradients */
    --shadow-gradient: 0 10px 25px -3px rgba(96, 165, 250, 0.2), 0 4px 6px -2px rgba(96, 165, 250, 0.1);
    --shadow-gradient-hover: 0 20px 40px -4px rgba(96, 165, 250, 0.3), 0 8px 16px -4px rgba(96, 165, 250, 0.2);
}

/* ===== ENHANCED GRADIENT UTILITIES ===== */

/* Primary Gradient Classes */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.bg-gradient-warm {
    background: var(--gradient-warm);
}

.bg-gradient-cool {
    background: var(--gradient-cool);
}

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

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

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

/* Enhanced Button Styles */
.btn-gradient-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gradient);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gradient-hover);
}

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

.btn-gradient-primary:hover::before {
    left: 100%;
}

/* Enhanced Card Styles */
.card-gradient {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-gradient);
    transition: all 0.3s ease;
}

.card-gradient:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gradient-hover);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .card-gradient {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .card-gradient:hover {
    background: rgba(30, 41, 59, 0.9);
}

/* Enhanced Section Backgrounds */
.section-gradient-light {
    background: var(--bg-gradient-light);
}

.section-gradient-blue {
    background: var(--bg-gradient-blue);
}

.section-gradient-indigo {
    background: var(--bg-gradient-indigo);
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass-effect {
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-gradient-hover);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Animated Background Patterns */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Focus States */
.focus-ring {
    transition: all 0.3s ease;
}

.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

/* RTL Margin and Padding Adjustments */
[dir="rtl"] .ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ml-3 { margin-left: 0 !important; margin-right: 0.75rem !important; }
[dir="rtl"] .ml-4 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .ml-6 { margin-left: 0 !important; margin-right: 1.5rem !important; }
[dir="rtl"] .ml-8 { margin-left: 0 !important; margin-right: 2rem !important; }
[dir="rtl"] .mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .mr-3 { margin-right: 0 !important; margin-left: 0.75rem !important; }
[dir="rtl"] .mr-4 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .mr-6 { margin-right: 0 !important; margin-left: 1.5rem !important; }
[dir="rtl"] .mr-8 { margin-right: 0 !important; margin-left: 2rem !important; }

/* RTL Spacing adjustments */
[dir="rtl"] .space-x-2 > * + * { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .space-x-4 > * + * { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .space-x-6 > * + * { margin-left: 0 !important; margin-right: 1.5rem !important; }
[dir="rtl"] .space-x-8 > * + * { margin-left: 0 !important; margin-right: 2rem !important; }
[dir="rtl"] .space-x-10 > * + * { margin-left: 0 !important; margin-right: 2.5rem !important; }

/* RTL Icon Transformations */
[dir="rtl"] .fa-chevron-down,
[dir="rtl"] .fa-chevron-right {
    transform: scaleX(-1);
}

/* ===== CUSTOM ANIMATIONS ===== */

/* Floating Icons Animation */
.floating-icon {
    position: absolute;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.floating-icon i {
    filter: drop-shadow(0 4px 8px rgba(30, 41, 59, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.9;
    }
}

/* Data Points Animation */
.data-point {
    position: absolute;
    text-align: center;
    animation: dataFloat 8s ease-in-out infinite;
    z-index: 1;
}

.data-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

@keyframes dataFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
}

/* Animated Charts */
.animated-chart {
    position: absolute;
    display: flex;
    align-items: end;
    gap: 4px;
    z-index: 1;
}

.chart-bar {
    width: 8px;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px 4px 0 0;
    animation: chartGrow 3s ease-out infinite;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
}

@keyframes chartGrow {
    0% {
        height: 0%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        height: var(--target-height);
        opacity: 1;
    }
}

/* Connection Lines */
.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.4;
    animation: lineGlow 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 5px rgba(30, 41, 59, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 15px rgba(30, 41, 59, 0.6);
    }
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* ===== BUTTON ANIMATIONS ===== */

/* Button Hover Animations */
.btn-hover-animate {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-hover-animate:hover::before {
    left: 100%;
}

/* ===== ENHANCED TESTIMONIALS STYLES ===== */

/* Testimonials Container */
.testimonials-container {
    position: relative;
}

/* Testimonials Wrapper */
.testimonials-wrapper {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    flex-wrap: nowrap;
}

/* Individual Testimonial Slide */
.testimonial-slide {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Enhanced Testimonial Card */
.testimonial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    flex: 1;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    z-index: 1;
}

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

.testimonial-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.testimonial-card > * {
    position: relative;
    z-index: 2;
}

/* Quote Icon Styling */
.testimonial-card .bg-gradient-to-br {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.testimonial-card:hover .bg-gradient-to-br {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Quote Text Styling */
.testimonial-card blockquote {
    position: relative;
    z-index: 2;
}

/* Enhanced Navigation Dots */
.nav-dot {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.nav-dot:hover {
    transform: scale(1.25);
    background-color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-dot.active-dot {
    background-color: #3b82f6 !important;
    transform: scale(1.2);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.nav-dot:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Enhanced Arrow Navigation */
.nav-arrow {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:focus {
    outline: none;
}

/* Responsive Optimizations */
@media (max-width: 1024px) {
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        margin: 0 auto;
        max-width: 100%;
        padding: 1.5rem 1.25rem;
    }
    
    .testimonial-card blockquote {
        font-size: 1rem;
        line-height: 1.6;
        min-height: 60px;
    }
    
    .nav-arrow {
        padding: 0.625rem;
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .nav-dot {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .nav-dot.active-dot {
        width: 1.25rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.25rem 1rem;
    }
    
    .testimonial-card blockquote {
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .testimonial-slide {
        padding: 0 0.75rem;
    }
}

/* RTL Support for Testimonials */
[dir="rtl"] .testimonials-wrapper {
    direction: ltr; /* Keep flex direction LTR for proper slide positioning */
}

[dir="rtl"] .testimonial-card {
    direction: rtl; /* Content should be RTL */
}

/* RTL Arrow Icons - Show correct directional arrows */
[dir="rtl"] .prev-btn .fa-chevron-left::before {
    content: "\f053"; /* Show left arrow for previous in RTL */
}

[dir="rtl"] .next-btn .fa-chevron-right::before {
    content: "\f053"; /* Show right arrow for next in RTL */
}

/* RTL Navigation Controls */
[dir="rtl"] .flex.items-center.justify-center.mt-8.space-x-6 {
    flex-direction: row-reverse;
}

[dir="rtl"] .flex.space-x-2 {
    flex-direction: row-reverse;
}

/* Print Styles */
@media print {
    .testimonials-container {
        overflow: visible !important;
    }
    
    .testimonials-wrapper {
        transform: none !important;
        display: block;
    }
    
    .testimonial-slide {
        width: auto !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .nav-arrow,
    .nav-dot {
        display: none !important;
    }
}

/* ===== CTA SECTION ANIMATIONS ===== */

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(-12deg); }
    50% { transform: translateY(-15px) rotate(-12deg); }
}

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

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

/* Pulse Animations */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes pulse-medium {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

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

/* Bounce Animations */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce-medium {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes bounce-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

.animate-bounce-medium {
    animation: bounce-medium 2.5s ease-in-out infinite;
}

.animate-bounce-fast {
    animation: bounce-fast 2s ease-in-out infinite;
}

/* Glow Animations */
@keyframes glow-slow {
    0%, 100% { 
        opacity: 0.2; 
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    }
    50% { 
        opacity: 0.4; 
        box-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
    }
}

@keyframes glow-medium {
    0%, 100% { 
        opacity: 0.2; 
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    }
    50% { 
        opacity: 0.4; 
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
    }
}

.animate-glow-slow {
    animation: glow-slow 5s ease-in-out infinite;
}

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

/* Grid Pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    width: 100%;
    height: 100%;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Data Flow Lines */
.data-flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
    animation: data-flow 8s linear infinite;
}

.line-1 {
    top: 20%;
    left: -100px;
    width: 200px;
    animation-delay: 0s;
}

.line-2 {
    top: 60%;
    right: -100px;
    width: 150px;
    animation-delay: 2s;
}

.line-3 {
    bottom: 30%;
    left: -80px;
    width: 120px;
    animation-delay: 4s;
}

@keyframes data-flow {
    0% { transform: translateX(-100px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)); opacity: 0; }
}

/* Wave Effect Animation */
.animated-cta-section svg path {
    animation: wave-float 6s ease-in-out infinite;
}

.animated-cta-section svg path:nth-child(2) {
    animation-delay: 1s;
}

.animated-cta-section svg path:nth-child(3) {
    animation-delay: 2s;
}

@keyframes wave-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== DARK MODE STYLES ===== */

/* Dark Mode Hero Background */
[data-theme="dark"] .floating-icon i {
    filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.4));
}

[data-theme="dark"] .data-number {
    color: var(--accent-primary);
}

[data-theme="dark"] .data-label {
    color: var(--text-muted);
}

[data-theme="dark"] .chart-bar {
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .connection-line {
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

[data-theme="dark"] .particle {
    background: var(--accent-primary);
}

/* Enhanced Dark Mode Testimonials */
[data-theme="dark"] .testimonials-container {
    background: rgba(30, 41, 59, 0.05);
    border-color: rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .testimonial-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-card::before {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, rgba(129, 140, 248, 0.05) 100%);
}

[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .testimonial-card blockquote {
    color: #e2e8f0;
}

[data-theme="dark"] .nav-arrow {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav-arrow:hover {
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .nav-dot {
    background-color: #475569 !important;
}

[data-theme="dark"] .nav-dot:hover {
    background-color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .nav-dot.active-dot {
    background-color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Dark Mode CTA Section */
[data-theme="dark"] .animated-cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
}

[data-theme="dark"] .animated-cta-section .grid-pattern {
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.15) 1px, transparent 1px);
}

/* ===== RTL SUPPORT FOR ANIMATIONS ===== */

[dir="rtl"] .testimonial-card .bg-gradient-to-br::before {
    transform: rotate(-45deg);
}

[dir="rtl"] .testimonial-card:hover .bg-gradient-to-br::before {
    transform: rotate(-45deg) translate(-50%, -50%);
}

[dir="rtl"] .animated-cta-section .group:hover i {
    transform: translateX(-8px);
}

[dir="rtl"] .animated-cta-section .data-flow-line {
    animation-direction: reverse;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

.floating-icon,
.data-point,
.animated-chart,
.connection-line,
.particle {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .floating-icon,
    .data-point,
    .animated-chart,
    .connection-line,
    .particle {
        animation: none !important;
        opacity: 0.3;
    }
    
    /* Disable all animations for users who prefer reduced motion */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance optimization - reduce animations on low-end devices */
@media (max-width: 1024px) {
    .floating-icon {
        animation-duration: 8s; /* Slower animations */
    }
    
    .data-point {
        animation-duration: 10s;
    }
    
    .particle {
        animation-duration: 15s;
    }
}

/* ===== ENHANCED LAYOUT STYLES ===== */

/* Base HTML font size */
html {
    /* Ensure font size respects user preferences */
    font-size: 100%;
}

/* Body Gradient Background */
body {
    font-size: 1rem; /* Use rem for flexibility */
    background: var(--bg-gradient-light);
    transition: all 0.5s ease;
}

[data-theme="dark"] body {
    background: var(--bg-gradient-light);
}

/* Header Enhancements */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.5s ease;
}

[data-theme="dark"] header {
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

/* Navigation Link Enhancements */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Button Enhancements */
.btn-primary,
.bg-blue-600 {
    background: var(--gradient-primary) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-gradient) !important;
}

.btn-primary:hover,
.bg-blue-600:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-secondary) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-gradient-hover) !important;
}

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

.btn-primary:hover::before,
.bg-blue-600:hover::before {
    left: 100%;
}

/* Footer Enhancements */
footer {
    background: var(--bg-gradient-indigo);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Card Enhancements */
.feature-card,
.pricing-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover,
.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-gradient-hover);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .pricing-card:hover {
    background: rgba(30, 41, 59, 0.9);
}



#why-proease::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
/* Mobile Performance */
@media (max-width: 768px) {
    .floating-icon {
        font-size: 1rem !important;
    }
    
    .data-point {
        display: none; /* Hide data points on mobile for better performance */
    }
    
    .animated-chart {
        display: none; /* Hide charts on mobile for better performance */
    }
    
    .connection-line {
        display: none; /* Hide lines on mobile for better performance */
    }
    
    .particle {
        width: 4px;
        height: 4px;
    }
    
    /* Hide some animations on mobile for performance */
    .grid-pattern,
    .data-flow-line {
        display: none;
    }
    
    /* Mobile-specific enhancements */
    .card-gradient {
        backdrop-filter: blur(5px);
    }
    
    .btn-primary,
    .bg-blue-600 {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* ===== PRICING BUTTON VISIBILITY ON MOBILE ===== */
    /* Make Pricing button more visible in header on mobile */
    header a[href*="#pricing"],
    header a[href*="pricing"] {
        font-weight: 700 !important;
        font-size: 0.9375rem !important;
        padding: 0.625rem 1rem !important;
        min-height: 2.75rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    }
    
    /* Mobile menu Pricing link - keep it as a regular menu item (no button styling) */
    #mobile-menu nav a[href*="#pricing"],
    #mobile-menu nav a[href*="pricing"] {
        /* Keep it as a regular menu link, same as other items */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Ensure Pricing link text is readable */
    header a[href*="#pricing"] span,
    header a[href*="pricing"] span {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
        letter-spacing: 0.025em !important;
    }
    
    /* Ensure mobile menu link icons are visible */
    #mobile-menu .mobile-menu-link i,
    #mobile-menu .mobile-menu-link-icon {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
}

/* ===== DEMO BUTTON STYLES ===== */
/* Make demo button same color as Try it Now button (blue) */
a[href="pages/demo.php"],
a[href*="demo.php"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
}

a[href="pages/demo.php"]:hover,
a[href*="demo.php"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important;
}

/* Override any conflicting styles */
a[href="pages/demo.php"] *,
a[href*="demo.php"] * {
    color: white !important;
}

/* Dark mode demo button styles */
[data-theme="dark"] a[href="pages/demo.php"],
[data-theme="dark"] a[href*="demo.php"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    color: white !important;
}

[data-theme="dark"] a[href="pages/demo.php"]:hover,
[data-theme="dark"] a[href*="demo.php"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4) !important;
}

/* ===== PRICING TOGGLE BUTTON STYLES ===== */

/* Pricing toggle buttons - Enhanced for smooth transitions */
#monthly-btn,
#quarterly-btn,
#yearly-btn {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background-color, color, box-shadow;
}

/* Hover state for inactive buttons - Gray background */
#monthly-btn:not(.bg-white):hover,
#quarterly-btn:not(.bg-white):hover,
#yearly-btn:not(.bg-white):hover {
    background-color: rgb(229, 231, 235) !important; /* gray-200 */
    transform: translateY(-1px);
}

[data-theme="dark"] #monthly-btn:not(.bg-white):hover,
[data-theme="dark"] #quarterly-btn:not(.bg-white):hover,
[data-theme="dark"] #yearly-btn:not(.bg-white):hover {
    background-color: rgb(75, 85, 99) !important; /* gray-600 */
    transform: translateY(-1px);
}

/* Active state enhancement */
#monthly-btn.bg-white,
#quarterly-btn.bg-white,
#yearly-btn.bg-white {
    transform: scale(1.02);
}

/* Disabled state during transition */
#monthly-btn:disabled,
#quarterly-btn:disabled,
#yearly-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth scale animation on click */
#monthly-btn:active,
#quarterly-btn:active,
#yearly-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Remove focus outline but maintain accessibility */
#monthly-btn:focus-visible,
#quarterly-btn:focus-visible,
#yearly-btn:focus-visible {
    outline: 2px solid rgb(59, 130, 246);
    outline-offset: 2px;
}

/* Badge animation for yearly discount */
#yearly-btn .bg-green-100,
#quarterly-btn .bg-gradient-to-r {
    transition: all 0.3s ease;
}

#yearly-btn:hover .bg-green-100,
#quarterly-btn:hover .bg-gradient-to-r {
    transform: scale(1.05);
}

/* Smooth color transitions */
#monthly-btn span,
#quarterly-btn span,
#yearly-btn span {
    transition: color 0.3s ease;
}

/* Container smooth transition */
#monthly-btn,
#quarterly-btn,
#yearly-btn {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}

/* ===== RESPONSIVE PRICING TOGGLE FOR MOBILE ===== */

/* Mobile-first: Stack buttons vertically on small screens */
@media (max-width: 640px) {
    /* Ensure buttons container is full width and stacked */
    #pricing .bg-gray-100,
    #pricing .dark\:bg-gray-700 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Target the pricing toggle container directly */
    #pricing > div > div.flex.flex-col.items-center > div {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Make buttons full width on mobile */
    #monthly-btn,
    #quarterly-btn,
    #yearly-btn {
        width: 100% !important;
        min-height: 3.5rem; /* Ensure adequate touch target */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.9375rem !important;
    }
    
    /* Ensure badges are visible and properly sized on mobile */
    #quarterly-btn span,
    #yearly-btn span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Make the "100% FREE" badge more prominent on mobile */
    #quarterly-btn .bg-gradient-to-r {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
        margin-top: 0.25rem;
    }
    
    /* Make the "Save 20%" badge more prominent on mobile */
    #yearly-btn .bg-green-100 {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
        margin-top: 0.25rem;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    #monthly-btn,
    #quarterly-btn,
    #yearly-btn {
        min-height: 3rem;
        padding: 0.75rem 1rem !important;
    }
}

/* ===== PRICING CARDS ANIMATION ===== */

/* Price container smooth transitions */
.price-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide state animation */
.price-container.hidden {
    display: none;
}

/* Smooth fade animation for pricing cards */
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure smooth rendering */
.monthly-price,
.yearly-price {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}