@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Color Palette - Updated to match kerala.solar exactly */
    --primary: #facc15; /* Solar Yellow */
    --primary-hover: #eab308;
    --secondary: #16a34a; /* Forest Green */
    --secondary-hover: #15803d;
    --accent: #e11d48; /* Accent Red */
    --dark-navy: #1e293b; /* Icon body */
    --solar-blue: #38bdf8; /* Grid accent */
    --text-main: #1e293b; 
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #1e293b;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn.pill {
    border-radius: 3rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--bg-dark);
}
/* Announcement Bar */
.announcement-bar {
    background-color: var(--accent); /* Red background */
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.announcement-bar a {
    color: var(--primary); /* Yellow text for link */
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Adjust based on logo proportions */
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 60px; /* Slightly larger in footer */
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:not(.btn):hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
}

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

.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Trust Gallery Ticker */
.trust-gallery {
    padding: 2rem 0;
    background: var(--bg-alt);
    overflow: hidden;
}

.ticker-wrapper {
    width: 100%;
}

.ticker {
    display: flex;
    gap: 1.5rem;
    animation: ticker 30s linear infinite;
}

.ticker img {
    height: 200px;
    width: 300px;
    object-fit: cover;
    border-radius: 1rem;
    flex-shrink: 0;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Trusted By Section */
.trusted-by {
    padding: 3rem 0;
    background: var(--bg-alt);
    border-bottom: 1px solid #E5E7EB;
    text-align: center;
}

.trusted-by p {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #9CA3AF;
    transition: var(--transition);
}

.partner-logo:hover {
    color: var(--secondary);
}

.partner-logo i {
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    overflow: hidden;
    color: var(--white);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 1.5rem 0;
    color: var(--white);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(22, 101, 52, 0.1);
    color: var(--secondary);
}

.badge.red {
    background: rgba(225, 29, 72, 0.1);
    color: var(--accent);
}

.badge.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.badge.yellow {
    background: var(--primary);
    color: var(--bg-dark);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image-empty {
    position: relative;
    height: 400px;
}

.hero-image img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.floating-card i {
    font-size: 2rem;
    color: var(--secondary);
}

.floating-card strong {
    display: block;
    color: var(--bg-dark);
}

.floating-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { margin-top: 4rem; }
    .floating-card { left: 50%; transform: translateX(-50%); width: 90%; }
}

/* Solutions Section */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
    color: var(--bg-dark);
}

.section-header h2 span {
    color: var(--secondary);
}

.solution-card {
    padding: 3rem;
    border-radius: 1.5rem;
    transition: var(--transition);
}

.solution-card.problem {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
}

.solution-card.success {
    background: #F0FDF4;
    border: 1px solid #DCFCE7;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.problem .card-icon { color: var(--accent); }
.success .card-icon { color: var(--secondary); }

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.solution-card ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.solution-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.problem li i { color: var(--accent); }
.success li i { color: var(--secondary); }

/* Calculator Section */
.calculator {
    background-color: var(--bg-alt);
    border-radius: 3rem;
}

.calculator-box {
    padding-right: 2rem;
}

.input-group {
    margin: 2.5rem 0 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.input-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.1);
}

.results-box {
    padding: 3rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.result-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.result-placeholder i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.2;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item.highlight {
    background: rgba(250, 204, 21, 0.1);
    margin: 0.5rem -1rem;
    padding: 1.25rem 1rem;
    border-radius: 0.75rem;
    border-bottom: none;
}

.result-item .label {
    font-weight: 500;
    color: var(--text-muted);
}

.result-item .value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
}

.highlight .value {
    color: var(--text-main);
    font-size: 1.5rem;
}

.w-100 { width: 100%; }
.mt-1 { margin-top: 1.5rem; }

@media (max-width: 768px) {
    .calculator-box { padding-right: 0; margin-bottom: 3rem; }
}

/* Process Section */
.step-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.1;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr; }
}

/* Climate Section */
.climate {
    background-color: var(--white);
}

.climate-card {
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    background: var(--bg-alt);
    transition: var(--transition);
}

.climate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.climate-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.climate-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.climate-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Products Section */
.product-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid #E5E7EB;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-features {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-features li {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-features li i {
    color: var(--secondary);
}

/* About Section */
.about-image {
    position: relative;
}

.about-image img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-dark);
}

.experience-badge p {
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature i {
    font-size: 1.5rem;
    color: var(--secondary);
    background: rgba(22, 101, 52, 0.1);
    padding: 1rem;
    border-radius: 1rem;
}

.feature h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .about-image { margin-bottom: 4rem; }
    .experience-badge { right: 0; }
}

/* Footer Section */
.footer {
    background-color: #0f172a; /* Darker Blue-Gray */
    color: var(--white);
    padding-bottom: 2rem;
}

.footer .logo { color: var(--white); }
.footer .logo span { color: var(--primary); }

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    color: #9CA3AF;
    margin: 1.5rem 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #9CA3AF;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.contact-info li {
    display: flex;
    gap: 1rem;
    color: #9CA3AF;
}

.contact-info i {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #6B7280;
    font-size: 0.875rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-btn:hover {
    transform: scale(1.05) translateY(-5px);
    background: #20BA5A;
}

/* Lead Form Styles */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-form input, 
.footer-form select, 
.footer-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--white);
    font-family: var(--font-body);
    transition: var(--transition);
}

.footer-form textarea {
    height: 100px;
    resize: none;
}

.footer-form input:focus, 
.footer-form select:focus, 
.footer-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.footer-form select option {
    background: #0f172a;
    color: var(--white);
}

.form-status {
    font-size: 0.875rem;
    padding-top: 0.5rem;
    display: none;
}

.form-status.success {
    color: var(--secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 7rem;
    background: var(--bg-dark);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .back-to-top { right: 5rem; width: 40px; height: 40px; }
}

/* Footer layout refinement */
@media (min-width: 1024px) {
    .footer .grid-4 {
        grid-template-columns: 1.2fr 0.8fr 1.5fr 1fr;
    }
}
