:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --heading-color: #000000;
    --border-color: #e0e0e0;
    --accent-color: #1a1a1a;
}

/* Global Color & Typography Overrides */
body {
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 2px; /* Elegant tracking */
    font-weight: 600;
}

a {
    color: var(--text-color);
    transition: all 0.3s ease;
}

a:hover, a:focus, a:active {
    color: var(--primary-color) !important;
}

.introText {
    margin: 0 0 12px !important;
}

.lube-oil-page .sidebar .single-sidebar.service-sidebar ul.service-list li:hover a,
.lube-oil-page .sidebar .single-sidebar.service-sidebar ul.service-list li.active a {
    color: #fff !important;
}

.power-generation-page .sidebar .single-sidebar.service-sidebar ul.service-list li:hover a,
.power-generation-page .sidebar .single-sidebar.service-sidebar ul.service-list li.active a {
    color: #fff !important;
}

.renewable-energy-page .sidebar .single-sidebar.service-sidebar ul.service-list li:hover a,
.renewable-energy-page .sidebar .single-sidebar.service-sidebar ul.service-list li.active a {
    color: #fff !important;
    background: #000 !important;
}

.renewable-energy-page .sidebar .single-sidebar.service-sidebar ul.service-list li a {
    color: #000 !important;
    background: #fff !important;
}

.lube-oil-page .service-item-box .masonary-layout,
.power-generation-page .service-item-box .masonary-layout,
.renewable-energy-page .service-item-box .masonary-layout,
.fire-security-page .service-item-box .masonary-layout {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 991px) {
    .lube-oil-page .sidebar-wrapper,
    .power-generation-page .sidebar-wrapper,
    .renewable-energy-page .sidebar-wrapper,
    .fire-security-page .sidebar-wrapper {
        margin-top: 30px;
    }
}

/* Button Overrides - Minimalist */
.thm-btn {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border: 1px solid var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 30px;
    font-size: 14px;
    border-radius: 0; /* Sharp edges for elegance */
}

.thm-btn:hover {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

/* Header Overrides */
.header-home-two .header-navigation {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.header-home-two.stricky-fixed .header-navigation {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Header layout and logo sizing */
.side-nav-toggler {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--heading-color);
    height: 40px;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.side-nav-toggler:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.header-navigation .container {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 6px 0;
    flex-wrap: nowrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 56px;
    width: auto;
    transform: scale(1.2);
    transform-origin: left center;
}

.stricky-fixed .navbar-brand img {
    height: 48px;
    transform: scale(1.4);
    transform-origin: left center;
}

.main-navigation {
    flex: 1;
    min-width: 0;
}

.header-navigation ul.navigation-box {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

/* Navigation Links */
.header-navigation ul.navigation-box > li > a {
    color: var(--heading-color) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    padding: 10px 0;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .header-navigation .container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }

    .navbar-header {
        order: 1;
    }

    .navbar-brand {
        order: 2;
        flex: 1;
        justify-content: center;
    }

    .navbar-brand img {
        height: 46px;
    }

    .main-navigation {
        display: none !important;
    }
}

.header-navigation ul.navigation-box > li.current > a,
.header-navigation ul.navigation-box > li:hover > a {
    color: var(--primary-color) !important;
    opacity: 0.7;
}

/* Mega Menu & Dropdowns */
.sub-menu, .mega-sub-menu {
    border-top: 2px solid var(--primary-color) !important;
    background-color: var(--secondary-color) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.mega-menu-li-a {
    color: var(--heading-color) !important;
    font-weight: 600;
    letter-spacing: 1px;
}

.mega-menu-li-a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Mobile Side Menu */
.hidden-sidebar {
    background-color: var(--primary-color) !important; /* Black background */
}

.hidden-sidebar .sidebar-content .navigation-box li a {
    color: var(--secondary-color) !important;
    font-weight: 300;
    letter-spacing: 1px;
}

.hidden-sidebar .sidebar-content .navigation-box li a:hover {
    color: #cccccc !important;
}

.hidden-sidebar .sub-menu,
.hidden-sidebar .mega-sub-menu {
    background-color: transparent !important;
    box-shadow: none !important;
    border-top: 0 !important;
}

.header-home-two .header-navigation,
.header-home-two .header-navigation .container {
    overflow: visible;
}

/* Scrollbar */
::-webkit-scrollbar-thumb {
    background-color: var(--primary-color) !important;
}

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

/* Home Badges/Buttons (Right Side Header) */
.home-badge {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-bottom: 2px solid var(--primary-color);
}

.home-badge:hover {
    background-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.home-badge span {
    color: var(--heading-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.home-badge:hover span {
    color: var(--secondary-color);
}

/* Miscellaneous Overrides */
.sec-title h2 span {
    color: var(--primary-color); /* No colored accents, just black */
    font-weight: 700;
}

.about-style-one .about-content h3:after {
    background: var(--primary-color) !important;
    height: 1px; /* Thinner line */
}

.brand-one {
    border-bottom: 1px solid var(--border-color);
}

/* Footer Styling */
.footer-elegant {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
}

.footer-elegant h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--heading-color);
}

.footer-elegant ul li {
    margin-bottom: 10px;
}

.footer-elegant ul li a, 
.footer-elegant ul li span {
    color: #555555;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
}

.footer-elegant ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Widgets/Boxes */
.service-block-one .inner-box, 
.project-block-one .inner-box {
    border: 1px solid var(--border-color);
    background: var(--secondary-color);
    transition: all 0.4s ease;
}

.service-block-one .inner-box:hover, 
.project-block-one .inner-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.elegant-hero {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.elegant-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 44px;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.elegant-hero-arrow.left {
    left: 20px;
}

.elegant-hero-arrow.right {
    right: 20px;
}

.elegant-hero-arrow:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
}

.elegant-biz-carousel {
    position: relative;
}

.elegant-biz-viewport {
    overflow: hidden;
}

.elegant-biz-track {
    display: flex;
    transition: transform 600ms ease;
}

.elegant-biz-slide {
    padding: 0 10px;
    box-sizing: border-box;
}

.elegant-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.elegant-carousel-arrow.left {
    left: 0;
}

.elegant-carousel-arrow.right {
    right: 0;
}

.elegant-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
}

.fact-elegant {
    position: relative;
    color: #fff;
    padding: 70px 0;
    background: url(/img/fact-counter-bg.jpg) center center/cover no-repeat;
}

.fact-elegant:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.fact-elegant > .container {
    position: relative;
    z-index: 1;
}

.fact-elegant-title {
    margin-bottom: 30px;
}

.fact-elegant-title h3,
.fact-elegant-title h3 span {
    color: #fff !important;
}

.fact-elegant-title p {
    color: rgba(255, 255, 255, 0.8);
}

.elegant-progress-row {
    margin-bottom: 18px;
}

.elegant-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: 0.5px;
}

.elegant-progress-rail {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.elegant-progress-bar {
    height: 100%;
    background: #fff;
    transition: width 800ms ease;
}

.elegant-fact-counters {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.elegant-fact-counter {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.elegant-fact-counter .icon-box {
    font-size: 28px;
    margin-right: 15px;
    color: #fff;
}

.elegant-fact-counter .counter-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.elegant-fact-counter .counter-head h3 {
    color: #fff;
}

.elegant-fact-counter .counter-down p {
    color: rgba(255, 255, 255, 0.8);
}

.single-service-style-three .icon-box i,
.single-service-style-three .icon-box {
    color: var(--primary-color) !important;
}

.single-service-style-three .more {
    color: var(--primary-color) !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.single-service-style-four .img-box,
.single-service-style-three .img-box,
.single-portfolio-style-two .img-box {
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--secondary-color);
}

.single-service-style-four .img-box img,
.single-service-style-three .img-box img,
.single-portfolio-style-two .img-box img,
.brand-carousel-area img {
    transition: transform 450ms ease, filter 450ms ease;
}

.single-service-style-four:hover .img-box img,
.single-service-style-three:hover .img-box img {
    transform: scale(1.03);
}

.single-service-style-three .text-box .inner {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
}

.single-feature-style-one {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.single-feature-style-one.light {
    background: var(--secondary-color);
}

.single-feature-style-one .icon-box,
.single-feature-style-one .icon-box i {
    color: var(--primary-color) !important;
}

.single-portfolio-style-two .overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

.single-portfolio-style-two .overlay h3 {
    color: #fff !important;
}

/* Solutions cards */
.solution-card {
    display: block;
    position: relative;
    color: inherit;
}
.solution-image-wrapper {
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--secondary-color);
}
.solution-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 450ms ease, filter 450ms ease;
}
.solution-card:hover .solution-image {
    transform: scale(1.03);
}
.solution-bar {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 18px 20px;
}
.solution-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .3px;
}
.solution-icon {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 64px;
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    border: 6px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.solution-icon i {
    color: #222222;
    font-size: 22px;
}
@media (max-width: 767px) {
    .solution-icon {
        bottom: 58px;
        width: 56px;
        height: 56px;
    }
    .solution-title {
        font-size: 16px;
    }
    .solution-bar {
        padding: 16px;
    }
}

/* Fix text color for light feature boxes to be black */
.feature-style-one .single-feature-style-one.light .text-box h3,
.feature-style-one .single-feature-style-one.light .text-box p {
    color: #000000 !important;
}
.feature-style-one .single-feature-style-one.light .icon-box i {
    color: #000000 !important;
}

.page-wrapper.index .contact-info-style-one .sec-title.title h3 span,
.page-wrapper.index .fact-elegant-title h3 span {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.page-wrapper.index .brand-carousel-area .sec-title h3 span,
.page-wrapper.index .portfolio-style-two .sec-title h3 span,
.page-wrapper.index .service-style-three .sec-title h3 span,
.page-wrapper.index .service-style-four.about-page .sec-title h3 span {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: #262626;
    -webkit-text-fill-color: #262626;
}

.page-wrapper.index .contact-info-style-one .contact-infos .single-contact-infos .text-box h3 {
    color: #ffffff;
}
