/* ===== ROOT VARIABLES & BASE STYLES ===== */
:root {
    --primary: #2a52be;
    --secondary: #ff6b35;
    --accent: #00c6ad;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
}

html, body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: url(https://portal.hef.co.ke/assets/app-assets/images/patterns/bg06.png);
    background-repeat: repeat;
}
@media (max-width: 768px) {
    html, body {
        background: var(--light) !important;
    }
    #mobileHeroSection {
        position: relative;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        overflow: hidden;
    }

    .mobile-hero-wrapper {
        position: relative;
        width: 100%;
        min-height: 320px;
        background: linear-gradient(120deg, #0d6efd 60%, #6c63ff 100%);
        padding: 2.5rem 1.2rem 1.5rem 1.2rem;
        text-align: center;
        color: #fff;
    }

    .mobile-hero-content {
        position: relative;
        z-index: 2;
    }

    .mobile-hero-content h1 {
        font-size: 2rem;
    }

    .mobile-hero-content p {
        font-size: 1.1rem;
    }

    .mobile-hero-svg {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 1;
    }
}

/* ===== LAYOUT COMPONENTS ===== */
/* Header & Navigation */
.desktop-topbar {
    width: 100%;
    background: linear-gradient(90deg, #0d6efd 60%, #6c63ff 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1100;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.desktop-topbar .container {
    position: relative;
    overflow: hidden;
}

.marquee-text {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee-text span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 22s linear infinite;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.main-header { 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.main-header .container,
.main-header .container-fluid {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.container-fluid {
    margin-bottom: 10px;
}

/* Navbar Styles */
.navbar-collapse {
    max-width: 300px;
}

.navbar-nav {
    text-align: left;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    font-size: 19px;
    color: black;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    font-weight: 600;
    border-bottom: 2px solid black;
    color: black;
}

.navbar .d-flex a {
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.navbar .d-flex a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.no {
    margin-left: 250px;
}

/* === MODERN HERO SECTION WITH OVERLAY AND FLOATING STATIC PANEL === */
.hero-carousel-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 500px;
    height: 60vh;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #f8f9fa;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.hero-banner-img,
.hero-banner-video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(13,110,253,0.45) 0%, rgba(108,99,255,0.25) 100%);
    z-index: 2;
    pointer-events: none;
}

/* --- SUPPORT CARD & SERVICES CARD --- */
.support-card, .services-card {
    border: none !important;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    height: auto;
    overflow: auto;
    bottom: 20px;
    position: absolute;
    z-index: 10;
}
.support-card {
    left: 10px;
    width: 300px;
    max-width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.services-card {
    right: 10px;
}
.support-card:hover, .services-card:hover {
    transform: translateY(-5px);
}

@media (max-width: 991px) {
    main.container-fluid,
    .main-section,
    #heroSection {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .main-header {
        margin-bottom: 0 !important;
    }
    .hero-carousel-wrapper {
        min-height: 480px;
        height: 60vh;
        max-height: 680px;
    }
    .support-card, .services-card {
        box-shadow: none;
        border-radius: 10px;
        margin-bottom: 10px;
        /* Remove any fixed height or overflow */
        height: auto;
        overflow: visible;
    }
}

/* Category Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #0d6efd, #6610f2);
}

.listing-categories-wrapper {
    position: relative;
}

.listing-categories-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(120deg, rgba(13,110,253,0.45) 0%, rgba(108,99,255,0.25) 100%);
    z-index: -1;
}
.category-group-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image-wrapper {
    width: 100%;
    padding-bottom: 100%; /* Creates a square aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(13,110,253,0.08);
    background: #fff;
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name-wrapper {
    margin-top: 0.75rem;
    height: 2.5em; /* Adjust this value to accommodate two lines of text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    max-height: 2.4em; /* Allows for two lines of text */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mobile-search-form {
    width: 70%;
    background: #fff;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.mobile-search-form:focus-within {
    box-shadow: 0 4px 16px rgba(0,0,0,.13);
    border-color:#b5d0ee !important;
}
.mobile-search-form input::placeholder {
    color: #bcbcbc;
    letter-spacing: .01em;
}

@media (max-width: 991px) {
    .desktop-categories {
        display: none;
    }
    .listing-categories-wrapper::before {
        display: none;
    }
}

@media (min-width: 992px) {
    .mobile-categories {
        display: none;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .category-group-title {
        font-size: 1.5rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
}

.request-form {
    border: none;
    border-radius: 22px;
    box-shadow: 0 6px 24px rgba(13,110,253,0.09), 0 2px 8px rgba(0,0,0,0.04);
    background: #f8fafc;
    padding: 2.2rem 2rem 2rem 2rem;
    transition: box-shadow 0.22s;
    margin-bottom: 1.5rem;
}

.request-form input.form-control,
.request-form textarea.form-control {
    border-radius: 13px;
    border: 1.5px solid #e3eafc;
    background: #fff;
    font-size: 1.04rem;
    padding: 0.95rem 1rem;
    margin-bottom: 1.1rem;
    transition: border .22s, box-shadow .22s;
}

.request-form input.form-control:focus,
.request-form textarea.form-control:focus {
    border-color: #6c63ff;
    box-shadow: 0 2px 12px rgba(108,99,255,0.13);
}

.request-form button[type="submit"], .request-form .btn-primary {
    width: 100%;
    padding: 0.95rem 0;
    font-size: 1.15rem;
    border-radius: 13px;
    background: linear-gradient(90deg, #0d6efd 75%, #6c63ff 100%);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(0,128,255,0.09);
    border: none;
    transition: background 0.22s, box-shadow 0.22s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-form button[type="submit"]:hover, .request-form .btn-primary:hover {
    background: linear-gradient(90deg, #6c63ff 60%, #0d6efd 100%);
    box-shadow: 0 9px 28px rgba(13,110,253,0.13);
    transform: translateY(-2px) scale(1.01);
}

.request-form .btn-primary i {
    margin-right: 7px;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 1.8rem 0 2.2rem 0 !important;
    }
    .request-form {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        border-radius: 18px;
        box-shadow: 0 3px 12px rgba(13,110,253,0.13);
        margin-bottom: 0.5rem;
    }
    .request-form input.form-control,
    .request-form textarea.form-control {
        font-size: 1.11rem;
        padding: 1.08rem 0.9rem;
    }
    .request-form button[type="submit"], .request-form .btn-primary {
        font-size: 1.14rem;
        padding: 1.05rem 0;
    }
}

.contact-info h4, .request-form h4 {
    color: #0d6efd;
    font-weight: 600;
}

/* Forms */
.form-control {
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Search Bar */
.custom-search-form {
    max-width: 380px;
    width: 100%;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 4px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.custom-search-input {
    border: none;
    background: transparent;
    border-radius: 20px;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: none;
}

.custom-search-input:focus {
    outline: none;
    box-shadow: none;
    background: #fff;
}

/* Buttons */
.btn-primary {
    background-color: #0d6efd;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

.wow {
    border-radius: 30px;
    padding-top: 5px;
}

/* ===== UI COMPONENTS ===== */
/* Avatar */
.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    margin-right: 4px;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
    border: 2px solid #fff;
}

/* Navbar Icons */
.navbar .bi-search,
.navbar .bi-cart3,
.navbar .bi-person,
.navbar .bi-person-circle {
    color: #111 !important;
}

.navbar .bi-search:hover,
.navbar .bi-cart3:hover,
.navbar .bi-person:hover,
.navbar .bi-person-circle:hover {
    color: #0d6efd !important;
}

/* Cart Badge */
.cart-badge-animate {
    animation: cartBounce 1.2s infinite alternate;
}

/* ===== SPECIAL COMPONENTS ===== */
/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.chatbot-toggler {
    width: 64px;
    height: 64px;
    border-radius: 50% 50% 50% 10% / 50% 50% 50% 50%;
    background: linear-gradient(135deg, #0d6efd 70%, #6c63ff 100%);
    color: #fff;
    font-size: 2.1rem;
    border: none;
    box-shadow: 0 6px 24px rgba(13,110,253,0.18), 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    cursor: pointer;
    outline: none;
    transform: rotate(-45deg);
    bottom: 30px;
}
.chatbot-toggler:hover,
.chatbot-toggler:focus {
    background: linear-gradient(135deg, #6c63ff 60%, #0d6efd 100%);
    color: #fff;
    box-shadow: 0 10px 32px rgba(13,110,253,0.22), 0 4px 12px rgba(0,0,0,0.13);
}

.chatbot-toggler i {
    font-size: 1.5rem;
    transform: rotate(45deg);
    animation: chatbot-bounce 2.2s 3 cubic-bezier(.4,2,.3,1);
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
}

.chatbot-toggler::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 14px;
    width: 18px;
    height: 18px;
    background: inherit;
    border-radius: 50% 50% 50% 0;
    transform: rotate(35deg);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(13,110,253,0.10);
    opacity: 0.85;
}

.chatbot-window {
    display: none;
    width: 420px;
    height: 520px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    bottom: 80px;
    right: 5px;
    z-index: 1000;
    position: fixed;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
}

.chat-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #f8f9fb;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0 0 10px 10px;
    min-height: 200px;
    max-height: 350px;
    padding-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    max-width: 90%;
}

/* Chat Bubbles */
.message-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 16px;
}

.message-row.user {
    flex-direction: row-reverse;
}

.message-row .bubble {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin: 0 8px;
    position: relative;
    word-break: break-word;
    transition: box-shadow 0.18s;
}

.message-row.bot .bubble {
    background: #f5f7fa;
    color: #222;
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 24px rgba(33,37,41,0.13), 0 1.5px 4px rgba(0,0,0,0.08);
}

.message-row.user .bubble {
    background: #0d6efd;
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 24px rgba(13,110,253,0.18), 0 1.5px 4px rgba(0,0,0,0.08);
}

.bubble:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
}

/* Chat Avatars */
.chatbot-avatar, .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    flex-shrink: 0;
}

.user-avatar {
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Chat Input */
.typing-indicator {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 15px;
    display: none;
    align-items: center;
    gap: 5px;
    border-top: 1px solid #eee;
    z-index: 2;
}

.chat-input {
    position: relative;
    z-index: 3;
    background: #fff;
    padding: 15px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.suggestions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.suggestion-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 16px !important;
    background: #f5f7fa;
    color: #0d6efd;
    border: 1px solid #e3eafc;
    transition: background 0.2s, color 0.2s;
}

.suggestion-btn:hover {
    background: #0d6efd;
    color: #fff;
}

.send-btn {
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn i {
    font-size: 1.5rem;
    color: var(--bs-primary);
}

.send-btn:hover i {
    color: var(--bs-primary-dark);
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.13);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(.4,2,.3,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.sidebar-nav.active {
    right: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sidebar-header {
    background: #f8f9fa;
}

.sidebar-nav .nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
    border-radius: 6px;
    transition: background 0.18s;
}

.sidebar-nav .nav-link:hover, 
.sidebar-nav .nav-link:focus {
    background: #e7f1ff;
    color: #0d6efd;
    text-decoration: none;
}

.sidebar-nav .collapse .nav-link {
    font-size: 1rem;
    padding-left: 1.5rem;
}

.sidebar-nav .bi-chevron-down {
    transition: transform 0.2s;
}

.sidebar-nav .collapsed .bi-chevron-down {
    transform: rotate(-90deg);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(33,37,41,0.25);
    z-index: 1999;
    transition: opacity 0.2s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2050;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: transform 0.25s cubic-bezier(.4,2,.3,1), opacity 0.18s;
}

.bottom-nav-link {
    flex: 1 1 0;
    text-align: center;
    color: #222;
    text-decoration: none;
    font-size: 0.83rem;
    padding: 6px 0 2px 0;
    position: relative;
    transition: color 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bottom-nav-link i {
    font-size: 1rem;
    margin-bottom: 1px;
    display: block;
}

.bottom-nav-link.active,
.bottom-nav-link:active,
.bottom-nav-link:focus {
    color: #0d6efd;
}

.bottom-nav-link .bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 22%;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 18px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.mobile-bottom-nav.hide-bottom-nav {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Service Selection Modal */
.modal-backdrop.show {
    opacity: 1.0 !important;
    background: rgba(33, 37, 41, 0.7) !important;
    backdrop-filter: blur(9px);
}
/* Modern card and button styles */
.card, .service-card-option, .category-card {
    border-radius: 18px !important;
    box-shadow: 0 4px 24px rgba(13,110,253,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .service-card-option:hover, .category-card-link:hover .category-card {
    box-shadow: 0 8px 32px rgba(13,110,253,0.13);
    transform: translateY(-4px) scale(1.02);
}

#serviceSelectionModal.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#serviceSelectionModal .service-card-option {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    animation: cardFadeIn 0.7s forwards;
}

#serviceSelectionModal .modal-content {
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: none;
}

#serviceSelectionModal .modal-header {
    background: linear-gradient(90deg, #0d6efd 60%, #6c63ff 100%);
    color: #fff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom: none;
}

#serviceSelectionModal .modal-title {
    font-weight: 700;
    letter-spacing: 1px;
}

.service-card-option {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    cursor: pointer;
    background: #f8f9fa;
}

.service-card-option:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 24px rgba(13,110,253,0.13);
    background: #e9f0ff;
}

.service-card-option .card-body i {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.service-card-option:hover .card-body i {
    color: #0d6efd !important;
}

.service-card-option .btn {
    margin-top: 1rem;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Tooltips */
.chatbot-toggler::after {
    display: none;
}

.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #0d6efd;
}

.tooltip-inner {
    background: #0d6efd;
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* ===== ANIMATIONS ===== */
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes chatbot-bounce {
    0%, 100% { transform: translateY(0) scale(1);}
    10% { transform: translateY(-4px) scale(1.05);}
    20% { transform: translateY(-8px) scale(1.08);}
    30% { transform: translateY(-4px) scale(1.05);}
    40% { transform: translateY(0) scale(1);}
    60% { transform: translateY(0) scale(1);}
    80% { transform: translateY(-2px) scale(1.03);}
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cartBounce {
    0% { transform: scale(1);}
    60% { transform: scale(1.15);}
    100% { transform: scale(1);}
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}



@media (max-width: 768px) {
    .container-fluid {
        /* margin-top: 1px; */
        margin-bottom: 0px;
    }
    
    .navbar-collapse {
        max-width: 100%;
    }
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    .modal,
    .modal-dialog,
    .modal-content {
        z-index: 3000 !important;
    }
    .chatbot-window.active {
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        z-index: 3000 !important;
    }
    .chatbot-header .close-btn,
    .chatbot-window .close-btn {
        display: block !important;
        position: absolute;
        right: 12px;
        top: 12px;
        z-index: 10;
    }
    .chatbot-header{
        border-radius: 0 !important;
    }
    .chatbot-toggler {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
    }
    
    .chatbot-container {
        bottom: 70px !important;
        right: 18px !important;
        border-radius: 0 !important;
    }
    
    :target {
        scroll-margin-top: 200px;
    }
    
    #serviceSelectionModal .modal-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
    }
    #serviceSelectionModal .modal-content {
        height: 100vh !important;
        border-radius: 0 !important;
    }
    #serviceSelectionModal .modal-header{
        border-radius: 0 !important;
    }
    .service-card-option .card-body i {
        font-size: 2rem;
    }
    #helpCenterModal .modal-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
    }
    #helpCenterModal .modal-content {
        height: 100vh !important;
        border-radius: 0 !important;
    }
    
}

@media (max-width: 576px) {       
    .main-header .bi-person-circle,
    .main-header .bi-person,
    .main-header .bi-cart,
    .main-header [href="account.php"],
    .main-header [href="login.php"],
    .main-header [href="cart.php"] {
        display: none !important;
    }
}

@media (max-width: 400px) {
    .sidebar-nav {
        width: 100vw;
        min-width: 0;
    }
}

@media (min-width: 992px) {
    .sidebar-nav, 
    .sidebar-overlay {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDown 0.25s;
    }
    
    .navbar .dropdown-menu {
        margin-top: 0;
    }
}

