/* Branding Colors System: Blue, White, Black */
:root {
    --primary: #2563EB; /* Clean Blue */
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --secondary: #000000;
    --accent: #1D4ED8;
    --dark-text: #0a0a0a;
    --muted-text: #525252;
    --bg-white: #ffffff;
    --bg-slate-50: #f8fafc;
    --bg-slate-900: #0a0a0a;
    --border-slate-100: #e2e8f0;
}

/* Dark Mode Variables */
[data-theme='dark'] {
    --primary: #3B82F6;
    --secondary: #ffffff;
    --accent: #60A5FA;
    --dark-text: #f5f5f5;
    --muted-text: #a3a3a3;
    --bg-white: #000000;
    --bg-slate-50: #0a0a0a;
    --bg-slate-900: #000000;
    --border-slate-100: #262626;
}

html {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Fluid responsive base root sizing: adapts smoothly across all system scales */
    font-size: clamp(13.5px, 0.45vw + 9.5px, 16px);
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    color: var(--dark-text);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    zoom: 1 !important;
}

/* Full Width Layout - Expands all site sections and containers across entire screen */
.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: clamp(1rem, 3.5vw, 3.5rem) !important;
    padding-right: clamp(1rem, 3.5vw, 3.5rem) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Guaranteed Pure White for white text classes */
.text-white,
h1.text-white,
h2.text-white,
h3.text-white,
h4.text-white,
p.text-white,
span.text-white,
a.text-white {
    color: #ffffff !important;
}

/* High-Visibility Rules for Hero Banners & Blue Gradient / Dark Headers (Below Breadcrumbs) */
section.bg-slate-900 h1,
section.bg-slate-950 h1,
section.bg-black h1,
.bg-slate-900 h1,
.bg-slate-950 h1,
.bg-black h1,
section.bg-slate-900 h2,
section.bg-slate-950 h2,
section.bg-black h2,
.bg-slate-900 h2,
.bg-slate-950 h2,
.bg-black h2,
section.bg-slate-900 h3,
section.bg-slate-950 h3,
section.bg-black h3,
.bg-slate-900 h3,
.bg-slate-950 h3,
.bg-black h3 {
    color: #ffffff !important;
}

/* Breadcrumb Navigation Styling */
nav[aria-label="Breadcrumb"] ol li,
nav[aria-label="Breadcrumb"] span,
nav[aria-label="Breadcrumb"] a {
    color: #cbd5e1 !important;
}
nav[aria-label="Breadcrumb"] a:hover {
    color: #60a5fa !important;
}
nav[aria-label="Breadcrumb"] .text-cyan-400,
nav[aria-label="Breadcrumb"] .text-blue-400 {
    color: #38bdf8 !important;
}

/* Black & Dark Background Divs - High Contrast Text */
.bg-black,
.bg-slate-950,
.bg-slate-900 {
    color: #ffffff;
}

.bg-black p,
.bg-slate-950 p,
.bg-slate-900 p {
    color: #f1f5f9;
}

.bg-black .text-slate-400,
.bg-slate-950 .text-slate-400,
.bg-slate-900 .text-slate-400,
.bg-black .text-slate-500,
.bg-slate-950 .text-slate-500,
.bg-slate-900 .text-slate-500,
.bg-black .text-slate-600,
.bg-slate-950 .text-slate-600,
.bg-slate-900 .text-slate-600 {
    color: #e2e8f0 !important; /* Crisp light slate/white instead of dim dark grey */
}

.bg-black .text-slate-300,
.bg-slate-950 .text-slate-300,
.bg-slate-900 .text-slate-300 {
    color: #ffffff !important;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

@media (hover: hover) and (pointer: fine) {

    .cursor-dot,
    .cursor-outline {
        opacity: 1;
    }
}

/* Navbar Action Icons & Theme Toggle Hover Styling */
.nav-action-btn {
    position: relative;
    width: 2.375rem;
    height: 2.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-action-btn:hover {
    transform: translateY(-2px) scale(1.06);
    background-color: #ffffff;
    border-color: rgba(203, 213, 225, 1);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.08);
}

.nav-action-btn:active {
    transform: translateY(0) scale(0.95);
}

[data-theme='dark'] .nav-action-btn {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: rgba(51, 65, 85, 0.85);
}

[data-theme='dark'] .nav-action-btn:hover {
    background-color: #1e293b;
    border-color: rgba(71, 85, 105, 1);
    box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.45);
}

/* Theme toggle icon rotate effect on hover */
.theme-toggle:hover i {
    transform: rotate(20deg) scale(1.15);
}

.theme-toggle i {
    transition: transform 0.3s ease, color 0.2s ease;
}

/* WhatsApp icon hover */
.nav-action-whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.12) !important;
    border-color: rgba(37, 211, 102, 0.35) !important;
}

/* Instagram icon hover */
.nav-action-instagram:hover {
    background-color: rgba(225, 48, 108, 0.12) !important;
    border-color: rgba(225, 48, 108, 0.35) !important;
}

/* TikTok icon hover */
.nav-action-tiktok:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

[data-theme='dark'] .nav-action-tiktok:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* LinkedIn icon hover */
.nav-action-linkedin:hover {
    background-color: rgba(10, 102, 194, 0.12) !important;
    border-color: rgba(10, 102, 194, 0.35) !important;
}

/* Navbar standalone social icons (no background, larger & animated) */
.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.nav-social-link:hover {
    transform: translateY(-2px) scale(1.18);
    opacity: 0.92;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    z-index: 1000;
}

/* Preloader Disabled - Guarantees Instant Content Rendering & Prevents Blank Screens */
#preloader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Visibility Safeguard: Ensures content with data-aos is never stuck hidden */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-slate-100);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Back to Top - Positioned above WhatsApp and Bot so zero overlap occurs */
#back-to-top {
    position: fixed;
    bottom: 152px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.35);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-4px);
    background: #171717;
    color: #ffffff;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5);
}

/* Moving Top Bar Animation (Left toward Right) */
@keyframes topBarScroll {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.top-bar-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    background: #000000;
    user-select: none;
}

.top-bar-track {
    display: inline-flex;
    width: max-content;
    animation: topBarScroll 32s linear infinite;
    will-change: transform;
}

.top-bar-marquee:hover .top-bar-track,
.top-bar-track:hover {
    animation-play-state: paused;
}

/* Universal Button Styling: Black Background & White Text */
button:not(.sidebar-link):not(.mobile-tab-btn):not(.nav-social-link):not(.theme-toggle):not(#proton-bot-launcher):not(.bot-chip):not(#proton-bot-refresh):not(#proton-bot-close):not(.btn-blue):not([class*="bg-blue"]):not([class*="bg-primary"]):not(.mobile-dropdown-btn):not(#mobile-menu button):not(.home-curr-btn):not(.webdev-curr-btn):not(.pos-curr-btn):not(.currency-btn):not(.nav-action-btn):not(#close-btn):not(#menu-btn),
a[class*="rounded-xl"][class*="bg-"]:not(.nav-action-btn):not(.nav-social-link):not(.bg-white\/5):not(.bg-white\/10):not(.btn-blue):not([class*="bg-blue"]):not([class*="bg-primary"]):not(.home-curr-btn),
a[class*="rounded-2xl"][class*="bg-"]:not(.nav-action-btn):not(.nav-social-link):not(.bg-white\/5):not(.bg-white\/10):not(.btn-blue):not([class*="bg-blue"]):not([class*="bg-primary"]),
.btn-black,
input[type="submit"]:not(.btn-blue) {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

button:not(.sidebar-link):not(.mobile-tab-btn):not(.nav-social-link):not(.theme-toggle):not(#proton-bot-launcher):not(.bot-chip):not(#proton-bot-refresh):not(#proton-bot-close):not(.btn-blue):not([class*="bg-blue"]):not([class*="bg-primary"]):not(.mobile-dropdown-btn):not(#mobile-menu button):not(.home-curr-btn):not(.webdev-curr-btn):not(.pos-curr-btn):not(.currency-btn):not(.nav-action-btn):not(#close-btn):not(#menu-btn):hover,
a[class*="rounded-xl"][class*="bg-"]:not(.nav-action-btn):not(.nav-social-link):not(.btn-blue):not([class*="bg-blue"]):not([class*="bg-primary"]):not(.home-curr-btn):hover,
a[class*="rounded-2xl"][class*="bg-"]:not(.nav-action-btn):not(.nav-social-link):not(.btn-blue):not([class*="bg-blue"]):not([class*="bg-primary"]):hover,
.btn-black:hover,
input[type="submit"]:not(.btn-blue):hover {
    background-color: #171717 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Mobile Menu Dropdowns Clean Transparency & Styling */
#mobile-menu button,
#mobile-menu .mobile-dropdown-btn,
.mobile-dropdown-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
    padding: 0.5rem 0 !important;
}

#mobile-menu button:hover,
#mobile-menu .mobile-dropdown-btn:hover,
.mobile-dropdown-btn:hover {
    background: transparent !important;
    background-color: transparent !important;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Mobile Submenu Dropdown Container */
#services-mobile,
#locations-mobile,
#courses-mobile {
    background: transparent !important;
    background-color: transparent !important;
}

/* Strategic Accent: Blue Background with White Text for Primary Action & Hero Buttons */
.btn-blue,
a.btn-blue,
button.btn-blue,
a[class*="bg-blue-600"],
button[class*="bg-blue-600"],
a[class*="bg-primary"],
button[class*="bg-primary"] {
    background-color: #2563EB !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-blue:hover,
a.btn-blue:hover,
button.btn-blue:hover,
a[class*="bg-blue-600"]:hover,
button[class*="bg-blue-600"]:hover,
a[class*="bg-primary"]:hover,
button[class*="bg-primary"]:hover {
    background-color: #1D4ED8 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45) !important;
}

/* Particles Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Hover effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* Custom Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-tape {
    background: var(--bg-slate-50);
    padding: 1rem 0;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--border-slate-100);
    border-bottom: 1px solid var(--border-slate-100);
    z-index: 20;
    position: relative;
    overflow: hidden;
}

[data-theme='dark'] .marquee-tape {
    background: var(--bg-slate-900);
    border-color: var(--border-slate-100);
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 0.5rem 0;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    padding: 0 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-text);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
}

[data-theme='dark'] .marquee-item {
    color: var(--bg-white);
}

.marquee-item::after {
    content: "•";
    color: var(--primary);
}

/* Theme Toggle Button Style - Transparent without Background */
.theme-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0.25rem !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.12);
}

/* Floating social icons */
.floating-social {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--dark-text);
}

.social-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

/* Mobile Menu Enhancements */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    background: var(--bg-white);
}

[data-theme='dark'] #mobile-menu {
    background: var(--bg-slate-900);
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Global Overrides for Dark Mode Compatibility */
[data-theme='dark'] .bg-white:not(#proton-bot-launcher),
[data-theme='dark'] .bg-slate-50,
[data-theme='dark'] .bg-slate-100 {
    background-color: var(--bg-white) !important;
}

/* Floating Bot Launcher Styling & Dark Mode Guaranteed Visibility */
#proton-bot-launcher {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25) !important;
}

[data-theme='dark'] #proton-bot-launcher {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 10px 25px -5px rgba(0, 0, 0, 0.8) !important;
}

#proton-bot-launcher .material-symbols-outlined,
[data-theme='dark'] #proton-bot-launcher .material-symbols-outlined {
    color: #000000 !important;
}

[data-theme='dark'] .text-slate-900,
[data-theme='dark'] .text-slate-800,
[data-theme='dark'] .text-slate-700,
[data-theme='dark'] .text-secondary {
    color: var(--dark-text) !important;
}

[data-theme='dark'] .text-slate-600,
[data-theme='dark'] .text-slate-500 {
    color: var(--muted-text) !important;
}

[data-theme='dark'] .border-slate-100,
[data-theme='dark'] .border-slate-200 {
    border-color: var(--border-slate-100) !important;
}

[data-theme='dark'] .shadow-xl,
[data-theme='dark'] .shadow-2xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4) !important;
}

/* Nav Link & Underline Hover Animation */
.nav-link {
    position: relative;
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
    transition: color 0.25s ease;
    padding-bottom: 3px;
}

[data-theme='dark'] .nav-link {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: -4px;
    left: 0;
    background-color: #2563EB; /* Vibrant Blue line */
    border-radius: 9999px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Material Symbols Outlined Styling */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* ==========================================================================
   Navbar Message Bubble Dropdowns
   ========================================================================== */

/* Message Bubble Dropdown Container */
.nav-bubble-dropdown {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 26px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

[data-theme='dark'] .nav-bubble-dropdown {
    background: #090d16;
    border: 1.5px solid #1e293b;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(37, 99, 235, 0.12);
}

/* Chat Speech Bubble Pointer Notch at top */
.nav-bubble-pointer {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-top: 1.5px solid #e2e8f0;
    border-left: 1.5px solid #e2e8f0;
    z-index: 20;
    pointer-events: none;
    border-top-left-radius: 4px;
}

.nav-bubble-pointer.nav-bubble-pointer-left {
    left: 36px !important;
    transform: rotate(45deg) !important;
}

.nav-bubble-pointer.nav-bubble-pointer-locations {
    left: 48px !important;
    transform: rotate(45deg) !important;
}

.nav-bubble-pointer.nav-bubble-pointer-academy {
    left: 64px !important;
    transform: rotate(45deg) !important;
}

.nav-bubble-pointer.nav-bubble-pointer-tools {
    left: 78px !important;
    transform: rotate(45deg) !important;
}

[data-theme='dark'] .nav-bubble-pointer {
    background: #090d16;
    border-top: 1.5px solid #1e293b;
    border-left: 1.5px solid #1e293b;
}

/* Explicit Dark Mode Overrides for Global Header & Tools Sidebar */
[data-theme='dark'] #navbar,
[data-theme='dark'] #navbar > div:not(.top-bar-marquee),
html.dark #navbar,
html.dark #navbar > div:not(.top-bar-marquee) {
    background-color: #030712 !important;
    border-color: #1f2937 !important;
}

[data-theme='dark'] #sidebar-drawer,
html.dark #sidebar-drawer {
    background-color: #030712 !important;
    border-color: #1f2937 !important;
}

[data-theme='dark'] .sidebar-link,
html.dark .sidebar-link {
    color: #94a3b8 !important;
}

[data-theme='dark'] .sidebar-link:hover,
html.dark .sidebar-link:hover {
    background-color: #111827 !important;
    color: #ffffff !important;
}

[data-theme='dark'] .sidebar-link.active,
html.dark .sidebar-link.active {
    background-color: #1e3a8a !important;
    color: #93c5fd !important;
    border-color: #3b82f6 !important;
}

/* Individual Bubble Item Card */
.nav-bubble-card {
    display: block;
    padding: 10px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
}

.nav-bubble-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.18);
}

[data-theme='dark'] .nav-bubble-card {
    background: #111827;
    border: 1px solid #1f2937;
}

[data-theme='dark'] .nav-bubble-card:hover {
    background: #1e293b;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.25);
}

/* Clear High-Contrast Bubble Text */
.nav-bubble-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a !important; /* Rich crisp black/slate in light mode */
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.nav-bubble-card:hover .nav-bubble-title {
    color: #2563EB !important;
}

[data-theme='dark'] .nav-bubble-title {
    color: #ffffff !important; /* Pure white in dark mode */
}

[data-theme='dark'] .nav-bubble-card:hover .nav-bubble-title {
    color: #60a5fa !important;
}

.nav-bubble-desc {
    font-size: 11.5px;
    font-weight: 500;
    color: #334155 !important; /* High contrast legible dark slate in light mode */
    line-height: 1.35;
    margin-top: 3px;
}

[data-theme='dark'] .nav-bubble-desc {
    color: #cbd5e1 !important; /* High contrast bright slate in dark mode */
}

/* Category header inside bubble dropdown */
.nav-bubble-header {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a !important;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-left: 2px;
}

[data-theme='dark'] .nav-bubble-header {
    color: #94a3b8 !important;
}

/* ==========================================================================
   Fire Menu Button & Animated Flame Transitions
   ========================================================================== */
@keyframes flameIdleFlicker {
    0%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
        filter: drop-shadow(0 0 3px rgba(249, 115, 22, 0.5));
    }
    20% {
        transform: scale(1.08, 0.94) translateY(-1px) rotate(-3deg);
        filter: drop-shadow(0 0 7px rgba(239, 68, 68, 0.65));
    }
    40% {
        transform: scale(0.95, 1.06) translateY(-2px) rotate(2.5deg);
        filter: drop-shadow(0 0 9px rgba(245, 158, 11, 0.6));
    }
    60% {
        transform: scale(1.06, 0.96) translateY(-1px) rotate(-2deg);
        filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.75));
    }
    80% {
        transform: scale(0.97, 1.03) translateY(0) rotate(1.5deg);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.55));
    }
}

@keyframes fireBlastOpen {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 4px #f97316);
    }
    25% {
        transform: scale(0.75) rotate(-15deg);
        filter: drop-shadow(0 0 8px #ea580c);
    }
    55% {
        transform: scale(1.45) rotate(20deg);
        filter: drop-shadow(0 0 22px #ef4444) brightness(1.35);
    }
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 5px #f97316);
    }
}

@keyframes fireExtinguishClose {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    35% {
        transform: scale(1.35) rotate(-25deg);
        filter: drop-shadow(0 0 18px #f97316);
    }
    65% {
        transform: scale(0.6) rotate(15deg);
        filter: grayscale(1) opacity(0.5);
    }
    100% {
        transform: scale(1) rotate(0deg);
        filter: none;
        opacity: 1;
    }
}

.nav-fire-btn .fire-icon {
    display: inline-block;
    color: #f97316;
    animation: flameIdleFlicker 3s ease-in-out infinite;
    transform-origin: 50% 90%;
}

.nav-fire-btn:hover .fire-icon {
    animation-duration: 1.2s;
    color: #ef4444;
}

.nav-fire-btn.fire-open-anim .fire-icon {
    animation: fireBlastOpen 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.nav-fire-btn.fire-close-anim .fire-icon {
    animation: fireExtinguishClose 0.55s ease-out forwards !important;
}

.nav-fire-close-btn:hover .fire-close-icon {
    color: #ef4444;
}

/* =========================================================
   ZOOM-SCALE RESPONSIVENESS SAFEGUARDS (110% – 200% zoom)
   Prevents logo collapse and horizontal overflow at any scale
   ========================================================= */

/* Logo: always visible, pristine aspect-ratio, never distorted or stretched */
.logo-img {
    flex-shrink: 0 !important;
    height: 38px !important;
    max-height: 40px !important;
    width: auto !important;
    aspect-ratio: 2683 / 768 !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Logo container also protected */
#navbar a[aria-label*="Home"],
#navbar a[aria-label*="Proton"] {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    width: auto !important;
}

/* Prevent horizontal overflow at all screen sizes / zoom levels */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Navbar: never overflows horizontally */
#navbar {
    width: 100%;
    max-width: 100vw;
}

/* All images are fluid by default */
img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   NAVBAR RESPONSIVE SCALING (100%, 110%, 125%, 150%, 175%, 200% Zoom)
   Guarantees 100% responsiveness across every scale:
   - 1320px+ (100%, 110%, 125% on 1080p+): Sleek Desktop Menu + Dropdowns + Quote CTA
   - Below 1320px (125% on laptops, 150%, 175%, 200% Zoom & Mobile/Tablet): Smooth Animated Fire Hamburger Menu Drawer
   ========================================================= */

/* Desktop menu: hidden on narrow/zoomed screens (<1320px), shown from 1320px+ */
.nav-desktop-menu {
    display: none;
}
@media (min-width: 1320px) {
    .nav-desktop-menu {
        display: flex;
        align-items: center;
        gap: clamp(0.35rem, 0.65vw, 1rem);
    }
    .nav-desktop-menu a.nav-link,
    .nav-desktop-menu button.nav-link {
        font-size: clamp(12.5px, 0.25vw + 9px, 14px);
        padding-left: 2px;
        padding-right: 2px;
        white-space: nowrap;
    }
}
@media (min-width: 1600px) {
    .nav-desktop-menu {
        gap: clamp(0.5rem, 0.8vw, 1.25rem);
    }
    .nav-desktop-menu a.nav-link,
    .nav-desktop-menu button.nav-link {
        font-size: 14px;
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* Secondary Social bar: hidden in main navbar to preserve clean spacious layout */
.nav-social-bar {
    display: none !important;
}

/* Fire Hamburger: shown below 1320px (covering 150%, 175%, 200% zoom and mobile/tablets) */
.nav-hamburger {
    display: flex !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
@media (min-width: 1320px) {
    .nav-hamburger {
        display: none !important;
    }
}

/* Mobile Fullscreen Navigation Drawer */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background-color: var(--bg-white) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu:not(.hidden) {
    display: flex !important;
}




/* Dedicated Navbar Get A Quote CTA (Light & Dark Mode High Contrast + Enhanced Height) */
.nav-quote-btn {
    min-height: 38px !important;
    padding: 0.55rem 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    border-radius: 2px !important;
    line-height: 1 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.nav-quote-btn:hover {
    background-color: #1e293b !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.02);
}
[data-theme='dark'] .nav-quote-btn,
html.dark .nav-quote-btn {
    background-color: #2563EB !important; /* Vibrant Electric Blue */
    color: #ffffff !important;
    border: 1px solid #3b82f6 !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.45) !important;
}
[data-theme='dark'] .nav-quote-btn:hover,
html.dark .nav-quote-btn:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.65) !important;
}

/* Theme Toggle Button without Background */
#theme-toggle,
#theme-toggle-mobile,
.theme-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#theme-toggle:hover,
#theme-toggle-mobile:hover,
.theme-toggle:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}