/* --- General Styling & Variables --- */
:root {
    --primary-color: #6A994E;     /* Green */
    --secondary-color: #386641;   /* Dark Green */
    --light-accent: #F2E8CF;      /* Tan */
    --red-accent: #BC4749;       /* Red Accent */
    --light-green: #A7C957;       /* Light Green */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --font-family: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background: #fff;
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2 {
    margin-bottom: 1rem;
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

header .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

header .nav-links li {
    margin-left: 20px;
}

header .nav-links a {
    color: var(--dark-color);
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

header .nav-links a:hover, header .nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--light-green);
    color: #fff !important; 
}

/* Make the header button text always white */
header .nav-links a.cta-button {
    color: #fff;
}

/* Apply custom padding specifically to the header's CTA button */
header .cta-button {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* A more specific selector to override the default link hover effect */
header .nav-links a.cta-button:hover {
    background: var(--light-green);
    border-bottom-color: transparent !important; /* Hides the peeking green line */
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?q=80&w=2070') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* --- Projects Overview --- */
.projects-overview {
    padding: 4rem 0;
    text-align: center;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card h3, .card p, .card .learn-more {
    padding: 0 1.5rem;
}
.card h3 {
    margin-top: 1rem;
}
.card p {
    color: #666;
    margin-bottom: 1rem;
}
.card .learn-more {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* --- Timeline --- */
.timeline-section {
    background: var(--light-color); /* Tan accent */
    padding: 4rem 0;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 22px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after {
    right: -10px;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    padding: 15px;
    background-color: white;
    position: relative;
    border-radius: 6px;
}
.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: right;
}
.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
}


/* --- General Page Content (for about.html etc) --- */
.page-content {
    padding: 4rem 2rem;
}

.page-content article {
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* --- Mobile Responsiveness --- */
.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }
    .hamburger {
        display: block;
    }
    .nav-active {
        transform: translateX(0%);
    }
    
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    .hero h1 { font-size: 2rem; }
    .project-cards { grid-template-columns: 1fr; }

    .timeline::after { left: 15px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 10px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-item::after { left: 6px; }
    .timeline-item:nth-child(even)::after { left: 6px; }
    .timeline-date { text-align: left; }
    
    /* Hide dropdown on mobile, rely on main projects page */
    .dropdown-menu {
        display: none !important;
    }
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
    margin-top: 5px;
    border: 1px solid #eee;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    color: var(--dark-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: none !important; /* Override nav link hover */
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}