﻿body {
    font-family: 'Segoe UI', sans-serif;
    color: #1F2937;
}

/* Top Bar */
.top-bar {
    background: #1E7F43;
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
}

/* Navbar */
.main-navbar {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.navbar-brand img {
    height: 48px;
}

.nav-link {
    font-weight: 500;
    margin-right: 10px;
}

/* Buttons */
.btn-solar {
    background: #F9B233;
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    padding: 8px 20px;
}

    .btn-solar:hover {
        background-color:aquamarine;
    }

.btn-hero {
    background: #F97316;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 18px;
}

/* Hero */
.hero {
    background: linear-gradient( rgba(0,0,0,0.5), rgba(0,0,0,0.5) ), url('/images/hero-solar.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

    .hero h1 {
        font-size: 42px;
        font-weight: 700;
    }

    .hero p {
        font-size: 20px;
        margin-bottom: 25px;
    }

/* Footer */
.footer {
    background: #1F2937;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}
/* Solar Stats Section */
.solar-stats {
    background: #F9FAFB;
    padding: 60px 0;
}

.stat-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

    .stat-box:hover {
        transform: translateY(-6px);
    }

.stat-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.stat-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1E7F43;
}

.stat-box p {
    margin: 0;
    font-size: 15px;
    color: #4B5563;
}
.btn-hero:hover{
    background-color:cadetblue;
}
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .whatsapp-float:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(0,0,0,0.35);
        color: #fff;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }

/* Hide text on small screens */
@media (max-width: 576px) {
    .whatsapp-text {
        display: none;
    }
}
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(37,211,102,0.5);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
/* Call Now Floating Button */
.call-now-float {
    position: fixed;
    right: 20px;
    bottom: 90px; /* stacked above WhatsApp */
    background: #F97316;
    color: #fff;
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 9998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .call-now-float:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(0,0,0,0.35);
        color: #fff;
    }

.call-icon {
    font-size: 20px;
}

/* Mobile Optimization */
@media (max-width: 576px) {
    .call-text {
        display: none;
    }

    .call-now-float {
        padding: 12px;
        border-radius: 50%;
    }
}
@media (min-width: 768px) {
    .call-now-float {
        display: none;
    }
}
.call-icon {
    animation: ring 1.5s infinite;
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0);
    }
}
/* Trust Badges Section */
.trust-badges {
    background: #ffffff;
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1F2937;
}

.badge-box {
    background: #F9FAFB;
    border-radius: 18px;
    padding: 25px 15px;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

    .badge-box:hover {
        transform: translateY(-6px);
    }

    .badge-box img {
        max-height: 140px; /* doubled from 70px */
        max-width: 100%;
        margin-bottom: 20px;
        object-fit: contain;
    }
@media (max-width: 576px) {
    .badge-box img {
        max-height: 110px;
    }
}
.badge-box {
    padding: 35px 20px;
}


    .badge-box p {
        margin: 0;
        font-weight: 600;
        color: #1E7F43;
        font-size: 15px;
    }
/*--Flip---*/

.flip-badge {
    position: relative;
}

.flip-inner {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* All images stacked perfectly */
.flip-img {
    position: absolute;
    max-height: 140px;
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Stagger animation */
.img1 {
    animation: fade 12s infinite;
}

.img2 {
    animation: fade 12s infinite 3s;
}

.img3 {
    animation: fade 12s infinite 6s;
}

.img4 {
    animation: fade 12s infinite 9s;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}
@media (max-width: 576px) {
    .flip-inner {
        height: 110px;
    }

    .flip-img {
        max-height: 110px;
    }
}
/*--Solar Calculator--*/
.solar-card {
    max-width: 420px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 12px;
    background: #f5fff7;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

    .solar-card h2 {
        color: #1f7a3f;
        margin-bottom: 20px;
    }

input[type=file] {
    width: 100%;
    margin-bottom: 15px;
}

button {
    background: #1f7a3f;
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.result-box {
    margin-top: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #1f7a3f;
}
