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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: #d4a574;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 10px 0;
}

nav a:hover,
nav a.active {
    color: #fff;
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #d4a574;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Main Content */
main {
    margin-top: 0;
}

/* Page Hero */
.page-hero {
    height: 30vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/gallery003.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-overlay h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.hero-overlay p {
    font-size: 28px;
    font-weight: 300;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    color: #d4a574;
}

/* Projects Intro */
.projects-intro {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.projects-intro p {
    font-size: 18px;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Gallery Section */
.gallery {
    padding: 80px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: #f5f5f5;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    font-size: 20px;
    font-weight: 500;
}

.gallery-overlay h3 strong {
    color: #FF8C69;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation: zoom 0.3s ease-in-out;
}

@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px;
    font-size: 20px;
}

.lightbox-caption strong {
    color: #FF8C69;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: #bbb;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1500;
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(51, 51, 51, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .hamburger {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.92);
        padding: 20px 30px;
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .hero-overlay h1 {
        font-size: 32px;
    }

    .hero-overlay p {
        font-size: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .projects-intro {
        padding: 40px 20px;
    }

    .projects-intro p {
        font-size: 16px;
    }

    .gallery {
        padding: 60px 20px;
    }

    .close-lightbox {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }

    .lightbox-caption {
        font-size: 16px;
    }
}
