:root {
    --primary-color: #007bff; /* Modern Blue */
    --secondary-color: #6c757d; /* Cool Gray */
    --light-color: #f8f9fa; /* Off-white */
    --dark-color: #343a40; /* Dark Gray / Near Black */
    --text-color: #212529; /* Standard text color */
    --font-main: 'Open Sans', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
    --header-height: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--dark-color);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#main-header .logo-container {
    display: flex;
    align-items: center;
}

#main-header #logo {
    height: 120px;
    margin-right: 10px;
}

#main-header h1 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

#navbar ul {
    list-style: none;
    display: flex;
}

#navbar ul li {
    margin-left: 20px;
}

#navbar ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

#navbar ul li a:hover,
#navbar ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Parallax Sections */
.parallax-section {
    min-height: 100vh; /* Full viewport height */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color); /* Default text color for sections with dark backgrounds */
    padding-top: var(--header-height); /* Account for fixed header */
    overflow: hidden; /* Crucial for parallax containment */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Core parallax effect */
    z-index: -1; /* Behind content */
}

.parallax-section::before { /* Optional overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: -1; /* Also behind content, but on top of background image if needed */
}

.content-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 0; 
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start slightly down for animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.parallax-section.visible .content-overlay {
    opacity: 1;
    transform: translateY(0);
}

#about .content-overlay .container {
    background-color: rgba(34, 34, 34, 0.75); /* Dark smoke, semi-transparent */
    padding: 30px 40px; /* Generous padding inside the background */
    border-radius: 8px; /* Rounded corners for the background */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Optional: subtle shadow for depth */
}

/* Sections with lighter backgrounds may need different text color */
#about .content-overlay, #services .content-overlay, #why-us .content-overlay, #contact .content-overlay {
     color: var(--light-color); /* White text on dark BG */
}

/* Section Specifics */
#hero h2 {
    font-family: var(--font-headings);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

section h3 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
#about .mission-vision {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

#about .mission-vision div {
    flex-basis: 45%;
}

#about h4 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent card */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: invert(75%) sepia(100%) saturate(500%) hue-rotate(160deg); /* Make icons themed */
}

.service-item h4 {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.why-us-item {
    background-color: rgba(0,0,0, 0.1); /* Slightly transparent card */
    padding: 20px;
    border-radius: 8px;
}

.why-us-item h4 {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Contact Section */
#contact-form {
    max-width: 600px;
    margin: 30px auto;
    display: grid;
    gap: 15px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd; /* Light border for inputs */
    font-family: var(--font-main);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #aaa;
}

#contact-form textarea {
    resize: vertical;
}

.contact-details {
    margin-top: 30px;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-headings);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    border: 2px solid var(--primary-color); /* Ensure border visible on hover for dark backgrounds */
}

/* Footer */
#main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 20px 0;
}

#main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#main-footer p {
    margin-bottom: 10px;
}

.social-links img {
    width: 24px;
    height: 24px;
    margin-left: 15px;
    filter: invert(1); /* Make social icons white */
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    #main-header .container {
        flex-direction: column;
        height: auto;
        padding-bottom: 10px; /* Give space for nav if it wraps */
    }
    #main-header {
        height: auto; /* Adjust header height for stacked items */
        padding-top:10px;
    }
    #navbar {
        margin-top: 10px;
    }
    #navbar ul {
        flex-direction: column;
        align-items: center;
    }
    #navbar ul li {
        margin: 5px 0;
    }

    .parallax-section {
        padding-top: 120px; /* Increased padding for smaller screens due to potentially taller header */
    }

    #hero h2 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1rem;
    }
    section h3 {
        font-size: 2rem;
    }

    #about .mission-vision {
        flex-direction: column;
        text-align: center;
    }

    .services-grid, .why-us-grid {
        grid-template-columns: 1fr; /* Stack items on small screens */
    }

    #main-footer .container {
        flex-direction: column;
    }
    .social-links {
        margin-top: 10px;
    }
    .social-links img {
        margin: 0 7px;
    }
}