:root {
    --primary: #00BFA6;
    --dark: #0F172A;
    --light: #F8FAFC;
    --gray: #64748B;
}

/* ========== Global ========== */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* ========== Navbar ========== */
.navbar {
    background: transparent;
    transition: 0.4s;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 22px;
}

.nav-link {
    color: var(--light) !important;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: "";
    width: 0%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar Fix */
.custom-navbar {
    padding: 15px 0;
}

/* Logo Size Fix */
.logo-img {
    height: auto;
    width: 15%;
}

/* Nav Alignment */
.navbar-nav {
    display: flex;
    align-items: center;
}

/* Nav Links */
.nav-link {
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px !important;
}

/* Apply Button Fix */
.apply-btn {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-radius: 25px;
    font-size: 14px;
}

/* Remove uneven spacing */
.nav-item {
    display: flex;
    align-items: center;
}

/* Mobile Fix */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--dark);
        padding: 20px;
        border-radius: 10px;
    }

    .nav-item {
        margin-bottom: 10px;
    }

    .apply-btn {
        width: 100%;
        justify-content: center;
    }
}

/* DROPDOWN MENU */
.custom-dropdown-menu {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(0, 191, 166, 0.2);
    border-radius: 12px;
    padding: 10px;
    min-width: 220px;
    margin-top: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.custom-dropdown-menu .dropdown-item {
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.custom-dropdown-menu .dropdown-item:hover {
    background: rgba(0, 191, 166, 0.12);
    color: var(--primary);
    transform: translateX(4px);
}

/* Remove Bootstrap Arrow Border */
.dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}

/* Mobile Fix */
@media (max-width: 991px) {

    .custom-dropdown-menu {
        background: #020617;
        border: none;
        box-shadow: none;
        padding-left: 10px;
    }

    .custom-dropdown-menu .dropdown-item {
        padding: 10px 15px;
    }

}

/* ========== Hero Section ========== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, var(--dark), #020617);
    position: relative;
}

/* Glow Effect */
.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(150px);
    top: -100px;
    right: -100px;
    opacity: 0.3;
}

/* Text Animation */
.hero h1 {
    font-size: 52px;
    font-weight: 700;
    animation: fadeUp 1s ease;
}

.hero p {
    color: var(--gray);
    margin-top: 15px;
    animation: fadeUp 1.5s ease;
}

.btn-primary-custom {
    background: linear-gradient(90deg, #00BFA6, #00e6c3);
    box-shadow: 0 5px 20px rgba(0, 191, 166, 0.4);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    /* margin-top: 20px; */
    transition: 0.3s;
}

.btn-primary-custom:hover {
    background: #00a693;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
}

.hero-trust i {
    color: var(--primary);
    margin-right: 5px;
}

.hero img {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Loan Type Section ========== */
.loan-card {
    background: linear-gradient(var(--dark), var(--dark)) padding-box,
        linear-gradient(120deg, transparent, var(--primary), transparent) border-box;
    border: 1px solid transparent;
    padding: 30px;
    border-radius: 15px;
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #00bfa640;
}

.loan-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 191, 166, 0.2);
}

/* ICON */
.loan-card i {
    font-size: 35px;
    color: var(--primary);
    margin-bottom: 15px;
    transition: 0.3s;
}

.loan-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* TEXT */
.loan-card p {
    color: var(--gray);
    font-size: 14px;
}

/* INFO LIST */
.loan-info {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.loan-info li {
    font-size: 13px;
    padding: 5px 0;
    color: #cbd5e1;
}

/* HOVER FIX (NO TEXT HIDE ISSUE) */
.loan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 191, 166, 0.2);
}

/* REMOVE OLD ::before if you used it */
.loan-card::before {
    display: none;
}

/* Smaller cards for grid layout */
.loan-card h6 {
    margin-top: 10px;
    font-size: 16px;
}

.loan-card p {
    font-size: 13px;
}

/* Make all cards equal height */
.loan-card {
    height: 100%;
}

/* ========== EMI CAL Section ========== */
.emi-section {
    background: linear-gradient(120deg, #020617, var(--dark));
}

.emi-box {
    padding: 30px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.emi-box input {
    background: #020617;
    border: none;
    color: white;
}

.emi-box input:focus {
    box-shadow: none;
    border: 1px solid var(--primary);
}

#emiResult {
    color: var(--primary);
    font-weight: 700;
    font-size: 22px;
}

.emi-value {
    background: rgba(0, 191, 166, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

/* ========== TRUST BUILDING ========== */
.stats-section {
    background: linear-gradient(120deg, #020617, var(--dark));
}

.counter {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
}

.stats-section p {
    color: var(--gray);
}

.stats-section .col-md-3 {
    border-right: 1px solid #1e293b;
}

.stats-section .col-md-3:last-child {
    border-right: none;
}

.counter {
    text-shadow: 0 0 15px rgba(0, 191, 166, 0.6);
}

/* ========== WHY CHOOSE US ========== */
.why-section {
    background: var(--dark);
}

.why-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
    border-left: 2px solid var(--primary);
    padding-left: 15px;
}

.why-box:hover {
    transform: translateX(5px);
}

.why-box i {
    font-size: 22px;
    color: var(--primary);
    margin-top: 5px;
}

.why-box h6 {
    margin: 0;
}

.why-box p {
    margin: 0;
    font-size: 13px;
    color: var(--gray);
}

.hidden {
    opacity: 0;
    transform: translateY(60px);
    transition: 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== FOOTER SECTION ========== */
.footer-section {
    background: #020617;
    color: #cbd5e1;
    position: relative;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-section h6 {
    color: white;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 15px;
    font-size: 14px;
}

/* ========== LOAN FORM SECTION ========== */
.custom-modal {
    background: var(--dark);
    color: white;
    border-radius: 15px;
}

.custom-modal input,
.custom-modal select {
    background: #020617;
    border: none;
    color: white;
}

.custom-modal input:focus,
.custom-modal select:focus {
    border: 1px solid var(--primary);
    box-shadow: none;
}

/* ================ CONTACT PAGE ================= */
/* HERO SECTION  */
.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(120deg, #020617, var(--dark));
    text-align: center;
}

.contact-hero h1 {
    font-size: 40px;
    font-weight: 700;
}

.contact-hero p {
    color: var(--gray);
}

/* INFO SECTION  */
.info-card {
    background: var(--dark);
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
}

.info-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-form-box {
    background: var(--dark);
    padding: 30px;
    border-radius: 15px;
}

.contact-form-box input,
.contact-form-box textarea {
    background: #020617;
    border: none;
    color: white;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    border: 1px solid var(--primary);
    box-shadow: none;
}

.contact-side {
    background: linear-gradient(120deg, var(--dark), #020617);
    padding: 30px;
    border-radius: 15px;
}

.contact-line {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.contact-line i {
    color: var(--primary);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-check-input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

.form-check a {
    color: var(--primary);
    text-decoration: none;
}

.form-check a:hover {
    text-decoration: underline;
}

/* ================ LEGAL PAGE ================= */
/* Modal Dark Theme */
.custom-modal {
    background: var(--dark);
    color: #e2e8f0;
    border-radius: 15px;
}

/* Header */
.custom-modal .modal-header {
    border-bottom: 1px solid #1e293b;
}

/* Body Scroll */
.legal-content {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
}

/* Scrollbar Styling */
.legal-content::-webkit-scrollbar {
    width: 6px;
}

.legal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ========== BAJAJ MARKETS Page ========== */
/* Hero section  */
.bajaj-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(0, 191, 166, 0.15), transparent 30%),
        linear-gradient(120deg, #020617, #0F172A);
    padding: 140px 0 100px;
}

.bajaj-hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: var(--primary);
    filter: blur(160px);
    opacity: 0.15;
    top: -120px;
    right: -120px;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 191, 166, 0.12);
    border: 1px solid rgba(0, 191, 166, 0.3);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.bajaj-hero h1 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.bajaj-hero p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    border-radius: 30px;
    padding: 12px 25px;
}

.bajaj-hero-img {
    max-width: 95%;
    filter: drop-shadow(0 35px 60px rgba(0, 0, 0, 0.5));
    margin-top: 50px;
}

/* ACTIVE PRODUCT */
.active-product {
    background: rgba(0, 191, 166, 0.12);
    color: var(--primary) !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .bajaj-hero {
        padding: 130px 0 80px;
        text-align: center;
    }

    .bajaj-hero h1 {
        font-size: 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }

    .bajaj-hero-img {
        margin-top: 50px;
    }

}

/* PRODUCT SECTION */
.products-section {
    background: linear-gradient(180deg, #0F172A, #020617);
    position: relative;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title p {
    color: #94a3b8;
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
}

.section-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(0, 191, 166, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 191, 166, 0.25);
    font-size: 13px;
    margin-bottom: 20px;
}

.product-card {
    height: 100%;
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)) padding-box,
        linear-gradient(120deg, rgba(0, 191, 166, 0.3), transparent) border-box;
    border: 1px solid transparent;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 191, 166, 0.12);
}

.product-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 191, 166, 0.1);
    margin-bottom: 25px;
}

.product-icon i {
    font-size: 28px;
    color: var(--primary);
}

.product-card h5 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-card p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.product-card a:hover {
    letter-spacing: 0.5px;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .section-title h2 {
        font-size: 34px;
    }

    .product-card {
        padding: 28px;
    }

}

/* TIMELINE PROCESS SECTION */
.process-section {
    background: linear-gradient(180deg, #020617, #0F172A);
    position: relative;
    overflow: hidden;
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 70px;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 166, 0.5), transparent);
}

.timeline-step {
    position: relative;
    width: 33.33%;
    text-align: center;
    z-index: 2;
}

.timeline-icon {
    width: 85px;
    height: 85px;
    margin: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 191, 166, 0.15), rgba(0, 191, 166, 0.05));
    border: 1px solid rgba(0, 191, 166, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: 0.4s;
}

.timeline-icon i {
    font-size: 32px;
    color: var(--primary);
}

.timeline-step:hover .timeline-icon {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 191, 166, 0.18);
}

.timeline-number {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
}

.timeline-step h5 {
    font-size: 24px;
    margin-bottom: 15px;
}

.timeline-step p {
    color: #94a3b8;
    line-height: 1.8;
    max-width: 280px;
    margin: auto;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .process-timeline {
        flex-direction: column;
        gap: 60px;
    }

    .timeline-line {
        display: none;
    }

    .timeline-step {
        width: 100%;
    }

}

/* TRUST SECTION */
.trust-section {
    background: linear-gradient(180deg, #0F172A, #020617);
    position: relative;
}

.trust-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
}

.trust-item {
    padding: 50px 30px;
    text-align: center;
    position: relative;
}

.trust-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.06);
}

.trust-item h2 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 191, 166, 0.25);
}

.trust-item p {
    color: #94a3b8;
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .trust-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item {
        padding: 40px 20px;
    }

    .trust-item h2 {
        font-size: 34px;
    }

}

@media (max-width: 576px) {
    .trust-wrapper {
        grid-template-columns: 1fr;
    }

    .trust-item::after {
        display: none;
    }

}