/* ========================================
   MONEYPEX DESIGN SYSTEM
   Comprehensive design patterns extracted from Home page
   ======================================== */

/* ========================================
   1. FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   2. MODERN HERO SECTION
   ======================================== */
.modern-hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
    padding-left: 4.3rem;
    padding-right: 4.3rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
    overflow: visible;
    background-image: url('/lines-bg-header.svg');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto;
}

.modern-hero-heading {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 2rem;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
}

.modern-hero-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 32rem;
}

.hero-bg-m {
    position: absolute;
    font-size: 80rem;
    font-weight: 900;
    color: rgba(30, 92, 170, 0.30);
    line-height: 1;
    z-index: -1;
    left: -10%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.08em;
    pointer-events: none;
    animation: floatM 20s ease-in-out infinite;
    user-select: none;
    white-space: nowrap;
    opacity: 0.15;
    text-transform: uppercase;
}

@keyframes floatM {
    0%, 100% {
        transform: translateY(-50%) translateX(0) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-50%) translateX(20px) scale(1.03);
        opacity: 0.2;
    }
}

/* ========================================
   3. SECTION HEADINGS
   ======================================== */
.section-heading {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.section-subheading {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 0.75rem;
    line-height: 1.6;
    text-align: center;
}

.premium-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
    color: #1E5CAA;
}

.premium-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='330' height='12' viewBox='0 0 330 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 9.42302C32.0673 4.24443 62.4088 2.65171 92.6841 3.29298C126.852 4.01673 160.912 7.02554 194.949 9.38914C237.957 12.3756 281.365 10.9754 324.032 6.00244' stroke='%232563eb' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.7;
    z-index: -1;
}

/* ========================================
   4. MODERN BUTTONS
   ======================================== */
.modern-hero-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1E5CAA 0%, #1E5CAA 50%, #3b82f6 100%);
    background-size: 200% 200%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: buttonPulse 3s ease-in-out infinite, gradientShift 4s ease infinite, buttonFloat 3s ease-in-out infinite;
    border: none;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 10px 25px -5px rgba(30, 92, 170, 0.3), 0 4px 6px -2px rgba(30, 92, 170, 0.1);
    }
    50% {
        box-shadow: 0 15px 35px -5px rgba(30, 92, 170, 0.4), 0 6px 10px -2px rgba(30, 92, 170, 0.15);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.01);
    }
}

.modern-hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shineSweep 3s ease-in-out infinite;
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.modern-hero-btn:hover {
    background: linear-gradient(135deg, #174a85 0%, #1e40af 50%, #1e3a8a 100%);
    background-size: 200% 200%;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px -5px rgba(30, 92, 170, 0.5), 0 10px 15px -3px rgba(30, 92, 170, 0.2);
    animation: buttonPulse 2s ease-in-out infinite, gradientShift 3s ease infinite, buttonFloat 2s ease-in-out infinite;
    color: white;
    text-decoration: none;
}

/* ========================================
   5. MODERN CARDS
   ======================================== */
.modern-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #bfdbfe;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover .modern-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.modern-card-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modern-card-text {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* ========================================
   6. SECTION STYLES
   ======================================== */
.modern-section {
    padding: 6rem 50px;
    background: transparent;
    position: relative;
    overflow: visible;
}

.modern-section-white {
    padding: 6rem 50px;
    background: white;
    position: relative;
    overflow: visible;
}

.modern-section-gradient {
    padding: 6rem 50px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: visible;
}

/* ========================================
   7. CONTAINER STYLES
   ======================================== */
.modern-container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
}

.modern-container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   8. ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.fade-in-scale {
    animation: fadeInScale 0.8s ease-out;
}

.delay-100 {
    animation-delay: 0.1s;
}

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

.delay-300 {
    animation-delay: 0.3s;
}

/* ========================================
   9. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .modern-hero-section {
        min-height: 80vh;
        padding-top: 4rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modern-hero-heading {
        font-size: 1.8rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .modern-section,
    .modern-section-white,
    .modern-section-gradient {
        padding: 3rem 1rem;
    }

    .modern-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-bg-m {
        font-size: 35rem;
        left: -3%;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .modern-hero-section {
        min-height: 90vh;
        padding-top: 5rem;
        padding-bottom: 2.5rem;
    }

    .modern-hero-heading {
        font-size: 2rem;
    }

    .hero-bg-m {
        font-size: 55rem;
        left: -5%;
    }
}

@media (min-width: 993px) {
    .modern-hero-section {
        min-height: 100vh;
    }

    .modern-hero-heading {
        font-size: 2.5rem;
    }
}

/* ========================================
   10. UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* ========================================
   11. BUTTON COMPONENTS
   ======================================== */
/* Standard buttons - replace old theme-btn classes */
.btn-modern,
.theme-btn,
.theme-btn-bg-b,
.theme-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: white;
    background: linear-gradient(135deg, #1E5CAA 0%, #1E5CAA 50%, #3b82f6 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(30, 92, 170, 0.3), 0 4px 6px -2px rgba(30, 92, 170, 0.1);
}

.btn-modern:hover,
.theme-btn:hover,
.theme-btn-bg-b:hover {
    background: linear-gradient(135deg, #174a85 0%, #1e40af 50%, #1e3a8a 100%);
    background-size: 200% 200%;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px -5px rgba(30, 92, 170, 0.5), 0 10px 15px -3px rgba(30, 92, 170, 0.2);
    color: white;
    text-decoration: none;
}

.theme-outline-btn {
    background: transparent;
    color: #1E5CAA;
    border: 2px solid #1E5CAA;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.theme-outline-btn:hover {
    background: rgba(30, 92, 170, 0.05);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #1E5CAA;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.3);
}

/* ========================================
   12. FEATURE CARDS
   ======================================== */
.feature-page-card,
.feature-cards-wrapper .feature-page-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.feature-page-card:hover,
.feature-cards-wrapper .feature-page-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #bfdbfe;
}

.feature-page-card::before,
.feature-cards-wrapper .feature-page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-page-card:hover::before,
.feature-cards-wrapper .feature-page-card:hover::before {
    transform: scaleX(1);
}

.feature-cards-wrapper {
    padding: 3rem 0;
    background: transparent;
}

/* ========================================
   13. SECTION HEADINGS UPDATE
   ======================================== */
.feature-section-sub-heading,
.theme-color.fs-1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1E5CAA;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* ========================================
   14. FORM WRAPPER
   ======================================== */
.form-wrapper {
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.form-wrapper:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========================================
   15. FORM STYLES
   ======================================== */
.form-wrapper {
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.form-wrapper:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1E5CAA;
    box-shadow: 0 0 0 3px rgba(30, 92, 170, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-check-label {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.5;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: #1E5CAA;
    border-color: #1E5CAA;
}

/* ========================================
   16. RESPONSIVE UPDATES
   ======================================== */
@media (max-width: 768px) {
    .feature-page-card {
        padding: 1.5rem 1rem;
    }
    
    .btn-modern,
    .theme-btn,
    .theme-btn-bg-b {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .feature-section-sub-heading {
        font-size: 2rem;
    }
    
    .modern-hero-heading {
        font-size: 2rem;
    }
    
    .modern-hero-text {
        font-size: 1rem;
    }
    
    .form-wrapper {
        padding: 1.5rem !important;
    }
}

