:root {
    --primary-blue: #003366;
    --accent-gold: #f9a825;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --blob-1: rgba(224, 242, 255, 0.6);
    --blob-2: rgba(255, 249, 219, 0.6);
    --blob-3: rgba(243, 229, 245, 0.6);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(0, 51, 102, 0.05), transparent 40%),
        radial-gradient(circle at bottom right, rgba(249, 168, 37, 0.05), transparent 40%);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    background-color: var(--blob-1);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    background-color: var(--blob-2);
    bottom: -150px;
    right: -50px;
    width: 600px;
    height: 600px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    background-color: var(--blob-3);
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    animation-delay: -10s;
    animation-duration: 22s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Layout & Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Top Bar */
.top-bar {
    background-color: #ffd700;
    /* Vivid Yellow */
    color: var(--primary-blue);
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar p {
    margin: 0;
}

/* Navbar */
.navbar {
    width: 100%;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 51, 102, 0.05);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.btn-cta {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    background-color: #004080;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    /* Adjusted to balance the new header height */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 51, 102, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-logo {
    display: block;
    margin-bottom: 24px;
}

.hero-logo img {
    height: 56px;
    width: auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    color: #777;
}

/* Form Styling */
.form-card {
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.form-card h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.form-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue), #004080);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.form-footer-contact {
    margin-top: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-msg {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0 !important;
}

.btn-whatsapp-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.btn-whatsapp-form:hover {
    transform: translateY(-2px);
    background-color: #20bd5a;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.2);
    color: white;
}

/* Glassmorphism helpers */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.benefit-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

/* Grid helper */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.project-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Trust Section */
.dark {
    background: var(--primary-blue);
    color: white;
    border-radius: 40px;
    padding: 60px;
    margin: 40px 0;
}

.dark h2 {
    color: white;
}

.dark p {
    color: rgba(255, 255, 255, 0.8);
}

.sec-badge img {
    height: 80px;
    margin-top: 20px;
    filter: brightness(0) invert(1);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.user-name {
    display: block;
    font-weight: 700;
    color: var(--primary-blue);
}

.stars {
    color: var(--accent-gold);
}

/* Google Branding */
.google-brand {
    font-weight: 700;
    margin-left: 10px;
}

.g-blue {
    color: #4285F4;
}

.g-red {
    color: #EA4335;
}

.g-yellow {
    color: #FBBC05;
}

.g-green {
    color: #34A853;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 15px;
    padding: 20px;
    cursor: pointer;
}

summary {
    font-weight: 700;
    color: var(--primary-blue);
    outline: none;
    list-style: none;
}

details p {
    margin-top: 15px;
    color: #666;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-info img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.footer-links ul {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #999;
}

/* Navigation JS classes */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        /* Adjusted for top bar + navbar */
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .grid-2.reverse {
        flex-direction: column-reverse;
    }

    .floating-img {
        width: 85%;
        max-width: none;
        margin: 0 auto;
    }

    .payment-image {
        display: none;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: badge-float 3s ease-in-out infinite;
    white-space: nowrap;
    border: 1px solid rgba(0, 51, 102, 0.05);
}

.whatsapp-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-right: 1px solid rgba(0, 51, 102, 0.05);
    border-bottom: 1px solid rgba(0, 51, 102, 0.05);
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: 0;
    left: -100%;
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.whatsapp-float:hover .whatsapp-icon::before {
    left: 150%;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }

    .whatsapp-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* Solar Info Section */
.solar-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 25px;
    margin-top: 40px;
}

.solar-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
    border-radius: 20px;
}

.solar-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.solar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9) 0%, rgba(0, 51, 102, 0.2) 60%, transparent 100%);
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.solar-card .card-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    color: white;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.solar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.solar-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.solar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.2);
}

.solar-card:hover img {
    transform: scale(1.1);
}

.solar-card:hover::after {
    opacity: 1;
}

.solar-card:hover .card-content {
    transform: translateY(0);
}

.solar-card:hover p {
    opacity: 1;
    max-height: 100px;
    margin-top: 10px;
}

/* Mosaic Layout Logic */
.card-large {
    grid-row: span 2;
}

.card-wide {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .solar-info-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (max-width: 768px) {
    .solar-info-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .card-large,
    .card-wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .solar-card p {
        opacity: 1;
        max-height: 100px;
        margin-top: 10px;
    }

    .solar-card .card-content {
        transform: translateY(0);
    }
}