:root {
    --primary: #1a1a1a;
    --accent: #c5a059;
    --light-gray: #f2f2f2;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Rubik', sans-serif; line-height: 1.7; color: #333; }

/* Navigation */
header {
    background: white;
    padding: 10px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-logo { height: 65px; width: auto; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { text-decoration: none; color: var(--primary); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; }
nav a:hover { color: var(--accent); }

/* Home Hero */
.home-hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('web_Steel_Construction.jpg') center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
.home-hero h1 { font-family: 'Old Standard TT', serif; font-size: 4.5rem; letter-spacing: 5px; }

/* Gallery Grid */
.gallery-page-bg { background-color: var(--light-gray); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 8%;
}
.gallery-grid img.zoomable {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.gallery-grid img.zoomable:hover { transform: scale(1.02); }

/* --- LIGHTBOX FIX --- */
.lightbox {
    display: none;        /* Hidden until JS triggers it */
    position: fixed;      /* Sits on top of the viewport */
    z-index: 9999;        /* Above everything including the header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    align-items: center;  /* Vertical center */
    justify-content: center; /* Horizontal center */
}

/* The Image itself */
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    min-width: min(600px, 90vw);
    min-height: min(400px, 60vh);
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
    border: 3px solid var(--accent);
    image-rendering: auto;
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
/* --- END LIGHTBOX FIX --- */

/* About Section */
.parallax-bg {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('web_Hand_with_PS_overlay.jpg') center/cover no-repeat fixed;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-text-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 60px;
    border-top: 8px solid var(--accent);
    display: flex; 
    gap: 50px;
    max-width: 1100px;
}
.bio-image-col { flex: 0 0 320px; }
.bio-headshot-large { width: 100%; border: 3px solid var(--accent); border-radius: 4px; }
.bio-content-col { flex: 1; }
.bio-content-col h2 { font-family: 'Old Standard TT', serif; font-size: 2.5rem; margin-bottom: 10px; }

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    padding: 80px 10%;
    background-color: var(--white);
}
.about-grid h2 { 
    font-family: 'Old Standard TT', serif; 
    font-size: 2rem; 
    margin-bottom: 30px; 
    color: var(--primary);
}
.exp-item { 
    margin-bottom: 30px; 
    border-left: 3px solid var(--accent); 
    padding-left: 20px; 
}
.exp-date { 
    font-weight: bold; 
    color: var(--accent); 
    display: block; 
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* About Grid Parallax Background */
.about-grid-parallax {
    padding: 0;
}
.about-grid {
    background: linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)), url('web_Project_Management.jpg') center/cover no-repeat fixed;
    margin: 0;
}

/* Contact Parallax */
.contact-parallax {
    min-height: calc(100vh - 85px - 121px);
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('web_Construction_with_PS_overlay.jpg') center/cover no-repeat fixed;
    filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.contact-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.contact-card {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 60px 80px;
    border-top: 5px solid var(--accent);
    background: rgba(0,0,0,0.35);
}
.contact-card h2 {
    font-family: 'Old Standard TT', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}
.contact-card p {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
}

/* Footer */
footer { background: #111; color: #777; padding: 40px; text-align: center; }

@media (max-width: 768px) {
    .floating-text-card { flex-direction: column; align-items: center; text-align: center; padding: 30px; }
    .bio-image-col { flex: 0 0 auto; width: 250px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .home-hero h1 { font-size: 2.5rem; }

    header { flex-wrap: wrap; padding: 10px 5%; position: relative; }
    .nav-logo { height: 50px; }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 20px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
    }
    .hamburger span {
        display: block;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    nav.open { max-height: 300px; }
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    nav ul li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-gray);
    }
}

/* Hide hamburger on desktop */
.hamburger { display: none; }
