/* General Styles */
html {
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font */
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Lighter background */
    color: #333;
    line-height: 1.7;
}

main {
    max-width: 1000px; /* Wider content area */
    margin: 1rem auto; /* Reduced top margin */
    padding: 1rem;
    background-color: transparent; 
    box-shadow: none; 
    border-radius: 0;
}

/* Header */
.main-header {
    background-color: #3a5a40; /* Dark Green */
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky; /* Keep header visible */
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 65px; /* Increased logo size */
    width: auto;
}

/* Section Base Styles & Animation */
section {
    margin-bottom: 3rem; 
    padding: 2rem;
    background-color: #fff; 
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start slightly lower for animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1 {
    color: #3a5a40; /* Dark Green */
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

h2 {
    color: #588157; /* Medium Green */
    border-bottom: 2px solid #dde5b6; /* Lighter green */
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #e67e22; /* Orange */
    color: #fff;
    padding: 0.8rem 1.8rem; 
    text-decoration: none;
    border-radius: 25px; 
    font-size: 1rem; 
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #d35400; 
    transform: translateY(-2px);
}

.header-button {
     font-size: 0.9rem; 
     padding: 0.6rem 1.5rem;
}

.submit-button {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px; 
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #e9f5db; /* Light green background */
}

.hero h1 {
     margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #444;
}

/* Image Styling */
.inline-image,
.hero-image {
    display: block; 
    width: 100%; 
    max-width: 600px; /* Consistent max width */
    height: auto; 
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the area */
    border-radius: 8px;
    margin: 1.5rem auto; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inline-image:hover,
.hero-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.project-details .inline-image,
.benefits .inline-image {
   margin-top: 2rem; /* Ensure space above image */
}

/* Keyframes for list item animation */
@keyframes fadeInListItem {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Benefits Section */
.benefits ul {
    padding-left: 20px;
    list-style: disc; 
}

.benefits li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    opacity: 0; /* Start hidden for animation */
}

/* Apply animation when section is visible */
.benefits.visible li {
    animation: fadeInListItem 0.5s ease-out forwards;
}

/* Stagger the animation */
.benefits.visible li:nth-child(1) { animation-delay: 0.1s; }
.benefits.visible li:nth-child(2) { animation-delay: 0.2s; }
.benefits.visible li:nth-child(3) { animation-delay: 0.3s; }
.benefits.visible li:nth-child(4) { animation-delay: 0.4s; }
.benefits.visible li:nth-child(5) { animation-delay: 0.5s; }
.benefits.visible li:nth-child(6) { animation-delay: 0.6s; }
/* Add more if needed */

/* Form Section */
.form-section {
    background-color: #f8f9fa; /* Slightly different background */
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    display: block; 
    margin-bottom: 0.5rem;
    font-weight: 600; 
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%; 
    padding: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; 
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #588157; 
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.7rem;
    vertical-align: middle;
}

.form-group input[type="checkbox"] + label {
    display: inline-block;
    font-weight: normal;
    vertical-align: middle;
    margin-bottom: 0; 
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 0;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* Modal Styles */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 1999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    opacity: 0; /* Start hidden for animation */
    transition: opacity 0.3s ease; /* Transition for modal container */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 30px;
    border: 1px solid #aaa;
    width: 80%; 
    max-width: 500px; 
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(0.9); /* Start smaller */
    transition: transform 0.3s ease; /* Transition for content scale */
}

.modal.visible, 
.modal-overlay.visible {
    display: block;
    opacity: 1;
}

.modal.visible .modal-content {
    transform: scale(1); /* Scale to full size */
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    color: #588157;
    margin-top: 0;
    border-bottom: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .main-header { padding: 0.5rem; }
    .logo { height: 50px; } /* Adjust logo size for smaller header */
    .header-button { padding: 0.5rem 1.2rem; font-size: 0.85rem;}
    main { padding: 0.5rem; margin-top: 0.5rem;}
    section { padding: 1.5rem; margin-bottom: 2rem; }
    .inline-image, .hero-image { max-width: 90%; aspect-ratio: 3 / 2; } /* Adjust aspect ratio */
}

@media (max-width: 600px) {
    h1 { font-size: 1.9rem; }
    .logo { height: 45px; } /* Further adjust logo size */
    .hero p { font-size: 1rem; }

    .button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .inline-image,
    .hero-image {
        aspect-ratio: 4 / 3; /* Adjust aspect ratio for smaller screens */
    }
    
    .modal-content {
        width: 90%;
        margin: 25% auto;
        padding: 20px;
    }

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

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }
} 