* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
}

header {
    background-image: url('assets/renewable_energy.jpg');
    background-size: cover;
    background-position: center 60%;
    color: white;
    text-align: center;
    padding: 50px 20px; /* Padding around the header */
    position: relative; /* Positioning context for the header box */
    height: 40vh; /* Set header height to fill the viewport */
}

.header-box {
    background-color: rgba(0, 0, 0, 0.75); /* Dark background with transparency */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    padding: 20px; /* Space inside the box */
    width: 100%; /* Make the box fill the header width */
    height: 100%; /* Make the box fill the header height */
    position: absolute; /* Position it absolutely within the header */
    top: 0; /* Align to the top of the header */
    left: 0; /* Align to the left of the header */
    display: flex; /* Use flexbox for centering the content */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    z-index: 1; /* Ensure it appears above the background */
}

/* Add styles for the text */
header h1, header p {
    margin: 10px 0; /* Add some margin for spacing */
}

header h2 {
    margin-top: 20px; /* Add space above to separate it from the paragraph */
    font-size: 1.8rem; /* Adjust font size as needed */
    animation: pulse 2s ease-in-out infinite; /* Apply continuous pulsing animation */
    color: #ffffff; /* Make it one of your main colors to stand out */
    font-weight: bold; /* Make the text bold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a subtle shadow to enhance readability */
}

#logo-img {
    max-width: 250px;
    height: auto; /* Auto-resize to maintain aspect ratio */
}

button, #translate-btn {
    background-color: #fca218; /* Use one of your main colors */
    color: #fff; /* White text */
    padding: 10px 20px;
    border: none;
    border-radius: 5px; /* Slightly rounded corners */
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

button:hover, #translate-btn:hover {
    background-color: #52aee1; /* Another of your main colors on hover */
}

.services {
    background-color: white;
    color: #333;
    padding: 40px 0;
    text-align: center;
}

.services h2 {
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #333;
}

.about {
    background: linear-gradient(to bottom right, #fca118bb, #e97100);
    position: relative;
    color: white;
    text-align: center;
}

.about:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.about p {    
    max-width: 800px;
    margin: 0 auto;
}

.container {
    position: relative; /* Ensure content is above overlay */
    padding: 20px;
    border-radius: 10px;    
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items */
    gap: 20px;
}

.service-box {
    background-color: #f5f5f5; /* Light grey for a minimal look */
    color: #333; /* Darker text */
    border: 1px solid #52aee1; /* Minimal use of the accent color */
    width: 40%; /* Reduce the width of each service box */
    max-width: 400px; /* Ensures the boxes don’t get too large */
    min-width: 200px; /* Ensures the boxes don’t get too small */
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.service-box img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures image fits the box but retains its aspect ratio */
    border-radius: 10px;
}

.service-box h3 {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #0a9d58;
}

.service-box p {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

.service-box:hover {
    transform: scale(1.05);
}

.service-box a {
    text-decoration: none; 
    color: inherit; 
    display: block; 
}
.service-box a:hover {
    color: inherit; /* Ensure hover color remains the same */
}

.contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #e9f5f0;
}

.form-container {
    background-color: #fff;
    border: 2px solid #0a9d58;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: left; /* Align text inside the form to the left */
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.contact-form label {
    display: block;
    margin: 10px 0 5px;
}

.contact-form select {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 20px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    background-color: white;
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #0a9d58;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.contact-form button:hover {
    background-color: #088e50;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: -5px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-left: -40px; /* Shift both checkbox and text to the left */
}

.checkbox-container input[type="checkbox"] {
    margin-right: -35px; /* Control space between checkbox and text */
    margin-top: 13px;   /* Slightly raise checkbox to align with text */
}

.checkbox-label label {
    margin-top: -40px;
}


footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
}

.footer-container a {
    margin-right: -10px;
}

.social-icon {
    width: 48px; 
}

.social-icon2 {
    width: 80px; 
}

.logo img {
    width: 200px; 
}

.warranty {
    position: relative;
    overflow: hidden; /* Ensures no overflow */
}

.warranty-background {
    background-image: url('assets/openart-image_qWkdnwt1_1726777493087_raw.png'); /* Background image */
    background-size: cover; /* Ensures the image fills the section */
    background-position: center;
    background-repeat: no-repeat; /* Prevents tiling */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Sends the background behind the content */
}

.warranty-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    color: #fff;
}

.warranty-header-box {
    background-color: rgba(255, 250, 250, 0.9); /* Semi-transparent background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    margin: 0 auto 30px auto; /* Center the box and add space at the bottom */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center align items horizontally */
    text-align: center;
}

.warranty-header-box h2 {
    color: #fca218; /* Matching the color scheme */
    font-size: 50px; /* Slightly larger font for the header */
    margin: 0 0 10px 0; /* Margin at the bottom */
}

.warranty-header-box p {
    color: #000000; /* Text color */
    font-size: 19px; /* Font size for the paragraph */
    margin: 0; /* Remove default margin */
    line-height: 1.5; /* Line height for readability */
    font-weight: bold;
}

.warranty-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.warranty-box {
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent box for readability */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    flex: 1 1 45%;
    max-width: 45%;
    min-width: 300px;
    display: flex;
    align-items: center;
}

.icon {
    flex-basis: 100px; /* Increase the space for larger icons */
    margin-right: 20px;
}

.icon img {
    width: 125px; /* Increase icon size */
    height: 125px; /* Increase icon size */
}

.warranty-text {
    text-align: left;
    flex-grow: 1;
}

.warranty-box h4 {
    color: #fca218;
    margin-bottom: 10px;
}

.warranty-box ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.warranty-box li {
    margin: 10px 0;
}

.icon {
    flex-basis: 100px; /* Increase the space for larger icons */
    margin-right: 20px;
}

.icon img {
    width: 125px; /* Increase icon size */
    height: 125px; /* Increase icon size */
}

.warranty-text {
    text-align: left;
    flex-grow: 1;
}

.warranty-box h4 {
    color: #fca218;
    margin-bottom: 10px;
}

.warranty-box ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.warranty-box li {
    margin: 10px 0;
}

/* .warranty h2 {
    color: #fff;
    margin-bottom: 30px;
} */

.comparison {
    padding: 50px 20px;
    background-color: #f0f0f0;
    animation: fadeIn 1s ease-in-out; /* Fade-in animation */
}

.comparison h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    animation: slideDown 1s ease-out; /* Slide-in animation for the title */
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2em;
    animation: scaleUp 1s ease-in-out; /* Scale-up animation for the table */
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ccc;
    background-color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.comparison-table th {
    background-color: #52aee1; /* Blue for header */
    color: white;
}

.comparison-table td:hover {
    background-color: #ffe0b2; /* Orange on hover */
    /* transform: scale(1.05); Slight zoom on hover */
}

.comparison-table th,
.comparison-table td {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1); /* Normal size */
    }
    50% {
        transform: scale(1.1); /* Slightly larger */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

.about h2, .about p {
    opacity: 0; /* Start hidden */
    animation: fadeIn 1s forwards; /* Apply fade-in animation */
}

.about h2 {
    animation-delay: 0.2s; /* Delay for the heading */
}

.about p {
    animation-delay: 0.4s; /* Delay for the paragraph */
}

.thank-you-container button {
    background-color: #0a9d58;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.thank-you-container button:hover {
    background-color: #088e50;
}

.thank-you-container img {
    width: 100%;
    height: 125px;
    object-fit: cover; /* Ensures image fits the box but retains its aspect ratio */
    border-radius: 10px;
}

/* Mobile Responsiveness */
/* Mobile responsiveness */
/* For devices with a max-width of 768px */
@media (max-width: 768px) {

    #logo-img {
        max-width: 150px;
    }

    header {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items */
        min-height: 60vh;
        height: auto; /* Allow height to adjust */
    }

    header h1 {
        font-size: 1.5rem; /* Smaller heading */
    }

    header p {
        font-size: 0.9rem; /* Smaller paragraph */
    }

    #translate-btn {
        font-size: 0.9rem; /* Smaller button */
        padding: 8px 15px; /* Adjust padding */
    }    

    .service-container {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 90%;
        margin-bottom: 20px;
    }

    .form-container {
        width: 90%;
    }

    .warranty-box {
        flex: 1 1 100%;
        text-align: left; /* Stack items on smaller screens */
    }

    .icon {
        margin-right: 10px;
    }

    .warranty-text {
        text-align: left;
    }
}

/* For devices with a max-width of 480px */
@media (max-width: 480px) and (orientation: portrait) {

    #logo-img {
        max-width: 150px; /* Further reduce logo size */
    }

    header {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items */
        min-height: 65vh;
        height: auto; /* Allow height to adjust */
    }

    header h1 {
        font-size: 1.3rem; /* Smaller heading for mobile */
    }

    header p {
        font-size: 0.9rem; /* Smaller paragraph */
    }

    #translate-btn {
        font-size: 0.8rem; /* Smaller button */
        padding: 6px 12px; /* Adjust padding */
    }    

    .service-container {
        flex-direction: column; /* Stack services vertically */
        align-items: center; /* Center align */
    }

    .service-box {
        width: 95%; /* Wider boxes for smaller screens */
        margin-bottom: 15px; /* Less margin for compactness */
    }

    .comparison-table {
        width: 90%; /* Set the width of the table to a percentage for responsiveness */
        margin: 0 auto;
    }

    .form-container {
        width: 95%; /* Wider form for easier input */
    }

    .warranty-box {
        flex: 1 1 100%; /* Stack warranty boxes */
        text-align: left; /* Left-align text */
        width: 95%;
    }

    .icon {
        margin-right: 5px; /* Less margin on smaller screens */
    }

    .warranty-text {
        text-align: left; /* Keep text left-aligned */
    }
}

@media (max-width: 820px) and (orientation: landscape) {

    #logo-img {
        max-width: 120px; /* Reduce the logo size further in landscape */
    }

    header {
        flex-direction: column;
        align-items: center;
        min-height: 80vh; /* Set height for landscape */
        height: auto;
    }

    header h1 {
        font-size: 1.1rem; /* Smaller heading for landscape */
    }

    header p {
        font-size: 0.8rem;
    }

    #translate-btn {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .comparison-table, .form-container, .warranty-box {
        width: 90%;
    }
}
