/* =====================================
   RESET
===================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #1c2b3d;
    background: #f6f9f8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}


/* =====================================
   VARIABLES
===================================== */

:root {

    --navy: #102f59;
    --dark-navy: #0c213b;

    --green: #087c42;
    --green-dark: #056436;

    --teal: #125d70;

    --gold: #d9a825;

    --white: #ffffff;

    --text: #263548;
    --gray: #697586;

    --footer: #111d28;

}


/* =====================================
   CONTAINER
===================================== */

.container {
    width: min(1280px, 92%);
    margin: auto;
}


/* =====================================
   HEADER
===================================== */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf1;

    position: relative;
    z-index: 100;
}

.navbar {

    min-height: 85px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* Company Logo */

.company-logo {
    display: flex;
    align-items: center;
}

.company-logo img {
    width: 170px;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 700px) {

    .company-logo img {
        width: 140px;
    }

}


/* Desktop Navigation */

.desktop-nav {

    display: flex;
    align-items: center;

    gap: 45px;
}

.desktop-nav a {

    position: relative;

    font-size: 13px;
    font-weight: 600;

    color: #253448;

    padding: 34px 0;

    transition: 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--green);
}

.desktop-nav .active::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 20px;

    height: 2px;

    background: var(--green);
}


/* Contact Button */

.contact-button {

    background: var(--green);

    color: white;

    padding: 14px 25px;

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    transition: 0.3s;
}

.contact-button:hover {

    background: var(--green-dark);

    transform: translateY(-2px);
}


/* Mobile Menu Button */

.menu-button {

    display: none;

    border: none;
    background: transparent;

    font-size: 28px;

    cursor: pointer;

    color: var(--navy);
}


/* Mobile Navigation */

.mobile-nav {

    display: none;

    background: white;

    padding: 10px 4% 20px;

    border-top: 1px solid #edf0f2;
}

.mobile-nav a {

    display: block;

    padding: 15px;

    font-size: 13px;
    font-weight: 600;

    border-bottom: 1px solid #edf0f2;
}


/* =====================================
   PRODUCTS SECTION
===================================== */

.products-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0 90px;

    background-image:
        linear-gradient(
            rgba(240, 248, 245, 0.442),
            rgba(255, 255, 255, 0.436)
        ),
        url("images/background.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Decorative Background */

.background-shape {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.shape-one {

    width: 600px;
    height: 600px;

    top: -250px;
    right: -200px;

    background:
        radial-gradient(
            circle,
            rgba(255, 205, 80, 0.18),
            transparent 70%
        );
}

.shape-two {

    width: 500px;
    height: 500px;

    bottom: -300px;
    left: -200px;

    background:
        radial-gradient(
            circle,
            rgba(12, 130, 75, 0.10),
            transparent 70%
        );
}


/* =====================================
   SECTION HEADING
===================================== */

.section-heading {

    position: relative;

    text-align: center;

    max-width: 800px;

    margin: 0 auto 55px;
}

.small-title {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    color: var(--navy);

    font-size: 17px;
    font-weight: 700;

    letter-spacing: 7px;
}

.small-title span {

    width: 55px;
    height: 2px;

    background: var(--green);
}

.section-heading h1 {

    font-size: clamp(48px, 7vw, 78px);

    color: var(--navy);

    font-weight: 800;

    line-height: 1;

    margin: 15px 0 20px;

    letter-spacing: 2px;
}

.section-heading p {

    color: var(--gray);

    font-size: 15px;

    line-height: 1.8;

    max-width: 650px;

    margin: auto;
}


/* =====================================
   PRODUCTS GRID
===================================== */

.products-grid {

    position: relative;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* =====================================
   PRODUCT CARD
===================================== */

.product-card {

    background: white;

    border-radius: 20px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-height: 530px;

    border: 1px solid rgba(220, 230, 235, 0.8);

    box-shadow:
        0 15px 40px rgba(15, 40, 65, 0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 25px 55px rgba(15, 40, 65, 0.17);
}


/* =====================================
   CARD HEADER
===================================== */

.card-header {

    min-height: 145px;

    padding: 28px;

    display: flex;

    align-items: center;

    gap: 20px;

    color: white;
}


/* Inverter */

.inverter-header {

    background:
        linear-gradient(
            135deg,
            #4a4fd4,
            #0b3858
        );
}


/* Panels */

.panel-header {

    background:
        linear-gradient(
            135deg,
            #4a4fd4,
            #0b3858
        );
}


/* Batteries */

.battery-header {

    background:
        linear-gradient(
            135deg,
            #4a4fd4,
            #0b3858
        );
}


/* Product Icon */

.product-icon {

    width: 65px;
    height: 65px;

    flex-shrink: 0;

    border-radius: 14px;

    border: 2px solid rgba(255, 255, 255, 0.8);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 30px;
}

.card-header h2 {

    font-size: 27px;

    margin-bottom: 8px;
}

.card-header p {

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    opacity: 0.9;
}


/* =====================================
   BRAND LOGOS
===================================== */

.logos-grid {

    flex: 1;

    padding: 30px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    align-content: center;

    gap: 25px 20px;
}
.logo-box {
    min-height: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;
}

.logo-box img {
    width: 100%;
    max-width: 160px;

    height: 70px;
    max-height: 70px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.logo-box:hover img {

    transform: scale(2.08);
}


/* Panel logos */

.panel-logos {

    grid-template-columns: repeat(2, 1fr);

    align-content: center;
}

.panel-logos .logo-box {

    min-height: 100px;
}

.panel-logos img {

    max-height: 65px;
}


/* =====================================
   PRODUCT BUTTONS
===================================== */

.product-btn {

    margin: 0 30px 30px;

    min-height: 55px;

    border-radius: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 22px;

    color: white;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.7px;

    transition: 0.3s;
}

.product-btn span {

    font-size: 25px;

    font-weight: 400;
}

.product-btn:hover {

    transform: scale(1.03);
}


/* Button Colors */

.blue-btn {

    background: linear-gradient(90deg, #000eb6, #1d17c0)
}

.green-btn {

        background: linear-gradient(90deg, #000eb6, #1d17c0)
}

.battery-btn {

        background: linear-gradient(90deg, #000eb6, #1d17c0)
}


/* =====================================
   FOOTER
===================================== */

.footer {

    background:
        linear-gradient(
            135deg,
            #162432,
            #0b141d
        );

    color: white;
}


/* Footer Content */

.footer-content {

    padding: 65px 0 50px;

    display: grid;

    grid-template-columns:
        1.4fr
        0.8fr
        1fr;

    gap: 70px;
}


/* Footer Logo */

.footer-logo {

    width: 150px;

    max-width: 100%;

    margin-bottom: 30px;

    /* Makes logo suitable for dark footer if needed */
    filter: brightness(1.1);
}


/* Footer Contact */

.footer-contact {

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.footer-contact a {

    display: flex;

    align-items: center;

    gap: 15px;

    color: #d3dae1;

    font-size: 14px;

    transition: 0.3s;
}

.footer-contact a:hover {

    color: white;
}

.footer-contact span {

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #204987;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* Footer Column */

.footer-column {

    padding-left: 40px;

    border-left:
        1px solid rgba(255, 255, 255, 0.2);
}

.footer-column h3 {

    font-size: 20px;

    margin-bottom: 22px;
}

.footer-column a {

    display: block;

    padding: 12px 0;

    color: #d3dae1;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.10);

    font-size: 14px;

    transition: 0.3s;
}

.footer-column a:hover {

    color: #d9b13b;

    padding-left: 8px;
}


/* Location */

.location p {

    color: #d3dae1;

    line-height: 1.9;

    font-size: 14px;
}

.location-icon {

    color: #18a45a;

    font-size: 20px;

    margin-right: 10px;
}


/* =====================================
   FOOTER BOTTOM
===================================== */

.footer-bottom {

    border-top:
        1px solid rgba(255, 255, 255, 0.15);

    padding: 22px 0;
}

.bottom-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}

.bottom-content p {

    color: #aeb8c2;

    font-size: 12px;
}


/* Social Icons */

.social-icons {

    display: flex;

    gap: 12px;
}

.social-icons a {

    width: 36px;
    height: 36px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 255, 255, 0.35);

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    font-size: 13px;
    font-weight: 700;

    transition: 0.3s;
}

.social-icons a:hover {

    background: var(--green);

    border-color: var(--green);

    transform: translateY(-3px);
}


/* =====================================
   TABLET RESPONSIVE
===================================== */

@media (max-width: 1100px) {

    .products-grid {

        grid-template-columns: repeat(2, 1fr);
    }

    .product-card:last-child {

        grid-column: 1 / -1;

        width: 100%;

        max-width: 600px;

        margin: auto;
    }

    .footer-content {

        grid-template-columns: 1fr 1fr;
    }

    .location {

        grid-column: 1 / -1;
    }

}


/* =====================================
   MOBILE NAVIGATION
===================================== */

@media (max-width: 800px) {

    .navbar {

        min-height: 75px;
    }

    .desktop-nav,
    .contact-button {

        display: none;
    }

    .menu-button {

        display: block;
    }

    .mobile-nav.show {

        display: block;
    }

}


/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 700px) {

    .products-section {

        padding: 55px 0;
    }

    .section-heading {

        margin-bottom: 35px;
    }

    .section-heading h1 {

        font-size: 42px;
    }

    .section-heading p {

        font-size: 13px;

        padding: 0 10px;
    }


    /* Product cards */

    .products-grid {

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .product-card {

        min-height: auto;

        border-radius: 15px;
    }

    .product-card:last-child {

        grid-column: auto;

        max-width: none;
    }


    /* Card Header */

    .card-header {
    min-height: 190px;
    padding: 25px 28px;

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;
    }  
    
    .card-title-content {
    display: flex;
    align-items: center;
    gap: 15px;

    position: relative;
    z-index: 3;

    max-width: 60%;
    }

    .product-icon {

        width: 50px;
        height: 50px;

        font-size: 23px;

        border-radius: 11px;
    }

    .card-product-image {
    position: absolute;

    right: 15px;
    bottom: 0;

    width: 155px;
    height: 165px;

    object-fit: contain;

    z-index: 2;

    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.28));

    transition:
        transform 0.4s ease;
    }

    .product-card:hover .card-product-image {
    transform: scale(1.08) translateY(-5px);
    }   

    .card-header h2 {

        font-size: 19px;

        margin-bottom: 5px;
    }

    .card-header p {

        font-size: 8px;

        letter-spacing: 1px;
    }

    .card-header::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    right: -70px;
    top: -70px;

    background: rgba(255, 255, 255, 0.08);

    z-index: 1;
    }

    /* INVERTER */

.inverter-image {
    width: 170px;
    height: 170px;

    right: 10px;
    bottom: 0;
    }


/* SOLAR PANEL */

.panel-image {
    width: 190px;
    height: 150px;

    right: -20px;
    bottom: 0;

    opacity: 0.9;
    }


/* BATTERY */

.battery-image {
    width: 145px;
    height: 175px;

    right: 18px;
    bottom: -5px;
}   


    /* Logos Mobile */

    .logos-grid {

        padding: 22px 18px;

        grid-template-columns:
            repeat(4, 1fr);

        gap: 15px 10px;
    }

    .logo-box {

        min-height: 40px;
    }

    .logo-box img {

        max-height: 32px;
    }


    .panel-logos {

        grid-template-columns:
            repeat(4, 1fr);
    }

    .panel-logos .logo-box {

        min-height: 60px;
    }

    .panel-logos img {

        max-height: 40px;
    }


    /* Product Button */

    .product-btn {
        background: linear-gradient(90deg, #0607ff, #008df1);;

        margin: 0 18px 20px;

        min-height: 48px;

        font-size: 10px;
    }


    /* Footer */

    .footer-content {

        padding: 45px 0 35px;

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-column,
    .location {

        grid-column: auto;

        border-left: none;

        border-top:
            1px solid rgba(255, 255, 255, 0.15);

        padding: 25px 0 0;
    }

    .bottom-content {

        flex-direction: column;

        text-align: center;
    }

}


/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 450px) {

    .container {

        width: 94%;
    }

    .company-logo img {

        width: 180px;
    }

    .section-heading h1 {

        font-size: 36px;
    }

    .small-title {

        font-size: 14px;

        letter-spacing: 5px;
    }

    .small-title span {

        width: 35px;
    }

    .logos-grid {

        gap: 12px 6px;
    }

    .logo-box img {

        max-height: 27px;
    }

}

@media (max-width: 700px) {

    .card-header {
        min-height: 150px;
        padding: 20px;
    }

    .card-title-content {
        max-width: 55%;
    }

    .card-product-image {
        width: 125px;
        height: 130px;

        right: 5px;
    }

    .inverter-image {
        width: 135px;
        height: 140px;
    }

    .panel-image {
        width: 160px;
        height: 120px;

        right: -20px;
    }

    .battery-image {
        width: 115px;
        height: 145px;

        right: 12px;
    }

    .card-header h2 {
        font-size: 20px;
    }

    .card-header p {
        font-size: 8px;
    }
}