:root {
    --primary-color: #002147;
    /* Navy Blue from Logo */
    --primary-dark: #001630;
    --primary-light: rgba(0, 33, 71, 0.1);
    --secondary-color: #d4af37;
    /* Gold from Logo */
    --secondary-light: #f4e4bc;
    --accent-color: #002147;
    --text-dark: #0a1d37;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #001630;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* HEADINGS */
h1,
.h1 {
    font-size: 2.5rem;
}

h2,
.h2 {
    font-size: 2rem;
}

h3,
.h3 {
    font-size: 1.5rem;
}

h4,
.h4 {
    font-size: 1.25rem;
}

h5,
.h5 {
    font-size: 1.1rem;
}

h6,
.h6 {
    font-size: 0.9rem;
}

.display-3 {
    font-size: 2.5rem;
}

.display-4 {
    font-size: 3rem;
}

.lead {
    font-size: 1rem;
}

/* TOP TICKER */
.top-ticker {
    background: var(--bg-dark);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-wrapper {
    min-height: 24px;
}

.ticker-item {
    font-weight: 500;
}

.ticker-label {
    color: var(--secondary-color);
}

.ticker-socials a {
    transition: var(--transition);
    font-size: 0.85rem;
}

.ticker-socials a:hover {
    color: var(--secondary-color) !important;
    opacity: 1 !important;
    transform: translateY(-1px);
}

/* NAVBAR */
.main-navbar {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    transition: var(--transition);
}

.navbar-brand .logo-text {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 40%;
}

.btn-apply {
    background: var(--primary-color);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    background: var(--primary-dark);
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.92), rgba(10, 88, 202, 0.95)),
        url('../images/hero-bg.png') center/cover no-repeat;
    padding: 100px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 56c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-2-17c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm25 0c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm23-10c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-7 24c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-21 18c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-25 7c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-7-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM27 26c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm36 52c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-45-1c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm65 15c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM9 54c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm40 5c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM57 7c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-7 12c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-18 9c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm42 8c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-74 1c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm40 28c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm57 12c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-9-1c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-20-2c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm57-5c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-58 10c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-23-45c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-form-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.hero-form-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* SECTION TITLES */
.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* CARDS */
.loan-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    background: white;
    transition: var(--transition);
    height: 100%;
}

.loan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.loan-card:hover .icon-box {
    background: var(--primary-color);
    color: white;
}

/* TRUST SECTION */
.trust-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.trust-item p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* PROCESS STEPS */
.process-step {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

.step-num {
    width: 35px;
    height: 35px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 25px;
    padding: 60px 40px;
    color: white;
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.25);
}

.cta-banner h2 {
    font-size: 2.2rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    color: #e2e8f0;
    /* Light grey-blue for better readability */
}

.footer h4,
.footer h5,
.footer h6 {
    color: white !important;
}

.footer .text-muted {
    color: #94a3b8 !important;
    /* Lighter muted color for dark background */
}

.footer-links li a {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 4px 0;
}

.footer-links li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* FLOATING ACTIONS */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wa-btn {
    background: #25d366;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.call-btn {
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.wa-btn:hover,
.call-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-decoration: none;
}

.mobile-nav a i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-nav a.active {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .floating-actions {
        bottom: 80px;
    }
}

/* PARTNER BANKS MARQUEE */
.partners-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.partners-marquee {
    display: flex;
    animation: scroll-marquee 25s linear infinite;
    width: max-content;
}

.partners-marquee:hover {
    animation-play-state: paused;
}

.partner-logo {
    background: white;
    padding: 12px 30px;
    margin: 0 15px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 240px;
    height: 80px;
}

.partner-logo img {
    height: 45px;
    width: 45px;
    object-fit: contain;
}

.partner-logo span {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

/* EMI CALCULATOR */
.custom-range {
    height: 6px;
    background: #e9ecef;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--secondary-color);
}

.calc-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.result-card {
    transition: var(--transition);
}

.result-card:hover {
    transform: scale(1.02);
}

/* GLOBAL UI IMPROVEMENTS */
.x-small {
    font-size: 0.7rem !important;
}

section {
    padding: 60px 0;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}

.icon-sm {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism for inputs */
.form-control,
.form-select {
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: white !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    border-color: var(--primary-color);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* WHY CHOOSE CARDS */
.benefit-card {
    background: rgba(13, 110, 253, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: scale(1.05) translateX(5px);
}

.floating-anim {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.illustration-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {

    h1,
    .h1,
    .display-3,
    .display-4 {
        font-size: 2rem !important;
    }

    h2,
    .h2 {
        font-size: 1.5rem !important;
    }

    .hero-section {
        padding: 40px 0 !important;
    }

    .sticky-sidebar-btn {
        display: none !important;
    }

    .illustration-container img {
        max-height: 250px !important;
    }

    .fab-container {
        bottom: 15px !important;
        right: 15px !important;
    }

    .fab-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
}