/* 
   Jagam Technologies - Global Design System
   Refined dark/light hybrid mode featuring indigo, teal, and glassmorphism.
   Built to work alongside Bootstrap 5.
*/

:root {
    /* LIGHT MODE (Default) - Client Branded Colors */
    --bg-dark: #f8f9fa;
    --bg-darker: #f1f3f5;
    --bg-surface: #ffffff;
    /* PAPER WHITE */
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(43, 43, 43, 0.08);
    /* 8% opacity of DEEP CHARCOAL */
    --border-glow: rgba(36, 64, 143, 0.2);
    /* 20% opacity of JAGAM BLUE */
    --grid-color: rgba(43, 43, 43, 0.02);
    /* 2% opacity of DEEP CHARCOAL */

    --primary: #24408f;
    /* JAGAM BLUE */
    --primary-rgb: 36, 64, 143;
    --primary-glow: rgba(36, 64, 143, 0.15);

    --accent: #f68920;
    /* SOLAR ORANGE */
    --accent-rgb: 246, 137, 32;
    --accent-glow: rgba(246, 137, 32, 0.2);

    --success: #10b981;
    --text-white: #2b2b2b;
    /* Headings (DEEP CHARCOAL) */
    --text-light: #3c3c3c;
    /* Body text (slightly lighter charcoal for readability) */
    --text-muted: #878787;
    /* NEUTRAL GRAY */
    --text-dim: #a0a0a0;

    --bg-nav: rgba(255, 255, 255, 0.8);
    --bg-nav-scrolled: rgba(255, 255, 255, 0.95);

    --card-shadow: 0 8px 32px 0 rgba(36, 64, 143, 0.04);

    --font-heading: 'Roboto', 'Arial', sans-serif;
    --font-body: 'Roboto', 'Arial', sans-serif;
    --font-secondary: 'Arial', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --hero-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0) 80%), url('../images/hero_background.jpg');
}

[data-theme="dark"] {
    /* DARK MODE - Client Branded Colors */
    --bg-dark: #1a1a1a;
    /* Deep charcoal-black */
    --bg-darker: #121212;
    /* Pure charcoal-black */
    --bg-surface: #2b2b2b;
    /* DEEP CHARCOAL */
    --bg-card: rgba(43, 43, 43, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 92, 184, 0.25);
    /* Lighter JAGAM BLUE glow */
    --grid-color: rgba(255, 255, 255, 0.015);

    --primary: #3b5cb8;
    /* Lighter JAGAM BLUE for readability in dark mode */
    --primary-rgb: 59, 92, 184;
    --primary-glow: rgba(59, 92, 184, 0.4);

    --accent: #f89a42;
    /* Lighter SOLAR ORANGE for dark mode */
    --accent-rgb: 248, 154, 66;
    --accent-glow: rgba(248, 154, 66, 0.45);

    --text-white: #ffffff;
    /* PAPER WHITE */
    --text-light: #e0e0e0;
    --text-muted: #878787;
    /* NEUTRAL GRAY */
    --text-dim: #6b6b6b;

    --bg-nav: rgba(26, 26, 26, 0.75);
    --bg-nav-scrolled: rgba(26, 26, 26, 0.95);

    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --hero-bg: linear-gradient(90deg, rgba(26, 26, 26, 0.98) 25%, rgba(26, 26, 26, 0.4) 80%), url('../images/hero_background.jpg');
}

/* Custom Reset & Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 20px;
}

/* Ensure headings adapt in light mode even if they have Bootstrap text-white or text-light classes */
/* Ensure headings adapt correctly in light/dark mode */

h1.text-white,
h2.text-white,
h3.text-white,
h4.text-white,
h5.text-white,
h6.text-white,
h1.text-light,
h2.text-light,
h3.text-light,
h4.text-light,
h5.text-light,
h6.text-light {
    color: var(--text-white) !important;
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.bg-darker {
    background-color: var(--bg-darker) !important;
}

.our-verticals-section {
    background: var(--bg-darker);
}

[data-theme="light"] .our-verticals-section {
    background: #f4f8fc;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

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

/* Base Link Reset */
a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--text-white);
}

/* Typography Enhancements */
.gradient-text {
    background: linear-gradient(135deg, var(--text-white) 20%, var(--accent) 70%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-accent-text {
    background: linear-gradient(90deg, var(--accent) 0%, #bc3327 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheading {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* Glassmorphism utility card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.12);
    transform: translateY(-5px);
}

/* Glow Buttons */
.btn-glow-primary {
    background: #ffffff;
    color: #24408f !important;
    border: 1px solid rgba(36, 64, 143, 0.2);
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(36, 64, 143, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glow-primary:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    border-color: var(--primary);
}

.btn-outline-glow {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-glow:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2);
}

/* Sticky Navbar Custom Style */
.custom-navbar {
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

.custom-navbar.navbar-scrolled {
    padding: 0.6rem 0;
    background: var(--bg-nav-scrolled);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.15);
}

.navbar-brand img {
    height: 85px;
    max-height: 85px;
    transition: var(--transition-smooth);
}

.custom-navbar.navbar-scrolled .navbar-brand img {
    height: 64px;
    max-height: 64px;
}

.custom-nav-link {
    font-family: var(--font-heading);
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-smooth);
}

.custom-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.custom-nav-link:hover {
    color: var(--text-white) !important;
}

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

.custom-nav-link.active {
    color: var(--accent) !important;
    font-weight: 600;
}

.custom-nav-link.active::after {
    width: 80%;
    background: var(--accent);
}

/* Hamburger menu toggle override */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    display: inline-block;
    transition: var(--transition-smooth);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    left: 0;
    transition: var(--transition-smooth);
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Universal Page Header Banner */
.page-header-banner {
    padding: 8rem 0 4rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%),
        var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

/* Global Footer Styles */
.footer-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
    font-size: 0.95rem;
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.footer-logo img {
    height: 90px;
    margin-bottom: 1.5rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    margin-right: 0.75rem;
    transition: var(--transition-smooth);
}

.footer-social-icon:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-links-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

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

.footer-links-list a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-links-list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
}

.footer-contact-info i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3.5rem;
    padding-top: 2rem;
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

/* Pulse animation for queue markers */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

.pulse-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse-orange 2s infinite;
}

/* Gradient borders logic */
.gradient-border-card {
    position: relative;
    border-radius: 16px;
    background: var(--bg-card);
    z-index: 1;
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    z-index: -1;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--border-color), rgba(255, 255, 255, 0.02) 50%, var(--border-color));
    transition: var(--transition-smooth);
}

.gradient-border-card:hover::before {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* Badge styled indicator */
.badge-custom {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Tech Grid Pattern Background */
.grid-pattern-bg {
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

/* General spacing utility */

@media (max-width: 991.98px) {
    .custom-navbar {
        background: var(--bg-nav-scrolled);
    }

    .custom-nav-link::after {
        display: none;
    }

    .custom-nav-link:hover {
        padding-left: 1.5rem !important;
        color: var(--accent) !important;
    }

    .custom-nav-link.active {
        padding-left: 1.5rem !important;
    }
}

[data-theme="dark"] .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.glass-card {
    cursor: pointer;
}

/* =========================================================
   JAGAM GLOBAL LAYOUT & SPACING SYSTEM
   ========================================================= */

/* ---------- Global section spacing ---------- */

section:not(.hero-section) {
    position: relative;
}

/* Consistent container width */
section>.container {
    width: 100%;
}

/* ---------- Section headings ---------- */

section .text-center {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

section .text-center>.subheading {
    margin-bottom: 14px;
}

section .text-center>h1,
section .text-center>h2,
section .text-center>h3 {
    margin-bottom: 18px;
}

section .text-center>p {
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.75;
}

/* ---------- General paragraphs ---------- */

section p {
    line-height: 1.75;
}

/* Keep long paragraphs readable */
section .text-muted {
    line-height: 1.75;
}

/* ---------- Section-to-content spacing ---------- */

section .row {
    --bs-gutter-y: 2.5rem;
}

/* ---------- Cards ---------- */

.glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card p {
    line-height: 1.7;
}

.glass-card h3,
.glass-card h4,
.glass-card h5 {
    margin-bottom: 15px;
}

/* ---------- Center card content ---------- */

.text-center .glass-card {
    align-items: center;
}

.text-center .glass-card p {
    max-width: 90%;
}

/* ---------- Buttons ---------- */

section .btn-glow-primary,
section .btn-outline-glow {
    margin-top: 8px;
}

/* ---------- Lists inside sections ---------- */

section ul,
section ol {
    line-height: 1.75;
}

/* ---------- Consistent vertical rhythm ---------- */

section h1,
section h2,
section h3 {
    margin-top: 0;
}

section h4,
section h5,
section h6 {
    margin-top: 0;
}

/* ---------- Prevent text from becoming too wide ---------- */

section p:not(.text-center p) {
    max-width: 760px;
}

/* ---------- Mobile spacing ---------- */

section .text-center>p {
    max-width: 90%;
}



@media (max-width: 575.98px) {
    section .text-center>p {
        max-width: 100%;
    }

}




/* ==================================================
   JAGAM — FINAL GLOBAL SPACING SYSTEM
   ================================================== */

/* Normal section spacing */
.section-padding {
    padding: 60px 0 !important;
}

/* Reduced section spacing utility (25-30% gap reduction) */
.section-spacing {
    padding: 42px 0 !important;
}

/* Section headings */
section .text-center {
    margin-bottom: 32px !important;
}

section .text-center .subheading {
    display: block;
    margin-bottom: 10px !important;
}

section .text-center h1,
section .text-center h2,
section .text-center h3 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

section .text-center>p {
    max-width: 720px;
    margin: 0 auto !important;
    line-height: 1.65;
}

/* Keep paragraphs compact and readable */
section p {
    line-height: 1.65;
}

/* Bootstrap's large heading margins are too spacious */
section .mb-5 {
    margin-bottom: 32px !important;
}

section .mb-4 {
    margin-bottom: 20px !important;
}

section .mb-3 {
    margin-bottom: 12px !important;
}

/* Reduce oversized Bootstrap row gaps */
section .g-5 {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 2rem;
}

section .g-4 {
    --bs-gutter-y: 1.5rem;
}

/* Cards */
.glass-card {
    height: 100%;
}

.glass-card h3,
.glass-card h4,
.glass-card h5 {
    margin-bottom: 12px !important;
}

.glass-card p {
    line-height: 1.6;
}

/* Prevent unnecessary vertical margins */
section h1,
section h2,
section h3,
section h4,
section h5,
section h6 {
    margin-top: 0;
}

/* ==================================================
   PAGE HEADER
   ================================================== */

.page-header-banner {
    padding-top: 125px !important;
    padding-bottom: 125px !important;
}

.page-header-banner h1 {
    margin-bottom: 12px !important;
}

.page-header-banner p {
    margin-bottom: 8px !important;
}


/* ==================================================
   ABOUT — VISION / MISSION
   ================================================== */

.vision-mission-row {
    margin-top: 0 !important;
}

.vision-card,
.mission-card {
    padding: 2.25rem !important;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 991.98px) {

    .section-padding {
        padding: 50px 0 !important;
    }

    .section-spacing {
        padding: 35px 0 !important;
    }

    .page-header-banner {
        padding-top: 50px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 575.98px) {

    .section-padding {
        padding: 40px 0 !important;
    }

    .section-spacing {
        padding: 28px 0 !important;
    }

    .page-header-banner {
        padding-top: 40px !important;
        padding-bottom: 35px !important;
    }

    section .text-center {
        margin-bottom: 25px !important;
    }

    section .g-5 {
        --bs-gutter-y: 1.5rem;
    }
}

/* ==================================================
   FOOTER — THEME ADAPTIVE
   ================================================== */

/* Light mode */
.footer-section {
    background: #e9ecef !important;
    color: #2b2b2b !important;
}

.footer-section p,
.footer-section .text-muted {
    color: #555555 !important;
}

.footer-section a {
    color: #333333 !important;
}

.footer-section h1,
.footer-section h2,
.footer-section h3,
.footer-section h4,
.footer-section h5,
.footer-section h6 {
    color: #222222 !important;
}

.footer-section .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.12) !important;
}

/* Dark mode */
[data-theme="dark"] .footer-section {
    background: #2f2f2f !important;
    color: #ffffff !important;
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section .text-muted {
    color: #d0d0d0 !important;
}

[data-theme="dark"] .footer-section a {
    color: #e5e5e5 !important;
}

[data-theme="dark"] .footer-section a:hover {
    color: var(--accent) !important;
}

[data-theme="dark"] .footer-section h1,
[data-theme="dark"] .footer-section h2,
[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section h4,
[data-theme="dark"] .footer-section h5,
[data-theme="dark"] .footer-section h6 {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-section .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

/* ==================================================
   BACK TO TOP BUTTON
   ================================================== */

#backToTop {
    position: fixed;
    right: 30px;
    bottom: 95px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #F68920;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-3px);
    background: #BC3327;
}

[data-theme="dark"] #backToTop {
    background: #F68920;
    color: #ffffff;
}

[data-theme="dark"] #backToTop:hover {
    background: #BC3327;
}

@media (max-width: 575.98px) {
    #backToTop {
        right: 20px;
        bottom: 85px;
        width: 42px;
        height: 42px;
    }
}

/* ==========================================
   JAGAM QUICK HUB
   ========================================== */

.jagam-quick-hub {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 10000;
}

/* Main floating button */
.jagam-quick-hub .chatbot-toggle {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #F68920;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
    z-index: 2;
}

.jagam-quick-hub .chatbot-toggle:hover {
    background: #BC3327;
    transform: translateY(-3px);
}

/* Rotate + into X when opened */
.jagam-quick-hub.open .chatbot-toggle i {
    transform: rotate(45deg);
}

.jagam-quick-hub .chatbot-toggle i {
    transition: transform 0.3s ease;
}

/* Quick Hub menu */
.quick-hub-menu {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 270px;
    padding: 14px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(36, 64, 143, 0.12);

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.96);
    transform-origin: bottom right;

    transition: all 0.25s ease;
}

/* Open state */
.jagam-quick-hub.open .quick-hub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Menu title */
.quick-hub-title {
    padding: 8px 10px 12px;
    margin-bottom: 4px;
}

.quick-hub-title strong {
    display: block;
    color: #24408F;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.quick-hub-title span {
    display: block;
    margin-top: 3px;
    color: #878787;
    font-size: 0.78rem;
}

/* Hub buttons */
.quick-hub-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 10px;
    margin: 3px 0;

    border: none;
    border-radius: 12px;
    background: transparent;

    text-align: left;
    cursor: pointer;

    transition: all 0.2s ease;
}

.quick-hub-item:hover {
    background: rgba(246, 137, 32, 0.10);
    transform: translateX(-3px);
}

.quick-hub-item>i {
    width: 38px;
    height: 38px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(36, 64, 143, 0.09);
    color: #24408F;

    font-size: 1.05rem;
}

.quick-hub-item span {
    display: flex;
    flex-direction: column;
}

.quick-hub-item strong {
    color: #2B2B2B;
    font-size: 0.88rem;
}

.quick-hub-item small {
    margin-top: 2px;
    color: #878787;
    font-size: 0.72rem;
}

/* Individual icon colors */
#hubVideos>i {
    color: #F68920;
    background: rgba(246, 137, 32, 0.10);
}

#hubGallery>i {
    color: #24408F;
    background: rgba(36, 64, 143, 0.10);
}

#hubProjects>i {
    color: #BC3327;
    background: rgba(188, 51, 39, 0.10);
}

#hubChat>i {
    color: #24408F;
    background: rgba(36, 64, 143, 0.10);
}

#hubTop>i {
    color: #F68920;
    background: rgba(246, 137, 32, 0.10);
}


/* ==========================================
   DARK MODE
   ========================================== */

[data-theme="dark"] .quick-hub-menu {
    background: rgba(43, 43, 43, 0.97);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .quick-hub-title strong {
    color: #F68920;
}

[data-theme="dark"] .quick-hub-item strong {
    color: #ffffff;
}

[data-theme="dark"] .quick-hub-item:hover {
    background: rgba(246, 137, 32, 0.12);
}

[data-theme="dark"] .quick-hub-item>i {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] #hubVideos>i {
    color: #F68920;
}

[data-theme="dark"] #hubGallery>i {
    color: #6f8de0;
}

[data-theme="dark"] #hubProjects>i {
    color: #e06b60;
}

[data-theme="dark"] #hubChat>i {
    color: #6f8de0;
}

[data-theme="dark"] #hubTop>i {
    color: #F68920;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 575.98px) {

    .jagam-quick-hub {
        right: 20px;
        bottom: 20px;
    }

    .jagam-quick-hub .chatbot-toggle {
        width: 50px;
        height: 50px;
    }

    .quick-hub-menu {
        width: 250px;
        bottom: 62px;
    }
}

/* ==========================================
   FLOATING BUTTON POSITIONS
   ========================================== */

/* Jagam Quick Hub - RIGHT */
.jagam-quick-hub {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 10000;
}

/* Quick Hub button should NOT inherit chatbot fixed positioning */
.jagam-quick-hub .quick-hub-toggle {
    position: relative;
    right: auto;
    bottom: auto;

    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;

    background: #F68920;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.4rem;
    cursor: pointer;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);

    transition: all 0.3s ease;
}

.jagam-quick-hub .quick-hub-toggle:hover {
    background: #BC3327;
    transform: translateY(-3px);
}


/* Jagam Assistant - LEFT */
#chatbotToggle {
    position: fixed !important;

    left: 30px !important;
    right: auto !important;

    bottom: 30px !important;

    width: 56px;
    height: 56px;

    z-index: 9999;
}


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

    .jagam-quick-hub {
        right: 20px;
        bottom: 20px;
    }

    #chatbotToggle {
        left: 20px !important;
        bottom: 20px !important;
    }

}

/* ==========================================
   FINAL GLOBAL SECTION SPACING
   ========================================== */

section:not(.hero-section):not(.page-header-banner) {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================
   PAGE HEADER - BALANCED SPACING
   ========================================== */

.page-header-banner {
    margin-top: 136px !important;
    padding-top: 45px !important;
    padding-bottom: 45px !important;
}