@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Pastel Gradient Colors */
    --pastel-sky-blue: #D6EEF6;
    --pastel-lavender: #E4D8F6;
    --pastel-mint: #D8F6EA;
    --pastel-gradient-1: linear-gradient(135deg, var(--pastel-sky-blue) 0%, var(--pastel-lavender) 100%);
    --pastel-gradient-2: linear-gradient(135deg, var(--pastel-lavender) 0%, var(--pastel-mint) 100%);
    --pastel-gradient-3: linear-gradient(135deg, var(--pastel-mint) 0%, var(--pastel-sky-blue) 100%);

    /* Primary Accent Color (from Bootstrap) */
    --bs-primary: #0d6efd;

    /* Text Colors */
    --text-dark: #333;
    --text-light: #555;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-dark: #eef1f6; /* Slightly off-white for sections */

    /* Neumorphic Shadows (Light) */
    --neumorphic-shadow-light: 8px 8px 16px rgba(189, 200, 218, 0.4),
                                -8px -8px 16px rgba(255, 255, 255, 0.8);
    --neumorphic-shadow-hover: 4px 4px 8px rgba(189, 200, 218, 0.4),
                                -4px -4px 8px rgba(255, 255, 255, 0.8);

    /* Glassmorphism Blur & Background */
    --glass-blur: blur(10px);
    --glass-bg-light: rgba(255, 255, 255, 0.4);
    --glass-border-light: 1px solid rgba(255, 255, 255, 0.3);
}

/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll from subtle shadows */
}

/* --- Typography Adjustments for Visual Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark); /* Default to dark text */
}

h1 { font-size: calc(1.8rem + 1.5vw); } /* Responsive heading */
h2 { font-size: calc(1.6rem + 0.8vw); }
h3 { font-size: calc(1.4rem + 0.5vw); }

p {
    font-weight: 300; /* Lighter weight for body text */
}

/* --- Global Section Padding --- */
section {
    padding: 80px 0; /* Generous vertical padding for sections */
    position: relative; /* For potential absolute elements like blurred backgrounds */
    z-index: 1;
}

@media (max-width: 767.98px) {
    section {
        padding: 50px 0; /* Reduce padding on smaller devices */
    }
}

/* --- Blurred Translucent Backgrounds (for sections) --- */
.bg-blurred-sky {
    background: var(--pastel-gradient-1);
    position: relative;
    overflow: hidden;
}
.bg-blurred-sky::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    background: inherit;
    filter: var(--glass-blur);
    z-index: -1;
    opacity: 0.6;
    transform: scale(1.1); /* To ensure blur covers edges */
}

.bg-blurred-lavender {
    background: var(--pastel-gradient-2);
    position: relative;
    overflow: hidden;
}
.bg-blurred-lavender::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    background: inherit;
    filter: var(--glass-blur);
    z-index: -1;
    opacity: 0.6;
    transform: scale(1.1);
}

.bg-blurred-mint {
    background: var(--pastel-gradient-3);
    position: relative;
    overflow: hidden;
}
.bg-blurred-mint::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    background: inherit;
    filter: var(--glass-blur);
    z-index: -1;
    opacity: 0.6;
    transform: scale(1.1);
}

/* --- Glassmorphism Effect for Cards and Sections --- */
.glass-card, .glass-section {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur); /* Safari support */
    border: var(--glass-border-light);
    border-radius: 1.5rem; /* More rounded for modern look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Soft, subtle shadow */
    transition: all 0.3s ease-in-out;
}

.glass-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* --- Neumorphic Elements (Buttons, Inputs - for a light touch) --- */
.btn-neumorphic {
    background-color: var(--bg-light);
    color: var(--bs-primary);
    border: none;
    border-radius: 50px; /* Pill shape */
    padding: 1rem 2.5rem;
    box-shadow: var(--neumorphic-shadow-light);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-neumorphic:hover {
    background-color: #e0e5ec; /* Slightly darker on hover */
    box-shadow: var(--neumorphic-shadow-hover);
    transform: translateY(2px); /* Subtle press effect */
    color: var(--bs-primary); /* Keep color on hover */
}

.btn-neumorphic:active {
    box-shadow: inset 2px 2px 5px rgba(189, 200, 218, 0.7),
                inset -3px -3px 7px rgba(255, 255, 255, 0.5);
    transform: translateY(0);
}

/* --- Navbar Customization --- */
.navbar {
    background: var(--glass-bg-light); /* Glassmorphism on navbar */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* More pronounced shadow */
    padding: 1rem 2rem; /* More generous padding */
    border-radius: 0 0 1.5rem 1.5rem; /* Rounded bottom corners */
}

.navbar-brand img {
    max-height: 50px; /* Slightly smaller for balance */
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.1)); /* Subtle shadow for logo */
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    position: relative;
    overflow: hidden; /* For underline animation */
    z-index: 1;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--bs-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--bs-primary);
    background-color: transparent; /* No background highlight */
    border-radius: 0; /* Remove rounded corners for underline */
}

/* Dropdown menu glassmorphism */
.dropdown-menu {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 0.75rem 0;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 0.75rem 1.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1); /* Subtle primary tint */
    color: var(--bs-primary);
    border-radius: 0.75rem; /* Rounded corners for hovered item */
}

/* --- Offcanvas Mobile Menu --- */
.offcanvas {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-right: none; /* No border on the right for offcanvas */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1); /* Shadow for slide-in effect */
}

.offcanvas-header {
    border-bottom: var(--glass-border-light);
    padding: 1.5rem;
}

.offcanvas-body {
    padding: 1.5rem;
}

/* --- Custom Container Max-Widths --- */
.container-mw-1380 {
    max-width: 1380px;
}

.container-mw-1570 {
    max-width: 1570px;
}


/* --- Hero Section --- */
.hero-section {
    background: var(--pastel-gradient-1); /* Pastel gradient background */
    min-height: 80vh; /* Taller hero */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* To contain background elements */
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(50px);
    z-index: 0;
}

.hero-section::before {
    width: 300px; height: 300px;
    background-color: var(--pastel-lavender);
    top: 10%; left: -5%;
}

.hero-section::after {
    width: 400px; height: 400px;
    background-color: var(--pastel-mint);
    bottom: 5%; right: -10%;
}

.hero-content {
    position: relative; /* Bring content above pseudo-elements */
    z-index: 1;
}

.hero-content h1 {
    color: var(--text-dark); /* Darker text for hero heading */
    font-size: 3.5rem; /* Larger heading */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.05); /* Subtle text shadow */
}

.hero-content p.lead {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* More prominent shadow for image */
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-8px);
}

.check-icon, .info-icon, .card-icon {
    fill: var(--bs-primary); /* Use primary color for icons for consistency */
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.bonus-info {
    padding: 20px;
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: 1rem;
    box-shadow: var(--neumorphic-shadow-hover); /* Apply subtle neumorphic shadow */
}

/* --- Services Section --- */
.service-section {
    background-color: var(--bg-dark); /* Subtle contrasting background */
}

.service-card {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: 1.5rem;
    box-shadow: var(--neumorphic-shadow-light); /* Neumorphic shadow */
    padding: 2rem;
    min-height: 220px; /* Increased height */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--neumorphic-shadow-hover); /* Subtle lift and shadow change */
}

.service-card .card-icon {
    font-size: 3rem; /* Larger icon */
    margin-bottom: 1rem;
    color: var(--bs-primary); /* Primary color for icons */
}

.service-card .card-title {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card .btn-link {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px; /* Space for underline */
}

.service-card .btn-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--bs-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.service-card .btn-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--pastel-gradient-2); /* Another pastel gradient */
    color: var(--text-dark);
}

.stats-item {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: 1.5rem;
    box-shadow: var(--neumorphic-shadow-light);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--neumorphic-shadow-hover);
}

.stats-item h3 {
    color: var(--bs-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-item span {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* --- Info Sections (Rewards Checking, Personal Loans) --- */
.info-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bg-light);
}

.info-section.alt-bg {
    background-color: var(--bg-dark); /* Alternate background for distinction */
}

.info-section h2 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-section p.lead {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.info-section ul li .icon-small {
    min-width: 24px; /* Ensure icon doesn't shrink */
    height: 24px;
    margin-right: 15px;
    fill: var(--bs-primary); /* Primary color for list icons */
}

.info-section .image-mockup {
    background: var(--pastel-gradient-3);
    border-radius: 1.5rem;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-section .image-mockup img {
    border-radius: 1rem;
}

/* --- Personal Loan Categories Section --- */
.loan-categories-section {
    background: var(--pastel-gradient-3);
    padding-top: 80px;
    padding-bottom: 80px;
}

.category-card {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: 1.5rem;
    box-shadow: var(--neumorphic-shadow-light);
    padding: 1.5rem;
    text-align: center;
    height: 180px; /* Increased height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--neumorphic-shadow-hover);
}

.category-card i {
    font-size: 2.5rem; /* Larger icon */
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.category-card span {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

/* --- App Download Section --- */
.app-download-section {
    background-color: var(--bs-primary); /* Solid primary blue */
    color: var(--text-white);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    text-align: center; /* Center content */
}

.app-download-section h2 {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.app-download-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.app-store-badge {
    max-height: 60px; /* Larger badges */
    width: auto;
    margin: 0 10px; /* Spacing between badges */
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-5px);
}

/* --- Footer Redesign --- */
.footer {
    background-color: #1a202c; /* Darker, almost black blue-ish */
    color: #e0e6ed; /* Light grey text */
    padding: 5rem 0 3rem;
    font-size: 0.9rem;
    position: relative;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 60px;
    filter: brightness(0) invert(1) drop-shadow(0px 2px 2px rgba(0,0,0,0.2)); /* White logo with subtle shadow */
}

.footer-about p {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #c0c7d1;
}

.footer h5 {
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    width: 4rem; /* Longer underline */
    height: 4px; /* Thicker */
    background-color: var(--pastel-mint); /* Mint accent */
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: #e0e6ed;
}

.footer a:hover {
    color: var(--pastel-mint); /* Mint accent on hover */
    transform: translateX(5px);
}

.social-icons {
    margin-top: 2rem;
    gap: 1rem; /* More space */
}

.social-icons a {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.08); /* More subtle background */
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--pastel-mint);
    color: #1a202c; /* Dark text on hover */
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 3rem;
}

.footer-bottom .small {
    font-size: 0.9rem;
    color: #9aa4ae;
}

/* --- Responsive Adjustments --- */

/* Tablet (md breakpoint - 768px to 991.98px) */
@media (max-width: 991.98px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    section {
        padding: 60px 0;
    }

    .navbar {
        padding: 0.75rem 1.5rem;
    }

    .hero-section {
        min-height: 65vh;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p.lead {
        font-size: 1.1rem;
    }

    .stats-item h3 {
        font-size: 2.5rem;
    }

    .app-download-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .footer {
        padding: 4rem 0 2rem;
    }
}

/* Small Phones (sm breakpoint - 576px to 767.98px) */
@media (max-width: 767.98px) {
    h1 { font-size: 2.2rem; text-align: center; }
    h2 { font-size: 1.8rem; text-align: center; }
    h3 { font-size: 1.5rem; text-align: center; }

    .text-center-sm {
        text-align: center;
    }

    section {
        padding: 40px 0;
    }

    .navbar-brand {
        margin-right: auto; /* Push brand to left, toggler to right */
    }

    .navbar-nav {
        text-align: center;
    }

    .hero-section {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .service-card {
        margin-bottom: 1.5rem; /* Space between cards */
    }

    .stats-item {
        margin-bottom: 1.5rem;
    }

    .info-section .image-mockup {
        margin-top: 2rem;
    }

    .category-card {
        margin-bottom: 1rem;
    }

    .app-download-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .app-store-badge {
        max-height: 45px;
        margin: 0 5px 15px; /* Adjust margin for stacking */
    }

    .footer .col-md-3,
    .footer .col-lg-3,
    .footer .col-md-4,
    .footer .col-lg-4 {
        margin-bottom: 2rem; /* Consistent spacing for stacked columns */
        text-align: center;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}

/* Smallest Phones (xs breakpoint - below 576px) */
@media (max-width: 575.98px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand img {
        max-height: 45px;
    }

    .btn-neumorphic {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .popup {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p.lead {
        font-size: 1rem;
    }

    .stats-item h3 {
        font-size: 2rem;
    }

    .stats-item span {
        font-size: 1rem;
    }

    .info-section ul li {
        font-size: 1rem;
    }

    .category-card {
        height: 160px; /* Slightly smaller for small screens */
    }

    .app-store-badge {
        max-height: 40px;
        margin: 0 5px 10px;
    }
}

/* Utilities for visual hierarchy */
.text-primary-accent {
    color: var(--bs-primary) !important;
}

.text-dark-contrast {
    color: var(--text-dark) !important;
}

.text-light-contrast {
    color: var(--text-light) !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-semibold {
    font-weight: 600 !important;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
}

/* Horizontal line for visual separation */
.hr-accent {
    border: none;
    height: 4px;
    width: 60px;
    background-color: var(--bs-primary);
    margin: 1rem auto 3rem auto; /* Centered with top/bottom margin */
    border-radius: 2px;
}

.py-5{
    padding-top: 2rem !important;
}
