/* ============================================
   AIVON LABS — CUSTOM PREMIUM STYLES
   Glowing Green, Glassmorphism, Animations
   ============================================ */

/* === Google Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS Custom Properties === */
:root {
    --aivon-green: #208151;
    --aivon-lime: #C6F321;
    --aivon-dark: #0a1f13;
    --aivon-deepgreen: #0d2818;
    --glow-green: rgba(32, 129, 81, 0.6);
    --glow-lime: rgba(198, 243, 33, 0.5);
    --glow-intense: rgba(198, 243, 33, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --gradient-green: linear-gradient(135deg, #208151, #C6F321);
    --gradient-dark: linear-gradient(135deg, #0a1f13, #1a3a2a);
}

/* === SEARCH BAR — TEMPORARILY DISABLED ===
   Remove this block to re-enable the search bar across all pages */
.search-wrap,
button[aria-label="search"],
#search-btn {
    display: none !important;
}

/* === GLOBAL ENHANCEMENTS === */
body {
    font-family: 'Inter', 'Sora', sans-serif !important;
}

/* Smooth scroll for entire page */
html {
    scroll-behavior: smooth;
}

/* === GLOWING SELECTION HIGHLIGHT === */
::selection {
    background: var(--aivon-lime);
    color: var(--aivon-dark);
}

::-moz-selection {
    background: var(--aivon-lime);
    color: var(--aivon-dark);
}

/* === FOCUS GLOW EFFECT — Green glow on focus/select === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.form-control:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px var(--glow-green), 0 0 20px var(--glow-green), 0 0 40px rgba(32, 129, 81, 0.3) !important;
    border-color: var(--aivon-green) !important;
    transition: box-shadow 0.3s ease !important;
}

/* === ANIMATED GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, #208151, #5ede8f, #C6F321, #208151);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === HERO BANNER ENHANCEMENTS === */
.tech-banner {
    position: relative;
    min-height: 85vh !important;
    display: flex;
    align-items: center;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

/* Header starts transparent so it merges with banner */
.header-wrapper {
    z-index: 1100 !important;
    background-color: transparent !important;
    width: 100%;
    left: 0;
    top: 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease !important;
}

/* When scrolled, header becomes solid white with blur - smooth transition */
.header-wrapper.scroll-header {
    position: fixed !important;
    z-index: 1100 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Dark mode: scrolled header becomes dark */
body.dark-theme .header-wrapper.scroll-header {
    background-color: rgba(28, 28, 30, 0.95) !important;
}

/* Mobile: remove backdrop-filter so .menu-block position:fixed is
   relative to the viewport, not the header (backdrop-filter creates
   a new containing block that traps fixed children). */
@media (max-width: 991.98px) {
    .header-wrapper,
    .header-wrapper.scroll-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    /* Only scrolled header gets solid bg — default header keeps its page style */
    .header-wrapper.scroll-header {
        background-color: #fff !important;
    }
    body.dark-theme .header-wrapper.scroll-header {
        background-color: #1c1c1e !important;
    }
}



.tech-banner h1 {
    text-shadow: 0 0 40px rgba(198, 243, 33, 0.3);
}

/* Hero floating particles */
.tech-banner::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(198, 243, 33, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.8; }
}

/* === GLOWING CTA BUTTONS === */
.btn.bg-green,
.btn.bg-darkgreen {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 1;
}

.btn.bg-green:hover,
.btn.bg-darkgreen:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px var(--glow-green), 0 0 30px rgba(198, 243, 33, 0.4), 0 0 60px rgba(32, 129, 81, 0.2) !important;
}

.btn.bg-green::before,
.btn.bg-darkgreen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn.bg-green:hover::before,
.btn.bg-darkgreen:hover::before {
    animation: btnShine 0.6s ease forwards;
}

@keyframes btnShine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* === SERVICE CARDS — GLOW ON HOVER === */
.service-wrap .bg-lightgreen,
.service-wrap .bg-light4 {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.service-wrap .bg-lightgreen::before,
.service-wrap .bg-light4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.4s ease;
    z-index: 0;
}

.service-wrap .bg-lightgreen:hover,
.service-wrap .bg-light4:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 8px 32px rgba(32, 129, 81, 0.25), 0 0 20px rgba(198, 243, 33, 0.15) !important;
    border-color: var(--aivon-green) !important;
}

.service-wrap .bg-lightgreen:hover::before,
.service-wrap .bg-light4:hover::before {
    background: var(--gradient-green);
}

.service-wrap .bg-lightgreen:hover .text-green,
.service-wrap .bg-light4:hover .text-green {
    filter: drop-shadow(0 0 8px var(--glow-green));
    transition: filter 0.3s ease;
}

/* === ICON GLOW ON CARD HOVER === */
.service-wrap .text-green {
    transition: all 0.4s ease;
}

.service-wrap .bg-lightgreen:hover .text-green,
.service-wrap .bg-light4:hover .text-green {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(32, 129, 81, 0.6));
}

/* === SPLIDE SLIDER GLOW === */
.splide__slide {
    transition: all 0.4s ease !important;
}

.splide__slide:hover {
    box-shadow: 0 0 30px rgba(32, 129, 81, 0.3) !important;
}

/* Slider thumbnail active glow */
.main-thumb .splide__slide.is-active .bg-white {
    box-shadow: 0 0 20px var(--glow-green), 0 0 40px rgba(198, 243, 33, 0.2) !important;
    border: 2px solid var(--aivon-green) !important;
}

.main-thumb .splide__slide .bg-white {
    transition: all 0.4s ease !important;
}

.main-thumb .splide__slide:hover .bg-white {
    box-shadow: 0 0 15px rgba(32, 129, 81, 0.2) !important;
    transform: translateY(-2px);
}

/* Numbered circles glow */
.main-thumb .bg-deepgreen {
    transition: all 0.4s ease;
}

.main-thumb .splide__slide.is-active .bg-deepgreen {
    box-shadow: 0 0 20px var(--glow-green), 0 0 40px rgba(198, 243, 33, 0.3);
    background: var(--gradient-green) !important;
}

/* === ACCORDION GLOW === */
.accordion-button {
    transition: all 0.3s ease !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(32, 129, 81, 0.1), rgba(198, 243, 33, 0.08)) !important;
    border-left: 4px solid var(--aivon-green) !important;
    box-shadow: 0 0 15px rgba(32, 129, 81, 0.15) !important;
    color: var(--aivon-green) !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px var(--glow-green), 0 0 20px rgba(32, 129, 81, 0.2) !important;
}

.accordion-item {
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-item:hover {
    box-shadow: 0 4px 20px rgba(32, 129, 81, 0.12) !important;
}

/* === PRICING CARDS GLOW === */
.price-wrap .border {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
}

.price-wrap .border:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 8px 32px rgba(32, 129, 81, 0.2), 0 0 20px rgba(198, 243, 33, 0.1) !important;
    border-color: var(--aivon-green) !important;
}

/* Price number glow on hover */
.price-wrap .border:hover .display4-size {
    text-shadow: 0 0 20px rgba(32, 129, 81, 0.4);
    transition: text-shadow 0.3s ease;
}

/* Checkmark icons enhancement */
.bi-check-circle-fill {
    color: var(--aivon-green) !important;
    transition: all 0.3s ease;
}

.price-wrap .border:hover .bi-check-circle-fill {
    filter: drop-shadow(0 0 6px var(--glow-green));
    transform: scale(1.1);
}

/* === COUNTER/STATS SECTION === */
.counter-wrap {
    position: relative;
    overflow: hidden;
}

.counter-wrap::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(198, 243, 33, 0.08), transparent 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}

.counter-wrap::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(32, 129, 81, 0.1), transparent 70%);
    bottom: -50px;
    right: -50px;
    border-radius: 50%;
    animation: floatOrb 6s ease-in-out infinite reverse;
}

.exsit-counter {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(32, 129, 81, 0.15);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(32, 129, 81, 0.2), 0 0 30px rgba(198, 243, 33, 0.1);
    border-color: var(--aivon-green);
}

/* === WHY CHOOSE US — GLASSMORPHISM CARDS === */
.why-choose-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%);
}

.why-choose-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(32, 129, 81, 0.06), transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite;
}

/* Force text colors in light mode for glass cards */
.why-choose-section h2 {
    color: #212529 !important;
}

.why-choose-section p {
    color: #343a40 !important;
}

.glass-card h3 {
    color: #212529 !important;
}

.glass-card p {
    color: #495057 !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(32, 129, 81, 0.12);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent 30%, rgba(32, 129, 81, 0.3) 50%, rgba(198, 243, 33, 0.3) 70%, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(32, 129, 81, 0.15), 0 0 40px rgba(198, 243, 33, 0.08);
    border-color: transparent;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(32, 129, 81, 0.1), rgba(198, 243, 33, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.glass-card:hover .glass-card-icon {
    background: var(--gradient-green);
    box-shadow: 0 0 25px var(--glow-green);
    transform: scale(1.1) rotate(5deg);
}

.glass-card:hover .glass-card-icon svg {
    color: white !important;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

/* === CTA SECTION ENHANCED === */
.cta-wrapper {
    position: relative;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 31, 19, 0.92), rgba(32, 129, 81, 0.85));
    z-index: 1;
    border-radius: inherit;
}

.cta-wrapper .container {
    position: relative;
    z-index: 2;
}

/* Service page CTA only — blue gradient (primary palette) instead of green overlay */
.service-page-cta.cta-wrapper::before {
    background: linear-gradient(
        135deg,
        rgba(6, 14, 34, 0.97) 0%,
        rgba(15, 45, 95, 0.92) 28%,
        rgba(29, 78, 216, 0.88) 52%,
        rgba(14, 165, 233, 0.75) 72%,
        rgba(8, 22, 52, 0.96) 100%
    );
}

.service-page-cta h2.text-gray-900 {
    color: #f8fafc !important;
}

.service-page-cta p.text-gray-700 {
    color: rgba(226, 232, 240, 0.92) !important;
}

/* Glow dots decoration */
.glow-dot {
    position: absolute;
    border-radius: 50%;
    animation: pulseDot 3s ease-in-out infinite;
    z-index: 2;
}

.glow-dot-1 {
    width: 8px;
    height: 8px;
    background: var(--aivon-lime);
    top: 20%;
    left: 15%;
    box-shadow: 0 0 20px var(--glow-lime);
}

.glow-dot-2 {
    width: 12px;
    height: 12px;
    background: var(--aivon-green);
    bottom: 25%;
    right: 10%;
    box-shadow: 0 0 25px var(--glow-green);
    animation-delay: 1s;
}

.glow-dot-3 {
    width: 6px;
    height: 6px;
    background: var(--aivon-lime);
    top: 60%;
    left: 8%;
    box-shadow: 0 0 15px var(--glow-lime);
    animation-delay: 2s;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* === FOOTER ENHANCEMENTS === */
.footer-wrap {
    position: relative;
}

/* Light site theme: dark footers become a proper light surface (About, Contact, etc.) */
body:not(.dark-theme) .footer-wrap.dark-footer {
    background-color: #f8fafc !important;
    background-image: none !important;
    color: #0f172a !important;
    border-top: 1px solid #e2e8f0;
}

body:not(.dark-theme) .footer-wrap.dark-footer .text-gray-100,
body:not(.dark-theme) .footer-wrap.dark-footer .h4,
body:not(.dark-theme) .footer-wrap.dark-footer .footer-link-title {
    color: #0f172a !important;
}

body:not(.dark-theme) .footer-wrap.dark-footer .text-gray-500,
body:not(.dark-theme) .footer-wrap.dark-footer .text-gray-400 {
    color: #64748b !important;
}

body:not(.dark-theme) .footer-wrap.dark-footer .text-gray-300 {
    color: #475569 !important;
}

body:not(.dark-theme) .footer-wrap.dark-footer .bg-gray-800 {
    background-color: #e2e8f0 !important;
}

body:not(.dark-theme) .footer-wrap.dark-footer .btn-icon svg,
body:not(.dark-theme) .footer-wrap.dark-footer .btn-icon.text-white,
body:not(.dark-theme) .footer-wrap.dark-footer svg.text-white {
    color: #0f172a !important;
}

body:not(.dark-theme) .footer-wrap.dark-footer .separator-line.border-top,
body:not(.dark-theme) .footer-wrap.dark-footer .separator-line.border-end {
    border-color: #e2e8f0 !important;
}

body:not(.dark-theme) .footer-wrap.dark-footer .footer-link a {
    color: #475569 !important;
}

body:not(.dark-theme) .footer-wrap.dark-footer .footer-link a:hover {
    color: #0d6efd !important;
    text-shadow: none;
    padding-left: 8px !important;
}

body:not(.dark-theme) .footer-wrap.dark-footer .footer-link a::before {
    background: #0d6efd;
}

.footer-link a {
    transition: all 0.3s ease !important;
    position: relative;
}

.footer-link a:hover {
    color: var(--aivon-green) !important;
    padding-left: 8px !important;
    text-shadow: 0 0 10px rgba(32, 129, 81, 0.3);
}

.footer-link a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-green);
    transition: width 0.3s ease;
}

.footer-link a:hover::before {
    width: 100%;
}

.social-link a {
    transition: all 0.3s ease !important;
}

.social-link a:hover {
    background: var(--aivon-green) !important;
    box-shadow: 0 0 20px var(--glow-green) !important;
    transform: translateY(-3px);
}

.social-link a:hover svg {
    color: white !important;
}

/* === FOOTER BIG TEXT + SHIMMER === */
.footer-big-text {
    background-image: linear-gradient(90deg, 
        rgba(200,200,200,0.3) 0%, 
        rgba(32, 129, 81, 0.6) 50%, 
        rgba(200,200,200,0.3) 100%) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: footerShimmer 3s linear infinite !important;
}

@keyframes footerShimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* === HEADER NAV GLOW === */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease !important;
}

.navbar-nav .nav-link:hover {
    color: var(--aivon-green) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Register button glow */
.header-wrapper .btn.bg-green {
    transition: all 0.3s ease !important;
}

.header-wrapper .btn.bg-green:hover {
    box-shadow: 0 0 20px var(--glow-green), 0 0 40px rgba(198, 243, 33, 0.2) !important;
    transform: translateY(-2px);
}

/* === SCROLL ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--aivon-green), var(--aivon-lime));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aivon-green);
}

/* === LINK GLOW ON HOVER === */
.service-wrap a.btn:hover {
    color: var(--aivon-green) !important;
    text-shadow: 0 0 10px rgba(32, 129, 81, 0.3);
}

/* === ARROW ROUND BACK TO TOP GLOW === */
.arrow-round-wrap.green {
    transition: all 0.3s ease;
}

.arrow-round:hover .arrow-round-wrap.green {
    box-shadow: 0 0 25px var(--glow-green), 0 0 50px rgba(198, 243, 33, 0.2);
}

/* === DARK MODE ENHANCEMENTS === */
body.dark-theme .glass-card {
    background: rgba(13, 40, 24, 0.6);
    border-color: rgba(198, 243, 33, 0.15);
}

body.dark-theme .glass-card:hover {
    box-shadow: 0 20px 60px rgba(198, 243, 33, 0.1), 0 0 40px rgba(32, 129, 81, 0.2);
}

body.dark-theme .stat-card {
    background: rgba(13, 40, 24, 0.5);
    border-color: rgba(198, 243, 33, 0.1);
}

body.dark-theme .why-choose-section {
    background: linear-gradient(180deg, #0a1f13 0%, #111 50%, #0a1f13 100%);
}

/* Dark mode text colors — let template handle it */
body.dark-theme .why-choose-section h2,
body.dark-theme .glass-card h3 {
    color: #f8f9fa !important;
}

body.dark-theme .why-choose-section p,
body.dark-theme .glass-card p {
    color: #e9ecef !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .tech-banner {
        min-height: 60vh !important;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .glass-card-icon {
        width: 56px;
        height: 56px;
    }
}

/* === LOADING ANIMATION FOR PAGE === */
.preloader {
    background: var(--aivon-dark) !important;
}

.preloader .loading {
    border-color: rgba(198, 243, 33, 0.2) !important;
    border-top-color: var(--aivon-lime) !important;
}

/* === FIX: Thumbnail Slider Progress Overlay === */
/* The default .slider-bg-progress puts a solid color ::after that 
   covers the entire card. Fix: push it behind content with z-index
   and make it a subtle bottom progress bar instead of full cover. */
.slider-bg-progress .splide__slide {
    position: relative;
    overflow: hidden;
}

.slider-bg-progress .splide__slide::after {
    content: '';
    width: 0%;
    height: 4px !important;
    position: absolute;
    bottom: 0 !important;
    top: auto !important;
    left: 0;
    background: linear-gradient(90deg, var(--aivon-green), var(--aivon-lime)) !important;
    z-index: 1;
    border-radius: 0 0 1rem 1rem;
}

.slider-bg-progress .splide__slide.is-active::after {
    width: 100%;
    transition: width 5s linear;
}

/* Ensure card content stays above any overlay */
.slider-bg-progress .splide__slide > div {
    position: relative;
    z-index: 2;
}

/* ============================================
   MOBILE SIDEBAR (.menu-block) — DARK MODE
   Ensures the hamburger menu matches the site
   theme when body.dark-theme is active.
   ============================================ */
@media (max-width: 991.98px) {
    /* Sidebar panel background */
    body.dark-theme .menu-block {
        background: #1c1c1e !important;
        color: #f8f9fa !important;
    }

    /* Menu header area */
    body.dark-theme .menu-block .menu-head {
        color: #f8f9fa !important;
    }

    /* Close button icon */
    body.dark-theme .menu-block .menu-close {
        color: #f8f9fa !important;
    }
    body.dark-theme .menu-block .menu-close svg {
        stroke: #f8f9fa !important;
    }

    /* Nav links */
    body.dark-theme .menu-block .navbar-nav .nav-item .nav-link {
        color: #f8f9fa !important;
    }

    /* Sub-menu items */
    body.dark-theme .menu-block .navbar-nav .nav-item .sub-menu {
        background: #1c1c1e !important;
    }
    body.dark-theme .menu-block .navbar-nav .nav-item .sub-menu .sub-menu--item a {
        color: #e9ecef !important;
    }

    /* Mega-menu items */
    body.dark-theme .menu-block .navbar-nav .nav-item .mega-menu {
        background: #1c1c1e !important;
    }
    body.dark-theme .menu-block .navbar-nav .nav-item .mega-menu .mega-menu-header {
        color: #f8f9fa !important;
    }
    body.dark-theme .menu-block .navbar-nav .nav-item .mega-menu .mega-menu-sub a {
        color: #e9ecef !important;
    }

    /* Bottom section (buttons, text) */
    body.dark-theme .menu-block .menu-bottom {
        color: #f8f9fa !important;
    }

    /* Dark-btn toggle inside sidebar */
    body.dark-theme .menu-block .dark-btn {
        background: #343a40 !important;
        border-color: transparent !important;
        color: #e9ecef !important;
    }

    /* Overlay behind sidebar */
    body.dark-theme .menu-overlay.active {
        background-color: rgba(0, 0, 0, 0.7);
    }

    /* Hamburger icon — dark in light theme, white in dark theme */
    .mobile-menu-trigger {
        color: #333 !important;
    }
    .mobile-menu-trigger svg {
        stroke: #333 !important;
    }
    body.dark-theme .mobile-menu-trigger {
        color: #fff !important;
    }
    body.dark-theme .mobile-menu-trigger svg {
        stroke: #fff !important;
    }

    /* Dark-btn (theme toggle) — visible in light theme */
    .dark-btn {
        color: #333 !important;
    }
    body.dark-theme .dark-btn {
        color: #fff !important;
    }
}

/* ============================================
   FOOTER BIG TEXT — MOBILE RESPONSIVE
   Inline styles (150-160px) override main.css
   breakpoints, so !important is needed here.
   ============================================ */
@media (max-width: 767.98px) {
    .footer-big-text {
        font-size: 48px !important;
        letter-spacing: -2px !important;
        line-height: 0.8 !important;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-big-text {
        font-size: 80px !important;
        letter-spacing: -4px !important;
    }
}

/* ============================================
   FOOTER BIG TEXT — SHIMMER ANIMATION
   Moving light sweep across the text, using
   each page's brand color.
   ============================================ */
@keyframes textShimmer {
    0%   { background-position: -200% center; }
    50%  { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.footer-big-text {
    position: relative;
    background-image: linear-gradient(
        90deg,
        var(--shimmer-base, #eaeaea) 0%,
        var(--shimmer-base, #eaeaea) 30%,
        var(--shimmer-glow, #fff) 50%,
        var(--shimmer-base, #eaeaea) 70%,
        var(--shimmer-base, #eaeaea) 100%
    ) !important;
    background-size: 200% 100% !important;
    background-color: transparent !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: textShimmer 5s ease-in-out infinite !important;
    font-weight: 900 !important;
}

/* Page-specific shimmer colors */
/* Index (Aivon Labs) — orange to match page theme */
.page-index .footer-big-text {
    --shimmer-base: #7a3a0a;
    --shimmer-glow: #ff8c00;
}
/* AI & Software (home-eight) — cyan/teal */
.page-eight .footer-big-text {
    --shimmer-base: #0a5e5e;
    --shimmer-glow: #00e5ff;
}
/* Agriculture (home-five) — green */
.page-five .footer-big-text {
    --shimmer-base: #2a5a10;
    --shimmer-glow: #B8FB04;
}
/* Data Science (home-twelve) — green to match page theme */
.page-twelve .footer-big-text {
    --shimmer-base: #0a4a2a;
    --shimmer-glow: #00e676;
}
