/* Custom CSS for High-Converting CFO Landing Page */

/* Enhanced animations and effects for CVR optimization */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

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

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

/* Enhanced CTA button animations */
#main-cta, #final-cta {
    animation: pulse-glow 2s infinite;
    position: relative;
    overflow: hidden;
}

#main-cta::before, #final-cta::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;
}

#main-cta:hover::before, #final-cta:hover::before {
    left: 100%;
}

/* Urgent notification animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Section reveal animations */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effects for position cards */
.position-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.position-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Floating elements */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced form styling */
.form-field {
    position: relative;
    transition: all 0.3s ease;
}

.form-field input:focus + label,
.form-field select:focus + label {
    transform: translateY(-25px) scale(0.9);
    color: #1e40af;
}

/* Progress indicator for form */
.form-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Enhanced typography */
.hero-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sticky CTA for mobile */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 40;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.sticky-cta.show {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success states */
.success-state {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scale(1.05);
}

/* Enhanced modal animations */
#contact-modal {
    backdrop-filter: blur(5px);
}

#contact-modal > div {
    animation: slide-up 0.3s ease-out;
}

/* Urgency indicators */
.urgency-pulse {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .position-card {
        margin-bottom: 1rem;
    }
    
    .sticky-cta {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: #059669 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}