
:root {
    --primary: #3a7277;
    --secondary: #000000;
    --accent: #64B5F6;
    --text: #333;
    --light: #ffffff;
}

@import url('https://fonts.googleapis.com/css2?family=Pelago&display=swap');

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
}

nav {
    position: fixed;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Pelago', sans-serif;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    gap: 3px;
    margin-left: auto;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 35vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('attached_assets/tree.jpg') center/cover;
    color: var(--light);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

section {
    padding: 5rem 10%;
}

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

.service-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-card h3 {
    margin-bottom: 1.5rem;
}

.service-card p {
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
    flex-grow: 1;
}

.service-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detection-image {
    object-position: 250% 250%;
    transform: scale(2);
}

.geo-image {
    object-position: center;
    transform: scale(1.1);
}

.land-class-image {
    object-position: center;
    transform: scale(1.2);
}

.custom-map-image {
    object-position: 50% 25%;
    transform: scale(1.0);
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, transform 0.2s;
}

.service-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.story-map-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    margin-top: 1rem;
}

.story-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

footer {
    background: var(--secondary);
    color: var(--light);
    text-align: center;
    padding: 2rem;
}

.portfolio-page {
    padding-top: 100px;
}

.portfolio-page h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.view-project {
    margin-top: 1rem;
    color: var(--accent);
    font-weight: bold;
}

.about-page {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

.hero-section {
    position: relative;
    padding-top: 80px;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
                url('attached_assets/landscapes.jpg') center/cover;
    color: var(--light);
    width: 100%;
}

.hero-section h1 {
    text-align: center;
    padding-top: 2rem;
}

.about-content {
    max-width: 1100px;
    margin: -200px auto 0;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.name-story {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.name-story h2 {
    color: var(--primary);
    text-align: left;
    margin-bottom: 1.5rem;
}

.name-story p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-me-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.about-me-section h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: left;
}

.about-me-section .profile-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 4px solid var(--primary);
    float: left;
    margin: 0 2rem 1.5rem 0;
    shape-outside: circle(50%);
}

.about-me-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: left;
}

.about-me-section::after {
    content: "";
    display: table;
    clear: both;
}

.research-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s;
}

.research-link:hover {
    color: var(--accent);
}

.underlined-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

.underlined-link:hover {
    color: var(--accent);
}

.contact-page {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

.contact-hero {
    background: linear-gradient(rgba(58, 114, 119, 0.9), rgba(58, 114, 119, 0.9)),
                url('attached_assets/landscapes.jpg') center/cover;
    color: var(--light);
    text-align: center;
    padding: 5rem 2rem;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.contact-content {
    padding: 4rem 5%;
    background: #f8f9fa;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text);
    line-height: 1.6;
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.info-card a:hover {
    color: var(--primary);
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: left;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

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

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

.submit-btn:active {
    transform: translateY(0);
}

.project-detail-page {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

.project-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.hero-text-overlay {
    background: rgb(99, 109, 24, 0.9);
    padding: 2rem 3rem;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 2rem;
}

.project-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.project-subtitle {
    font-size: 1.3rem;
    color: white;
    margin: 0;
    line-height: 1.6;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content-card h2 {
    color: #659f7e;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-card ul {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    line-height: 1.8;
}

.content-card ul li {
    margin-bottom: 0.5rem;
}

.overview-section {
    display: grid;
    grid-template-columns: minmax(0, 80%) minmax(420px, 55%);
    gap: 0;
    margin-bottom: 3rem;
    align-items: center;
    margin-left: calc(-50vw + 50%);
    margin-right: -5%;
    padding-left: max(1rem, calc(50vw - 650px));
}

.overview-text-box {
    background: white;
    padding: 1rem 6rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2;
    transform: translateX(3rem);
}

.overview-text-box h2 {
    color: #659f7e;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.overview-text-box p {
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.overview-text-box p + p {
    margin-top: 0.8rem;
}

.overview-image-container {
    position: relative;
    max-width: 700px;
    aspect-ratio: 3/2;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    justify-self: end;
}

.overview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overview-section-reverse {
    grid-template-columns: minmax(420px, 55%) minmax(0, 80%);
    padding-left: 0;
    padding-right: max(1rem, calc(50vw - 650px));
    margin-left: -5%;
    margin-right: calc(-50vw + 50%);
}

.overview-section-reverse .overview-image-container {
    justify-self: start;
}

.overview-section-reverse .overview-text-box {
    transform: translateX(-3rem);
}

.project-image-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-credit {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.transparent-bg {
    background: rgba(255, 255, 255, 0.85) !important;
}

@media (max-width: 900px) {
    .overview-section, .overview-section-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .overview-text-box {
        transform: none;
    }
    
    .overview-image-container {
        max-width: 100%;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        order: 3;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        order: 2;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 1rem 0;
        display: block;
        font-size: 1.1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
}
