:root {
    --bg-color: #0a0a0a;
    --secondary-bg: #141414;
    --accent-color: #2962ff;
    --text-color: #ffffff;
    --text-muted: #b3b3b3;
    --card-bg: #101010;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    background: radial-gradient(circle at top, #182034 0%, #0a0a0a 45%);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1300px, 100% - 40px);
    margin: 0 auto;
}

.highlight {
    color: var(--accent-color);
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.btn-nav {
    padding: 8px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--accent-color);
}

.btn-nav:hover {
    background: var(--accent-color);
    color: #fff;
}

.portfolio-hero {
    padding: 86px 0 48px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-size: 0.82rem;
    margin-bottom: 18px;
    font-weight: 700;
}

h1 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: clamp(2.2rem, 8vw, 4.6rem);
    line-height: 1.06;
    margin-bottom: 18px;
    text-shadow: 0 0 18px rgba(41, 98, 255, 0.4);
}

.lead {
    color: var(--text-muted);
    max-width: 780px;
}

.portfolio-main {
    padding: 0 0 90px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.portfolio-card {
    grid-column: span 4;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, var(--card-bg) 70%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(41, 98, 255, 0.9);
}

.portfolio-card-wide {
    grid-column: span 8;
}

.portfolio-card-tall .card-image-wrap {
    height: 620px;
}

.card-image-wrap {
    position: relative;
    height: 500px;
    cursor: pointer;
    overflow: hidden;
}

.portfolio-card-wide .card-image-wrap {
    height: 580px;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.portfolio-card:hover .card-image-wrap img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.zoom-hint {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(41, 98, 255, 0.6) 100%);
    display: flex;
    align-items: end;
    justify-content: end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .zoom-hint {
    opacity: 1;
}

.zoom-hint i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
}

.card-content {
    padding: 18px;
}

.card-content h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: min(1200px, 94vw);
}

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

.lightbox-content figcaption {
    margin-top: 12px;
    text-align: center;
    color: #d9d9d9;
}

.lightbox-btn {
    position: absolute;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: rgba(41, 98, 255, 0.55);
}

.lightbox-btn:hover {
    background: rgba(41, 98, 255, 0.9);
}

#lightbox-close {
    top: 18px;
    right: 18px;
}

#lightbox-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1100px) {
    .portfolio-card,
    .portfolio-card-wide {
        grid-column: span 6;
    }

    .portfolio-card-tall .card-image-wrap,
    .portfolio-card-wide .card-image-wrap,
    .card-image-wrap {
        height: 460px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding-top: 64px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card,
    .portfolio-card-wide {
        grid-column: auto;
    }

    .portfolio-card-tall .card-image-wrap,
    .portfolio-card-wide .card-image-wrap,
    .card-image-wrap {
        height: 400px;
    }

    #lightbox-prev,
    #lightbox-next {
        top: auto;
        bottom: 16px;
        transform: none;
    }

    #lightbox-prev {
        left: calc(50% - 58px);
    }

    #lightbox-next {
        right: calc(50% - 58px);
    }
}
