:root {
    --primary: #0b2c48;
    --accent: #e6b800;
    --bg: #f5f7fb;
    --text: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* HEADER */
.portfolio-header {
    background: #eef7fb;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    max-width: 1300px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 42px;
}

.back-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color .3s;
}

.back-link:hover {
    color: var(--accent);
}

/* TITLE */
.portfolio-title {
    text-align: center;
    padding: 60px 20px 30px;
}

.portfolio-title h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.portfolio-title p {
    margin-top: 8px;
    color: #777;
    font-size: 15px;
}

/* GALLERY */
.portfolio-wrapper {
    max-width: 1400px;
    margin: auto;
    padding: 20px 24px 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* IMAGE CARD */
.portfolio-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    background: #ddd;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.portfolio-grid img:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 42px;
    color: #fff;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .portfolio-title h1 {
        font-size: 26px;
    }

    .portfolio-grid img {
        height: 200px;
    }

    .logo {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .portfolio-title {
        padding: 40px 15px 20px;
    }
}
