:root {
    --bg-color: #F9FBF9;
    --text-color: #1a1a1a;
    --accent-green: #6B8E6B;
    --dark-green: #1F3323;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 6rem;
}

/* Header */
header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Hamburger Menu Button */
#menu-toggle {
    display: none; /* Hide by default on large screens */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-green);
    padding: 0.5rem;
    line-height: 1; 
    z-index: 1001; /* Ensure it's above the navigation */
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--dark-green);
    text-decoration: none;
}

.header-logo {
    height: 4rem;
    max-height: 4rem;
    width: auto;
    display: block;
}

nav a {
    display: inline-block;       /* Allows padding to affect height/width */
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    
    /* Box Styling */
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: transparent; 
}

nav a:hover {
    background-color: var(--accent-green);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section (Home) */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    /* text-align: center; */
}

.hero h1 {
    /* font-size: 10rem; */
    font-size: clamp(6rem, 5vw, 10rem);
    color: var(--accent-green);
    opacity: 0.8;
    letter-spacing: -5px;
    position: relative;
    z-index: 1;
}

.hero p {
    margin-top: -20px;
    font-size: 1.2rem;
    color: var(--dark-green);
}

.hero .first-letter {
    color: var(--dark-green);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.project-card {
    background: white;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 250px;
    aspect-ratio: 1 / 1;
    background-color: var(--accent-green);
    object-fit: cover;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
}

/* Project Detail Page */

#project-template-placeholder {
    flex-grow: 1;
}

.project-detail {
    padding: 4rem 5%;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent-green);
    text-decoration: none;
}

.detail-image {
    width: 100%;
    height: auto;
    /* background-color: var(--dark-green); */
    margin-bottom: 2rem;
    object-fit: cover;
}

/* Custom Content Block Styles */
.content-block {
    max-width: 800px;
    margin: 2rem 0;
}

.content-block h2 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 2.3rem;
}

.content-block h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-block ol {
    list-style: none; /* Remove default numbering */
    padding-left: 0;
    margin-left: 0;
}

.content-block ol li {
    /* Adjusted padding-left to make space for the smaller square box */
    padding-left: 2.5rem; 
    position: relative;
    margin-bottom: 0.8rem; /* Spacing */
}

.content-block ol li::before {
    /* Blocky Green Number Style (MONOSPACE, SQUARE) */
    content: counter(list-item); /* Display the list number */
    position: absolute;
    left: 0;
    top: 0.1rem; /* Slight top adjustment for visual alignment */
    
    /* Make it a square block */
    background-color: var(--accent-green); 
    color: #FFFFFF; 
    
    /* Square dimensions and font size */
    width: 1.4rem; 
    height: 1.4rem;
    font-size: 0.85rem; /* Smaller font size */
    
    /* Monospace font */
    font-family: monospace; 
    font-weight: bold;
    border-radius: 3px; 
    
    /* Perfect centering inside the square */
    display: flex;
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
    line-height: 1; /* Reset line-height for flex centering */
}

.content-block ul {
    /* Retained for alignment */
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.content-block ul li {
    /* Retained for alignment and spacing */
    padding-left: 1.5rem; 
    position: relative; 
    margin-bottom: 0.5rem; 
}

.content-block ul li::before {
    content: "";
    position: absolute;
    left: 0; 
    top: 0.4rem; /* Adjust vertical positioning to center it */
    
    /* Shape Properties */
    width: 0.5rem; 
    height: 0.5rem;
    background-color: var(--accent-green); 
    border-radius: 20%; 
    
    /* Rotation to form a diamond/triangle pointing right */
    transform: rotate(45deg);
    
    /* REMOVE THIS LINE: */
    /* margin-left: -0.2rem; */
    
    /* ADD/ADJUST THIS FOR FINE-TUNING: */
    left: 0rem;
}

/* --- Table Styling for Content Blocks --- */
.content-block table {
    width: 100%;
    border-collapse: collapse; /* Removes spacing between borders */
    margin: 1.5rem 0; /* Adds vertical space above and below the table */
    max-width: 100%;
    overflow-x: auto; /* Ensures horizontal scrolling on mobile if table is too wide */
}

/* Table Header */
.content-block th {
    background-color: var(--accent-green); /* Green header background */
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 0.8rem 1rem;
    border: none;
}

/* Table Cells (Header and Data) */
.content-block th, 
.content-block td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #ddd; /* Light separator line */
}

/* Alternating Row Colors (Zebra Stripes) for better readability */
.content-block tr:nth-child(even) {
    background-color: #f7f7f7; /* Very light gray for even rows */
}

/* Hover effect */
.content-block tr:hover {
    background-color: #e8e8e8; /* Slightly darker gray on hover */
}

.subtitle {
    margin-bottom: 2rem; 
    color: #666;
    font-size: 1.1rem;
}

.download-button {
    display: inline-block;
    background-color: var(--accent-green);
    color: #FFFFFF;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    border: 2px solid var(--accent-green);
}

.download-button:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

/* Contact Page */
.contact-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 5%;
    min-height: 60vh; 
}

.contact-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

/* Grid Layout for two columns */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contact-block {
    padding: 2rem;
    border: 1px solid #ddd;
    border-top: 5px solid var(--accent-green);
    border-radius: 5px;
    background-color: #ffffff;
}

.contact-block h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-green);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.detail-group {
    margin-bottom: 1.5rem;
}

.detail-group h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-group p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-link {
    color: var(--dark-green);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-green);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-green);
    border-bottom-style: solid;
}

.separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.location-map {
    width: 100%;
    height: 400px;
    display: block;
    margin-top: 1.5rem;
    border-radius: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
}

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

    main,
    .project-detail {
        padding-left: 20px; 
        padding-right: 20px; 
    }

    header { 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        gap: 0;
        height: 4rem;
        padding: 0.5rem 5%;
    }

    .header-logo {
        height: 80%;
        max-height: 3rem;
        width: auto;
    }

    #menu-toggle {
        display: block;
    }

    nav {
        /* Hide the navigation links by default (off-screen) */
        display: none;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 1rem 0;
    }

    nav.active {
        display: flex; /* Show the navigation */
    }

    nav a { 
        /* Reset desktop styles for mobile */
        display: block;
        margin: 0.5rem 5%; 
        text-align: left;
        padding: 0.8rem 1.5rem;
        border-radius: 5px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
