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

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

li {
    list-style: none;
}

/* Header */
header {
    background-color: white;
}

/* Top Navigation */
.topnav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:30px;
    padding: 10px 30px;
    color: white;
    background-color: rgb(1, 79, 1);
    top: 0;
    font-weight: bolder;
    position: fixed;
    width: 100%;
    z-index: 100;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background-color: white;
    position: fixed;
    top: 38px;
    width: 100%;
    z-index: 99;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link:hover {
    color: black;
}

.brand {
    display:flex;
    gap:10px;
    justify-content: center;
    align-items: center;
    padding:10px;
}

.brand h1 {
    color:rgb(1, 79, 1)
}

.brand img {
    height:90px;
    width:90px;
    border-radius: 50%;
    display:flex;
    justify-content: center;
    align-items: center;
    
}
@media(max-width:350px) {
    .brand img {
        height:50px;
        width:50px;
    }

    .topnav {
        text-align: center;
    }

}
.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: black;
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

/* Slider */
.slider-wrapper {
    position: relative;
    max-width: 100%;
    height: 87vh;
    overflow-y: hidden;
}

.slider {
    display: none;
    width: 100%;
    height: 100%;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.slider.active {
    display: block;
}

#slide-1 {
    background-image: url("solar3.jpg");
    background-position: center center;
}

#slide-2 {
    background-image: url("solar2.jpg");
    background-position: center top;
    
}

#slide-3 {
    background-image: url("solar5.jpg");
    background-position: center top;
}

.slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(1,79,1);
    opacity: 0.75;
    transition: opacity 250ms ease;
}

.slider-nav a:hover {
    opacity: 1;
}

/*Icons*/
.icon-section {
    position: absolute;
    bottom: 20px; /* Adjust to move the icons away from the bottom of the slider */
    width: 100%;
    display: flex;
    justify-content:center;
    padding: 10px 0;
}

.icon-container {
    display: flex;
    justify-content: space-between;
    gap:6.3rem;
   
}

.icon img {
    width: 60px; /* Adjust the size as needed */
    height: 60px;
    display: block;
    color:white;
}

.icon h4 {
    color:white;
    max-width:100px;
}

.icon1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*.icon1 a {
    color:white;
    font-size: 20px;
    border:1px solid white;
    padding:5px 40px;
    border-radius: 20px;
    background-color: rgb(1, 79, 1);
}*/

/* Style for the link (a) */
.rotating-border {
    position: relative;
    display: inline-block; /* Allows border to be around the text */
    padding: 20px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: rgb(1, 79, 1);
}

/* Create the border */
.rotating-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid white; /* Border color */
    border-radius: 5px;
    animation: rotate-border 5s linear infinite; /* Animation for rotation */
}

/* Keyframes for rotation */
@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg); /* Full rotation */
    }
}


/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        position: fixed;
        left: -100%;
        top: 120px;
        transition: 0.3s;
        gap: 10px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
       /* position:relative; /*Push other links further below*/
    }

    .nav-link {
        color: black;
    }

    .topnav a{
        font-size: 14px;
    }
}

@media(max-width:768px) {
    .icon-container {
        gap:3rem;
    }
}

@media(max-width:600px) {
    .icon-container {
        gap:2rem;
    }
}

@media(max-width:500px) {
    .icon-container {
        gap:1.2rem;
    }

    .icon img {
        width:40px;
        height:40px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .icon h4 {
        max-width:80px;
    }
}

@media(max-width:420px) {
    .icon-container {
        flex-direction: column;
    }

    .icon img,
    .icon h4 {
        display:none;
    }
}

@media(max-width:350px) {
    .topnav a {
        font-size:1rem;
    }
    .navbar {
        top:55px;
    }
}

/* General styling for the hero-content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    font-family: Arial, sans-serif;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.hero-content h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1rem;
    }
}

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

    .hero-content h3 {
        font-size: 0.9rem;
    }
}


.services,
.solarproducts {
    display: flex;
    flex-direction: column;
    padding:20px;
}

.services h1,
.solarproducts h1 {
    padding:30px;
    text-align: center;
}

.range {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: row;
    justify-content: center;
    margin: auto;
    gap:20px;
}

.solarproducts .range {
    display:grid;
    grid-template-columns: repeat(4,1fr);
    grid-auto-flow: row;
    gap:20px;
    justify-content: center;
}

@media(max-width:1300px) {
    .range {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: row;
        justify-content: center;
        margin: auto;
        gap:20px;
    }
}

@media(max-width:900px) {
    .range {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-flow: row;
        justify-content: center;
        margin: auto;
    }

    .range .item {
        max-width:550px;
        height:auto;
        display: flex;
        flex-direction: column;
    }

    .range .item-words {
        max-width:550px;
    }

    .range img {
        max-width: 550px;
    }
}

@media(max-width:550px) {
    .range .item {
        max-width: 100% !important;
        padding:30px;
    }

    .range .item {
        width:100% !important;
    }

    .range .item-words,
    .range img {
        max-width: 100% !important;
    }
}

.range .item {
    max-width:400px;
    height:auto;
    display: flex;
    flex-direction: column;
    gap:30px;
    background-color: rgba(0, 126, 0, 0.2);
}

.range .item-words {
    max-width:400px;
    height:auto;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;  
    margin: auto;
}

.range .item img {
    max-width: 400px;
}

.item-words p {
    font-size: 18px;
    padding: 20px;
    text-align: center;
}

.item-words h2 {
    text-align: center;
    padding: 10px;
}

.item-link {
    margin-bottom: 20px;
}

.item-link a {
    border: 1px solid white;
    padding:5px 8px;
    border-radius: 5px;
    background-color: rgb(1, 79, 1);
    color:white;
    font-size: 20px;
    margin: auto;
}

.solarproducts {
    background-color: rgba(0, 126, 0, 0.2);
}

.solarproducts .item {
    margin-bottom: 40px;
}

.about {
    padding:30px;
    display: flex;
    flex-direction: column;
    gap:20px;
    text-align: center;
}

.about p {
    display: flex;
    gap:10px;
    font-size: 20px;
}

.about a {
    border: 1px solid white;
    max-width:200px;
    background-color: rgb(1, 79, 1);
    color:white;
    padding:10px 10px;
    font-size: 20px;
    margin: auto;
    border-radius: 5px;
}

.projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    gap:20px;
    font-size: 20px;
    text-align: center;
}

.item1 img{
    width:270px;
    height:190px;
}

.solarproducts .item img {
    width:270px;
    height:300px;
}

.image-pics {
    display:grid;
    grid-template-columns: repeat(4,1fr);
    grid-auto-flow: row;
    gap:20px;
    justify-content: center;
}

@media(max-width:1200px) {
    .image-pics,
    .solarproducts .range {
        display:grid;
        grid-template-columns: repeat(3,1fr);
        grid-auto-flow: row;
        gap:20px;
        justify-content: center;
    }
}

@media(max-width:1000px) {
    .image-pics,
    .solarproducts .range {
        display:grid;
        grid-template-columns: repeat(2,1fr);
        grid-auto-flow: row;
        gap:20px;
        justify-content: center;
    }
}

@media(max-width:700px) {
    .image-pics,
    .solarproducts .range {
        display:grid;
        grid-template-columns: repeat(1,1fr);
        grid-auto-flow: row;
        gap:20px;
        justify-content: center;
    }

    .item1 img,
    .solarproducts .item img {
        width:100%;
        max-width: 100% !important;
        height:auto !important;
        padding:20px;
    }
}

.solarproducts .item {
    transition: all .2s ease-in-out;
}

.solarproducts .item:hover {
	transform:scale(1.1);
}

/* Contact Us Section */
.contact-us {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background-color: rgba(0, 126, 0, 0.2);
    font-size: 18px;
}

.contact-form {
    flex: 1;
    padding: 30px;
    background-color:rgba(0, 126, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.call-us {
    flex: 1;
    padding: 30px;   
}

.contact-form h2, .call-us h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-form p, .call-us p {
    margin-bottom: 20px;

}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

form button {
    background-color: rgb(1, 79, 1);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #0056b3;
}

.call-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.call-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-us {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contact-form, .call-us {
        margin-bottom: 20px;
    }
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap:20px;
}

.contact-links i {
    padding:10px;
    color:rgb(1, 79, 1);
    font-size:30px;
}

.contact-links .first a {
    color:black;
}

.contact-links .first a:hover {
    color:rgb(1, 79, 1);
}

/* User Reviews Section */
.user-reviews {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    margin-bottom: 30px;
}

.user-reviews h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

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

.review-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.review-text {
    font-size: 20px;
    color: #555;
    margin-bottom: 15px;
}

.review-author {
    font-size: 17px;
    color: #888;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-container {
        flex-direction: column;
        align-items: center;
    }
}

/*WhatsApp*/
.whatsapp-icon {
    position: fixed;
    right:20px;
    bottom: 160px;
    z-index:1000;
}

.whatsapp-icon img {
    width:60px;
    height:60px;
}

@media(max-width:600px) {
    .whatsapp-icon img {
        width:50px;
        height: 50px;
    }
}

/* Shopping Cart */
.cart-icon {
    position:fixed;
    right:20px;
    bottom: 90px;
    z-index:1000;
}

.cart-icon img {
    width:65px;
    height:65px;
}

@media(max-width:600px) {
    .cart-icon img {
        width:50px;
        height: 50px;
    }
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding:10px;
    background-color: rgb(1, 79, 1);
    color:white;
    margin-top: 20px;
    position:relative;
    bottom: 0;
}
