/* General Styles */
:root {
    --deep-green: #2d5100;
    --ocean-blue: #7c929f;
    --light-grey: #c6cbc7;
    --off-white: #eae6e3;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    background-color: var(--black);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(145deg, #1a1a1a, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.menu-icon {
    cursor: pointer;
}

.menu-icon .line {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    margin: 6px 0;
    transition: background-color 0.4s, transform 0.4s;
}

.menu-icon.dark .line {
    background-color: var(--black);
}

.menu-icon:hover .line:nth-child(1) {
    transform: scaleX(0.5);
    transform-origin: right;
}

.menu-icon:hover .line:nth-child(3) {
    transform: scaleX(0.5);
    transform-origin: left;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    animation: logo-fade-in 3.2s ease-out 0.5s forwards;
}

/* Page Overlay */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-out Menu */
.slide-out-menu {
    position: fixed;
    top: 0;
    right: -80vw;
    width: 80vw;
    height: 100vh;
    background-color: var(--black);
    transition: right 0.5s ease-in-out;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.slide-out-menu.open {
    right: 0;
}

.menu-content ul {
    list-style: none;
    padding: 0 2rem;
    text-align: left;
    width: 100%;
}

.menu-content ul li {
    margin: 1.5rem 0;
    position: relative;
    padding-bottom: 1.5rem;
}

.menu-content ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-content ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
    position: relative;
    transition: color 0.3s;
}

.menu-content ul li a:hover {
    color: var(--ocean-blue);
}

/* About Us Section */
.about-us-section {
    background-color: var(--off-white);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.7;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    border-radius: 10px;
}

/* Upcoming Projects Section */
.upcoming-projects-section {
    padding: 4rem 0;
    background-color: #f4f4f4;
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--light-grey);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 80%;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.project-card-link:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
}

.card-content {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(45, 81, 0, 0.9), rgba(124, 146, 159, 0.9));
    color: var(--white);
}

.card-content h3 {
    margin-top: 0;
}

/* Contact Us Section */
.contact-us-section {
    padding: 4rem 0;
    background-color: var(--deep-green);
}

.contact-top-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-info, .map-placeholder {
    flex: 1;
}

.map-placeholder iframe {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    border: 2px solid var(--ocean-blue);
}

.contact-form {
    background: var(--white);
    color: var(--black);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--white);
    text-align: left;
    margin-top: 0;
}

.contact-info p {
    color: var(--white);
}

.contact-form h3 {
    text-align: center;
    margin-top: 0;
    color: var(--black);
}

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

.contact-form input, .contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    background-color: #fdfdfd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--ocean-blue);
    box-shadow: 0 0 5px rgba(124, 146, 159, 0.5);
}

.submit-btn {
    background-color: var(--ocean-blue);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
}

.submit-btn:hover {
    background-color: var(--deep-green);
}

/* Project Detail Pages */
.project-hero {
    height: 60vh;
}

.project-hero h1 {
    font-size: 4rem;
    margin: 0;
}

.project-details-section {
    padding: 4rem 0;
    background-color: var(--off-white);
    color: var(--black);
}

.project-details-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.project-image {
    flex: 1;
}

.project-image img {
    width: 100%;
    border-radius: 10px;
}

.project-text {
    flex: 1;
}

.project-text h3 {
    margin-top: 2rem;
}

.project-text ul {
    list-style: none;
    padding: 0;
}

.project-text ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.project-text ul li::before {
    content: '\2713';
    color: var(--deep-green);
    position: absolute;
    left: 0;
}

/* Keyframe Animations */
@keyframes logo-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.site-footer {
    background-color: var(--deep-green);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .slide-out-menu {
        width: 20vw;
        right: -20vw;
    }
    .project-cards {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 500px;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content, .project-cards, .contact-top-row {
        flex-direction: column;
    }

    .project-card {
        width: 90%;
    }
}
