/********** Template CSS **********/

/*** Color Palette Override — Power Factor Engineering ***/
:root {
    --bs-primary: #1B3A5C !important;
    --bs-primary-rgb: 27, 58, 92 !important;
    --bs-light: #F5F7FA !important;
    --bs-dark: #0F1C2E !important;
    --pf-accent: #F7B731;
    --pf-accent-hover: #e5a820;
    --pf-blue-light: #244b73;
    --pf-blue-dark: #132d4a;
}

/* Override Bootstrap primary color classes */
.bg-primary {
    background-color: #1B3A5C !important;
}

.text-primary {
    color: #1B3A5C !important;
}

.btn-primary {
    background-color: #1B3A5C !important;
    border-color: #1B3A5C !important;
}

.btn-primary:hover {
    background-color: var(--pf-blue-light) !important;
    border-color: var(--pf-blue-light) !important;
}

.btn-outline-primary {
    color: #1B3A5C !important;
    border-color: #1B3A5C !important;
}

.btn-outline-primary:hover {
    background-color: #1B3A5C !important;
    color: #fff !important;
    border-color: #1B3A5C !important;
}

.border-primary {
    border-color: #1B3A5C !important;
}

.bg-light {
    background-color: #F5F7FA !important;
}

.bg-dark {
    background-color: #0F1C2E !important;
}

.spinner-grow.text-primary {
    color: #1B3A5C !important;
}

/* Accent button (Solar Yellow CTA) */
.btn-accent {
    background-color: var(--pf-accent);
    color: #0F1C2E;
    border: none;
    font-weight: 600;
    padding: 12px 32px;
    font-size: 1.1rem;
    transition: all .3s ease;
}

.btn-accent:hover {
    background-color: var(--pf-accent-hover);
    color: #0F1C2E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 183, 49, 0.4);
}

/* Solar Packages Pricing Table */
.pricing-section {
    background: linear-gradient(135deg, #F5F7FA 0%, #e8ecf1 100%);
}

.pricing-card {
    background: #fff;
    border: 2px solid #e0e5ec;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(27, 58, 92, 0.15);
    border-color: #1B3A5C;
}

.pricing-card.featured {
    border-color: var(--pf-accent);
    box-shadow: 0 8px 30px rgba(247, 183, 49, 0.2);
}

.pricing-card.featured::before {
    content: "BEST VALUE";
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--pf-accent);
    color: #0F1C2E;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.pricing-card .price {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1B3A5C;
    margin: 20px 0;
}

.pricing-card .price small {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.pricing-card ul li i {
    color: var(--pf-accent);
    margin-right: 10px;
}

.pricing-card .btn-pricing {
    background: #1B3A5C;
    color: #fff;
    padding: 12px 30px;
    border: none;
    font-weight: 600;
    transition: all .3s ease;
    display: inline-block;
    text-decoration: none;
}

.pricing-card .btn-pricing:hover {
    background: var(--pf-accent);
    color: #0F1C2E;
}

.pricing-card.featured .btn-pricing {
    background: var(--pf-accent);
    color: #0F1C2E;
}

.pricing-card.featured .btn-pricing:hover {
    background: #1B3A5C;
    color: #fff;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

/* Base transparent state (over hero) */
.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.sticky-top.bg-white .navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.navbar .navbar-brand .h1 {
    color: #ffffff !important;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: #ffffff !important;
    font-weight: 500;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--pf-accent) !important;
}

/* Invert the mobile menu toggle icon for light text */
.navbar-light .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.sticky-top.bg-white .navbar-light .navbar-toggler-icon {
    filter: none;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: #0F1C2E;
    background: var(--pf-accent);
}

/* Scrolled sticky white state */
.sticky-top.bg-white .navbar-brand .h1 {
    color: #1B3A5C !important;
}

.sticky-top.bg-white .navbar-nav .nav-link {
    color: #0F1C2E !important;
}

.sticky-top.bg-white .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar-nav .nav-link.active {
    color: var(--pf-accent) !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 28, 46, 0.98);
        padding: 10px 20px 20px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .navbar-collapse.collapsing {
        position: absolute;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .sticky-top.bg-white .navbar-collapse {
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sticky-top.bg-white .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar .dropdown-menu {
        background: transparent !important;
        border: none;
        padding-left: 15px;
        box-shadow: none;
        margin-top: 0;
    }

    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 8px 0;
    }

    .sticky-top.bg-white .dropdown-item {
        color: #0F1C2E !important;
    }

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item.active {
        background: transparent !important;
        color: var(--pf-accent) !important;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    background: url(../img/back.png) center center no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

.hero-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 28, 46, 0.85) 0%,
        rgba(27, 58, 92, 0.7) 50%,
        rgba(15, 28, 46, 0.8) 100%
    );
    z-index: -1;
}

.hero-header h1 {
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-header h1 .text-primary {
    color: var(--pf-accent) !important;
    text-shadow: none;
}

.hero-header h5 {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Hero feature cards row */
.hero-header .row.g-5.animated.fadeIn > div {
    perspective: 600px;
}

.hero-header .row.g-5.animated.fadeIn .d-flex.align-items-center {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-header .row.g-5.animated.fadeIn .d-flex.align-items-center:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-color: var(--pf-accent);
}

.hero-header .row.g-5.animated.fadeIn .btn-square {
    border-color: var(--pf-accent) !important;
    background: rgba(247, 183, 49, 0.15);
    transition: all 0.3s ease;
}

.hero-header .row.g-5.animated.fadeIn .d-flex:hover .btn-square {
    background: var(--pf-accent);
    border-color: var(--pf-accent) !important;
}

.hero-header .row.g-5.animated.fadeIn .btn-square i {
    color: var(--pf-accent) !important;
    transition: color 0.3s ease;
}

.hero-header .row.g-5.animated.fadeIn .d-flex:hover .btn-square i {
    color: #0F1C2E !important;
}

.hero-header .row.g-5.animated.fadeIn h5 {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    border: none !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    letter-spacing: 0;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}

/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}

.project-item:hover img {
    transform: scale(1.2);
}

.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.2);
}

.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: rgba(255, 255, 255, .5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/*** Custom Team Card UI */
.team-card-custom {
    text-align: center;
    padding: 30px 15px;
    background: transparent;
    transition: 0.3s ease-in-out;
    border-radius: 10px;
}

.team-card-custom:hover {
    background: #ffffff;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-card-custom img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 5px solid #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    transition: 0.3s;
    background-color: #fff;
    display: block;
}

.team-card-custom:hover img {
    border-color: var(--primary);
}

.team-card-custom .team-name {
    color: #1B3A5C;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-card-custom .team-title {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.team-card-custom .btn-square {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}