:root {
    --primary-color: #1A2954;
    /* Dark Navy Blue - For headings, footers, primary text */
    --secondary-color: #FF7F50;
    /* Vibrant Orange - For buttons, CTAs, highlights */
    --accent-color: #4A90E2;
    /* Bright Blue - For icons, secondary links, subtle highlights */
    --background-color: #F5F5DC;
    /* Warm Beige - For main page backgrounds */
    --text-color: #333333;
    /* Dark Charcoal - For readable body text */

    --heading-font: 'Exo 2', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

body {
    font-family: var(--body-font);
    color: #333;
}

.text-warning{
    color: #FF7F50 !important;
}
.tdn{
    text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.navbar-brand .fa-solar-panel {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

/* --- NEW: Hero Slider Section --- */
.hero-slider {
    width: 100%;
    height: 90vh;
    /* Adjust height as needed */
    min-height: 500px;
    max-height: 800px;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 41, 84, 0.7);
    /* Dark overlay */
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    /* Responsive font size */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-slide p.lead {
    font-family: var(--body-font);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Flickity Custom Styles --- */
.flickity-page-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.flickity-page-dots .dot.is-selected {
    background: var(--secondary-color);
}

.flickity-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.flickity-button:hover {
    background: var(--secondary-color);
}

.flickity-prev-next-button {
    width: 50px;
    height: 50px;
}

.flickity-button-icon {
    width: 24px;
    height: 24px;
}

/* Hide arrows on mobile for a cleaner look */
@media (max-width: 767px) {
    .flickity-prev-next-button {
        display: none;
    }

    .hero-slider {
        height: 80vh;
    }
}


.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a7ac8;
    border-color: #3a7ac8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--primary-color);
}

.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-section {
    background-color: #f8f9fa;
}

.gallery-img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--secondary-color);
}

.testimonial-card p {
    font-style: italic;
}

.testimonial-card .author {
    font-weight: 600;
    margin-top: 15px;
}

.contact-section {
    background-color: var(--primary-color);
    color: white;
}

.contact-section h2 {
    color: white;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0 20px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}


/* --- Services Section (New Cleaner Design) --- */
#services {
    background-color: #ffffff;
    /* Changed to white for a cleaner look */
}

.service-card-v2 {
    background-color: var(--light-gray);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-v2 .icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1;
}

.service-card-v2 h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card-v2 p {
    color: #6c757d;
    flex-grow: 1;
    /* Ensures cards in a row have equal height */
}

.service-card-v2 .learn-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

.service-card-v2 .learn-more .fa-arrow-right {
    transition: transform 0.3s ease;
}

.service-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.service-card-v2:hover .learn-more .fa-arrow-right {
    transform: translateX(5px);
}

/* --- About Us Section (Modernized) --- */
#about {
    position: relative;
    overflow: hidden;
    /* Important for containing animated elements */
    background-color: #ffffff;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

@media (max-width: 991px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        margin-top: 3rem;
    }
}

.about-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-content.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-image-wrapper {
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}

.about-image-wrapper.is-visible {
    opacity: 1;
    transform: scale(1);
}

.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

/* Animated decorative shape */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 20px;
    z-index: 1;
    transform: rotate(15deg) scale(0.8);
    opacity: 0;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
}

.about-image-wrapper.is-visible::before {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

/* Counters Styling */
.counters-wrapper {
    display: flex;
    margin-top: 2.5rem;
    gap: 2rem;
}

.counter-box {
    text-align: left;
}

.counter-number {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.counter-label {
    font-weight: 400;
    color: #6c757d;
}
/* --- Project Gallery Section (Modern Slider) --- */
        #gallery {
            background-color: var(--light-gray);
            padding: 80px 0;
        }

        .project-slider .flickity-viewport {
            border-radius: 15px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }

        .project-slide {
            width: 100%;
            background-color: #ffffff;
        }

        .project-slide-content {
            display: grid;
            grid-template-columns: 55% 45%;
            align-items: center;
            min-height: 550px; /* Increased height for better spacing */
        }

        .project-media {
            height: 100%;
            min-height: 550px;
            position: relative;
            overflow: hidden;
            background-color: #e9ecef;
        }

        .project-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .project-slide:hover .project-media img {
            transform: scale(1.05);
        }

        .project-video-wrapper {
            position: relative;
            padding-top: 56.25%; /* 16:9 Aspect Ratio */
            height: 0;
        }

        .project-video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .project-details {
            padding: 2rem 3rem;
        }

        .project-tags {
            margin-bottom: 1rem;
        }

        .project-tags .tag {
            display: inline-block;
            background-color: #e7f1ff;
            color: var(--secondary-color);
            padding: 5px 15px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .project-details h3 {
            font-family: 'Exo 2', sans-serif;
            font-size: 1.8rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .project-details p {
            color: #6c757d;
            margin-bottom: 2rem; /* Increased margin */
            line-height: 1.7;
        }
        
        /* ==================================================================
        NEW & IMPROVED PROJECT STATS DESIGN (REPLACES THE OLD CSS)
        ==================================================================
        */
        .project-stats {
            list-style: none;
            padding: 0;
            margin-top: 2rem;
            display: grid;
            /* Creates responsive columns */
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 1rem; /* The space between the cards */
            border-top: 1px solid #e9ecef;
            padding-top: 2rem;
        }

        .project-stats li {
            background: #f8f9fa; /* Light gray background for cards */
            padding: 1rem;
            border-radius: 0.75rem; /* Rounded corners */
            text-align: center;
            border: 1px solid #e9ecef;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .project-stats li:hover {
            transform: translateY(-5px); /* Lifts the card on hover */
            box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Stronger shadow on hover */
        }

        /* Icon styling */
        .project-stats li i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, var(--secondary-color), #ff9a78); /* Orange gradient */
            color: white;
            font-size: 1.25rem;
            border-radius: 50%;
            margin-bottom: 0.75rem;
            box-shadow: 0 4px 8px rgba(255, 127, 80, 0.3); /* Shadow matching the color */
        }

        /* Text styling within the card */
        .project-stats li .stat-label {
            display: block; /* Puts the value on a new line */
            font-size: 0.8rem;
            color: #6c757d; /* Muted color for the label */
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .project-stats li .stat-value {
            display: block;
            font-size: 1rem;
            font-weight: 600;
            color: var(--primary-color); /* Main brand color for the value */
        }
        /* ==================== END OF NEW CSS ==================== */


        /* Flickity controls for this section */
        #gallery .flickity-prev-next-button {
            width: 50px;
            height: 50px;
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            color: var(--primary-color);
        }

        #gallery .flickity-prev-next-button:hover {
            background: var(--secondary-color);
            color: white;
        }

        #gallery .flickity-page-dots {
            bottom: -50px;
        }

        #gallery .flickity-page-dots .dot {
            background: #ccc;
        }

        #gallery .flickity-page-dots .dot.is-selected {
            background: var(--secondary-color);
        }

        /* Responsive adjustments */
        @media (max-width: 991px) {
            .project-slide-content {
                grid-template-columns: 1fr;
            }

            .project-media {
                min-height: 300px;
                height: 300px;
            }

            .project-details {
                padding: 2rem;
            }
        }
/* --- Working Process Section --- */
#process {
    background-color: #ffffff;
    padding-top: 100px;
    /* Adds space at the top */
    padding-bottom: 100px;
    /* Adds space at the bottom */
}

.process-wrapper {
    position: relative;
    /* Crucial for positioning the call box */
}

.process-heading {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.process-list {
    list-style: none;
    padding-left: 0;
}

.process-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.process-number {
    background-color: var(--secondary-color);
    color: white;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 20px;
}

.process-text h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.process-text p {
    color: #6c757d;
    margin-bottom: 0;
}

/* The Overlapping Call Box */
.call-us-box {
    position: absolute;
    /* Centering logic */
    left: 55%;
    /* Adjust this percentage to position horizontally */
    top: 75%;
    transform: translateY(-50%);

    background-color: var(--secondary-color);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 220px;
    z-index: 10;
}

.call-icon-wrapper {
    background-color: white;
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.call-us-box h5 {
    color: white;
    font-family: var(--body-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.call-us-box a {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Responsive adjustments for the Process section */
@media (max-width: 991.98px) {
    .process-heading {
        text-align: center;
    }

    /* On smaller screens, make the call box a normal content block */
    .call-us-box {
        position: relative;
        /* Change from absolute */
        left: auto;
        top: auto;
        transform: none;
        /* Reset transform */
        margin: 40px auto 0 auto;
        /* Add margin for spacing */
    }
}

@media (max-width: 576px) {
    .process-heading {
        font-size: 2rem;
    }

    .process-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ============================================= */
/* --- Responsive Styles for Process Section --- */
/* (Updated for Mobile Image First)         */
/* ============================================= */

/* For Tablets and smaller devices (less than 992px wide) */
@media (max-width: 991.98px) {

    #process {
        padding: 60px 20px;
    }

    .process-heading {
        text-align: center;
        font-size: 2.2rem;
        margin-top: 20px;
        /* Add some space below the image */
    }

    .process-list {
        margin-top: 20px;
        /* Add some space below the heading */
    }

    .process-item {
        flex-direction: row;
        /* Keep items in a row for tablet */
        align-items: flex-start;
        text-align: left;
        margin-bottom: 1.5rem;
        /* Adjust spacing between items */
    }

    .process-number {
        margin-right: 15px;
        margin-bottom: 0;
    }

    .call-us-box {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 40px auto 0 auto;
        width: 90%;
        max-width: 300px;
    }
}


/* For Mobile Phones (less than 768px wide) */
@media (max-width: 767.98px) {

    #process {
        padding: 50px 15px;
    }

    .process-heading {
        font-size: 2rem;
        text-align: center;
        /* Center heading on mobile */
        margin-top: 15px;
        /* Adjust spacing below the image */
    }

    .process-list {
        margin-top: 15px;
        /* Adjust spacing below the heading */
    }

    .process-item {
        flex-direction: row;
        /* Keep items in a row on mobile too */
        align-items: flex-start;
        /* Align items to the start */
        text-align: left;
        /* Align text to the left */
        margin-bottom: 1.2rem;
        /* Adjust spacing between items */
    }

    .process-number {
        min-width: 40px;
        /* Smaller number box */
        height: 40px;
        font-size: 1.2rem;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .process-text h4 {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }

    .process-text p {
        font-size: 0.9rem;
    }

    /* Ensure the mobile image is displayed */
    .mobile-image-wrapper {
        display: block !important;
    }
}


/* ======================================= */
/* --- Stats Counter Bar Section --- */
/* ======================================= */

#stats-bar {
    position: relative;
    padding: 80px 0;
    background-image: url('assets/img/why-choose-us.jpg');
    /* background-image: url('https://placehold.co/1920x500/1A2954/FFFFFF?text=Solar+Background'); */
    /* Replace with a real background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Creates a cool parallax effect on scroll */
    color: #ffffff;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 41, 84, 0.85);
    /* Dark blue overlay */
    z-index: 1;
}

/* Ensure container content is above the overlay */
#stats-bar .container {
    position: relative;
    z-index: 2;
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-header .subtitle {
    color: var(--secondary-color);
    /* Vibrant Orange */
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.stats-header h3 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-top: 5px;
}

.stat-item {
    position: relative;
}

/* Creates the vertical dividing lines on desktop */
.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Remove the line from the last item */
.row .col-md-3:last-child .stat-item::after,
.row .col-6:nth-child(2) .stat-item::after,
.row .col-6:nth-child(4) .stat-item::after {
    display: none;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 15px;
}


/* --- Responsive for Stats Bar --- */
@media (max-width: 767.98px) {
    .stats-header h3 {
        font-size: 2rem;
    }

    /* Remove vertical lines on mobile */
    .stat-item::after {
        display: none;
    }

    .stat-item {
        margin-bottom: 40px;
    }

    .row .col-6:last-child .stat-item,
    .row .col-6:nth-last-child(2) .stat-item {
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ======================================================= */
/* --- V3 CORRECTED: Why Choose Us Section CSS --- */
/* ======================================================= */

#why-choose-v3 {
    background: linear-gradient(170deg, #1A2954, #0d152a);
    color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
}

#why-choose-v3 .section-title,
#why-choose-v3 .lead {
    color: #ffffff;
}

#why-choose-v3 .lead {
    color: rgba(255, 255, 255, 0.7);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    position: relative;
    border-radius: 16px;
    transform-style: preserve-3d;
    min-height: 450px;
    /* Restores the taller height */

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.why-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.why-card:nth-child(2) {
    transition-delay: 0.1s;
}

.why-card:nth-child(3) {
    transition-delay: 0.2s;
}

.card-content {
    position: absolute;
    inset: 0;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(40px);
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    background: radial-gradient(150px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.15), transparent);
}

.why-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 60px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.why-card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-family: var(--heading-font);
    margin-bottom: 15px;
}

/* --- NEW: Robust Text-Swapping Logic --- */
.card-text-wrapper {
    display: grid;
    /* Use grid to overlay the text elements */
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
    /* Allow wrapper to fill space */
    width: 100%;
}

.card-description,
.card-hover-text {
    /* This places both paragraphs in the same grid cell */
    grid-area: 1 / 1;
    margin: 0;
    /* Reset default paragraph margin */
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover .card-description {
    opacity: 0;
    transform: translateY(-15px);
    /* Animate upwards on exit */
}

.card-hover-text {
    color: #ffffff;
    opacity: 0;
    transform: translateY(15px);
    /* Start slightly below */
}

.why-card:hover .card-hover-text {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Grid --- */
@media (max-width: 991.98px) {
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: auto;
        gap: 40px;
    }
}


/* ======================================= */
/* --- FAQ Section --- */
/* ======================================= */
#faq {
    background-color: #ffffff;
    /* Use bg-light for off-white or #ffffff for pure white */
}

/* --- Image Composition Styles --- */
.faq-image-wrapper {
    position: relative;
    padding: 20px;
}

.main-faq-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.inset-faq-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    border-radius: 15px;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Accordion Styles --- */
#faq .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#faq .section-title.text-start {
    text-align: left !important;
}

.accordion-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Important for border-radius */
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    width: 100%;
    background-color: #ffffff;
    transition: background-color 0.4s ease;
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    color: #6c757d;
}

.accordion-body p {
    margin: 0;
    padding-bottom: 20px;
}

/* --- Active State for Accordion --- */
.accordion-item.active {
    border-color: var(--secondary-color);
}

.accordion-item.active .accordion-header {
    background-color: var(--secondary-color);
}

.accordion-item.active .accordion-header h4,
.accordion-item.active .accordion-icon {
    color: #ffffff;
}

/* This is where the magic happens for showing the answer */
.accordion-item.active .accordion-body {
    max-height: 200px;
    /* Adjust if your answers are very long */
    padding-top: 5px;
    /* Creates a little space after the header */
}

/* --- Responsive for FAQ --- */
@media (max-width: 991.98px) {
    .faq-image-wrapper {
        margin-bottom: 30px;
    }

    #faq .section-title.text-start {
        text-align: center !important;
    }
}

/* ======================================= */
/* --- Footer Section --- */
/* ======================================= */
#main-footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    position: relative;
    overflow: hidden;
}

/* --- Watermark Effect --- */
#main-footer::before {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -80px;
    width: 400px;
    height: 400px;
    opacity: 0.04;
    z-index: 1;
    /* Embedded SVG for the solar panel icon */
    background-image: url("assets/img/solar-panel-icon.png");
    background-repeat: no-repeat;
    background-size: contain;
}

#main-footer .container {
    position: relative;
    z-index: 2;
}

.footer-heading {
    font-family: var(--heading-font);
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.25rem;
}

#main-footer p {
    line-height: 1.7;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
    margin-right: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background-color: #E56A39;
    /* Darker orange on hover */
}

.footer-links li,
.contact-info li {
    margin-bottom: 12px;
}

.footer-links a,
.contact-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.footer-links i,
.contact-info i {
    color: var(--secondary-color);
    margin-right: 12px;
    width: 15px;
}

.contact-info span {
    display: inline-block;
    vertical-align: top;
    max-width: 85%;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 60px 0 30px 0;
}

.copyright {
    font-size: 0.9rem;
}

.developer-credit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ======================================= */
/* --- Testimonial Section - V4 --- */
/* ======================================= */
#testimonial-slider {
    background-color: var(--primary-color);
    /* Dark Blue Background */
    color: #ffffff;
}

.testimonial-header h2 {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.testimonial-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Carousel Cell */
.carousel-cell {
    width: 100%;
    padding: 0 10px;
}

/* The box with the unique border */
.quote-box {
    position: relative;
    padding: 40px;
    height: 100%;
}

/* The stylized quote "borders" using pseudo-elements */
.quote-box::before,
.quote-box::after {
    content: '';
    position: absolute;
    width: 580px;
    height: 280px;
    border-color: var(--secondary-color);
    /* Orange Accent */
    border-style: solid;
}

/* Top-left quote mark */
.quote-box::before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 40px;
}

/* Bottom-right quote mark */
.quote-box::after {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 40px;
}

.quote-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    min-height: 150px;
}

.quote-author {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.quote-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--secondary-color);
}

.author-name {
    font-weight: 600;
    color: #ffffff;
}

.author-location {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Flickity Carousel Dots Styling --- */
.flickity-page-dots {
    bottom: -40px;
    /* Position dots below the content */
}

.flickity-page-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.flickity-page-dots .dot.is-selected {
    background: var(--secondary-color);
    /* Orange for active dot */
    transform: scale(1.5);
}

/* --- Responsive for Testimonials --- */
@media (max-width: 767.98px) {
    .testimonial-header h2 {
        font-size: 2rem;
    }

    .quote-box {
        margin-bottom: 40px;
    }

    .carousel-cell .row>.col-md-6:last-child .quote-box {
        margin-bottom: 0;
    }
}