/* --- Design Tokens & Variables --- */
:root[data-theme="dark"] {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a6a6a6; 
    --navbar-text: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(0, 0, 0, 0.3);
    --scrolled-nav-bg: rgba(5, 5, 5, 0.85); 
}

:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b; 
    --navbar-text: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(255, 255, 255, 0.6);
    --scrolled-nav-bg: rgba(255, 255, 255, 0.85); 
}

:root {
    --primary: #004aad; 
    --secondary: #8a8a8a; 
    --accent: #2b70c9; 
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none !important; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.text-muted { color: var(--text-muted) !important; }
.section-padding { padding: 100px 0; }
a, button, .accordion-button { pointer-events: auto; }

/* --- Custom Cursor --- */
#custom-cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    background: var(--primary); border-radius: 50%; pointer-events: none;
    z-index: 9999; mix-blend-mode: difference; transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}
/* Hide custom cursor on mobile and tablet devices */
@media (max-width: 768px) {
    #custom-cursor {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}
#custom-cursor.hover-state { width: 60px; height: 60px; background: white; }

/* --- Preloader --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 10000;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.loader-text { font-size: 2rem; font-weight: 800; }
.pulse-logo { animation: pulse 1.5s infinite; }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* --- Typography --- */
.gradient-text { background: linear-gradient(to right, var(--text-main), var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-text-accent { background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.navbar-brand, .theme-icon { color: var(--navbar-text) !important; }
.brand-logo { height: 45px; transition: height 0.4s ease, transform 0.3s ease; }
.brand-logo:hover { transform: scale(1.05); }
.max-w-800 { max-width: 800px; }
.max-w-500 { max-width: 500px; }

/* --- Glassmorphism --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* --- Background Blobs --- */
.bg-blobs {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
    position: absolute; filter: blur(120px); opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(0,74,173,0.4); }
.blob-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: rgba(138,138,138,0.3); animation-delay: -5s; }
.blob-3 { top: 40%; left: 50%; width: 40vw; height: 40vw; background: rgba(43,112,201,0.2); animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* --- Navbar Animations --- */
/* --- Brand Logo Animation --- */
.brand-logo{
    height:90px;
}

@media (max-width:991px){
    .brand-logo{
        height:50px;
    }
}

@media (max-width:576px){
    .brand-logo{
        height:42px;
    }
}
.brand-logo:hover { transform: scale(1.05); }
.navbar-glass {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; z-index: 1000;
    padding: 1px 2px; border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar-glass.scrolled {
    width: 80%; padding: 8px 25px; background: var(--scrolled-nav-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}
.navbar-glass.scrolled .brand-logo { height: 60px; }
.nav-link { color: var(--text-muted) !important; font-weight: 500; position: relative; transition: color 0.3s; }
.nav-link:hover { color: var(--text-main) !important; }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* =========================================
   Desktop Hover Dropdown Animation 
   ========================================= */
@media (min-width: 992px) {
    /* Set the initial hidden state */
    .navbar-nav .dropdown .dropdown-menu {
        display: block !important; /* Forces it into the DOM so it can animate */
        visibility: hidden;
        opacity: 0;
        transform: translateY(20px); /* Pushes it down slightly */
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth Vercel-like easing */
        pointer-events: none; /* Prevents accidental clicks when invisible */
        margin-top: 10px;
    }

    /* Set the active hover state */
    .navbar-nav .dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0); /* Slides up into place */
        pointer-events: auto; /* Re-enables clicking */
        box-shadow: 0 15px 35px rgba(0, 74, 173, 0.15) !important; /* Subtle brand-colored glow */
    }

    /* Smooth color transition for the links inside */
    .navbar-nav .dropdown-menu .dropdown-item {
        transition: all 0.3s ease;
        position: relative;
        padding: 10px 20px;
    }

    /* Add a slight slide-right effect when hovering over individual services */
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background: transparent !important;
        color: #004aad !important; /* Grow Vyapar Accent Blue */
        transform: translateX(5px);
    }
}

/* ==========================
   Buttons
========================== */

.btn-glow,
.btn-outline-glass{
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .3s ease;
}

.btn-glow{
    position: relative;
    background: var(--primary);
    color: #fff;
    border: none;
    overflow: hidden;
}

.btn-glow:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
    color: #fff;
}

.btn-outline-glass{
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline-glass:hover{
    background: var(--glass-bg);
    color: var(--text-main);
}

/* ---------- Tablet ---------- */
@media (max-width: 991px){

    .btn-glow,
    .btn-outline-glass{
        padding: 11px 24px;
        font-size: 15px;
    }

}

/* ---------- Mobile ---------- */
@media (max-width: 767px){

    .btn-glow,
    .btn-outline-glass{
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 40px;
        width: auto;
        min-width: 140px;
    }

}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px){

    .btn-glow,
    .btn-outline-glass{
        padding: 10px 16px;
        font-size: 13px;
        min-width: 120px;
    }

}

/* --- Hero --- */
.hero{
    min-height:100svh;
    padding-top:150px;
}

@media(max-width:767px){
    .hero{
        min-height:auto;
        padding:110px 0 60px;
        text-align:center;
    }
}
.hero-title{
    font-size:clamp(2rem,8vw,5.5rem);
    line-height:1.15;
}

@media(max-width:576px){
.hero-title{
    font-size:2.2rem;
}
}
.floating-stat { position: absolute; padding: 15px 25px; border-radius: 20px; display: flex; align-items: center; gap: 15px; z-index: 3;}
@media(max-width:991px){

    .stat-1,
    .stat-2{
        position:relative;
        top:auto;
        left:auto;
        right:auto;
        bottom:auto;
        margin:15px auto;
        width:fit-content;
        animation:none;
    }
    
    .floating-stat{
        padding:12px 18px;
    }
    }

@keyframes float-up-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Hero Animated Slider & Depth --- */
.hero-swiper { width: 100%; }
.hero-swiper .swiper-slide { height: 100%; border-radius: 16px; }
.slider-img { transition: transform 6s ease-out; transform: scale(1); }
.swiper-slide-active .slider-img { transform: scale(1.15); }
.slider-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1; pointer-events: none;
}
.hero-swiper .swiper-pagination-bullet { background: white; opacity: 0.5; }
.hero-swiper .swiper-pagination-bullet-active { background: var(--primary); opacity: 1; }

.hero-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0, 74, 173, 0.4) 0%, rgba(43, 112, 201, 0.1) 40%, transparent 70%);
    filter: blur(40px); z-index: 1;
    animation: pulse-glow 6s infinite alternate ease-in-out;
}
@keyframes pulse-glow {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.glass-badge-inner {
    position: absolute; bottom: 35px; left: 20px; z-index: 10; padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: float-subtle 4s infinite ease-in-out;
}
@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Services 3D Cards --- */
.service-card { padding: 40px; height: 100%; transform-style: preserve-3d; }
.service-icon { font-size: 2.5rem; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; transform: translateZ(30px); }
.service-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; transform: translateZ(20px); }
.service-text { color: var(--text-muted); transform: translateZ(10px); }

/* --- Pricing Cards --- */
.pricing-card { transition: transform 0.3s ease; }
.pricing-card:hover { transform: translateY(-10px); }

/* --- Glass Accordion (FAQs) --- */
.glass-accordion .accordion-button {
    color: var(--text-main); padding: 1.5rem;
}
.glass-accordion .accordion-button:not(.collapsed) {
    color: var(--primary); box-shadow: none;
}
.glass-accordion .accordion-button::after {
    filter: invert(var(--theme-invert, 1)); /* Fix arrow color based on theme if needed */
}
[data-theme="light"] .glass-accordion .accordion-button::after { filter: invert(0); }
.glass-accordion .accordion-body { padding: 1.5rem; padding-top: 0; }

/* --- Testimonials --- */
.swiper-slide { height: auto; transition: opacity 0.3s; opacity: 0.4; }
.swiper-slide-active { opacity: 1; }
.swiper-pagination-bullet { background: var(--text-muted); }
.swiper-pagination-bullet-active { background: var(--primary); }

/* --- Contact Form --- */
.glass-input {
    background: var(--input-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important; border-radius: 12px;
}
.glass-input:focus { box-shadow: 0 0 0 0.25rem rgba(0, 74, 173, 0.25) !important; }
.form-floating label { color: var(--text-muted); }

/* --- Footer --- */
.footer { border-top: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); }
.footer-massive-text {
    position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    font-size: clamp(60px, 18vw, 150px); font-weight: 900; line-height: 0.8;
    opacity: 0.03; pointer-events: none; z-index: 1; white-space: nowrap;
}
.hover-text-white:hover { color: var(--primary) !important; }

/* Lenis CSS */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* RESTAURANT BILLING SECTION ANIMATIONS                    */
/* Floating animation for the 3D elements around the POS */
.float-element-1 {
    animation: float-async-1 5s infinite ease-in-out;
}
.float-element-2 {
    animation: float-async-2 6s infinite ease-in-out;
}

@keyframes float-async-1 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(-15px) translateX(5px) rotate(2deg); }
}

@keyframes float-async-2 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(15px) translateX(-5px) rotate(-2deg); }
}

/* Blinking online indicator */
.animate-pulse {
    animation: opacity-pulse 2s infinite ease-in-out;
}
@keyframes opacity-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enhance the primary hit product badge with Brand Blue */
.animate-pulse-badge {
    animation: badge-glow-pulse 2s infinite alternate ease-in-out;
}
@keyframes badge-glow-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 74, 173, 0.4);
    }
    100% {
        transform: scale(1.03);
        box-shadow: 0 0 20px 5px rgba(0, 74, 173, 0.2);
    }
}

/* =========================================
   Mobile Bottom App Navigation
   ========================================= */

   .bottom-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.85); /* Matches your dark theme */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 15px 0; /* Extra bottom padding for modern phone gestures */
    z-index: 1050;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.bottom-nav-mobile .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #a1a1aa; /* Muted grey text */
    font-size: 0.75rem;
    font-weight: 500;
    gap: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-mobile .nav-item i {
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Active and Tap States */
.bottom-nav-mobile .nav-item:hover,
.bottom-nav-mobile .nav-item.active {
    color: #004aad; /* Grow Vyapar Accent Blue */
}

/* Keep WhatsApp green on hover */
.bottom-nav-mobile .nav-item:hover .fa-whatsapp {
    color: #25D366 !important; 
}

/* Icon pop animation */
.bottom-nav-mobile .nav-item:hover i,
.bottom-nav-mobile .nav-item.active i {
    transform: translateY(-3px) scale(1.1);
}

/* Add padding to the body ONLY on mobile so the footer doesn't get hidden */
@media (max-width: 767px) {
    body {
        padding-bottom: 75px !important;
    }
}

.read-more-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:20px;
    padding:12px 28px;
    background:linear-gradient(90deg, #38bdf8, #6366f1, #06b6d4);
    color:#fff;
    border:none;
    border-radius:50px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:all .35s ease;
    box-shadow:0 10px 25px rgba(0,184,148,.25);
}

.read-more-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(0,184,148,.4);
}

.read-more-btn i{
    transition:transform .3s ease;
}

.read-more-btn:hover i{
    transform:translateX(5px);
}