:root {
    --color-primary: #f9d342;
    --color-secondary: #ffc107;
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-background-light: #fff;
    --color-background-pale: #fffde4;
    --color-background-yellow-gradient: linear-gradient(to right, #fffde4, #f9f871);
    --color-background-off-white: #f9f9f9;
    --color-border-grey: #ccc;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-accent: #ffa500;
    --font-primary: 'Segoe UI', Arial, sans-serif;
}
/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    text-decoration: none;
}

body {
    background: var(--color-background-yellow-gradient);
    color: var(--color-text-dark);
    line-height: 1.6;
    font-size: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    text-align: center;
    cursor: auto;
}

html {
    scroll-behavior: smooth;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--color-primary);
    padding: 20px;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--color-shadow);
    margin-bottom: 20px;
    width: 100vw;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header h1 {
    font-size: 2.5em;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

nav {
    background-color: var(--color-text-dark);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    position:sticky;
    top:0;
    width:100%;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--color-shadow);
    animation: fadeIn 2s ease-in-out;
}
nav, #main-nav,
nav * , #main-nav * {
    color: #fff !important;
    background-color: var(--color-text-dark) !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 1px 2px #0006 !important;
}
nav a, #main-nav a,
nav a * , #main-nav a * {
    color: #fff !important;
    background: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 1px 2px #0006 !important;
    text-decoration: none;
    transition: color 0.3s ease, box-shadow 0.3s ease !important;

}

/* ✨ Navbar + Text Glow on Click */
nav.glow {
    box-shadow: 0 0 25px 6px yellow;
}

nav.glow a,
nav.glow * {
    color: yellow !important;
    text-shadow: 0 0 10px yellow, 0 0 20px gold !important;
}

/* Sticky entrance animation */
@keyframes stickySlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav.sticky {
    animation: stickySlide 0.4s ease forwards;
}

/* Google Translate */
.goog-te-banner-frame, .goog-te-menu-value, .goog-te-gadget-simple, .goog-te-combo {
    color: #333 !important;
}
.goog-te-menu-frame nav, .goog-te-menu-frame #main-nav {
    color: #fff !important;
}
nav[style], #main-nav[style],
nav a[style], #main-nav a[style] {
    color: #fff !important;
    background-color: var(--color-text-dark) !important;
    text-shadow: 0 1px 2px #0006 !important;
}
.goog-te-banner-frame, .goog-te-menu-value, .goog-te-gadget-simple, .goog-te-combo {
    color: #333 !important;
}
.goog-te-menu-frame nav, .goog-te-menu-frame #main-nav {
    color: #fff !important;
}

nav a {
    color: var(--color-text-light);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-primary);
}

/* --- Layout Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background-color: var(--color-background-light);
    border-radius: 10px;
    box-shadow: 0 0 10px #e0e0e0;
    animation: fadeInUp 1s ease-in-out;
}

section {
    margin-bottom: 40px;
    animation: slideIn 1.5s ease-in-out;
}

section h2 {
    margin-bottom: 10px;
    font-size: 2em;
    color: #444;
    border-bottom: 2px solid var(--color-primary);
}

section p {
    font-size: 1.2em;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 10%;
    background-color: var(--color-background-light);
    border-bottom: 2px solid #eee;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.hero-content h2 {
    color: #444;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.hero-btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background-color: #e6a700;
}

.hero-image img {
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 0 12px var(--color-shadow);
}

/* --- Benefit & Image Styling --- */
.solar-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: block;
    transition: transform 0.3s ease;
}

.solar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.benefits-list {
    list-style-type: none;
    padding: 0;
    margin: 20px auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.benefit-list li {
    background: var(--color-background-light);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 8px var(--color-shadow);
    width: 100%;
}

.benefit-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- Calculator Section --- */
#calculators input,
#calculators button {
    margin: 10px auto;
    padding: 10px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--color-border-grey);
    border-radius: 5px;
    display: block;
}

#calculators input {
    font-size: 1em;
}

#calculators button {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

#calculators button:hover {
    background-color: #f9c32f;
}

#result {
    margin-top: 20px;
    padding: 15px;
    background: #fff9e6;
    border-left: 5px solid gold;
    font-weight: bold;
    color: var(--color-text-dark);
    border-radius: 8px;
}

/* --- Subsidy Section --- */
.schemes-section {
    padding: 40px 20px;
    background-color: var(--color-background-off-white);
    text-align: center;
}

.schemes-section h2 {
    font-size: 2.2rem;
    color: #e69a00;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-bottom: none;
    margin-bottom: 30px;
}

.schemes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.scheme-card {
    background: var(--color-background-light);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--color-shadow);
    width: 280px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.scheme-card h3 {
    font-size: 1.3rem;
    color: #007B5E;
    margin-bottom: 10px;
}

.scheme-card p {
    font-size: 0.95rem;
    color: #444;
}

.scheme-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-text-light);
    background-color: var(--color-accent);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.scheme-card a:hover {
    background-color: #e67e22;
}

.icon-container {
    text-align: center;
    margin-bottom: 15px;
}

.icon-container img {
    width: 64px;
    height: 64px;
    filter: brightness(0) saturate(100%) invert(77%) sepia(64%) saturate(546%) hue-rotate(1deg) brightness(96%) contrast(89%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.scheme-card:hover .icon-container img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.2);
}

/* --- Success Stories Section --- */
#success-stories {
    background-color: #fff8e1;
    padding: 50px 20px;
    text-align: center;
}

#success-stories h2 {
    color: #f9a825;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

#success-stories h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    background-color: #f9a825;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* --- Story Cards --- */
.story-card {
    background-color: var(--color-background-light);
    border: 1px solid #fbc02d;
    border-left: 8px solid #fbc02d;
    border-radius: 12px;
    margin: 25px auto;
    padding: 25px;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: all 0.3s ease;
}

/* Card Hover - Lift & Shadow Glow */
.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(249, 168, 37, 0.4);
}

/* --- Image Styling --- */
.story-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fbc02d;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

/* Hover Zoom + Glow Effect */
.story-img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 221, 51, 0.8);
    border-color: #ffeb3b;
}

/* --- Text Styling --- */
.story-card h3 {
    color: #f57f17;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.story-card p {
    color: var(--color-text-dark);
    font-size: 16px;
    line-height: 1.6;
}

/* Text color shift when card is hovered */
.story-card:hover h3 {
    color: #f9a825;
}

/* --- Fade-in Animation when Appears --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card {
    animation: fadeUp 0.6s ease forwards;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .story-card {
        padding: 20px;
    }

    .story-img {
        width: 90px;
        height: 90px;
    }

    #success-stories h2 {
        font-size: 28px;
    }
}

/* --- Registration Form Section --- */
.form-section {
    text-align: center;
}

.form-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-section input,
.form-section button {
    display: block;
    margin: 10px 0;
    padding: 12px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--color-border-grey);
    border-radius: 5px;
}

.form-section input {
    font-size: 1em;
}

.form-section button {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.form-section button:hover {
    background-color: #f9c32f;
}

.form-section p {
    margin-top: 10px;
    font-size: 1.1em;
    color: #666;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--color-background-off-white);
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid var(--color-accent);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.contact-info,
.contact-form {
    width: 300px;
    max-width: 100%;
    margin: 10px;
    text-align: left;
}

.contact-info p,
.contact-info a {
    font-size: 16px;
    color: var(--color-text-dark);
    margin: 8px 0;
}

.social-links a {
    text-decoration: none;
    margin: 0 8px;
    color: var(--color-accent);
    font-weight: bold;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.contact-form button {
    padding: 10px;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #e69500;
}

/* --- Footer --- */
footer, footer *, footer[style], footer a[style], footer p[style] {
    background-color: #262525;
    color: #fff;
    text-align: center;
    padding: 15px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 -2px 10px var(--color-shadow);
    text-shadow: 0 1px 2px #0006;
    opacity: 1;
    visibility: visible;
}

/* form message */
#formResponse {
    color: green;
    font-weight: bold;
}

#formMessage {
    color: green;
    font-weight: bold;
    display: none;
    margin-top: 10px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Utility Classes --- */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Google Translate and Chatbot --- */
#google_translate_element {
    margin: 20px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.5s ease-in-out;
}

/* --- Media Queries --- */
@media (max-width: 900px) {
    body {
        padding: 8px;
    }
    header {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        padding: 12px 4px;
    }
    nav {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        padding: 8px 2px;
        font-size: 1em;
        overflow-x: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    nav a {
        margin: 4px 6px;
        padding: 6px 10px;
        font-size: 1em;
        border-radius: 4px;
    }
    .hero-section {
        flex-direction: column;
        padding: 18px 2vw 10px 2vw;
        text-align: center;
        gap: 10px;
    }
    .hero-content {
        margin-bottom: 10px;
        max-width: 100vw;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content h2 {
        font-size: 1.2em;
    }
    .hero-image img {
        max-width: 95vw;
        margin-top: 10px;
        height: auto;
    }
    .container {
        padding: 10px 2vw;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }
    section {
        margin-bottom: 24px;
        padding: 0;
        animation: none;
    }
    section h2 {
        font-size: 1.2em;
        margin-bottom: 6px;
    }
    .solar-img {
        max-width: 98vw;
        margin: 6px 0;
        border-radius: 8px;
    }
    .schemes-container {
        flex-direction: column;
        gap: 10px;
    }
    .scheme-card {
        width: 98vw;
        max-width: 98vw;
        padding: 10px 4px;
        border-radius: 8px;
    }
    .icon-container img {
        width: 48px;
        height: 48px;
    }
    .story-card {
        padding: 10px 4px;
        max-width: 98vw;
        border-radius: 8px;
    }
    .story-img {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }
    .benefits-list {
        max-width: 98vw;
        font-size: 1em;
    }
    .benefit-list li {
        padding: 10px;
        margin: 6px 0;
        border-radius: 6px;
    }
    #calculators input,
    #calculators button {
        max-width: 98vw;
        font-size: 1em;
        padding: 8px;
    }
    .form-section input,
    .form-section button {
        max-width: 98vw;
        font-size: 1em;
        padding: 8px;
    }
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .contact-info,
    .contact-form {
        width: 98vw;
        max-width: 98vw;
        margin: 6px 0;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 1em;
        padding: 8px;
    }
    .contact-form button {
        font-size: 1em;
        padding: 8px;
    }
    footer {
        padding: 10px 2vw;
        font-size: 0.95em;
        border-radius: 0;
        width: 100vw;
        max-width: 100vw;
    }
}
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    header h1 {
        font-size: 1.3em;
    }
    nav {
        font-size: 0.98em;
    }
    .hero-content h1 {
        font-size: 1.2em;
    }
    .hero-content h2 {
        font-size: 1em;
    }
    .container, .scheme-card, .story-card, .contact-info, .contact-form {
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .benefits-list, .solar-img, .scheme-card, .story-card {
        max-width: 99vw;
    }
}

/* Chatbot styles */
#chatbot-container #nika-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 10001;
}

#chatbot-container #nika-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

#chatbox {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px gold;
    overflow: hidden;
    z-index: 10000;
}

#chatbox .chat-header {
    background: gold;
    color: black;
    padding: 10px;
    font-weight: bold;
    text-align:center;
}

#chatlog {
    padding: 10px;
    height: 200px;
    overflow-y: auto;
    background: #fff9e6;
}

.chat-input-row {
    display:flex;
    border-top:1px solid #ddd;
}

.chat-input-row input[type="text"] {
    flex: 1;
    padding: 8px;
    border: none;
}

.chat-input-row button {
    background: gold;
    color: black;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
}