:root {
    /* Color Palette - Digicoders Style */
    --primary-color: #0b5ed7;     /* Deep Blue */
    --primary-dark: #0044a8;      /* Darker Blue for hovers/headers */
    --accent-color: #ff6b00;      /* Vibrant Orange */
    --accent-hover: #e85d00;
    --secondary-accent: #198754;  /* Green for WhatsApp/Success */
    --text-main: #212529;
    --text-muted: #6c757d;
    --light-bg: #f4f7fc;
    --white: #ffffff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --shadow-premium: 0 10px 30px rgba(0,0,0,0.08);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Custom Utilities */
.text-accent { color: var(--accent-color) !important; }
.bg-primary-dark {
    background: linear-gradient(135deg, #09090b 0%, #18181b 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bg-primary-navy { background-color: var(--primary-navy) !important; }
.text-light-muted { color: #94a3b8 !important; }

/* Premium Buttons */
.btn-accent {
    background: #0056D2 !important;
    color: var(--white) !important;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px; /* Digicoders often uses slightly rounded corners, not fully pill shaped */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: #00409c !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white) !important;
}

.bg-primary { background-color: var(--primary-color) !important; }
.hover-accent:hover { color: var(--accent-color) !important; }
.fs-7 { font-size: 0.9rem; }
.fs-8 { font-size: 0.8rem; }

/* Navbar */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff !important;
}

.navbar.scrolled {
    padding: 0.3rem 0;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: #334155 !important;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.8rem 0.5rem;
}

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

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px;
}

.navbar-light .navbar-nav .nav-link:hover::after, 
.navbar-light .navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Navbar Vertical Separators (|) for Desktop */
@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
    }
    .navbar-nav .nav-item {
        display: flex;
        align-items: center;
    }
    .navbar-nav .nav-item:not(:last-child)::after {
        content: "|";
        color: #cbd5e1;
        margin: 0;
        font-weight: 300;
        opacity: 0.8;
        pointer-events: none;
    }
    .navbar-nav .nav-link {
        margin: 0 0.55rem !important;
    }
}

/* Premium Glassmorphic Dropdown styling */
.dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
    border-radius: 20px !important;
    padding: 0.75rem 0.5rem !important;
    margin: 0 !important;
    border-top: 4px solid var(--primary-color) !important;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-item {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569 !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    margin-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-bottom: none !important;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 4px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(11, 94, 215, 0.06) !important;
    color: var(--primary-color) !important;
    padding-left: 24px !important;
}

.dropdown-item:hover::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

/* Submenu caret */
.dropdown-submenu > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    font-size: 0.8rem;
}

/* Remove default bootstrap caret on submenus */
.dropdown-submenu > .dropdown-toggle::after {
    display: none;
}

/* Hover dropdown & Submenu animations for desktop */
@media all and (min-width: 992px) {
    .navbar .nav-item {
        position: relative;
    }
    
    .navbar .nav-item .dropdown-menu {
        position: absolute;
        top: 100% !important;
        left: 0 !important;
        /* Use padding-top instead of margin-top so the hover area is continuous.
           margin-top creates a dead gap — mouse leaves nav-item and menu closes. */
        margin-top: 0 !important;
        padding-top: 14px !important;
        display: block !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px) scale(0.97);
        transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                    visibility 0.3s;
    }

    /* Invisible bridge fills the space between nav-link bottom and dropdown top
       so hovering the gap does NOT break the dropdown visibility */
    .navbar .nav-item .dropdown-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 14px; /* matches padding-top above */
        background: transparent;
    }
    
    .navbar .nav-item:hover > .dropdown-menu,
    .navbar .nav-item .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    
    .dropdown-submenu {
        position: relative;
    }
    
    .dropdown-submenu .dropdown-menu {
        top: 100% !important;
        left: 0 !important;
        margin-top: 0 !important;
        padding-top: 8px !important;
        margin-left: 0 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px) scale(0.97);
        transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                    visibility 0.3s;
    }

    .dropdown-submenu .dropdown-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: transparent;
    }
    
    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
}

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

/* Hero Section - Light Theme */
/* Carousel / Slider Styles */
.hero-section {
    background: var(--light-bg);
    overflow: hidden;
    position: relative;
    height: 100vh;
    min-height: 600px;
}

#heroCarousel {
    height: 100%;
}

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

.slider-bg-img {
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.carousel-caption {
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.carousel-indicators {
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    margin: 0 5px;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--accent-color);
    width: 25px;
    border-radius: 10px;
}

.control-bg {
    background: rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .control-bg,
.carousel-control-next:hover .control-bg {
    background: var(--primary-color);
}

/* Slider Animations */
.carousel-item .animation-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.carousel-item.active .animation-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.carousel-item .animation-zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s ease 0.3s;
}

.carousel-item.active .animation-zoom-in {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.2s !important; }
.delay-2 { transition-delay: 0.4s !important; }
.delay-3 { transition-delay: 0.6s !important; }

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.stat-box {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Service Cards - Modern & Vibrant */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(11, 94, 215, 0.15);
    box-shadow: 0 20px 40px rgba(11, 94, 215, 0.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

/* Learn More Buttons */
.learn-more-btn {
    transition: all 0.3s ease;
}
.service-card:hover .learn-more-btn {
    color: var(--primary-color) !important;
}
.service-card:hover .learn-more-btn i {
    transform: translateX(6px);
}

/* Colorful Service Cards Theme Styling */
.service-card.theme-blue:hover {
    border-color: rgba(13, 110, 253, 0.3) !important;
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.12) !important;
}
.service-card.theme-blue:hover .service-icon {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.service-card.theme-cyan:hover {
    border-color: rgba(13, 202, 240, 0.4) !important;
    box-shadow: 0 20px 45px rgba(13, 202, 240, 0.12) !important;
}
.service-card.theme-cyan:hover .service-icon {
    background-color: #0dcaf0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(13, 202, 240, 0.3);
}

.service-card.theme-green:hover {
    border-color: rgba(25, 135, 84, 0.3) !important;
    box-shadow: 0 20px 45px rgba(25, 135, 84, 0.12) !important;
}
.service-card.theme-green:hover .service-icon {
    background-color: #198754 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.3);
}

.service-card.theme-purple:hover {
    border-color: rgba(111, 66, 193, 0.3) !important;
    box-shadow: 0 20px 45px rgba(111, 66, 193, 0.12) !important;
}
.service-card.theme-purple:hover .service-icon {
    background-color: #6f42c1 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.3);
}

.service-card.theme-orange:hover {
    border-color: rgba(253, 126, 20, 0.3) !important;
    box-shadow: 0 20px 45px rgba(253, 126, 20, 0.12) !important;
}
.service-card.theme-orange:hover .service-icon {
    background-color: #fd7e14 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(253, 126, 20, 0.3);
}

.service-card.theme-pink:hover {
    border-color: rgba(214, 51, 132, 0.3) !important;
    box-shadow: 0 20px 45px rgba(214, 51, 132, 0.12) !important;
}
.service-card.theme-pink:hover .service-icon {
    background-color: #d63384 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
}

.service-card.theme-teal:hover {
    border-color: rgba(32, 201, 151, 0.3) !important;
    box-shadow: 0 20px 45px rgba(32, 201, 151, 0.12) !important;
}
.service-card.theme-teal:hover .service-icon {
    background-color: #20c997 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(32, 201, 151, 0.3);
}

.service-card.theme-skyblue:hover {
    border-color: rgba(14, 165, 233, 0.3) !important;
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.12) !important;
}
.service-card.theme-skyblue:hover .service-icon {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.service-card.theme-yellow:hover {
    border-color: rgba(255, 193, 7, 0.4) !important;
    box-shadow: 0 20px 45px rgba(255, 193, 7, 0.12) !important;
}
.service-card.theme-yellow:hover .service-icon {
    background-color: #ffc107 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* Floating Enquiry Form */
.floating-enquiry {
    position: fixed;
    right: -320px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: var(--white);
    box-shadow: var(--shadow-premium);
    border-radius: 20px 0 0 20px;
    z-index: 1050;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-enquiry.active {
    right: 0;
}

.enquiry-tab {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: 600;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

/* WhatsApp & Other Floating */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    margin-top: 15px;
    transition: all 0.3s ease;
}

.widget-btn:hover {
    transform: scale(1.1);
    color: white;
}

.whatsapp-btn { background: #25d366; }
.call-btn { background: var(--secondary-accent); }

/* Statistics Section */
.stat-box {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .hero-section { padding-top: 140px; }
}

@media (max-width: 767px) {
    .hero-section {
        height: auto !important;
        min-height: auto !important;
        padding-top: 0;
    }
    #heroCarousel {
        height: auto !important;
    }
    .carousel-inner {
        height: auto !important;
    }
    .carousel-item {
        height: auto !important;
        position: relative;
    }
    .slider-bg-img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: fill !important;
        display: block;
    }
    .carousel-caption {
        position: absolute !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
        padding: 20px 15px 15px;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
    }
    .carousel-caption .container {
        margin-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .hero-title {
        font-size: 1.3rem !important;
        margin-bottom: 6px !important;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .carousel-caption .d-flex.flex-wrap {
        gap: 6px !important;
    }
    .carousel-caption .btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }
    .carousel-caption .d-inline-block {
        margin-bottom: 4px !important;
    }
    .carousel-overlay {
        display: none !important;
    }
}

/* Portfolio Gallery */
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: rgba(255, 107, 53, 0.1);
}

/* Footer - Premium Midnight Navy & Slate Theme */
.footer {
    background: linear-gradient(180deg, #090e1a 0%, #0d1527 100%) !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer h5.fw-bold {
    color: #ffffff !important;
}

.footer .text-light-muted {
    color: #94a3b8 !important;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-icon:hover {
    background: var(--accent-color) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

/* Premium Dark Translucent Newsletter */
.newsletter-form input {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.2) !important;
}

.newsletter-form input::placeholder {
    color: #64748b !important;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: auto;
    height: auto;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn .wa-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .navbar {
        background-color: var(--bg-light) !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    }
    .navbar-brand img {
        height: 48px !important;
    }
}

/* Categorized Services System Styling */
.services-dashboard {
    background-color: #f8fafc;
}

.search-box-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-icon-wrapper {
    position: relative;
}

.search-icon-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.search-input-premium {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid rgba(11, 94, 215, 0.1);
    background: var(--white);
    box-shadow: 0 10px 25px rgba(11, 94, 215, 0.05);
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-input-premium:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(11, 94, 215, 0.15);
}

.search-input-premium:focus + i {
    color: var(--primary-color);
}

.category-nav-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
}

.category-nav-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-nav-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
}

.category-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(11, 94, 215, 0.1);
    border-radius: 10px;
}

.category-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 94, 215, 0.2);
}

.category-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 2px solid transparent;
    background: var(--white);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.category-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.08);
    color: var(--primary-color);
}

.category-pill-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(11, 94, 215, 0.25);
}

.category-pill-btn i {
    font-size: 1.1rem;
}

/* Category Hero Banner */
.category-hero-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
    min-height: 280px;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 68, 168, 0.95) 0%, rgba(11, 94, 215, 0.85) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem 3rem;
    color: var(--white);
}

.category-hero-img-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    z-index: 0;
}

.category-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

@media (max-width: 991px) {
    .category-hero-img-container {
        display: none;
    }
    .category-hero-overlay {
        background: linear-gradient(135deg, rgba(0, 68, 168, 0.95) 0%, rgba(11, 94, 215, 0.9) 100%);
    }
    .category-hero-content {
        padding: 3rem 2rem;
    }
}

/* New Service Cards */
.subservice-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(11, 94, 215, 0.05);
    padding: 2.2rem 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.subservice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.4s ease;
}

.subservice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 94, 215, 0.08);
    border-color: rgba(11, 94, 215, 0.15);
}

.subservice-card:hover::before {
    height: 100%;
}

.subservice-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(11, 94, 215, 0.06);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.subservice-card:hover .subservice-icon-box {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.subservice-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.subservice-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.subservice-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.subservice-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
    border: none;
    background: transparent;
    padding: 0;
}

.subservice-btn:hover {
    gap: 12px;
    color: var(--accent-color);
}

/* Glassmorphism Inquiry Modal */
.modal-backdrop-blur {
    backdrop-filter: blur(10px);
}

.modal-content-premium {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.modal-header-premium {
    position: relative;
    padding: 3rem 2rem 2rem;
    background-color: var(--primary-dark);
    border: none;
    color: var(--white);
}

.modal-header-premium .close-btn-premium {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-header-premium .close-btn-premium:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.modal-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 68, 168, 0.95) 0%, rgba(11, 94, 215, 0.8) 100%);
    z-index: 1;
}

.modal-header-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.modal-header-content {
    position: relative;
    z-index: 2;
}

.modal-body-premium {
    padding: 2.5rem 2rem;
}

.form-floating-premium {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-premium input,
.form-floating-premium textarea {
    width: 100%;
    border-radius: 12px;
    border: 2px solid rgba(11, 94, 215, 0.08);
    padding: 1.2rem 1rem 0.5rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-floating-premium input:focus,
.form-floating-premium textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(11, 94, 215, 0.05);
}

.form-floating-premium label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

.form-floating-premium input:focus ~ label,
.form-floating-premium input:not(:placeholder-shown) ~ label,
.form-floating-premium textarea:focus ~ label,
.form-floating-premium textarea:not(:placeholder-shown) ~ label {
    top: 12px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-floating-premium textarea ~ label {
    top: 1.2rem;
    transform: none;
}

.form-floating-premium textarea:focus ~ label,
.form-floating-premium textarea:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: none;
}

.modal-form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(11, 94, 215, 0.4);
    pointer-events: none;
}

.form-floating-premium textarea ~ .modal-form-icon {
    top: 1.5rem;
}

/* Service Details Showcase inside Modal */
.modal-detail-badge {
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-results-card {
    background: var(--white);
    border-radius: 20px;
    padding: 4rem 2rem;
    border: 1px dashed rgba(11, 94, 215, 0.2);
}

/* Page-Specific Colors and Header Customizations */

/* --- 2. Services Page (page-services) --- */
/* Custom deep indigo-black banner for Services */
.page-services .bg-primary-dark {
    background: linear-gradient(135deg, #050507 0%, #0c102b 50%, #151838 100%) !important;
    border-bottom: 1px solid rgba(11, 94, 215, 0.15) !important;
}
.page-services .navbar-light .navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}
.page-services .navbar-light .navbar-nav .nav-link.active::after {
    background: var(--accent-color) !important;
}

/* --- 3. About Page (page-about) --- */
/* Custom warm deep copper/gold-black banner for About Company */
.page-about .bg-primary-dark {
    background: linear-gradient(135deg, #050507 0%, #1c0e05 50%, #2b170a 100%) !important;
    border-bottom: 1px solid rgba(255, 107, 0, 0.15) !important;
}
/* For About Company page, let's use the copper/gold active accent! */
.page-about .navbar-light .navbar-nav .nav-link.active {
    color: #ff8c00 !important;
}
.page-about .navbar-light .navbar-nav .nav-link.active::after {
    background: #ff8c00 !important;
}

/* --- 4. Portfolio Page (page-portfolio) --- */
/* Custom creative deep slate/ocean-black banner for Portfolio */
.page-portfolio .bg-primary-dark {
    background: linear-gradient(135deg, #050507 0%, #031c26 50%, #042e3d 100%) !important;
    border-bottom: 1px solid rgba(13, 202, 240, 0.15) !important;
}
/* For Portfolio page, let's use an ocean-blue/cyan active accent! */
.page-portfolio .navbar-light .navbar-nav .nav-link.active {
    color: #0dcaf0 !important;
}
.page-portfolio .navbar-light .navbar-nav .nav-link.active::after {
    background: #0dcaf0 !important;
}

/* --- 5. Contact Page (page-contact) --- */
/* Custom organic energetic emerald-black banner for Contact */
.page-contact .bg-primary-dark {
    background: linear-gradient(135deg, #050507 0%, #042419 50%, #063d2a 100%) !important;
    border-bottom: 1px solid rgba(25, 135, 84, 0.15) !important;
}
/* For Contact page, let's use an emerald green active accent! */
.page-contact .navbar-light .navbar-nav .nav-link.active {
    color: #198754 !important;
}
.page-contact .navbar-light .navbar-nav .nav-link.active::after {
    background: #198754 !important;
}

/* Premium Navbar Logo 3D Spin and Floating Micro-Animations */
.navbar-brand img {
    animation: logoFloating 3.5s ease-in-out infinite;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.navbar-brand:hover img {
    animation: none;
    transform: rotateY(360deg) scale(1.08) translateY(-3px) !important;
    filter: drop-shadow(0 15px 30px rgba(11, 94, 215, 0.18)) !important;
}

@keyframes logoFloating {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.02));
    }
    50% {
        transform: translateY(-4px) scale(1.02);
        filter: drop-shadow(0 10px 20px rgba(11, 94, 215, 0.06));
    }
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.02));
    }
}

/* Premium Company Name Brand Styling next to logo */
.company-brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--primary-dark) !important;
    letter-spacing: -0.5px;
    margin-left: 8px;
    display: inline-block;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.navbar-brand:hover .company-brand-name {
    color: var(--primary-color) !important;
}

/* Mobile viewport adjustments for brand name */
@media (max-width: 991px) {
    .company-brand-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .company-brand-name {
        font-size: 1.25rem;
        white-space: normal; /* Allow wrapping if needed */
        line-height: 1.2 !important;
    }
}

@media (max-width: 576px) {
    .company-brand-name {
        font-size: 1.1rem;
    }
    .navbar-brand img {
        height: 38px !important; /* Smaller logo to leave room for text */
    }
}

@media (max-width: 375px) {
    .company-brand-name {
        font-size: 0.95rem;
    }
    .navbar-brand img {
        height: 32px !important;
    }
}

/* --- Core Flagship Pillars Section CSS --- */
.flagship-pillars-section {
    background: #ffffff;
    padding-bottom: 4rem !important;
}

.flagship-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(11, 94, 215, 0.06);
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(11, 94, 215, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.flagship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.8;
    transition: height 0.3s ease;
}

.flagship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 94, 215, 0.09);
    border-color: rgba(11, 94, 215, 0.12);
}

.flagship-card:hover::before {
    height: 6px;
}

.flagship-icon-box {
    width: 65px;
    height: 65px;
    background: rgba(11, 94, 215, 0.06);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.flagship-card:hover .flagship-icon-box {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.08) rotate(5deg);
}

.flagship-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(11, 94, 215, 0.05);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
}

.flagship-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 750;
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.flagship-tagline-wrapper {
    margin-bottom: 1rem;
}

.flagship-tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    background: rgba(255, 107, 0, 0.06);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
}

.flagship-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.flagship-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    padding: 0;
    outline: none;
    cursor: pointer;
}

.flagship-btn:hover {
    gap: 12px;
    color: var(--accent-color);
}

.flagship-btn i {
    transition: transform 0.3s ease;
}

.flagship-btn:hover i {
    transform: translateX(4px);
}

/* Premium Card Cover Images inside Subservice Cards */
.subservice-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.subservice-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.subservice-card:hover .subservice-cover-img {
    transform: scale(1.08);
}

.subservice-icon-box {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--primary-color) !important;
    margin-bottom: 0 !important;
}

.subservice-card:hover .subservice-icon-box {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Responsive adjustments for Banners Carousel */
@media (max-width: 991px) {
    .hero-section {
        height: 100vh !important;
        min-height: 500px !important;
        padding-top: 0 !important;
        background: #000 !important;
    }
    .hero-section #heroCarousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 100% !important;
    }
    .slider-bg-img {
        object-fit: cover !important;
        height: 100% !important;
    }
    /* Adjust buttons position on mobile screens for nice placement */
    .hero-section .carousel-caption {
        padding-top: 80px !important;
        padding-bottom: 1.5rem !important;
    }
    .hero-section .carousel-caption .container {
        padding-bottom: 0 !important;
    }
}

/* Animated Brand Logo with Orbiting Glow Ring effect */
.navbar-brand img {
    animation: logoOrbitAnimation 8s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, filter;
}

@keyframes logoOrbitAnimation {
    0% {
        transform: rotate(0deg) translateY(0) scale(1);
        filter: drop-shadow(0 0 0px rgba(11, 94, 215, 0));
    }
    25% {
        transform: rotate(4deg) translateY(-2px) scale(1.02);
        filter: drop-shadow(0 4px 10px rgba(11, 94, 215, 0.3));
    }
    50% {
        transform: rotate(-3deg) translateY(2px) scale(0.98);
        filter: drop-shadow(0 2px 6px rgba(255, 107, 0, 0.2));
    }
    75% {
        transform: rotate(3deg) translateY(-1px) scale(1.01);
        filter: drop-shadow(0 4px 8px rgba(11, 94, 215, 0.25));
    }
    100% {
        transform: rotate(0deg) translateY(0) scale(1);
        filter: drop-shadow(0 0 0px rgba(11, 94, 215, 0));
    }
}

/* Premium Industries & Portfolio Micro-interactions */
.hover-translate-y {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.hover-translate-y:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 94, 215, 0.08) !important;
    border-color: rgba(11, 94, 215, 0.15) !important;
}

.portfolio-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 20px;
}
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium) !important;
}
.portfolio-card img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-card:hover img {
    transform: scale(1.1);
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1 !important;
}
.portfolio-overlay {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Responsive dividers for Trust Highlight Strip */
@media (min-width: 992px) {
    .trust-border-end {
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
}

/* Learn More Button & Card Interactive Styles */
.learn-more-btn {
    color: var(--accent-color);
    transition: all 0.3s ease;
}
.service-card:hover .learn-more-btn {
    color: #ffffff !important;
}
.service-card:hover .learn-more-btn i {
    transform: translateX(5px);
}

/* Highlighted Nav Get Quote Button */
.btn-nav-quote {
    background: var(--accent-color) !important;
    color: var(--white) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25) !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}
.btn-nav-quote:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4) !important;
    transform: translateY(-2px);
    color: var(--white) !important;
}

/* Premium Client Brand Logos Section */
.client-brand-section {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 in one row */
    gap: 1.75rem;
    align-items: center;
    justify-items: center;
    max-width: 1600px; /* Expanded container to comfortably fit larger cards */
    margin: 0 auto;
}
.brand-logo-card {
    background: #ffffff;
    padding: 0.3rem;         /* Minimal padding — removes excess whitespace */
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;        /* Increased size by 40% */
    height: 224px;           /* Increased size by 40% */
    overflow: hidden;
}
.brand-logo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}
.brand-logo-card img {
    width: 100%;             /* Fill the full card width */
    height: 100%;            /* Fill the full card height */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;     /* Keep aspect ratio, no crop */
    padding: 8px;            /* Small inner breathing room only */
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}
.brand-logo-card:hover img {
    transform: scale(1.08);
    opacity: 1;
}

@media (max-width: 1199px) {
    .brand-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 767px) {
    .brand-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 480px) {
    .brand-logo-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}


/* ================================================================
   QBS AI Chatbot Widget
   ================================================================ */

/* Trigger Button */
#qbs-chat-trigger {
    position: fixed;
    bottom: 82px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0b5ed7 0%, #6f42c1 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(11, 94, 215, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: chatPulse 2.5s ease-in-out infinite;
}
#qbs-chat-trigger:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 32px rgba(11, 94, 215, 0.55);
    animation: none;
}
#qbs-chat-trigger .chat-trigger-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
#qbs-chat-trigger .chat-notif-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ff6b00;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: notifBlink 1.5s ease-in-out infinite;
}

@keyframes chatPulse {
    0%   { box-shadow: 0 4px 24px rgba(11,94,215,0.45); }
    50%  { box-shadow: 0 4px 36px rgba(111,66,193,0.6); }
    100% { box-shadow: 0 4px 24px rgba(11,94,215,0.45); }
}
@keyframes notifBlink {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.6; transform:scale(1.3); }
}

/* Chat Window */
#qbs-chat-window {
    position: fixed;
    bottom: 150px;
    right: 24px;
    width: 370px;
    max-height: 560px;
    z-index: 9998;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(11,94,215,0.08);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}
#qbs-chat-window.qbs-chat-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Header */
.qbs-chat-header {
    background: linear-gradient(135deg, #0b5ed7 0%, #6f42c1 100%);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.qbs-chat-header .qbs-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}
.qbs-chat-header .qbs-avatar::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #25d366;
    border-radius: 50%;
    border: 2px solid #0b5ed7;
}
.qbs-chat-header .qbs-header-info h6 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}
.qbs-chat-header .qbs-header-info small {
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
}
.qbs-chat-close {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.qbs-chat-close:hover { background: rgba(255,255,255,0.3); }

/* Quick Chips */
.qbs-quick-chips {
    padding: 10px 14px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f8f9fc;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.qbs-chip {
    background: #fff;
    border: 1px solid rgba(11,94,215,0.2);
    color: #0b5ed7;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}
.qbs-chip:hover {
    background: #0b5ed7;
    color: #fff;
    border-color: #0b5ed7;
    transform: translateY(-1px);
}

/* Messages Area */
.qbs-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.qbs-chat-messages::-webkit-scrollbar { width: 4px; }
.qbs-chat-messages::-webkit-scrollbar-track { background: transparent; }
.qbs-chat-messages::-webkit-scrollbar-thumb { background: rgba(11,94,215,0.2); border-radius: 4px; }

/* Message Bubbles */
.qbs-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: msgSlideIn 0.3s ease;
}
@keyframes msgSlideIn {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}
.qbs-msg.bot { flex-direction: row; }
.qbs-msg.user { flex-direction: row-reverse; }

.qbs-msg .qbs-bot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0b5ed7,#6f42c1);
    color:#fff;
    font-size:0.7rem;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.qbs-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.55;
    word-break: break-word;
}
.qbs-msg.bot .qbs-bubble {
    background: #f0f4ff;
    color: #1a2340;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(11,94,215,0.08);
}
.qbs-msg.user .qbs-bubble {
    background: linear-gradient(135deg,#0b5ed7,#6f42c1);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.qbs-bubble a {
    color: #ff6b00;
    font-weight: 600;
    text-decoration: none;
}
.qbs-bubble a:hover { text-decoration: underline; }
.qbs-bubble .qbs-action-btn {
    display: inline-block;
    margin-top: 8px;
    background: linear-gradient(135deg,#ff6b00,#d85c00);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.qbs-bubble .qbs-action-btn:hover { transform: translateY(-1px); color:#fff; }

/* Typing Indicator */
.qbs-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #f0f4ff;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(11,94,215,0.08);
    width: fit-content;
}
.qbs-typing span {
    width: 7px;
    height: 7px;
    background: #0b5ed7;
    border-radius: 50%;
    display: inline-block;
    animation: typingDot 1.2s ease-in-out infinite;
}
.qbs-typing span:nth-child(2) { animation-delay: 0.2s; }
.qbs-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%,80%,100% { transform: translateY(0); opacity:0.4; }
    40%          { transform: translateY(-5px); opacity:1; }
}

/* Input Area */
.qbs-chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    flex-shrink: 0;
}
.qbs-chat-input input {
    flex: 1;
    border: 1.5px solid rgba(11,94,215,0.15);
    border-radius: 50px;
    padding: 9px 16px;
    font-size: 0.85rem;
    outline: none;
    font-family: 'Inter', sans-serif;
    background: #f8f9fc;
    transition: border-color 0.2s ease;
}
.qbs-chat-input input:focus { border-color: #0b5ed7; background: #fff; }
.qbs-chat-input input::placeholder { color: #9da5b4; }
.qbs-send-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg,#0b5ed7,#6f42c1);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.qbs-send-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(11,94,215,0.4); }
.qbs-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Timestamp */
.qbs-ts {
    font-size: 0.68rem;
    color: #9da5b4;
    text-align: center;
    margin: -4px 0;
}

/* Mobile */
@media (max-width: 480px) {
    #qbs-chat-window {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 144px;
    }
    #qbs-chat-trigger {
        right: 10px;
        padding: 10px 16px;
        font-size: 0.82rem;
    }
}
