/* ===== Global Orbitron Font ===== */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap");

/* ===== CSS Variables ===== */
:root {
    --font-primary: "Work Sans", sans-serif;
    --font-secondary: "Orbitron", sans-serif;
    --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Smart Code Lab Color Palette â€” derived from logo */
    --primary-color: #48B0F8;
    --secondary-color: #0099ff;
    --tertiary-color: #00d4ff;

    /* Extended Color Palette */
    --color-accent: #00d4ff;
    --color-accent-alt: #0099ff;
    --color-text-dark: #ffffff;
    --color-text-light: rgba(255, 255, 255, 0.7);
    --color-muted-text: rgba(255, 255, 255, 0.5);
    --color-highlighted-text: #48B0F8;

    /* Legacy colors (kept for compatibility) */
    --color-bg-deep: #050c14;
    --color-bg-mid: #0d1a2b;
    --color-bg-light: #122238;
    --color-accent-glow: rgba(0, 212, 255, 0.6);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);

    /* Layout */
    --navbar-height: 70px;
    --footer-height: auto;
}

/* ===== Body Background ===== */
body {
    background: linear-gradient(
        135deg,
        var(--color-bg-deep) 0%,
        var(--color-bg-mid) 50%,
        var(--color-bg-light) 100%
    ) !important;
    color: var(--color-text-primary) !important;
    font-family: var(--font-body) !important;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ===== Layout Grid ===== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: clip;
}

/* Desktop: No sidebar, full-width main area */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    width: 100%;
    overflow-x: clip;
}

.main-content {
    flex: 1;
    padding-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    width: 100%;
    overflow-x: clip;
}

/* ===== Fixed Background Elements (Fixed Positioning Below Navbar) ===== */
[class*="bg-gradient"],
[class*="glow-accent"],
[id*="particles"] {
    top: var(--navbar-height) !important;
}

/* ===== Utility: Orbitron headings ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
}

/* ===== Hide Browser Scrollbar (all browsers) ===== */
/* Chrome, Safari, Edge (Chromium) */
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* IE / old Edge */
html,
body {
    -ms-overflow-style: none;
}

/* ===== Full-screen layout (no sidebar/navbar) ===== */
.layout-fullscreen .main-area {
    margin-left: 0;
}

.layout-fullscreen .main-content {
    padding-top: 0;
    min-height: 100vh;
}

/* ===== Mobile ===== */
@media (max-width: 991px) {
    :root {
        --navbar-height: 60px;
    }

    .main-content {
        padding-top: var(--navbar-height);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
}

/* ===== Light Theme Overrides ===== */
html[data-bs-theme="light"] {
    --color-bg-deep: #F3F7FC;
    --color-bg-mid: #F3F7FC;
    --color-bg-light: #F3F7FC;
    --color-text-primary: #111111;
    --color-text-secondary: #333333;
    --color-text-muted: #555555;
    --color-accent-glow: rgba(72, 176, 248, 0.15);
    color-scheme: light;
}

html[data-bs-theme="light"] body {
    background: #F3F7FC !important;
    color: #111111 !important;
}

/* Background Gradients & Glow overlays */
html[data-bs-theme="light"] .web-bg-gradient {
    background: #F3F7FC !important;
}
html[data-bs-theme="light"] .web-glow-accent {
    display: block !important;
    background: radial-gradient(
        circle,
        rgba(0, 24, 88, 0.04) 0%,
        transparent 70%
    ) !important;
}

/* Titles and headings */
html[data-bs-theme="light"] h1,
html[data-bs-theme="light"] h2,
html[data-bs-theme="light"] h3,
html[data-bs-theme="light"] h4,
html[data-bs-theme="light"] h5,
html[data-bs-theme="light"] h6,
html[data-bs-theme="light"] h1 *:not(.text-primary):not([class*="text-primary"]):not(.highlight),
html[data-bs-theme="light"] h2 *:not(.text-primary):not([class*="text-primary"]):not(.highlight):not(.title-accent):not(.title-primary),
html[data-bs-theme="light"] h3 *:not(.text-primary):not([class*="text-primary"]):not(.highlight),
html[data-bs-theme="light"] h4 *:not(.text-primary):not([class*="text-primary"]):not(.highlight),
html[data-bs-theme="light"] h5 *:not(.text-primary):not([class*="text-primary"]):not(.highlight),
html[data-bs-theme="light"] h6 *:not(.text-primary):not([class*="text-primary"]):not(.highlight),
html[data-bs-theme="light"] .title,
html[data-bs-theme="light"] .title *:not(.text-primary):not([class*="text-primary"]):not(.highlight),
html[data-bs-theme="light"] .section-title,
html[data-bs-theme="light"] .section-title *:not(.text-primary):not([class*="text-primary"]):not(.highlight):not(.title-accent):not(.title-primary),
html[data-bs-theme="light"] .service-title,
html[data-bs-theme="light"] .project-title,
html[data-bs-theme="light"] .blog-title,
html[data-bs-theme="light"] .footer-col-title,
html[data-bs-theme="light"] .accordion-button,
html[data-bs-theme="light"] .process-title,
html[data-bs-theme="light"] .card-title,
html[data-bs-theme="light"] [class*="-title"],
html[data-bs-theme="light"] [class*="-title"] *:not(.text-primary):not([class*="text-primary"]):not(.highlight):not(.title-accent):not(.title-primary),
html[data-bs-theme="light"] .scl-navbar__brand-name,
html[data-bs-theme="light"] .scl-navbar__brand-name *:not(.text-primary):not([class*="text-primary"]):not(.highlight),
html[data-bs-theme="light"] .service-name,
html[data-bs-theme="light"] .service-name *,
html[data-bs-theme="light"] .project-name,
html[data-bs-theme="light"] .project-name *,
html[data-bs-theme="light"] .blog-name,
html[data-bs-theme="light"] .blog-name *,
html[data-bs-theme="light"] .job-title,
html[data-bs-theme="light"] .job-title *,
html[data-bs-theme="light"] .process-name,
html[data-bs-theme="light"] .process-name *,
html[data-bs-theme="light"] .feature-title,
html[data-bs-theme="light"] .feature-title *,
html[data-bs-theme="light"] .post-link,
html[data-bs-theme="light"] .post-link * {
    color: #001858 !important;
    -webkit-text-fill-color: #001858 !important;
    background: transparent !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    text-shadow: none !important;
}

/* Description / Paragraphs & General Text */
html[data-bs-theme="light"] p,
html[data-bs-theme="light"] span:not(.text-primary):not([class*="text-primary"]):not(.highlight):not(.sun-icon):not(.moon-icon):not(.title-accent):not(.title-primary),
html[data-bs-theme="light"] li,
html[data-bs-theme="light"] label,
html[data-bs-theme="light"] td,
html[data-bs-theme="light"] th,
html[data-bs-theme="light"] .main-content div:not(.hexagon):not(.btn):not(.scl-theme-toggler):not(.scl-navbar__logo):not(.footer-social-link):not([class*="card"]):not(.glass-card):not(.faq-item),
html[data-bs-theme="light"] .card-text,
html[data-bs-theme="light"] .service-desc,
html[data-bs-theme="light"] .project-desc,
html[data-bs-theme="light"] .blog-desc,
html[data-bs-theme="light"] .job-desc,
html[data-bs-theme="light"] .service-description,
html[data-bs-theme="light"] .project-description,
html[data-bs-theme="light"] .blog-description,
html[data-bs-theme="light"] .job-description,
html[data-bs-theme="light"] .meta-item,
html[data-bs-theme="light"] .meta-text,
html[data-bs-theme="light"] .info-text,
html[data-bs-theme="light"] .detail-text,
html[data-bs-theme="light"] .text-muted,
html[data-bs-theme="light"] .info-label,
html[data-bs-theme="light"] .info-value,
html[data-bs-theme="light"] .testimonial-text,
html[data-bs-theme="light"] .testimonial-author-name,
html[data-bs-theme="light"] .testimonial-author-role,
html[data-bs-theme="light"] .team-member-role,
html[data-bs-theme="light"] .process-step-desc,
html[data-bs-theme="light"] .process-step-number,
html[data-bs-theme="light"] .faq-answer,
html[data-bs-theme="light"] .checkout-summary-item span,
html[data-bs-theme="light"] .cart-item-title,
html[data-bs-theme="light"] .cart-item-price,
html[data-bs-theme="light"] .hero-description {
    color: #333333 !important;
}

/* Links color overrides in light mode */
html[data-bs-theme="light"] a:not(.btn):not(.btn-glow):not(.btn-glow-secondary):not([class*="btn-"]):not(.about-cta-mobile-hide):not(.scl-nav__link):not(.scl-drop__item):not(.scl-mob__link):not(.scl-mob__sub-link):not(.footer-social-link):not(.scl-navbar__brand) {
    color: #001858 !important;
    text-decoration: none;
}
html[data-bs-theme="light"] a:not(.btn):not(.btn-glow):not(.btn-glow-secondary):not([class*="btn-"]):not(.about-cta-mobile-hide):not(.scl-nav__link):not(.scl-drop__item):not(.scl-mob__link):not(.scl-mob__sub-link):not(.footer-social-link):not(.scl-navbar__brand):hover {
    color: #0033bb !important;
    text-decoration: none !important;
}

/* White borders to soft light-mode borders */
html[data-bs-theme="light"] [class*="border-white"],
html[data-bs-theme="light"] [style*="border-color: rgba(255"],
html[data-bs-theme="light"] [style*="border: 1px solid rgba(255"],
html[data-bs-theme="light"] .border-white\/10,
html[data-bs-theme="light"] .border-white\/20,
html[data-bs-theme="light"] .border-white\/25 {
    border-color: rgba(0, 24, 88, 0.08) !important;
}

/* Cards (Services, Projects, Blogs, Testimonials) */
html[data-bs-theme="light"] .glass-card,
html[data-bs-theme="light"] .service-card,
html[data-bs-theme="light"] .project-card,
html[data-bs-theme="light"] .blog-card,
html[data-bs-theme="light"] .testimonial-slide .glass-card,
html[data-bs-theme="light"] .card,
html[data-bs-theme="light"] .checkout-card,
html[data-bs-theme="light"] .faq-item,
html[data-bs-theme="light"] .job-overview-card,
html[data-bs-theme="light"] .job-description-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 24, 88, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 24, 88, 0.03) !important;
    color: #333333 !important;
}

html[data-bs-theme="light"] .glass-card:hover,
html[data-bs-theme="light"] .service-card:hover,
html[data-bs-theme="light"] .project-card:hover,
html[data-bs-theme="light"] .blog-card:hover,
html[data-bs-theme="light"] .faq-item:hover {
    background: #ffffff !important;
    border-color: #001858 !important;
    box-shadow: 0 10px 30px rgba(0, 24, 88, 0.08) !important;
}

/* Career Cards (Light Mode Overrides - matching project card styling) */
html[data-bs-theme="light"] .career-card {
    background: #F3F7FC !important;
    border: 1px solid rgba(0, 24, 88, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 24, 88, 0.03) !important;
    color: #333333 !important;
}

html[data-bs-theme="light"] .career-card:hover {
    background: #ffffff !important;
    border-color: #001858 !important;
    box-shadow: 0 10px 30px rgba(0, 24, 88, 0.08) !important;
}

/* Global Rich Text Editor Table Styles (Dark Mode & Light Mode) */
.rich-text-content table,
.custom-page-body table,
table.table-bordered,
div[class*="-description"] table {
    width: 100% !important;
    margin: 24px 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: rgba(14, 20, 38, 0.85) !important;
    border: 1px solid rgba(72, 176, 248, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.rich-text-content table th,
.custom-page-body table th,
table.table-bordered th,
div[class*="-description"] table th {
    background: rgba(22, 32, 56, 0.95) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 14px 18px !important;
    border-bottom: 2px solid rgba(72, 176, 248, 0.3) !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
}

.rich-text-content table td,
.custom-page-body table td,
table.table-bordered td,
div[class*="-description"] table td {
    padding: 12px 18px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1px solid rgba(72, 176, 248, 0.12) !important;
    border-right: 1px solid rgba(72, 176, 248, 0.08) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    background: transparent !important;
}

.rich-text-content table td *,
.custom-page-body table td *,
table.table-bordered td *,
div[class*="-description"] table td *,
.rich-text-content table th *,
.custom-page-body table th *,
table.table-bordered th *,
div[class*="-description"] table th * {
    color: inherit !important;
    background: transparent !important;
}

.rich-text-content table td:last-child,
.custom-page-body table td:last-child,
table.table-bordered td:last-child,
div[class*="-description"] table td:last-child {
    border-right: none !important;
}

.rich-text-content table tr:last-child td,
.custom-page-body table tr:last-child td,
table.table-bordered tr:last-child td,
div[class*="-description"] table tr:last-child td {
    border-bottom: none !important;
}

.rich-text-content table tr:hover td,
.custom-page-body table tr:hover td,
table.table-bordered tr:hover td,
div[class*="-description"] table tr:hover td {
    background: rgba(72, 176, 248, 0.08) !important;
}

html[data-bs-theme="light"] .rich-text-content table,
html[data-bs-theme="light"] .custom-page-body table,
html[data-bs-theme="light"] table.table-bordered,
html[data-bs-theme="light"] div[class*="-description"] table {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

html[data-bs-theme="light"] .rich-text-content table th,
html[data-bs-theme="light"] .custom-page-body table th,
html[data-bs-theme="light"] table.table-bordered th,
html[data-bs-theme="light"] div[class*="-description"] table th {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

html[data-bs-theme="light"] .rich-text-content table td,
html[data-bs-theme="light"] .custom-page-body table td,
html[data-bs-theme="light"] table.table-bordered td,
html[data-bs-theme="light"] div[class*="-description"] table td {
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: 1px solid #f1f5f9 !important;
}

html[data-bs-theme="light"] .rich-text-content table tr:hover td,
html[data-bs-theme="light"] .custom-page-body table tr:hover td,
html[data-bs-theme="light"] table.table-bordered tr:hover td,
html[data-bs-theme="light"] div[class*="-description"] table tr:hover td {
    background: #f1f5f9 !important;
}

html[data-bs-theme="light"] .career-card-meta {
    color: #555555 !important;
}

/* Global Rich Text & CKEditor Image Responsiveness & Max-Height Constraint */
.rich-text-content img,
.custom-page-body img,
div[class*="-description"] img,
figure.image img,
figure.image {
    max-width: 100% !important;
    max-height: 520px !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    margin: 20px auto !important;
    display: block !important;
}

html[data-bs-theme="light"] .career-badge {
    background: rgba(0, 24, 88, 0.05) !important;
    color: #001858 !important;
    border: 1px solid rgba(0, 24, 88, 0.12) !important;
}

/* Job Detail Page (Light Mode Overrides) */
html[data-bs-theme="light"] .job-overview-card h3,
html[data-bs-theme="light"] .job-description-card h2 {
    color: #001858 !important;
    border-color: rgba(0, 24, 88, 0.08) !important;
}

html[data-bs-theme="light"] .job-description,
html[data-bs-theme="light"] .job-description p,
html[data-bs-theme="light"] .job-description li {
    color: #333333 !important;
}

html[data-bs-theme="light"] .overview-label {
    color: #555555 !important;
}

html[data-bs-theme="light"] .overview-value {
    color: #111111 !important;
}

/* Accordion Item styles (FAQs etc) */
html[data-bs-theme="light"] .accordion-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 24, 88, 0.08) !important;
    color: #333333 !important;
}
html[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    background: rgba(0, 24, 88, 0.06) !important;
    color: #001858 !important;
}

/* Navbar Theme Overrides */
html[data-bs-theme="light"] .scl-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 24, 88, 0.08) !important;
    box-shadow: 0 2px 20px rgba(0, 24, 88, 0.03) !important;
}
html[data-bs-theme="light"] .scl-navbar::after {
    display: none !important;
}
html[data-bs-theme="light"] .scl-theme-toggler {
    color: #001858 !important;
    border-color: rgba(0, 24, 88, 0.2) !important;
}
html[data-bs-theme="light"] .scl-theme-toggler:hover {
    background: rgba(0, 24, 88, 0.05) !important;
}
html[data-bs-theme="light"] .scl-nav__link {
    color: #001858 !important;
}
html[data-bs-theme="light"] .scl-nav__link:hover,
html[data-bs-theme="light"] .scl-nav__link.is-active,
html[data-bs-theme="light"] .scl-nav__link.is-drop-open {
    color: #001858 !important;
}
html[data-bs-theme="light"] .scl-nav__link::after {
    background: #001858 !important;
    box-shadow: none !important;
}
html[data-bs-theme="light"] .scl-navbar__brand-name {
    background: #001858 !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html[data-bs-theme="light"] .scl-nav__drop-panel {
    background: #ffffff !important;
    border: 1px solid rgba(0, 24, 88, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 24, 88, 0.08) !important;
}
html[data-bs-theme="light"] .scl-drop__item {
    color: #333333 !important;
}
html[data-bs-theme="light"] .scl-drop__item i {
    color: #001858 !important;
}
html[data-bs-theme="light"] .scl-drop__item:hover,
html[data-bs-theme="light"] .scl-drop__item.is-active {
    background: rgba(0, 24, 88, 0.06) !important;
    color: #001858 !important;
    border-left-color: #001858 !important;
}
html[data-bs-theme="light"] .scl-drop__item:hover i,
html[data-bs-theme="light"] .scl-drop__item.is-active i {
    color: #001858 !important;
}

/* Mobile Nav overrides */
html[data-bs-theme="light"] .scl-mobile-nav {
    background: #ffffff !important;
    border-left: 1px solid rgba(0, 24, 88, 0.08) !important;
}
html[data-bs-theme="light"] .scl-mob__sub {
    background: #ffffff !important;
}
html[data-bs-theme="light"] .scl-mob__link {
    color: #001858 !important;
}
html[data-bs-theme="light"] .scl-mob__sub-link {
    color: #555555 !important;
}
html[data-bs-theme="light"] .scl-mob__link:hover,
html[data-bs-theme="light"] .scl-mob__link.is-active,
html[data-bs-theme="light"] .scl-mob__sub-link:hover,
html[data-bs-theme="light"] .scl-mob__sub-link.is-active {
    color: #001858 !important;
}
html[data-bs-theme="light"] .scl-mob__link i,
html[data-bs-theme="light"] .scl-mob__sub-link i,
html[data-bs-theme="light"] .scl-mob__caret {
    color: #001858 !important;
    opacity: 1 !important;
}
html[data-bs-theme="light"] .scl-mob__link span,
html[data-bs-theme="light"] .scl-mob__sub-link span {
    color: #001858 !important;
}
html[data-bs-theme="light"] .scl-mob__sub-link:not(:hover):not(.is-active) {
    color: #555555 !important;
}
html[data-bs-theme="light"] .scl-mob__sub-link:not(:hover):not(.is-active) i,
html[data-bs-theme="light"] .scl-mob__sub-link:not(:hover):not(.is-active) span {
    color: #555555 !important;
    opacity: 0.8 !important;
}

/* Footer Theme Overrides */
html[data-bs-theme="light"] .app-footer-full {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 24, 88, 0.08) !important;
    color: #333333 !important;
}
html[data-bs-theme="light"] .app-footer-full::before,
html[data-bs-theme="light"] .app-footer-full::after {
    display: none !important;
}
html[data-bs-theme="light"] .footer-links a,
html[data-bs-theme="light"] .footer-contact-list li {
    color: #555555 !important;
}
html[data-bs-theme="light"] .footer-links a:hover,
html[data-bs-theme="light"] .footer-contact-list li:hover {
    color: #001858 !important;
}
html[data-bs-theme="light"] .footer-social-link {
    background: #F3F7FC !important;
    border: 1px solid rgba(0, 24, 88, 0.08) !important;
    color: #555555 !important;
}
html[data-bs-theme="light"] .footer-social-link:hover {
    background: #001858 !important;
    color: #ffffff !important;
}
html[data-bs-theme="light"] .footer-copyright {
    border-top: 1px solid rgba(0, 24, 88, 0.08) !important;
}
html[data-bs-theme="light"] .footer-copyright p {
    color: #777777 !important;
}

/* Buttons (utilize primary color as background, white text) */
html[data-bs-theme="light"] .btn-primary {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(72, 176, 248, 0.3) !important;
    text-shadow: none !important;
}
html[data-bs-theme="light"] .btn-primary:hover {
    background: #3399e5 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(72, 176, 248, 0.4) !important;
}

/* Glow Buttons & Navbar CTA (Outline style matching dark theme) */
html[data-bs-theme="light"] .btn-glow,
html[data-bs-theme="light"] .scl-nav__cta {
    background: rgba(72, 176, 248, 0.08) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html[data-bs-theme="light"] .btn-glow:hover,
html[data-bs-theme="light"] .scl-nav__cta:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(72, 176, 248, 0.3) !important;
}

/* Secondary Glow Button Light Theme */
html[data-bs-theme="light"] .btn-glow-secondary {
    background: rgba(0, 153, 255, 0.08) !important;
    color: var(--secondary-color, #0099ff) !important;
    border: 1px solid var(--secondary-color, #0099ff) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html[data-bs-theme="light"] .btn-glow-secondary:hover {
    background: var(--secondary-color, #0099ff) !important;
    color: #ffffff !important;
    border-color: var(--secondary-color, #0099ff) !important;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3) !important;
}

/* Forms and Inputs */
html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select,
html[data-bs-theme="light"] input,
html[data-bs-theme="light"] textarea {
    background: #ffffff !important;
    border: 1px solid rgba(0, 24, 88, 0.12) !important;
    color: #212529 !important;
}
html[data-bs-theme="light"] .form-control:focus,
html[data-bs-theme="light"] input:focus,
html[data-bs-theme="light"] textarea:focus {
    border-color: #001858 !important;
    box-shadow: 0 0 0 3px rgba(0, 24, 88, 0.15) !important;
}

/* Sub-page headers */
html[data-bs-theme="light"] .about-banner,
html[data-bs-theme="light"] .page-banner,
html[data-bs-theme="light"] [class*="-banner"] {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 24, 88, 0.08) !important;
}

/* Slider Section Text Overrides (Keep white/gradient on dark background) */
html[data-bs-theme="light"] .hero-slider-section h1,
html[data-bs-theme="light"] .hero-slider-section h2,
html[data-bs-theme="light"] .hero-slider-section h3,
html[data-bs-theme="light"] .hero-slider-section h4,
html[data-bs-theme="light"] .hero-slider-section p,
html[data-bs-theme="light"] .hero-slider-section span,
html[data-bs-theme="light"] .hero-slider-section a:not(.btn) {
    color: #ffffff !important;
    -webkit-text-fill-color: initial !important;
    background: initial !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
}

html[data-bs-theme="light"] .hero-slide-title {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--tertiary-color) 100%
    ) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
}

html[data-bs-theme="light"] .hero-slide-description {
    color: rgba(255, 255, 255, 0.7) !important;
}


/* ==========================================================================
   BUTTON TEXT UNIFICATION (Work Sans, Uppercase, Letter-spacing)
   Matches the "Ask for Quotation" button style across all views
   ========================================================================== */
.btn,
.btn-glow,
.btn-glow-secondary,
.btn-primary,
.btn-secondary,
[class*="btn-"],
a[class*="btn-"],
button:not(.scl-navbar__toggler):not(.scl-theme-toggler) {
    font-family: var(--font-primary, "Work Sans", sans-serif) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Ensure Navbar Links & Buttons are Uppercase */
.scl-nav__link,
.scl-drop__item,
.scl-mob__link,
.scl-mob__sub-link {
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

/* Core Glow Button Styles (Homepage & Subpages) */
.btn-glow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 32px !important;
    font-family: var(--font-secondary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    border: 1px solid var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(72, 176, 248, 0.1), transparent) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    text-decoration: none !important;
}

.btn-glow:hover {
    background: linear-gradient(
        135deg,
        rgba(72, 176, 248, 0.25),
        rgba(0, 153, 255, 0.15)
    ) !important;
    box-shadow:
        0 0 30px rgba(72, 176, 248, 0.3),
        inset 0 0 15px rgba(72, 176, 248, 0.05) !important;
    transform: translateY(-2px) !important;
}

.btn-glow-secondary {
    border-color: var(--secondary-color) !important;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.1), transparent) !important;
}

.btn-glow-secondary:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 153, 255, 0.25),
        rgba(0, 212, 255, 0.15)
    ) !important;
    box-shadow: 0 0 30px rgba(0, 153, 255, 0.3) !important;
}


/* Re-ensure no hover underline appears on button-like elements */
.btn:hover,
.btn-glow:hover,
.btn-glow-secondary:hover,
.btn-primary:hover,
.btn-secondary:hover,
[class*="btn-"]:hover,
a[class*="btn-"]:hover,
button:not(.scl-navbar__toggler):not(.scl-theme-toggler):hover {
    text-decoration: none !important;
}



/* About Us Floating Stats Badges (Light Mode Overrides) */
html[data-bs-theme="light"] .exp-showcase-badge,
html[data-bs-theme="light"] .feedback-showcase-badge {
    background: #ffffff !important;
    border-color: rgba(0, 24, 88, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 24, 88, 0.06) !important;
}

html[data-bs-theme="light"] .exp-showcase-badge h4,
html[data-bs-theme="light"] .feedback-showcase-badge h4 {
    color: #001858 !important;
}

html[data-bs-theme="light"] .exp-showcase-badge span,
html[data-bs-theme="light"] .feedback-showcase-badge span {
    color: #555555 !important;
}

/* ==========================================================================
   WHY CHOOSE US SECTION (Light Mode Redesign)
   Makes the grid, icon containers, and floating excellence card modern
   ========================================================================== */
html[data-bs-theme="light"] #why-choose-us h3,
html[data-bs-theme="light"] #why-choose-us h4 {
    color: #001858 !important;
}

html[data-bs-theme="light"] #why-choose-us p,
html[data-bs-theme="light"] #why-choose-us .text-gray-400 {
    color: #555555 !important;
}

/* Glassmorphic card design for each feature point */
html[data-bs-theme="light"] #why-choose-us .group {
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html[data-bs-theme="light"] #why-choose-us .group:hover {
    background: #ffffff !important;
    border-color: rgba(72, 176, 248, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 24, 88, 0.05) !important;
    transform: translateY(-2px);
}

/* Soft light-blue background for the feature icons */
html[data-bs-theme="light"] #why-choose-us .w-14.h-14 {
    background: linear-gradient(135deg, #ffffff, #eaf2fc) !important;
    border-color: rgba(72, 176, 248, 0.25) !important;
}

html[data-bs-theme="light"] #why-choose-us .group:hover .w-14.h-14 {
    border-color: var(--secondary-color, #0099ff) !important;
    background: linear-gradient(135deg, #ffffff, #dbebff) !important;
}

/* Floating Excellence Badge (Light background style) */
html[data-bs-theme="light"] #why-choose-us .excellence-card {
    background: #ffffff !important;
    border-color: rgba(0, 24, 88, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 24, 88, 0.08) !important;
}

html[data-bs-theme="light"] #why-choose-us .excellence-card div:last-child {
    color: #555555 !important;
}

/* ==========================================================================
   NESTED BUTTON TEXT COLOR INHERITANCE
   Ensures inner <span> and <i> elements inside styled button links stay white (or button color)
   ========================================================================== */
html[data-bs-theme="light"] .btn *,
html[data-bs-theme="light"] .btn-glow *,
html[data-bs-theme="light"] .btn-glow-secondary *,
html[data-bs-theme="light"] .about-cta-mobile-hide *,
html[data-bs-theme="light"] .scl-nav__cta * {
    color: inherit !important;
}

/* ==========================================================================
   SECTION HEADER TITLES & UNIFORM SPACING (Two-Tone Accents)
   Resets parent section-title elements and forces correct colors for title parts in both themes
   ========================================================================== */

/* Reset parent section-title elements so they do not clip children spans */
.section-title,
h2.section-title,
[class*="-title"] {
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
}

/* DARK THEME (Default) */
.title-primary,
.section-title .title-primary,
h2.section-title .title-primary {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

.title-accent,
.section-title .title-accent,
h2.section-title .title-accent,
html[data-bs-theme="dark"] .title-accent,
html[data-bs-theme="dark"] .section-title .title-accent {
    color: var(--primary-color, #48B0F8) !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: var(--primary-color, #48B0F8) !important;
    text-shadow: none !important;
}

/* LIGHT THEME */
html[data-bs-theme="light"] .title-primary,
html[data-bs-theme="light"] .section-title .title-primary,
html[data-bs-theme="light"] h2.section-title .title-primary,
html[data-bs-theme="light"] body .main-content .title-primary,
html[data-bs-theme="light"] body .main-content .section-title .title-primary {
    color: #001858 !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #001858 !important;
}

html[data-bs-theme="light"] .title-accent,
html[data-bs-theme="light"] .section-title .title-accent,
html[data-bs-theme="light"] h2.section-title .title-accent,
html[data-bs-theme="light"] body .main-content .title-accent,
html[data-bs-theme="light"] body .main-content .section-title .title-accent {
    color: var(--primary-color, #48B0F8) !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: var(--primary-color, #48B0F8) !important;
    text-shadow: none !important;
}

/* DARK THEME SPECIFICITY ASSURANCE */
html[data-bs-theme="dark"] body .main-content .title-accent,
html[data-bs-theme="dark"] body .main-content .section-title .title-accent,
html[data-bs-theme="dark"] body .main-content h2 .title-accent,
html[data-bs-theme="dark"] body .main-content h1 .title-accent,
body .main-content .title-accent,
body .main-content .section-title .title-accent {
    color: var(--primary-color, #48B0F8) !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: var(--primary-color, #48B0F8) !important;
}

/* ==========================================================================
   UNIFORM SECTION SPACING & GLOW-DIVIDER UNDERLINES
   ========================================================================== */
/* Set uniform top padding for all homepage sections and top margins for section dividers */
.home-section {
    padding: 60px 0 80px 0 !important;
}

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

/* Ensure the divider line (glow-divider) is completely uniform and visible on both themes */
.glow-divider {
    width: 80px !important;
    height: 3px !important;
    margin: 20px auto 0 !important;
    margin-bottom: 0 !important;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-color, #48B0F8),
        var(--secondary-color, #0099ff),
        transparent
    ) !important;
    border-radius: 2px !important;
}

/* Left-aligned divider support (e.g. for About Us section) */
.glow-divider.text-left,
.section-header-left .glow-divider {
    margin: 20px 0 0 !important;
    background: linear-gradient(
        90deg,
        var(--primary-color, #48B0F8),
        var(--secondary-color, #0099ff),
        transparent
    ) !important;
}

/* Enforce uniform bottom margin on all section headers (gap before content starts) */
.section-header {
    margin-bottom: 40px !important;
}

/* Cancel any redundant divider margins */
#skills .glow-divider,
.glow-divider {
    margin-bottom: 0 !important;
}

/* Ensure about-us section description has the exact same gap after its left-aligned divider */
.about-description {
    margin-top: 40px !important;
}

/* ==========================================================================
   SECTION DIVIDERS & INDICATORS (HOMEPAGE & SUBPAGES)
   ========================================================================== */
.section-divider {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 50px 0 30px 0 !important;
    position: relative !important;
    z-index: 10 !important;
}

.section-divider::before,
.section-divider::after {
    content: "" !important;
    flex: 1 !important;
    max-width: 400px !important;
    height: 2px !important;
    position: relative !important;
}

.section-divider::before {
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-color, #48B0F8),
        var(--primary-color, #48B0F8)
    ) !important;
}

.section-divider::after {
    background: linear-gradient(
        90deg,
        var(--primary-color, #48B0F8),
        var(--primary-color, #48B0F8),
        transparent
    ) !important;
}

.section-label-indicator {
    font-family: var(--font-secondary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    padding: 12px 40px !important;
    position: relative !important;
    background: rgba(5, 12, 20, 0.85) !important;
    border: 2px solid var(--primary-color, #48B0F8) !important;
    border-radius: 8px !important;
    text-shadow: 0 0 15px rgba(72, 176, 248, 0.5) !important;
    box-shadow:
        0 0 30px rgba(72, 176, 248, 0.2),
        inset 0 0 20px rgba(72, 176, 248, 0.05) !important;
    transition: all 0.4s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.section-label-indicator::before,
.section-label-indicator::after {
    content: "" !important;
    position: absolute !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: var(--primary-color, #48B0F8) !important;
    box-shadow: 0 0 15px var(--primary-color, #48B0F8) !important;
    animation: sectionPulse 2s ease-in-out infinite !important;
}

.section-label-indicator::before {
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.section-label-indicator::after {
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    animation-delay: 1s !important;
}

/* Hover effect for section divider */
.section-divider:hover .section-label-indicator {
    background: rgba(5, 12, 20, 0.95) !important;
    box-shadow:
        0 0 40px rgba(72, 176, 248, 0.3),
        inset 0 0 25px rgba(72, 176, 248, 0.08) !important;
    transform: scale(1.05) !important;
}

@media (max-width: 768px) {
    .section-divider {
        padding: 30px 0 15px 0 !important;
    }

    .section-divider::before,
    .section-divider::after {
        max-width: 200px !important;
    }

    .section-label-indicator {
        font-size: 10px !important;
        letter-spacing: 3px !important;
        padding: 10px 30px !important;
    }

    .section-label-indicator::before,
    .section-label-indicator::after {
        width: 6px !important;
        height: 6px !important;
    }

    .section-label-indicator::before {
        left: 10px !important;
    }

    .section-label-indicator::after {
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .section-divider {
        padding: 20px 0 10px 0 !important;
    }

    .section-divider::before,
    .section-divider::after {
        max-width: 100px !important;
    }

    .section-label-indicator {
        font-size: 9px !important;
        letter-spacing: 2px !important;
        padding: 8px 24px !important;
    }
}

/* LIGHT THEME INDICATOR OVERRIDES */
html[data-bs-theme="light"] .section-label-indicator {
    background: linear-gradient(
        135deg,
        rgba(72, 176, 248, 0.15),
        rgba(0, 153, 255, 0.1)
    ) !important;
    color: #001858 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html[data-bs-theme="light"] .section-divider:hover .section-label-indicator {
    background: linear-gradient(
        135deg,
        rgba(72, 176, 248, 0.25),
        rgba(0, 153, 255, 0.15)
    ) !important;
}

/* ==========================================================================
   PROJECT & BLOG CARDS LOWER BODY STYLING (HOMEPAGE & SUBPAGES)
   ========================================================================== */
.project-card-body,
.blog-card-body {
    background: rgba(5, 12, 20, 0.65) !important;
    backdrop-filter: blur(5px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-bs-theme="light"] .project-card-body,
html[data-bs-theme="light"] .blog-card-body {
    background: #F3F7FC !important;
    border-top: 1px solid rgba(0, 24, 88, 0.05) !important;
}

/* ==========================================================================
   FLEXBOX CARD ALIGNMENTS (Prevents White Background Leak on Stretched Cards)
   ========================================================================== */
.project-page-card,
.blog-page-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.project-card-body,
.blog-card-body {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.blog-card-body .blog-read-more {
    margin-top: auto !important;
    padding-top: 15px !important;
}

/* ==========================================================================
   PROJECT & BLOG CATEGORY BADGES (Solid Theme Colors)
   ========================================================================== */
.project-category-badge,
.blog-category-badge {
    background: linear-gradient(
        135deg,
        var(--primary-color, #48B0F8) 0%,
        var(--secondary-color, #0099ff) 100%
    ) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(72, 176, 248, 0.25) !important;
    text-shadow: none !important;
}

.project-page-card:hover .project-category-badge,
.blog-page-card:hover .blog-category-badge {
    background: linear-gradient(
        135deg,
        var(--secondary-color, #0099ff) 0%,
        var(--tertiary-color, #00d4ff) 100%
    ) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 18px rgba(72, 176, 248, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   HOME PAGE SERVICE & PROJECT CARD BODY (Matches Services Page Styling)
   ========================================================================== */
.home-card-body {
    background: rgba(5, 12, 20, 0.65) !important;
    backdrop-filter: blur(5px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-bs-theme="light"] .home-card-body {
    background: #F3F7FC !important;
    border-top: 1px solid rgba(0, 24, 88, 0.05) !important;
}

/* Fix home page project/service card title link color in light theme */
html[data-bs-theme="light"] .home-card-body h3,
html[data-bs-theme="light"] .home-card-body h3 a {
    color: #001858 !important;
}
html[data-bs-theme="light"] .home-card-body h3 a:hover {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   ABOUT US SECTION CONTACT NOW BUTTON (Identical in Light & Dark Theme)
   ========================================================================== */
.about-cta-mobile-hide {
    background: linear-gradient(
        90deg,
        var(--primary-color, #108dff) 0%,
        var(--secondary-color, #6366f1) 100%
    ) !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 10px 30px rgba(16, 141, 255, 0.3) !important;
}

.about-cta-mobile-hide:hover {
    background: linear-gradient(
        90deg,
        var(--secondary-color, #6366f1) 0%,
        var(--primary-color, #108dff) 100%
    ) !important;
    color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(16, 141, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Force light theme to keep the text white inside this button */
html[data-bs-theme="light"] .about-cta-mobile-hide,
html[data-bs-theme="light"] .about-cta-mobile-hide * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ===== Stats Badges Gentle Floating Animation (Top to Bottom Loop) ===== */
.exp-showcase-badge,
.feedback-showcase-badge {
    will-change: margin-top;
    animation: badge-gentle-float 6s ease-in-out infinite alternate !important;
}

/* Floating animation keyframes using margin-top to avoid transform conflicts on mobile */
@keyframes badge-gentle-float {
    0% {
        margin-top: 0px;
    }
    100% {
        margin-top: -12px;
    }
}

/* Hover pauses the float loop */
.exp-showcase-badge:hover,
.feedback-showcase-badge:hover {
    animation-play-state: paused !important;
}

/* Force stats badge icons to always be white in both light and dark themes */
.exp-showcase-badge i,
.feedback-showcase-badge i {
    color: #ffffff !important;
}

/* ===== Global Page Breadcrumb Icon & Alignment Adjustment ===== */
.page-breadcrumb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important; /* increased gap */
}

.page-breadcrumb a,
.page-breadcrumb .separator,
.page-breadcrumb .current {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    height: auto !important;
}

.page-breadcrumb .separator i {
    font-size: 8px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}


/* ===== Global Page Hero Icon Badge Adjustment ===== */
.icon-badge-inner {
    width: 64px !important;
    height: 64px !important;
}

.icon-badge-inner i {
    font-size: 24px !important;
}

.hero-icon-badge {
    margin-bottom: 24px !important;
}

/* Force timeline step numbers in the work process section to always be white in all themes */
#work-process .rounded-full span {
    color: #ffffff !important;
}

/* FAQ Page Stats Cards (Light Mode Overrides) */
html[data-bs-theme="light"] .stat-number {
    color: #001858 !important;
    -webkit-text-fill-color: #001858 !important;
    background: transparent !important;
}

html[data-bs-theme="light"] .stat-label {
    color: #001858 !important;
}

/* Force all text/icon elements inside hovered glow buttons to always turn white on hover */
.btn-glow:hover *,
.btn-glow-secondary:hover *,
.submit-btn:hover * {
    color: #ffffff !important;
}

/* Specificity override for nested button spans in the light theme to bypass global span color rules */
html[data-bs-theme="light"] .btn-glow:hover span:not(.text-primary):not([class*="text-primary"]):not(.highlight):not(.sun-icon):not(.moon-icon):not(.title-accent):not(.title-primary),
html[data-bs-theme="light"] .btn-glow-secondary:hover span:not(.text-primary):not([class*="text-primary"]):not(.highlight):not(.sun-icon):not(.moon-icon):not(.title-accent):not(.title-primary),
html[data-bs-theme="light"] .submit-btn:hover span:not(.text-primary):not([class*="text-primary"]):not(.highlight):not(.sun-icon):not(.moon-icon):not(.title-accent):not(.title-primary) {
    color: #ffffff !important;
}










