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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header */
.top-header {
    background-color: #fff;
    color: #333;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.top-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-header-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: auto;
}

.top-header-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    color: #333;
}

/* Full-Width Photo Box */
.photo-box {
    width: 100%;
    background-color: #f5f5f5; /* Matches body */
    padding: 20px 0;
}

.photo-box-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.photo-box-content img {
    width: 100%;
    height: 400px; /* Adjustable */
    object-fit: cover;
    border-radius: 5px; /* Matches .project-image img */
    display: block;
}

/* Header Styles (Navigation) */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.hamburger {
    display: block; /* Always visible for hamburger menu */
    font-size: 1.5rem;
    cursor: pointer;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: none; /* Hidden by default */
    list-style: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Below header */
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav ul.active {
    display: flex; /* Shown when toggled */
}

nav ul li {
    margin: 10px 0; /* Vertical spacing for mobile */
}

nav ul li a {
    text-decoration: none;
    color: #333;
}

/* Project Section */
.project-section {
    padding: 100px 0 40px;
}

.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.project-details {
    padding: 20px;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-details p {
    margin-bottom: 15px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /*controls the width of the grid elements */
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Main Content Adjustment */
main {
    padding-top: 580px; /* Accounts for top-header (~60px) + photo-box (~400px) + nav header (~60px) + spacing */
}

/* Responsive Design */
@media (min-width: 769px) {
    .hamburger {
        display: none; /* Hidden on desktop */
    }

    nav ul {
        display: flex; /* Horizontal menu on desktop */
        position: static;
        width: auto;
        background: none;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
    }

    nav ul li {
        margin: 0 20px; /* Horizontal spacing */
    }
}

@media (max-width: 768px) {
    .top-header-title {
        font-size: 1.4rem;
    }

    .top-header-logo {
        height: 40px;
    }

    .photo-box-content img {
        height: 300px; /* Smaller on mobile */
    }

    main {
        padding-top: 460px; /* Adjusted for smaller elements */
    }
}