@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400;600&display=swap');

:root {
    --bg: #0e0e0e;
    --text: #f5f5f5;
    --muted: #888;
    --accent: #ffffff;
}

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

body {
    font-family: "Inconsolata", monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* NAV */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid #222;
}

.logo {
    font-weight: 600;
    letter-spacing: 2px;
}

.logo img {
    display: block;
    height: 64px;
    width: auto;
    object-fit: contain;
}

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

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
}

nav a:hover {
    opacity: 1;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 40px;
}

/* GRID PORTFOLIO */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.grid img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: 0.3s ease;
    cursor: zoom-in;
}

.grid img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* HEADINGS */
h1 {
    font-weight: 400;
    font-size: 32px;
    margin-bottom: 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 32px;
}

p {
    color: var(--muted);
    max-width: 600px;
}

/* ABOUT */
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}

.about-text p {
    max-width: none;
}

.about-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 860px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* CONTACT */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

input,
textarea {
    background: transparent;
    border: 1px solid #333;
    padding: 12px;
    color: white;
    font-family: inherit;
}

button {
    background: white;
    color: black;
    border: none;
    padding: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    opacity: 0.8;
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 12px;
    color: #666;
}

/* LIGHTBOX */
body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox__img {
    max-width: min(1100px, 92vw);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
    cursor: default;
}