/* General Body and HTML Reset */
:root {
    --primary-color: #333; /* Dark text/background for contrast */
    --secondary-color: #007bff; /* A nice blue for accents (buttons, links) */
    --accent-color: #f8f9fa; /* Light grey for background sections */
    --text-color: #444; /* Slightly lighter than primary for general text */
    --light-text-color: #f0f0f0; /* For text on dark backgrounds */
    --font-family-sans: 'Arial', sans-serif;
    --font-family-serif: 'Georgia', serif;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #fff;
    scroll-behavior: smooth; /* Smooth scrolling for nav links */
}

/* Basic Reset for elements */
h1, h2, h3, h4, h5, h6, p, ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Utility Class for Content Width */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
header {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 0;
    border-bottom: 3px solid var(--secondary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.logo img {
    height: 40px; /* Adjust as needed */
    max-width: 100%; /* Ensures it scales down on small screens */
}

header nav ul {
    display: flex;
}

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

header nav ul li a {
    color: var(--light-text-color);
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: url('https://via.placeholder.com/1500x500/333/007bff?text=Background+Image') no-repeat center center/cover; /* Placeholder. Replace with your actual background image if desired */
    color: var(--light-text-color);
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensures a good height */
    position: relative;
    /* Optional: Overlay for better text readability */
    background-color: rgba(0,0,0,0.5); /* Fallback/overlay for image */
    background-blend-mode: overlay;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.button {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background: #0056b3; /* Darker shade of blue */
    text-decoration: none;
    transform: translateY(-2px);
}

/* General Section Styling */
section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Services Section */
.services-section {
    background-color: var(--accent-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* About Section */
.about-section {
    background-color: #fff; /* White background for contrast */
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 15px auto;
    text-align: justify;
}

/* Contact Section */
.contact-section {
    background-color: var(--accent-color);
    text-align: center;
}

.contact-section p {
    font-size: 1.1em;
}

.contact-section a {
    font-weight: bold;
}


/* Footer Styling */
footer {
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

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

    header nav ul {
        flex-direction: column;
        margin-top: 15px;
    }

    header nav ul li {
        margin: 5px 0;
    }

    .hero-section {
        padding: 80px 20px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 2em;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Stack services vertically on small screens */
    }

    .service-item {
        padding: 20px;
    }

    .about-section p {
        text-align: left; /* Keep left-aligned on small screens for better readability */
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-section p {
        font-size: 0.9em;
    }

    .button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    section h2 {
        font-size: 1.8em;
    }
}