/* ==========================================================================
   MDSL PREMIUM FINTECH UI SYSTEM (FIXED: TRUE MDSL GREEN & CHARCOAL)
   ========================================================================== */

:root {
    /* FIXED MDSL Brand Colors */
    --mdsl-primary-dark: #181C1A; /* Soft Premium Charcoal */
    --mdsl-accent-green: #1EA65C; /* True MDSL Logo Green - Rich, solid, and visible! */
    --mdsl-light-bg: #F4F9F6; /* A very faint mint-white */
    --mdsl-text-muted: #64748B;
    
    /* Premium Shadows */
    --mdsl-premium-shadow: 0 15px 35px rgba(24, 28, 26, 0.08);
    --mdsl-glow-shadow: 0 20px 40px rgba(24, 28, 26, 0.15), 0 0 30px rgba(30, 166, 92, 0.3);

    /* BACKWARDS COMPATIBILITY ALIASES */
    --mdsl-blue: var(--mdsl-primary-dark); 
    --mdsl-yellow: var(--mdsl-accent-green); 
}

/* =========================================
   PART 1: BASE, HIGHLIGHTS & SCROLLBAR
========================================= */

body {
    background-color: var(--mdsl-light-bg);
}

/* Custom Brand Text Selection */
::selection {
    background: var(--mdsl-accent-green);
    color: #ffffff;
}

/* Premium Webkit Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--mdsl-light-bg); 
}
::-webkit-scrollbar-thumb {
    background: var(--mdsl-primary-dark); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mdsl-accent-green); 
}

/* =========================================
   PART 2: TYPOGRAPHY & EDITORIAL
========================================= */

h1, h2, h3, h4, h5, h6 {
    color: var(--mdsl-primary-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Automatically redirect old blue utility classes to the new black */
.text-primary, .color-primary, .ti-control-forward {
    color: var(--mdsl-primary-dark) !important;
}

/* Redirect old yellow utility classes to the True Green */
.text-warning {
    color: var(--mdsl-accent-green) !important;
}

.mdsl-editorial-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--mdsl-primary-dark);
    letter-spacing: -1.5px;
    line-height: 1.25; 
}
.mdsl-editorial-lead {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--mdsl-text-muted);
}

/* =========================================
   PART 3: HERO OVERLAYS & BACKGROUNDS
========================================= */

/* FIXED: Boosted the green opacity here so it sweeps beautifully across the bottom right of your images */
.hero-premium-overlay {
    background: linear-gradient(135deg, rgba(24, 28, 26, 0.85) 0%, rgba(24, 28, 26, 0.5) 45%, rgba(30, 166, 92, 0.65) 100%);
}

.hero-animated-overlay {
    background: linear-gradient(-45deg, rgba(24, 28, 26, 0.85), rgba(20, 24, 22, 0.9), rgba(30, 166, 92, 0.5), rgba(30, 166, 92, 0.7));
    background-size: 400% 400%;
    animation: panBackground 15s ease infinite;
}

.premium-bg {
    background-color: #ffffff;
}

/* =========================================
   PART 4: MODERN BUTTONS & FAB
========================================= */

.btn,
.primary-solid-btn, 
.btn-primary,
.outline-btn,
.solid-white-btn,
.outline-white-btn {
    border-radius: 50px !important;
    padding: 14px 35px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.primary-solid-btn, 
.btn-primary {
    background-color: var(--mdsl-primary-dark) !important;
    border: 2px solid var(--mdsl-primary-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(24, 28, 26, 0.25);
}

/* Vibrant Green Hover */
.primary-solid-btn:hover, 
.btn-primary:hover {
    background-color: var(--mdsl-accent-green) !important;
    border-color: var(--mdsl-accent-green) !important;
    color: #ffffff !important; 
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(30, 166, 92, 0.4);
}

.outline-btn {
    border: 2px solid var(--mdsl-primary-dark) !important;
    color: var(--mdsl-primary-dark) !important;
    background: transparent;
}

.outline-btn:hover {
    background-color: var(--mdsl-primary-dark) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Pulsing Support FAB - Glowing Logo Green */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.fab-button {
    width: 60px;
    height: 60px;
    background-color: var(--mdsl-primary-dark);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(24, 28, 26, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulseGlow 3s infinite;
    text-decoration: none;
    border: 2px solid transparent;
}
.fab-button:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: var(--mdsl-accent-green);
    color: #ffffff;
    border-color: var(--mdsl-accent-green);
}

/* =========================================
   PART 5: MDSL BENTO BOX GRID SYSTEM
========================================= */

.bento-card {
    background: #ffffff;
    border-radius: 20px; 
    padding: 35px; 
    height: 100%;
    border: 1px solid rgba(24, 28, 26, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}
.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mdsl-premium-shadow);
    border-color: var(--mdsl-accent-green);
}

.bento-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #E8F6EE; /* Noticeable green tint */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bento-card:hover .bento-icon-wrapper {
    background: var(--mdsl-accent-green);
    transform: rotate(-10deg) scale(1.15);
    box-shadow: 0 10px 20px rgba(30, 166, 92, 0.3);
}
.bento-icon-wrapper span {
    font-size: 1.8rem;
    color: var(--mdsl-accent-green);
}
.bento-card:hover .bento-icon-wrapper span {
    color: #ffffff;
}

.bento-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--mdsl-primary-dark);
    margin-top: 0; 
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.bento-text {
    color: var(--mdsl-text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
    flex-grow: 1; 
}

/* =========================================
   PART 6: PREMIUM CARDS & INTERFACES
========================================= */

.single-service-plane,
.features-box,
.single-testimonial,
.premium-card,
.fintech-card {
    background-color: #ffffff !important;
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid rgba(24, 28, 26, 0.05) !important;
    border-bottom: 4px solid transparent !important;
    box-shadow: 0 10px 30px rgba(24, 28, 26, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.single-service-plane:hover,
.features-box:hover,
.premium-card:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid var(--mdsl-accent-green) !important;
    box-shadow: var(--mdsl-premium-shadow) !important;
}

.fintech-card:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid var(--mdsl-accent-green) !important;
    box-shadow: var(--mdsl-glow-shadow) !important;
}

.human-quote {
    position: relative;
    z-index: 1;
}
.human-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(24, 28, 26, 0.03);
    z-index: -1;
    line-height: 1;
}

/* =========================================
   PART 7: TEAM & BOARD CARDS
========================================= */

.board-card, .exec-card {
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(24, 28, 26, 0.04);
}
.board-card:hover, .exec-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--mdsl-accent-green); 
    box-shadow: var(--mdsl-premium-shadow) !important;
}

.board-img-wrap {
    position: relative;
    display: inline-block;
}
.board-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background-color: var(--mdsl-accent-green);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(30, 166, 92, 0.4);
}

.exec-img-wrap {
    overflow: hidden;
    display: inline-block;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.exec-img-wrap img {
    transition: transform 0.5s ease;
}
.exec-card:hover .exec-img-wrap img {
    transform: scale(1.1); 
}

/* =========================================
   PART 8: LISTS, ICONS & ANIMATIONS
========================================= */

.popular-categories-list li {
    background: #ffffff;
    border: 1px solid rgba(24, 28, 26, 0.04) !important;
    box-shadow: 0 5px 15px rgba(24, 28, 26, 0.03);
    border-radius: 16px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.popular-categories-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(24, 28, 26, 0.08);
    border-color: rgba(30, 166, 92, 0.4) !important;
}

.round {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--mdsl-light-bg);
    border-radius: 50%;
    margin-right: 25px;
    float: left;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.05);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.floating-img {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(24, 28, 26, 0.15));
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(24, 28, 26, 0.4); }
    50% { box-shadow: 0 0 35px rgba(30, 166, 92, 0.7); }
    100% { box-shadow: 0 0 15px rgba(24, 28, 26, 0.4); }
}

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

/* =========================================
   PART 9: LEGACY LAYOUT OVERRIDES
========================================= */

.gray-light-bg,
.main section {
    background-color: var(--mdsl-light-bg) !important;
}

.client-section::before, 
.client-section::after,
.owl-carousel::before,
.owl-carousel::after {
    display: none !important;
    background: transparent !important;
}

/* FIXED: Noticeable green glow and border for the glass panels */
.glass-panel {
    background: rgba(24, 28, 26, 0.75) !important; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mdsl-accent-green);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(30, 166, 92, 0.2);
    transform: translateY(0);
    transition: transform 0.4s ease;
}
.glass-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 70px -15px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(30, 166, 92, 0.35);
}

/* =========================================
   PART 10: "ALL-IN" UPGRADE EFFECTS
========================================= */

/* Transparent Outline Typography */
.text-outline-yellow {
    color: transparent;
    -webkit-text-stroke: 2px var(--mdsl-accent-green);
    text-stroke: 2px var(--mdsl-accent-green);
    font-size: 4.5rem !important;
    line-height: 1;
    display: block;
    margin-top: 10px;
}

/* Pulsing Status Dot */
.status-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--mdsl-accent-green);
    box-shadow: 0 0 0 rgba(30, 166, 92, 0.4);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(30, 166, 92, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(30, 166, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 166, 92, 0); }
}

/* Glassmorphic Mock Terminal */
.fintech-terminal {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}
.terminal-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.overlap-grid {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

/* =========================================
   PART 11: CINEMATIC IMAGE ZOOM (KEN BURNS EFFECT)
========================================= */

/* Creates the slow, breathing video effect */
@keyframes cinematicZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); } /* Smoothly zooms in by 12% */
    100% { transform: scale(1); } /* Smoothly zooms back out */
}

/* Applies the animation to all your background images */
.position-absolute[style*="background: url"] {
    filter: blur(1px) !important;
    animation: cinematicZoom 25s infinite alternate ease-in-out !important;
    will-change: transform; /* Optimizes performance so it renders smoothly */
}

/* =========================================
   PART 12: HEADER & DROPDOWN NAVIGATION
========================================= */

/* Smooth Dropdown Animation */
.hs-mega-menu {
    animation: smoothFadeDown 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
    transform-origin: top center;
}

@keyframes smoothFadeDown {
    0% { 
        opacity: 0; 
        transform: translateY(-15px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Premium Hover Highlight for Dropdown Items */
.title-with-icon-link {
    transition: all 0.3s ease !important;
    display: block; 
}

.title-with-icon-link:hover {
    background-color: #E8F6EE !important; /* Soft MDSL Mint Green */
    transform: translateX(5px); 
    box-shadow: inset 3px 0 0 var(--mdsl-accent-green); 
    border-radius: 8px;
}

/* Ensures the text stays crisp black on hover */
.title-with-icon-link:hover .u-header__promo-title {
    color: var(--mdsl-primary-dark) !important;
}