/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', sans-serif;
    background: #f5f5f0;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== SECTION TAG ===== */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 12px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(201, 168, 76, 0.05);
}

/* ===== NAVIGATION (matching main page style.css) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: #f5f5f0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.logo {
    display: flex;
    align-items: flex-end;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1a1a1a;
}

.logo-img {
    width: 400px;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: flex-end;
    padding-bottom: 2px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #555555;
    transition: color 0.3s ease;
    position: relative;
    line-height: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #c9a84c;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #c9a84c;
}

.nav-links a.active::after {
    width: 100%;
}

/* Wrapper that groups nav links + back-link on the right side */
.nav-right {
    display: flex;
    align-items: flex-end;
    gap: 36px;
}

/* Back to Projects link — sits to the right of the nav links */
.back-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #555555;
    transition: color 0.3s ease;
    line-height: 1;
    padding-bottom: 2px;
    white-space: nowrap;
}

.back-link:hover {
    color: #c9a84c;
}

.back-link i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    align-self: flex-end;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== PROJECT HERO ===== */
.project-hero {
    padding: 140px 0 60px;
    background: #ffffff;
}

.project-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.project-meta {
    font-size: 1rem;
    color: #888888;
    margin-bottom: 20px;
}

.project-description {
    font-size: 1.05rem;
    color: #555555;
    max-width: 800px;
    line-height: 1.8;
    text-align: justify;
}

/* ===== GALLERY ===== */
.gallery {
    padding: 60px 0 100px;
    background: #f5f5f0;
}

.gallery h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    padding: 20px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== FOOTER - LIGHT VERSION ===== */
.footer {
    background: #f5f5f0;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .footer-logo-img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #555555;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    color: #999999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .logo-img {
        width: 250px;
    }

    .footer-brand .footer-logo-img {
        width: 150px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Hide the nav-right by default on mobile; show it when hamburger is active */
    .nav-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: #f5f5f0;
        padding: 30px 24px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    /* Show the menu when either the hamburger is active OR navLinks has .active */
    .hamburger.active ~ .nav-right,
    .nav-right.active {
        display: flex;
    }

    /* The nav-links inside nav-right stack vertically on mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding-bottom: 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .back-link {
        font-size: 1rem;
    }

    .logo-img {
        width: 180px;
    }

    .footer-brand .footer-logo-img {
        width: 120px;
    }

    .project-hero {
        padding: 120px 0 40px;
    }

    .project-hero h1 {
        font-size: 2rem;
    }

    .project-description {
        font-size: 0.95rem;
    }

    .gallery {
        padding: 40px 0 60px;
    }

    .gallery h2 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-item img {
        height: 200px;
    }

    .lightbox-prev {
        left: 10px;
        padding: 12px 10px;
        font-size: 1.2rem;
    }

    .lightbox-next {
        right: 10px;
        padding: 12px 10px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 140px;
    }

    .footer-brand .footer-logo-img {
        width: 100px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item img {
        height: 220px;
    }

    .project-hero h1 {
        font-size: 1.6rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 8px;
        font-size: 1rem;
    }
}