:root {
    --primary: #3d5c46; /* Darker green for better text contrast */
    --secondary: #5a7f63; /* Primary green adjusted for contrast */
    --accent: #10b981; /* Brighter accent for visual hierarchy */
    --light: #f9fafb;
    --dark: #111827;
    --gray: #4b5563; /* Darker gray for better readability */
    --soft: #e0f2fe;
    --font-main: "Inter", sans-serif;
}

/* Improved image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Enhanced focus states for accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}



body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 1rem 0;
}

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

.logo img {
    height: 40px;
    max-width: 160px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

.main-nav {
    flex: 1 1 auto;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-list li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-list li a:hover {
    color: var(--accent);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background: white;
        padding: 1rem;
        width: 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .nav-list.show {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 100;
    }

    .nav-list li {
        margin-bottom: 0.5rem;
    }

    .nav-list li:last-child {
        margin-bottom: 0;
    }
}

/* cta buttom */

.cta-button {
    background: var(--secondary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: var(--accent);
    color: white;
}

/* HERO */
.hero {
    
    position: relative;
    height: 100vh;
    background: url("images/engineering-hero.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    width: 100%;
    height: 100%;
   background: linear-gradient( to bottom right, rgba(25, 39, 25, 0.9), /* Darker green overlay */ rgba(40, 65, 45, 0.9));
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: auto;
    padding: 0.7 rem;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.9rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-content p {
    color: #f0f4f8; /* Lighter text for better contrast */
    font-size: 1.775rem;
    margin-bottom: 2rem;
    max-width: 650px;
    line-height: 1.7;
    
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-button.primary {
    background-color: #10b981;
    color: white;
}

.cta-button.secondary {
    background-color: white;
    color: #5a7f63;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content h1 {
         font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* SERVICES */
.services {
    background-color: #f9fafb; /* Light gray-blue */
    padding: 5rem 0;
    background-color: var(--light);
}

.section-title h2 {
    text-align: center;
    font-size: 1.7rem
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title p {
    text-align: center;
    color: var(--gray);
    max-width: 600px;
    margin: auto;
}

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

.service-card {
    border: 1px solid rgba(0,0,0,0.05);
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    min-height: 3.5rem; /* Prevent content jumping */
}

/* ABOUT*/
.about {
    background-color: #ffffff;
    padding: 4rem 0;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 50%;
}

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

.about-text p {
    margin-bottom: 1.2rem;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}



.about-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* why us */
.why-us {
    background-color: #ffffff;
    padding: 4rem 0;
}

.why-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.why-image {
    flex: 1 1 45%;
}

.why-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.why-text {
    flex: 1 1 50%;
}

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

.why-text p {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

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

    .why-text, .why-image {
        flex: 1 1 100%;
    }

    .why-text h2 {
        font-size: 1.6rem;
    }

    .why-text p {
        font-size: 1rem;
    }
}
/* CTA*/
.cta-section {
    background: linear-gradient(135deg, #4a6b54, #6a8a72);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: auto;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #f3f4f6;
}

.cta-button.light {
    background-color: white;
    color: #5a7f63;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button.light:hover {
    background-color: #e5e7eb;
    color: #5a7f63;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-button.light {
        width: 100%;
        max-width: 320px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text,
    .about-image {
        flex: 1 1 100%;
    }

    .about-text h2 {
        font-size: 1.75rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-image img {
        max-width: 100%;
        border-radius: 8px;
    }
}

/* PROJECTS SECTION */
.projects {
    background-color: #f0f4f8;
    padding: 4rem 0;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: visible;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-content p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.project-tag {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    align-self: flex-start;
}

/* CTA SECTION */

/* FOOTER */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
/* 
    text-decoration: underline;
    text-underline-offset: 0.2em; */
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

/* MOBILE */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        display: none;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    nav ul.show {
        display: block;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
    }

    .header-container {
        flex-wrap: wrap;
    }
}

/* NAVIGATION MOBILE STYLES */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

#mobile-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        padding: 0.5rem;
    }

    nav {
        width: 100%;
    }

    #mobile-menu {
        flex-direction: column;
        display: none;
        background-color: white;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    #mobile-menu.show {
        display: flex;
    }

    #mobile-menu li {
        margin: 10px 0;
    }

    #mobile-menu li a {
        color: var(--dark);
        padding: 10px;
        display: block;
    }
}

/* FOOTER MOBILE STYLES */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        margin: 0 auto;
    }

    .footer-col ul li {
        margin: 8px 0;
    }

    .footer-col ul li a {
        display: inline-block;
    }

    .footer-col p {
        margin: 0 auto 10px;
        max-width: 280px;
    }

    .footer-col div a {
        margin: 0 10px;
    }
}

/* modal */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--primary);
}

.modal-content label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.modal-content .cta-button {
    margin-top: 1.5rem;
    width: 100%;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}
