/* include/styles.css */

:root {
    --lk-blue: #052252;
    --lk-orange: #f37921;
    --footer-bg: #0a1b3a;
    --mobile-footer-height: 76px;
}


body { 
    font-family: 'Roboto', sans-serif; 
    background: #ffffff; 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

body.menu-open { 
    overflow: hidden; 
    position: fixed; 
    width: 100%; 
    height: 100%; 
}

.text-lk-blue { color: var(--lk-blue); }
.bg-lk-blue { background-color: var(--lk-blue); }
.bg-lk-orange { background-color: var(--lk-orange); }
.border-lk-orange { border-color: var(--lk-orange); }
.italic-black { font-style: italic; font-weight: 900; text-transform: uppercase; }

/* carousel fade - exact original */
.carousel-item { 
    display: none; 
    transition: opacity 0.7s ease-in-out; 
}
.carousel-item.active { 
    display: flex; 
    animation: carouselFade 0.8s; 
}
@keyframes carouselFade { 
    0% { opacity: 0; } 
    100% { opacity: 1; } 
}

.orange-frame { 
    position: absolute; 
    right: -50px; 
    top: 10%; 
    width: 50%; 
    height: 80%; 
    border: 15px solid var(--lk-orange); 
    opacity: 0.15; 
    border-radius: 80px 0 0 80px; 
    pointer-events: none; 
}

/* subtle floating for cards - exact original */
.float-animation { 
    transition: transform 0.25s ease, box-shadow 0.3s ease; 
}
.float-animation:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 30px -10px rgba(0,40,80,0.25); 
}

/* range input custom */
input[type="range"] { 
    accent-color: var(--lk-orange); 
}

/* animated underline for links - exact original */
.hover-underline { 
    position: relative; 
}
.hover-underline::after {
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: -4px; 
    left: 0;
    background-color: var(--lk-orange); 
    transition: width 0.3s ease-in-out;
}
.hover-underline:hover::after { 
    width: 100%; 
}

/* Original mobile toggle button - preserved exactly */
.mobile-toggle-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
   
    z-index: 1002;
    touch-action: manipulation;
}

.mobile-toggle-btn:focus {
    box-shadow: none !important;
    outline: none !important;
}

.mobile-toggle-btn:hover {
    background-color: rgba(5, 34, 82, 0.05);
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    background: transparent !important;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--lk-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-icon::before {
    top: 0;
    transform-origin: center;
}

.hamburger-icon::after {
    bottom: 0;
    transform-origin: center;
}

.hamburger-icon span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--lk-blue);
    transform: translateY(-50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle-btn[aria-expanded="true"] .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--lk-orange);
}

.mobile-toggle-btn[aria-expanded="true"] .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--lk-orange);
}

.mobile-toggle-btn[aria-expanded="true"] .hamburger-icon span {
    opacity: 0;
    transform: translateY(-50%) scale(0);
}

/* mobile menu panel - exact original */
.mobile-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1001;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(5, 34, 82, 0.1);
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav .space-y-3 > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav.open .space-y-3 > * {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.open .space-y-3 > *:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open .space-y-3 > *:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open .space-y-3 > *:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open .space-y-3 > *:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open .space-y-3 > *:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open .space-y-3 > *:nth-child(6) { transition-delay: 0.3s; }

/* Products row styling - exact original */
#productsRow {
    cursor: pointer;
    user-select: none;
}

.submenu { 
    max-height: 0; 
    opacity: 0; 
    overflow: hidden; 
    transition: all 0.4s ease; 
    background: rgba(5, 34, 82, 0.04); 
    border-radius: 12px; 
    margin-top: 0;
}

.submenu.open { 
    max-height: 400px;
    opacity: 1; 
    padding: 0.75rem 1rem; 
    margin-top: 0.75rem;
    overflow: visible;
}

.submenu a {
    display: block;
    padding: 0.75rem 0 0.75rem 1rem;
    margin: 0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.submenu a:hover {
    background: rgba(243, 121, 33, 0.1);
    transform: translateX(5px);
}

/* Premium Bank Ribbon - exact original */
.ribbon {
    background: linear-gradient(90deg, #f37921 0%, #ff9f4b 100%);
    color: #052252;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.25rem 1.5rem;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 40px 8px 40px 8px;
    border: 1px solid rgba(255,215,0,0.5);
}

/* pulse dot for carousel - exact original */
.dot.pulse { 
    background-color: var(--lk-orange) !important; 
    width: 32px !important; 
    transition: all 0.3s; 
}

/* Floating Buttons - exact original */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid white;
    pointer-events: auto;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--lk-orange);
    color: var(--lk-blue);
    border-radius: 50%;
    text-align: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(5, 34, 82, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    text-decoration: none;
    border: 2px solid white;
    pointer-events: auto;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--lk-blue);
    color: var(--lk-orange);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 16px rgba(5, 34, 82, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 75px;
        left: 15px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .mobile-nav {
        top: 69px;
    }
}

/* Ripple effect for buttons - exact original */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ripple-effect:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* --- MODERN MOBILE FOOTER MENU (BOTTOM ANCHORED) --- */
.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-footer-height);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
   
    border-top: 1px solid rgba(5,34,82,0.1);
    box-shadow: 0 -8px 30px rgba(5,34,82,0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    display: none; 
}

@media (max-width: 1023px) {
    .mobile-footer-nav { 
        display: flex; 
    }
    body { 
        padding-bottom: 76px; 
    }
    .whatsapp-float { 
        bottom: 95px; 
    }
    .back-to-top { 
        bottom: 95px; 
    }
    #mobileMenu { 
        display: none !important; 
    }
    .mobile-toggle-btn { 
        display: none !important; 
    }
}

@media (min-width: 1024px) {
    .mobile-footer-nav { 
        display: none !important; 
    }
}

.footer-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #5f6b7a;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 4px;
    border-radius: 16px;
    text-decoration: none;
    gap: 4px;
    cursor: pointer;
   
    position: relative;
}

.footer-nav-item i { 
    font-size: 22px; 
    color: var(--lk-blue); 
    transition: transform 0.2s, color 0.2s; 
}

.footer-nav-item span { 
    font-size: 11px; 
    font-weight: 600; 
    letter-spacing: 0.3px; 
}

.footer-nav-item:hover i { 
    transform: translateY(-2px); 
}

.footer-nav-item.active { 
    background: rgba(243,121,33,0.12); 
    color: var(--lk-orange); 
}

.footer-nav-item.active i { 
    color: var(--lk-orange); 
}

.footer-products-badge, 
.footer-more-badge { 
    position: relative; 
}

.footer-micro-drop {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: white;
    width: 180px;
    border-radius: 28px;
    padding: 12px 8px;
    box-shadow: 0 15px 35px rgba(5,34,82,0.25);
    border: 1px solid rgba(243,121,33,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1001;
}

.footer-micro-drop.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.footer-micro-drop a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lk-blue);
    border-radius: 40px;
    transition: background 0.15s;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-micro-drop a i { 
    font-size: 12px; 
    margin-right: 8px; 
    color: var(--lk-orange); 
}

.footer-micro-drop a:hover { 
    background: #f0f4fe; 
}

.footer-micro-drop a:active {
    background: rgba(243, 121, 33, 0.2);
}

/* More dropdown specific - wider for additional items */
#footerMoreDropdown {
    width: 220px;
}

/* Animation keyframes from original */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.3; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out infinite;
}


/* Brand ribbon marquee styles */
.brand-marquee {
    background: linear-gradient(90deg, #052252 0%, #12387b 50%, #052252 100%);
    padding: 1.2rem 0;
    border-top: 2px solid rgba(243,121,33,0.3);
    border-bottom: 2px solid rgba(243,121,33,0.3);
    box-shadow: 0 10px 25px -5px rgba(5,34,82,0.4);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.brand-marquee::before,
.brand-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.brand-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #052252, transparent);
}
.brand-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, #052252, transparent);
}
.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    animation: scrollLeft 25s linear infinite;
}
.marquee-content span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1.8rem;
    border-radius: 60px;
    border: 1px solid rgba(243,121,33,0.5);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}
.marquee-content i {
    color: #f37921;
    font-size: 2rem;
    filter: drop-shadow(0 0 5px #f37921);
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* before footer download section */
/* Essential Reset to ensure no gaps at the edges */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scroll from floating elements */
}

.full-width-promo {
    width: 100%;
    background: linear-gradient(90deg, #001f54 0%, #003594 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100px; /* Adjust height as needed */
}

/* Subtle Geometric Overlay */
.full-width-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: 1;
}

/* Orange Decorative Shape */
.bg-shape-orange {
    position: absolute;
    left: -50px;
    top: 15%;
    width: 500px;
    height: 350px;
    background-color: #f39c12;
    transform: rotate(-12deg);
    border-radius: 60px;
    z-index: 2;
}

.promo-container {
    width: 100%;
    max-width: 1300px; /* Content stays centered, background stays full width */
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 5%;
    position: relative;
    z-index: 5;
}

/* Visuals: Phone & Coins */
.promo-visuals {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 240px;
    height: 480px;
    background: #000;
    border: 8px solid #1a1a1a;
    border-radius: 38px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 10;
}

.phone-ui {
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/240x480/ffffff/001f54?text=App+Interface') center/cover;
}

/* Floating Coins */
.currency-icon {
    position: absolute;
    width: 55px;
    height: 55px;
    background: #f1c40f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #b8860b;
    font-size: 22px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 11;
    animation: float-anim 4s ease-in-out infinite;
}

.c-top-left { top: 10%; left: 0; }
.c-bottom-right { bottom: 20%; right: 10%; animation-delay: 1s; }
.c-mid-right { top: 35%; right: -20px; animation-delay: 2s; }

@keyframes float-anim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Text Section */
.promo-text {
    flex: 1.2;
    color: white;
    padding-left: 50px;
}

.promo-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 300;
    margin-bottom: 30px;
}

.promo-text h2 span { font-weight: 600; }
.promo-text h2 strong { font-weight: 800; }

.button-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.google-btn img {
    height: 52px;
    transition: transform 0.2s;
}

.download-btn {
    background: white;
    color: #002d72;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    transition: all 0.3s;
}

.google-btn:hover img, .download-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .promo-text h2 { font-size: 2.8rem; }
    .promo-container { padding: 40px 30px; }
}

@media (max-width: 768px) {
    .promo-container {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }
    .promo-text { padding-left: 0; margin-top: 30px; }
    .promo-text h2 { font-size: 2.2rem; }
    .button-row { justify-content: center; }
    .bg-shape-orange { width: 300px; height: 250px; left: -80px; }
    .phone-mockup { width: 200px; height: 400px; }
}

/* Additional responsive fixes */
@media (max-width: 640px) {
    h1.text-5xl { font-size: 2.5rem; }
    h2.text-4xl { font-size: 1.875rem; }
    h2.text-3xl { font-size: 1.5rem; }
    .px-6 { padding-left: 1rem; padding-right: 1rem; }
    .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
    .grid-cols-1 { gap: 1.5rem; }
    .footer-nav-item span { font-size: 10px; }
    .footer-nav-item i { font-size: 20px; }
}

@media (max-width: 480px) {
    .footer-nav-item { padding: 6px 2px; }
    .footer-nav-item span { font-size: 9px; }
    .footer-nav-item i { font-size: 18px; }
    .ribbon { font-size: 0.6rem; padding: 0.2rem 0.8rem; }
    .promo-text h2 { font-size: 1.8rem; }
    .phone-mockup { width: 160px; height: 320px; }
    .currency-icon { width: 40px; height: 40px; font-size: 18px; }
}

/* Fix for carousel images on mobile */
@media (max-width: 768px) {
    .carousel-item img {
        width: 100%;
        max-width: 350px;
        height: auto;
        max-height: 300px;
    }
}

/* Fix for feature grid on mobile */
@media (max-width: 1024px) {
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    .step-row {
        border-right: none !important;
    }
}

/* Ensure footer grid works on mobile */
@media (max-width: 768px) {
    .grid-cols-1.md\:grid-cols-5 {
        grid-template-columns: 1fr;
    }
    .md\:col-span-2 {
        grid-column: auto;
    }
}

/* Responsive guarantee for the loan section only — exactly the same structure, only display tuning */
.loan-section {
    display: flex;
    flex-direction: column;
    max-width: 72rem; /* 6xl */
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
@media (min-width: 1024px) {
    .loan-section {
        flex-direction: row;
    }
}
.loan-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.loan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 1024px) {
    .loan-image {
        width: 50%;
        height: 500px;
    }
}
.loan-card-container {
    width: 100%;
    background-color: #3156a3;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
@media (min-width: 1024px) {
    .loan-card-container {
        width: 50%;
        padding: 4rem;
    }
}
.loan-highlight-card {
    background-color: #21438a;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 20;
}
@media (min-width: 1024px) {
    .loan-highlight-card {
        margin-left: -5rem;
        padding: 2.5rem;
    }
}
/* keep all original classes (float-animation, etc) untouched, just ensure parent responsiveness */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}