/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #1e40af;
    --light-blue: #dbeafe;
    --primary-yellow: #fbbf24;
    --secondary-yellow: #f59e0b;
    --primary-green: #10b981;
    --dark-green: #059669;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 968px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: auto;
    vertical-align: middle;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 0;
    line-height: 1.0;
    text-align: left;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-blue);
    border-bottom-color: var(--secondary-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-nav-link:hover {
    background: var(--light-blue);
}

/* Hero Section - Fixed and Organized */
.hero-section {
    background-image: url("../images/hero/hero2.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--white);
    padding: 60px 0 80px;
    margin-top: 40px;
    min-height: 650px;
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 58, 138, 0.75);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero Logos - Reduced size and better spacing */
.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0;
}

.hero-logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-logos img.white-box {
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.hero-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Hero Content - Better balanced layout */
.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    max-width: 650px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
    font-weight: 500;
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary-blue);
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-yellow);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hero Image - Better sizing */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image .logo-icon {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.hero-image .logo-icon:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.6)) 
            drop-shadow(0 0 60px rgba(251, 191, 36, 0.4));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-15px);
    }
}

/* Section Common Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: var(--primary-yellow);
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--gray-50);
}

.about-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-text-image {
    flex: 1;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mission-vision-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mission-card {
    border-top: 4px solid var(--secondary-blue);
}

.vision-card {
    border-top: 4px solid var(--primary-green);
}

.card h3 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-dark);
    line-height: 1.8;
}

.advantage-title {
    font-size: 2rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.advantage-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-yellow);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.25rem;
}


/* Floating Button Styles */
.floating-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    will-change: transform;
    pointer-events: auto;
}

.floating-button {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 28px;
    transition: background-color 0.3s ease;
}

.floating-button:hover {
    background-color: var(--secondary-yellow);
}

.floating-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.floating-button {
    animation: buttonFloat 3s ease-in-out infinite;
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.floating-options {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 70px;
    right: 0;
    gap: 12px;
}

.floating-options.show {
    display: flex;
}

.floating-options .option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.floating-options .option.help {
    background-color: blue;
    color: white;
}

.floating-options .option.help:hover {
    background-color: darkblue;
}

.floating-options .option.email {
    background-color: red;
    color: white;
}

.floating-options .option.email:hover {
    background-color: darkred;
}

.floating-options .option.whatsapp {
    background-color: green;
    color: white;
}

.floating-options .option.whatsapp:hover {
    background-color: darkgreen;
}

/* Responsive Design */
@media (max-width: 968px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hero Section Responsive */
    .hero-section {
        padding: 80px 0 60px;
        min-height: 550px;
    }

    .hero-logos {
        gap: 20px;
        margin-bottom: 30px;
    }

    .hero-logos img {
        height: 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn-primary {
        display: inline-flex;
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .stat-item {
        padding: 0.75rem 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-image {
        display: none;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subsidy-vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .solar-solutions .service-cards,
    .inverter-services .service-cards,
    .battery-services .service-cards {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .project-stats {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-list {
        display: block; /* Change from grid to block for vertical stacking */
        grid-template-columns: 1fr;
    }

    .warranty-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on screens 481px-768px */
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    /* Services Section Mobile */
    .service-cards {
        grid-template-columns: 1fr;
    }

    .service-card .image-overlay p {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .service-card .card-title h4 {
        font-size: 1rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 60px 0 50px;
        min-height: 500px;
    }

    .hero-logos {
        gap: 15px;
    }

    .hero-logos img {
        height: 35px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 250px;
        text-align: center;
        align-items: center;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    /* Projects Section Mobile */
    .projects-showcase {
        padding: 1rem;
    }

    .testimonial-card {
        flex: 0 0 240px;
        min-width: 240px;
        padding: 8px 6px 12px;
    }





    .contact-form-container,
    .contact-info-card,
    .business-hours-card {
        padding: 1rem;
        width: 100%;
    }

    .contact-form-container,
    .contact-info-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-form-container h3,
    .contact-info-card h3,
    .business-hours-card h3 {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
    }

    .btn-submit {
        padding: 0.75rem;
    }

    .contact-info-card {
        padding: 1rem;
    }

    .contact-item {
        align-items: flex-start; /* Align icon and text to the top */
        text-align: left; /* Ensure text is left-aligned */
        gap: 1rem;
    }

    .contact-item p {
        word-break: break-word;
    }

    .business-hours-card {
        padding: 1rem;
    }

    .subsidy-vendor-card h4 {
        font-size: 1.2rem;
    }

    .subsidy-vendor-card p {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column p {
        word-break: break-word;
    }

    .footer-contact span {
        word-break: break-word;
    }

    .footer-logo {
        justify-content: center;
    }

    .mobile-nav-link {
        text-align: center;
    }
}

/* Mobile responsive for subsidy-vendor cards */
@media (max-width: 768px) {
    .subsidy-vendor-card.mnre-card,
    .subsidy-vendor-card.kseb-card {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .subsidy-vendor-card.mnre-card .card-image {
        order: -1;
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .subsidy-vendor-card.kseb-card .card-image {
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .subsidy-vendor-card.mnre-card img,
    .subsidy-vendor-card.kseb-card img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .subsidy-vendor-card.mnre-card .card-content,
    .subsidy-vendor-card.kseb-card .card-content {
        text-align: center;
    }

    /* Upgraded Mobile Responsive for Projects Section */
    body {
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden;
    }

    .projects-section {
        padding: 25px 10px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
        transition: padding 0.3s ease;
    }

    .projects-showcase {
        padding: 0 10px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        text-align: center !important;
        transition: padding 0.3s ease;
    }

    .showcase-icon {
        font-size: 48px !important;
        margin-bottom: 18px !important;
        color: var(--secondary-blue) !important;
        transition: font-size 0.3s ease, margin 0.3s ease;
    }

    .projects-showcase h3 {
        font-size: 1.9rem !important;
        padding: 0 12px !important;
        margin-bottom: 25px !important;
        font-weight: 700 !important;
        color: var(--primary-blue) !important;
        letter-spacing: -0.3px !important;
        transition: font-size 0.3s ease, padding 0.3s ease;
    }

    .showcase-description {
        font-size: 1rem !important;
        margin-bottom: 35px !important;
        padding: 0 12px !important;
        color: var(--text-dark) !important;
        max-width: 100% !important;
        line-height: 1.5 !important;
        transition: font-size 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }

    .testimonial-slider {
        padding: 15px 0 50px !important;
        margin: 0 auto !important;
        width: 100% !important;
        position: relative !important;
        transition: padding 0.3s ease, margin 0.3s ease;
    }

    .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        transition: padding 0.3s ease;
    }

    .testimonial-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px 10px !important;
        min-height: auto !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 6px !important;
        border-radius: 15px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
        transition: padding 0.3s ease, gap 0.3s ease;
        flex: 0 0 200px !important;
        min-width: 200px !important;
    }

    .customer-image {
        width: 100% !important;
        padding: 15px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: #f8f9fa !important;
        transition: width 0.3s ease;
    }

    .customer-image img {
        width: 60% !important;
        max-height: 250px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        display: block !important;
        transition: width 0.3s ease, height 0.3s ease;
    }

    .testimonial-content {
        text-align: center !important;
        width: 100% !important;
        transition: width 0.3s ease;
    }

    .review-text {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        padding-left: 0 !important;
        border-left: none !important;
        border-top: 2px solid var(--secondary-blue) !important;
        padding-top: 8px !important;
        transition: font-size 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    }

    .customer-name {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
        font-weight: 700 !important;
        color: var(--primary-blue) !important;
        transition: font-size 0.3s ease, margin 0.3s ease;
    }

    .customer-profession {
        font-size: 0.75rem !important;
        margin-bottom: 3px !important;
        font-weight: 600 !important;
        color: var(--secondary-blue) !important;
        transition: font-size 0.3s ease, margin 0.3s ease;
    }

    .customer-location {
        font-size: 0.7rem !important;
        justify-content: center !important;
        color: var(--text-light) !important;
        transition: font-size 0.3s ease;
    }

    .stars {
        font-size: 18px !important;
        margin-bottom: 10px !important;
        letter-spacing: 2px !important;
        color: #ffd700 !important;
        transition: font-size 0.3s ease, margin 0.3s ease;
    }
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.advantage-card i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.advantage-card h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.advantage-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.subsidy-vendor-section {
    margin-top: 3rem;
}

.subsidy-vendor-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.subsidy-vendor-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: left;
}

.subsidy-vendor-card.mnre-card,
.subsidy-vendor-card.kseb-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.subsidy-vendor-card.mnre-card .card-image,
.subsidy-vendor-card.kseb-card .card-image {
    flex: 0 0 300px;
}

.subsidy-vendor-card.mnre-card .card-content,
.subsidy-vendor-card.kseb-card .card-content {
    flex: 1;
}

.subsidy-vendor-card.mnre-card img,
.subsidy-vendor-card.kseb-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.subsidy-vendor-card .read-more-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subsidy-vendor-card .read-more-btn:hover {
    background-color: var(--secondary-blue);
}

.subsidy-vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.subsidy-vendor-card h4 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.subsidy-vendor-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.subsidy-box {
    background-color: yellow;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: black;
}

/* Services Section */
.services-section {
    background: var(--white);
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-category {
    padding: 2.5rem;
    border-radius: 16px;
}

.solar-solutions {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.inverter-services {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

.battery-services {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2.5rem;
}

.solar-solutions .category-header i {
    color: var(--secondary-blue);
}

.inverter-services .category-header i {
    color: var(--primary-blue);
}

.battery-services .category-header i {
    color: var(--secondary-blue);
}

.category-header h3 {
    font-size: 2rem;
    color: var(--primary-blue);
}

/* Service Cards - Updated Structure */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.service-card .image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.service-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay that appears on hover */
.service-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.95);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.service-card:hover .image-overlay {
    opacity: 1;
}

.service-card .image-overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    color: white;
    margin: 0;
}

/* Card Title (below image) */
.service-card .card-title {
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.service-card .card-title h4 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.solar-solutions .service-card .card-title h4 {
    color: #1e40af;
}

.inverter-services .service-card .card-title h4 {
    color: var(--secondary-blue);
}

.battery-services .service-card .card-title h4 {
    color: var(--secondary-blue);
}

/* Products Section */
.products-section {
    background: var(--gray-50);
    padding: 80px 0;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.product-card:nth-child(1) .product-icon {
    color: var(--secondary-blue);
}

.product-card:nth-child(2) .product-icon {
    color: #ea580c;
}

.product-card:nth-child(3) .product-icon {
    color: var(--primary-green);
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.product-details p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    line-height: 1.6;
    word-wrap: break-word;
}

.product-details .label {
    font-weight: bold;
    color: #ff9800;
}

.product-details p:first-child {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-blue);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-height: none;
    overflow-y: visible;
}

.product-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.product-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 200px;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.product-item img:hover {
    transform: scale(1.1);
}

.product-item .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.warranty-section {
    background: var(--gray-50);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.warranty-section h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.warranty-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.warranty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.warranty-years {
    display: inline-block;
    background: #ff9800;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.warranty-card h4 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.warranty-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Projects Section */
.projects-section {
    background: var(--white);
}

.projects-showcase {
    background: linear-gradient(135deg, #d1fae5 0%, #dbeafe 100%);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.showcase-icon {
    font-size: 5rem;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
}

.projects-showcase h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.showcase-description {
    font-size: 1.25rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card:nth-child(1) .stat-number {
    color: var(--secondary-blue);
}

.stat-card:nth-child(2) .stat-number {
    color: var(--primary-green);
}

.stat-card:nth-child(3) .stat-number {
    color: var(--secondary-yellow);
}

.stat-card .stat-label {
    color: var(--text-dark);
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background: var(--gray-50);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.btn-submit {
    width: 100%;
    background: var(--secondary-blue);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-blue);
}

.form-success {
    background: #d1fae5;
    color: #047857;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card,
.business-hours-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info-card h3,
.business-hours-card h3 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

.business-hours-card {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
}

.business-hours-card h3 {
    color: var(--white);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
}

.hours-time {
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: auto;
    vertical-align: middle;
}

.footer-logo h3 {
    font-size: 1.25rem;
    line-height: 1;
}

.footer-column p {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
}

.footer-column h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.footer-contact i {
    color: var(--primary-yellow);
    display: inline-block;
    margin-right: 0.75rem;
    vertical-align: top;
    flex-shrink: 0;
}
.footer-contact span {
    color: var(--light-blue);
    word-break: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
    min-width: 0;
}
@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-column {
        text-align: left;
    }
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--light-blue);
    margin: 0.25rem 0;
    word-break: break-word;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-yellow);
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.testimonial-slider {
    width: 100%;
    margin-top: 2rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px 8px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 320px;
    gap: 10px;
    min-width: 320px;
    min-height: 200px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.customer-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
    margin: 0 auto 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.customer-image img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    border: none;
}

.testimonial-content {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.testimonial-content .stars {
    color: #FFD700;
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-content .review-text {
    font-size: 0.8rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.testimonial-content .customer-name {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--primary-blue);
    font-weight: 600;
}

.testimonial-content .customer-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive for testimonial cards */
@media (max-width: 968px) {
    .testimonial-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
}

@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 260px;
        min-width: 260px;
    }

    /* Enhanced mobile adjustments for products section */
    .products-grid {
        gap: 1.5rem;
    }

    .warranty-grid {
        gap: 1rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .warranty-card {
        padding: 1.5rem;
    }

    .warranty-section {
        padding: 2rem;
    }

    .product-item {
        flex-direction: column; /* Stack items vertically */
        text-align: center;
    }

    .product-item img {
        width: 150px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens adjustments */
    .container {
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .products-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .warranty-grid {
        grid-template-columns: 1fr; /* 1 column on screens <= 480px */
        gap: 0.75rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .product-details p {
        font-size: 0.85rem;
        word-wrap: break-word; /* Ensure long text wraps */
        margin: 0.25rem 0;
    }

    .warranty-card {
        padding: 1rem;
    }

    .warranty-years {
        font-size: 1.5rem; /* Adjusted font size for smaller screens */
    }

    .warranty-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .warranty-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .warranty-section {
        padding: 1.5rem;
    }

    .warranty-section h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

/* Tablet responsive for floating button */
@media (max-width: 1024px) {
    .floating-button-container {
        bottom: 25px;
        right: 25px;
    }

    .floating-button {
        width: 55px;
        height: 55px;
    }
}

/* Mobile landscape responsive for floating button */
@media (max-width: 768px) {
    .floating-button-container {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: 20px;
    }

    .floating-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Ensure floating button and back to top are accessible on small screens */
@media (max-width: 480px) {
    .floating-button-container {
        bottom: calc(15px + env(safe-area-inset-bottom));
        right: 15px;
    }

    .floating-button {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top i {
        font-size: 1rem;
    }
}
}

@media (max-width: 640px) {
  .swiper-slide .simple-testimonial-card {
    flex-direction: column !important;
    text-align: center !important;
  }

  .swiper-slide .simple-testimonial-card .testimonial-image {
    width: 100% !important;
    padding: 15px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #f8f9fa !important;
  }

  .swiper-slide .simple-testimonial-card .testimonial-image img {
    width: 60% !important;
    max-height: 250px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
  }

  .swiper-slide .simple-testimonial-card .testimonial-info {
    padding: 15px !important;
  }
}
