/* AllLoan Consultancy - Custom Premium Finance Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Premium Color Palette */
    --primary: #0561fc;
    --primary-grad: linear-gradient(135deg, #0561fc 0%, #00d2ff 100%);
    --secondary: #00f2fe;
    --accent: #10b981;
    --dark: #0b1120;
    --dark-card: rgba(15, 23, 42, 0.7);
    --light: #f8fafc;
    --white: #ffffff;
    
    --text-primary: #0b1120;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(5, 97, 252, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark);
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--dark);
}

*::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
    border: 3px solid var(--dark);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
}

/* Sticky Header & Navbar */
.navbar {
    transition: var(--transition);
    padding: 20px 0;
    z-index: 1050;
}

.navbar.scrolled {
    background: rgba(11, 17, 32, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white) !important;
}

.navbar-brand span {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 0;
    height: 2px;
    background: var(--primary-grad);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 32px);
}

/* Hero Slider */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: var(--dark);
    overflow: hidden;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.4) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    color: var(--white);
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    line-height: 1.6;
}

.btn-primary-grad {
    background: var(--primary-grad);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(5, 97, 252, 0.4);
}

.btn-primary-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 97, 252, 0.6);
    color: var(--white);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--dark);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.05rem;
}

/* Services */
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(5, 97, 252, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.glass-card:hover .service-icon {
    background: var(--primary-grad);
    color: var(--white);
    transform: scale(1.1);
}

/* Eligibility & Calculator Cards */
.calculator-card {
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(5, 97, 252, 0.05);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control, .form-select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 97, 252, 0.1);
}

/* Range Sliders styling */
input[type=range] {
    height: 6px;
    -webkit-appearance: none;
    margin: 10px 0;
    width: 100%;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: var(--transition);
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--secondary);
}

.result-box {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 30px;
}

.result-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
}

/* Process Section */
.process-wrapper {
    position: relative;
}

.process-line {
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.process-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid #e2e8f0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px auto;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.process-step.active .process-badge {
    border-color: var(--primary);
    background: var(--primary-grad);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(5, 97, 252, 0.3);
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--glass-border) !important;
    background: var(--white) !important;
    border-radius: 16px !important;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 20px;
    font-family: var(--font-heading);
    color: var(--text-primary);
    background-color: var(--white);
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(5, 97, 252, 0.02);
    box-shadow: none;
}

.accordion-button::after {
    background-size: 1rem;
}

/* Testimonials */
.testimonial-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.rating-stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

/* Google Map Container */
.map-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 350px;
    aspect-ratio: 16 / 9;
    max-height: 460px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    display: block;
}

/* Floating Action Button (FAB) Menu */
.fab-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-grad);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(5, 97, 252, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.fab-trigger:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 24px rgba(5, 97, 252, 0.6);
}

.fab-trigger.active {
    transform: rotate(135deg);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Menu floats ABOVE the trigger — absolutely positioned so it never blocks the trigger */
.fab-menu {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    pointer-events: none;
}

.fab-wrapper.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    font-size: 1.2rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
    flex-shrink: 0;
}

.fab-item:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.fab-call {
    background: linear-gradient(135deg, #0d6efd 0%, #4dabf7 100%);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.fab-top {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

@media (max-width: 768px) {
    .fab-wrapper {
        bottom: 20px;
        right: 18px;
    }
    .fab-trigger {
        width: 54px;
        height: 54px;
        font-size: 1.35rem;
    }
    .fab-item {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
    .fab-menu {
        gap: 10px;
        bottom: calc(100% + 12px);
    }
}

/* Footer styling */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

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

.footer-social a:hover {
    background: var(--primary-grad);
    transform: translateY(-3px);
    padding-left: 0;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--dark);
        margin-top: 15px;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .process-line {
        display: none;
    }
    
    .process-step {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed !important;
        background: var(--dark) !important;
        padding: 12px 0 !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1060;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 17, 32, 0.98) !important;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 16px 20px !important;
        border-radius: 0 0 16px 16px;
        z-index: 1060;
    }

    section {
        padding: 60px 0;
    }

    /* ── Mobile Hero Slider ── */
    .hero-slider-section {
        margin-top: 60px;          /* clear fixed navbar */
        height: auto;
        min-height: auto;
        background: var(--dark);
    }

    /* Let the carousel stack naturally */
    .carousel,
    .carousel-inner {
        height: auto !important;
    }

    /* Each slide: show the full image above the text */
    .carousel-item {
        /* image fills the top portion */
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: var(--dark) !important;
        /* reserve image height, then content sits below */
        min-height: 100vw;           /* square-ish on very narrow screens */
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    /* Overlay fills the whole slide, gradient from bottom up */
    .carousel-overlay {
        position: relative !important;
        width: 100% !important;
        /* push overlay down so image is visible above */
        margin-top: 55vw;
        background: linear-gradient(
            to top,
            rgba(11,17,32,0.97) 0%,
            rgba(11,17,32,0.85) 55%,
            rgba(11,17,32,0.0)  100%
        ) !important;
        padding: 30px 0 40px !important;
        display: block !important;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 0.9rem !important;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 0.78rem !important;
        margin-bottom: 8px;
    }

    .btn-primary-grad {
        padding: 10px 24px !important;
        font-size: 0.9rem !important;
    }

    .process-line {
        display: none;
    }

    .process-step {
        margin-bottom: 40px;
    }
}
