/* Handle Monitor Styles */
/* Global font comes from head-fonts.php via CSS variable */
html { 
    font-family: var(--hm-font-family); 
    scroll-behavior: smooth;
}
body { 
    font-family: var(--hm-font-family); 
}

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

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes backgroundShift {
    0%, 100% { 
        transform: translateX(0) translateY(0); 
    }
    33% { 
        transform: translateX(-10px) translateY(-10px); 
    }
    66% { 
        transform: translateX(10px) translateY(10px); 
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { 
        transform: translate3d(0, 0, 0); 
    }
    40%, 43% { 
        transform: translate3d(0, -10px, 0); 
    }
    70% { 
        transform: translate3d(0, -5px, 0); 
    }
    90% { 
        transform: translate3d(0, -2px, 0); 
    }
}

/* Animation Classes */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

.animate-delay-600 {
    animation-delay: 0.6s;
}

/* Background Styles */
.hero-bg {
    background: #f8fafc;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

.stats-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.footer-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Component Styles */
.counter {
    font-weight: bold;
    font-size: 1.2em;
}

.process-step.active {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Testimonial cards now use direct styling in HTML */

.pricing-tab.active {
    background: linear-gradient(90deg, rgba(9, 135, 255, 1) 0%, rgba(152, 1, 255, 1) 100%);
    color: white;
}

.pricing-content {
    display: none;
}

.pricing-content.active {
    display: block;
}

.bounce-gentle {
    animation: bounce 2s infinite;
}

/* Step Icon Styles - Fixed for Mobile */
.step-icon {
    background: linear-gradient(90deg, rgba(9, 135, 255, 1) 0%, rgba(152, 1, 255, 1) 100%);
    width: 5rem; /* 80px */
    height: 5rem; /* 80px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 0 1.5rem 0;
    box-shadow: 0 25px 50px -12px rgba(9, 135, 255, 0.4);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .step-icon {
        width: 4rem; /* 64px */
        height: 4rem; /* 64px */
        font-size: 1.25rem;
        margin: 0 0 1rem 0;
    }
    
    /* Ensure proper spacing on mobile */
    .how-it-works-grid {
        gap: 2rem;
    }
    
    .how-it-works-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Reduce text size on mobile for better fit */
    .how-it-works-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .how-it-works-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 640px) {
    .step-icon {
        width: 3.5rem; /* 56px */
        height: 3.5rem; /* 56px */
        font-size: 1.125rem;
        margin: 0 0 0.75rem 0;
    }
    
    .how-it-works-card {
        padding: 1.25rem;
    }
    
    .how-it-works-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .how-it-works-description {
        font-size: 0.9rem;
    }
}

/* FAQ Accordion Styles */
.accordion-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(90deg, rgba(9, 135, 255, 0.1) 0%, rgba(152, 1, 255, 0.1) 100%);
}

.accordion-content {
    transition: all 0.3s ease;
}

.accordion-content.hidden {
    display: none;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, rgba(9, 135, 255, 1) 0%, rgba(152, 1, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme Gradient Classes */
.bg-theme-gradient {
    background: linear-gradient(90deg, rgba(9, 135, 255, 1) 0%, rgba(152, 1, 255, 1) 100%);
}

.bg-theme-gradient:hover {
    background: linear-gradient(90deg, rgba(9, 135, 255, 0.9) 0%, rgba(152, 1, 255, 0.9) 100%);
}

.text-theme-gradient {
    background: linear-gradient(90deg, rgba(9, 135, 255, 1) 0%, rgba(152, 1, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.from-theme-blue {
    --tw-gradient-from: rgba(9, 135, 255, 1);
    --tw-gradient-to: rgba(9, 135, 255, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-theme-purple {
    --tw-gradient-to: rgba(152, 1, 255, 1);
}

/* Platform Color Classes */
.text-blue-600 { color: #2563eb; }
.text-pink-600 { color: #db2777; }
.text-red-600 { color: #dc2626; }
.text-purple-600 { color: #9333ea; }
.text-blue-700 { color: #1d4ed8; }
.text-red-700 { color: #b91c1c; }

.border-blue-500 { border-color: #3b82f6; }
.border-pink-500 { border-color: #ec4899; }
.border-red-500 { border-color: #ef4444; }
.border-purple-500 { border-color: #a855f7; }
.border-blue-600 { border-color: #2563eb; }
.border-red-600 { border-color: #dc2626; }

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .floating-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-bg {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Stats section mobile fixes */
    .stats-section .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Pricing section mobile fixes */
    .pricing-tab {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* FAQ section mobile fixes */
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .step-icon {
        width: 3rem; /* 48px */
        height: 3rem; /* 48px */
        font-size: 1rem;
        margin: 0 0 0.75rem 1rem;
    }
    
    .how-it-works-title {
        font-size: 1.125rem;
    }
    
    .how-it-works-description {
        font-size: 0.875rem;
    }
}

/* Loading Animation for Statistics */
.counter-loading {
    opacity: 0.6;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Modern Statistics Cards */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card-appear {
    animation: slideUp 0.6s ease-out forwards;
}

/* Enhance gradient backgrounds */
.stats-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.stats-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(9, 135, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(152, 1, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced counter animation */
.counter {
    position: relative;
    display: inline-block;
}

.counter::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(9, 135, 255, 1) 0%, rgba(152, 1, 255, 1) 100%);
    transform: scaleX(0);
    animation: expandLine 1.5s ease-out 0.5s forwards;
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}