:root {
    /* Brand Colors - Inspired by "Great Oak" & Solar */
    --primary-color: #007A3D;
    /* Updated Deep Oak Green */
    --secondary-color: #FFD000;
    /* Updated Gold/Sun */
    --accent-color: #4A8C5A;
    /* Lighter Leaf Green */
    --dark-bg: #1a1a1a;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --white: #ffffff;

    /* Layout */
    --section-padding: 5rem 2rem;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Google Sans Flex', sans-serif;
    /* Premium feel */
    font-weight: 600;
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Google Sans Flex', sans-serif;
    color: var(--primary-color);
}

.logo img {
    height: 65px;
    width: auto;
    border-radius: 50%;
    /* Assume circular logo based on preview */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Burger Menu (Mobile) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    background-image: url('assets/hero_final.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 61, 0.8), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.4);
}

.btn-primary:hover {
    background: #c5a028;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Sections General */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.35rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 1.5rem;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: rgba(0, 122, 61, 0.1);
    margin-left: auto;
    margin-right: auto;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: scale(1.02);
}

.project-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.55rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-info p {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.contact-details {
    margin-top: 1rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.form-group label {
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    border-radius: 50%;
}

.footer-logo h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.6rem;
}

footer p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Animations using Intersection Observer classes */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 2rem;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 900px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: var(--white);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

#modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-text {
    padding: 2rem;
}

.modal-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-text p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: column;
        width: 60%;
        max-width: 800px;
    }

    #modal-image {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .modal-text {
        width: 100%;
        padding: 3rem;
        text-align: center;
        display: block;
    }
}

/* Intro Grid Styles */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: left;
}

.intro-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 208, 0, 0.3);
    /* Subtle gold underline */
    display: inline-block;
}

.intro-item p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.7;
    max-width: 550px;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .intro-item h4 {
        border-bottom: none;
        display: block;
    }
}

/* Consolidated Process Section */
#process {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--section-padding);
}

#process .section-header h2,
#process .section-header p {
    color: var(--white);
}

#process .divider {
    background: var(--secondary-color);
}

.process-icon-gold i {
    display: block;
}

/* Custom rotation for 'roll of plans' effect */
.icon-rotated {
    transform: rotate(-45deg) scaleX(1.2);
    display: inline-block;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.process-number-badge {
    background: var(--secondary-color);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.step-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.5rem;
    font-family: 'Google Sans Flex', sans-serif;
}

.step-body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.process-icon-gold {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.step-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.1rem;
    max-width: 600px;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}