/* Basic Reset and Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background: var(--light-color);
    color: var(--dark-color);
    /* New: Added padding to push content down, making sure it doesn't get hidden under the header */
    padding-top: 70px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

/* Header */
header {
    background: #fff;
    color: var(--dark-color);
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-color);
    /* Makes the header sticky at the top */
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    text-decoration: none;
}

header .container {
    display: flex;
    /* Reduced the gap by changing the justify-content property */
    justify-content: flex-start;
    align-items: center;
    /* Add a gap between the logo and the menu */
    gap: 40px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul a:hover {
    color: var(--primary-color);
}

/* Main Content Sections */
.hero {
/* Updated background image file name */
     background: url('../images/solar-panels-bg.jpg') no-repeat center center/cover;
    color: #fff;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #0056b3;
}

.services-overview, .content-page {
    padding: 4rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.card h3 {
    margin-bottom: 10px;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 2rem auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    margin-top: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    margin-top: 20px;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 1rem 0;
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.visitor-counter {
    vertical-align: middle;
    margin-left: 5px;
}