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

html,
body {
    width: 100%;
    height: 100%;
    font-family: "Montserrat", sans-serif;
    background: #f7f7f7;
    scroll-behavior: smooth;
}

.topbar {
    background: transparent;
    color: white;
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    padding: 0 1rem;
    z-index: 100;
}

.logo {
    color: #61D64E;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
}

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: #FFF;
    height: 70px;
    width: 100%;
    max-width: 1200px;

}

.link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem;
    background-color: rgba(75, 73, 73, 0.4);
    border-radius: 10px;
    transition: 0.3s;

}

.link:hover {
    background-color: rgba(75, 73, 73, 0.6);
    color: #61D64E;
}


.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu>.link {
    margin: 0 1rem;
    overflow: hidden;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}


@media (max-width: 700px) {
    .menu-button-container {
        display: flex;
    }

    .topbar {
        position: fixed;
        background: #222;
    }

    .top-nav {
        height: 55px;
    }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 55px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    #menu-toggle~.menu .link {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #menu-toggle:checked~.menu .link {
        border: 1px solid #333;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu>.link {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: #222;
        border-radius: 0;
    }

    .menu>.link:not(:last-child) {
        border-bottom: 1px solid #444;
    }

    .link:hover {
        background-color: #444444;
        color: #61D64E;
    }
}


.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* height: calc(100vh - 70px); */
    height: 100vh;
    padding: 0 4rem;
    gap: 3rem;
    flex-direction: column;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('/assets/background.jpg');
    background-position: bottom;
    /* initial for mobile, bottom for medium, center for large */
    background-repeat: no-repeat;
    background-size: cover;
    text-shadow: 0 1px 0 black;

}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* margin-top: 5.8rem; */
    text-align: center;
    flex-grow: 1;
    /* push cards to bottom*/
}

.hero-main {
    font-size: 3.5rem;
    color: white;
    animation: fade-in forwards 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955);

}

.hero-subtext {
    color: white;
    font-size: 2.25rem;
    font-weight: 400;
    animation: fade-in forwards 1s cubic-bezier(0.455, 0.03, 0.515, 0.955);

}

.hero-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 2rem;
    width: 630px;
    align-self: center;
    animation: fade-in forwards 1.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);

}



.text-green {
    color: #61D64E;
}

.battery {
    width: 100px;
    height: auto;
    align-self: center;
    margin-top: 3rem;
    animation: fade-in forwards 1.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);

}

.battery path:nth-of-type(1) {
    animation: glow 7s linear infinite alternate;

}

.battery path:nth-of-type(2) {
    opacity: 0.6;
}

@keyframes glow {
    0% {
        opacity: 0.3;
        fill: #313132;

    }

    50% {
        opacity: 0.2;
        fill: #61D64E;
        filter: drop-shadow(-.75px 0px 6px #61D64E)
    }

    100% {
        opacity: 0.6;
        fill: #313132;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.loading {
    opacity: 0;
    transform: translateY(45px);
    transition: transform 1s, opacity 0.9s;
}

.loading2 {
    opacity: 0;
    transform: translateY(45px);
    transition: transform 1.1s, opacity 0.9s;
}

.loading.loaded,
.loading2.loaded {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url('/assets/wave.svg');
    background-position: bottom;
    /* background-attachment: fixed; // uncomment for background paralax*/
    background-repeat: repeat-x;
    height: 700px;
}

.section-header {
    font-size: 2.5rem;
    text-align: center;
}

.section2 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 3rem 0;
    padding-bottom: 10rem;
}

.section3 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 0;
}

.section4 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 8rem 0;
}

.section5 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 0;

}

.content-wrapper {
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.showcase {
    color: white;
    display: flex;
    align-items: flex-end;
}

.hero-card {
    width: 200px;
    height: 300px;
    background: #f7f7f7;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in forwards 1.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);

}

.hero-card:nth-child(1) {
    border-top-right-radius: 0;
    box-shadow: -4px 8px 24px 0px rgba(66, 68, 90, 1);

}

.hero-card:nth-child(2) {
    color: red;
    background-color: black;
    box-shadow: 0px 6px 24px 0px rgb(0, 0, 0);
    width: 300px;
}

.hero-card:nth-child(3) {
    border-top-left-radius: 0;
    box-shadow: 4px 8px 24px 0px rgba(66, 68, 90, 1);
}

.hero-card:nth-child(odd) {
    height: 220px;
}

.card-container {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;

}

.content-card {
    /* box-shadow: 0 0 #0000, 0 0 #0000, 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); */
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
    padding: 1.4rem;
    border-radius: 18px;
    background: #f7f7f7;
    border: 10px solid white;
    text-align: center;
}

.card-header {
    margin-bottom: 0.5rem;
    text-wrap: nowrap;
}

.card-icon {
    border-radius: 50%;
    background: white;
    width: 50px;
    height: 50px;
    padding: 0.5rem;
    text-align: center;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #f7f7f7;
}


.section-list {
    margin-top: 1rem;
    display: flex;
}

.list-item {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    height: 100px;
    padding: 1rem 0.5rem;
}

.list-number {
    display: block;
    background: #d1f3cb;
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    min-height: 30px;
    max-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-subtext {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
    max-width: 1000px
}


.section-grid {
    display: grid;
    grid-template-columns: 500px 500px;
    grid-template-rows: auto;
    gap: 10px;
    margin-top: 2rem
}

.grid-item {
    border: 1px solid lightgray;
    padding: 1rem;
    background: white;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    gap: 1rem;
    text-align: center;
    align-items: center;
    padding: 1rem 0;
    border-radius: 10px
}

.item-header {
    /* text-align: center; */
    font-size: 1.2rem;
}

.item-text {
    width: 80%;
}

.section-divided {
    display: flex;
    width: 100%;
    gap: 3.5rem;
    margin-top: 2rem;
}

.divided-left {
    width: 600px;
    border: 10px solid #f7f7f7;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: #f7f7f7; */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/assets/leaf.jpg');
    background-size: cover;
    box-shadow: -1.5px 0 7.5px #0000, -3.5px 0 17.9px #00000001, -6.5px 0 32.6px #00000002, -10.8px 0 54.3px #00000003, -17.5px 0 87.7px #00000005, -28.7px 0 143.68px #00000008, -49.45px 0 247.2px #0000000e, -90px 0 450px #0000001a;
}

.handshake {
    background: white;
    border-radius: 50%;
    padding: 2rem;
}

.divided-right {
    width: 100%;
}

.about-header {
    font-size: 2rem;
}

.about-subtext {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.about-list {
    margin-top: 1rem;
    margin-left: 1.1rem
}

.purchase-list {
    margin-top: 1rem;
    margin-left: 1.1rem;
    font-size: 1.2rem;
}

.list-bold {
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.about-list li:not(:first-child),
.purchase-list li:not(:first-child) {
    margin-top: 1rem;
}

.purchase-left {
    width: 100%;

}

.purchase-right {
    width: 600px;
    border: 10px solid white;
    border-radius: 20px;
}

.solar-img {
    width: 100%;
    border-radius: 20px;
    height: 100%;
}

.highlight::after {
    --highlight-width: 8em;
    --higlight-overlap-right: 0.5em;
    content: "";
    position: relative;
    z-index: -5;
    display: inline-block;
    height: 1.1em;
    min-width: var(--highlight-width);
    margin: 0 calc(-1*var(--higlight-overlap-right)) -0.25em calc(var(--higlight-overlap-right) - var(--highlight-width));
    background-image: linear-gradient(to left, #61D64E, transparent), linear-gradient(to left, #61D64E, #61D64E);
    background-position: left center, right center;
    background-size: calc(100% - var(--higlight-overlap-right)) 1.1em, .55em 1.1em;
    background-repeat: no-repeat;
    border-radius: .55em;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
    opacity: 0.6;
}

.footer {
    height: 500px;
    background: #111;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/solar2.jpg');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    text-shadow: 0 1px 0 black;
}

.footer-header {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
}

.footer-text {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem
}

@media (max-width: 700px) {
    .content-wrapper {
        max-width: 100%;
        padding: 1.2rem;
    }

    .hero {
        padding: 0 1.3rem;
        background-position: 70%;
    }

    .hero-main {
        font-size: 1.4rem;
    }

    .hero-subtext {
        margin-top: 0.3rem;
        font-size: 1.2rem;
    }
    .hero-content {
        margin-top: 5.8rem;
    }
    .hero-text {
        font-size: 0.9rem;
        width: 300px;
    }

    .section {
        height: 900px;
    }

    .section-header {
        font-size: 1.5rem;
    }

    .section-subtext {
        font-size: 1rem;
    }

    .card-container {
        flex-direction: column;
        gap: 2rem;
    }

    .card-header {
        font-size: 1rem;
        text-wrap: initial;
    }

    .content-card p {
        font-size: 1rem;
    }

    .section2 {
        padding-bottom: 5rem;
    }

    .section-list {
        flex-direction: column;
    }

    .list-item {
        height: auto;
        margin-top: 0;
        padding: 0.5rem;
    }

    .list-number {
        width: 30px;
        height: 30px;
        min-width: 30px;
        max-width: 30px;
        min-height: 30px;
        max-height: 30px;
    }

    .section3 {
        padding: 5rem 0;
        background-color: #f3f3f3;
    }

    .section-grid {
        grid-template-columns: 100%;
    }

    .item-header {
        max-width: 70%;
    }

    .section4 {
        padding: 4rem 0;
        padding-top: 0;
    }

    .section5 {
        padding: 4rem 0;
        padding-top: 0;
    }

    .purchase-right {
        display: none;
    }

    .section-divided {
        flex-direction: column;
        gap: 0;
    }

    .about-header {
        font-size: 1.5rem;
    }

    .about-subtext {
        font-size: 1.1rem;
    }

    .purchase-list {
        font-size: 1rem;
    }

    .divided-left {
        width: 100%;
        box-shadow: none;
        height: 200px;
    }

    .handshake {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }

    .divided-right {
        padding: 1rem;
    }

    .footer-header {
        font-size: 1.5rem;
    }

    .footer-text {
        font-size: 1rem;
    }
}

@media (min-width: 1600px) {
    .hero {
        background-position: center;
    }
}