/* MoneyFlowUSA Financial Platform - Enhanced Styling */
/* Cross-Browser Compatible - Chrome, Firefox, Safari, Edge, IE11+ */

/* Professional Color Scheme with IE11 Fallbacks */
:root {
    --primary-blue: #1a237e;
    --secondary-blue: #0d47a1;
    --accent-gold: #FFD700;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --news-ticker-height: 40px;
}

/* News Ticker/Slider at Top - Fix Positioning */
body {
    padding-top: 0 !important;
}

/* Ensure news ticker is at the very top and header is below it */
.header.navbar-area {
    position: relative !important;
    top: 0 !important;
    margin-top: 0 !important;
    z-index: 999;
}

/* If there's a fixed news ticker, give it proper spacing */
body > div:first-of-type:not(.header):not(header) {
    position: relative;
    z-index: 1000;
    background: #1a237e;
    color: white;
    padding: 8px 0;
    border-bottom: 2px solid #FFD700;
    border-bottom: 2px solid var(--accent-gold);
}

/* Hero Section Enhancements - Cross Browser */
.hero-market-widget {
    background: rgba(255, 255, 255, 0.95);
    background: -webkit-linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    padding: 30px;
    -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* Backdrop filter with fallback */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Typography Improvements */
.section-heading {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.sub-heading {
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Card Styling - Cross Browser */
.financial-card {
    background: white;
    background: #ffffff;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    padding: 30px;
    -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: -o-transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.financial-card:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Button Enhancements - Cross Browser */
.btn-primary {
    /* Fallback for browsers that don't support CSS variables */
    background: #1a237e;
    background: -webkit-linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    background: -moz-linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    background: -o-linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 10px 25px rgba(26, 35, 126, 0.3);
    -moz-box-shadow: 0 10px 25px rgba(26, 35, 126, 0.3);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.3);
}

.btn-warning {
    background: #FFD700;
    background: var(--accent-gold);
    color: #1a237e;
    color: var(--primary-blue);
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #ffc107;
    color: #1a237e;
    color: var(--primary-blue);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
    -moz-box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* Market Widget Enhancements - Cross Browser */
#market-cards-carousel .card {
    background: white;
    background: #ffffff;
    border: none;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

#market-cards-carousel .card:hover {
    -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
}

/* Statistics Section */
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Pricing Cards */
.single-pricing {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.single-pricing:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.single-pricing.active {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    position: relative;
}

.single-pricing.active::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Testimonial Styling */
.testimonial-body {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-bubble {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-author .author-name {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form-wrapper .form-control {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-market-widget {
        margin-top: 30px;
    }
    
    .stats-card {
        margin-bottom: 20px;
    }
}

/* Animation Classes - Cross Browser */
@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        -moz-transform: translateY(30px);
        -ms-transform: translateY(30px);
        -o-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }
}

.animate-fade-in {
    -webkit-animation: fadeInUp 0.6s ease-out;
    -moz-animation: fadeInUp 0.6s ease-out;
    -o-animation: fadeInUp 0.6s ease-out;
    animation: fadeInUp 0.- Cross Browser */
.gradient-primary {
    background: #1a237e;
    background: -webkit-linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    background: -moz-linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    background: -o-linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.gradient-gold {
    background: #FFD700;
    background: -webkit-linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    background: -moz-linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    background: -o-linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
}

/* Hover Effects - Cross Browser */
.hover-lift {
    -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: -o-transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15 infinite;
    animation: loading 1.5s infinite;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

@-webkit-keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@-moz-keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Trust Indicators */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50px;
    color: var(--success-green);
    font-weight: 600;
    font-size: 14px;
}

.trust-badge i {
    font-size: 20px;
}

/* Professional Gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Icon Styling */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-circle.primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.icon-circle.warning {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.icon-circle.success {
    background: var(--success-green);
    color: white;
}
