:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-dim: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Use a clean sans-serif */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Grid Lines */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    pointer-events: none;
    z-index: 0;
}

.grid-overlay span {
    border-right: 1px solid var(--border-color);
    height: 100%;
}

/* Header & Nav */
header {
    position: relative;
    display: flex;
    padding: 40px 0;
    z-index: 10;
}

.logo {
    width: 16.66%; /* Grid column 1 */
    padding-left: 5%;
    font-weight: 800;
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    width: 83.33%;
}

.main-nav a {
    flex: 1;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    padding-bottom: 10px;
}

.main-nav a.active {
    border-bottom: 2px solid white;
    width: fit-content;
}

/* Page Title & Filter Row */
.page-title-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 60px;
    padding-top: 40px;
}

h1 {
    width: 66.66%;
    padding-left: 5%;
    font-size: 3rem;
    font-weight: 400;
}

.filter-nav {
    width: 33.33%;
    display: flex;
    gap: 20px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.75rem;
    padding-bottom: 5px;
    transition: 0.3s;
}

.filter-btn.active {
    color: white;
    border-bottom: 2px solid white;
}

/* Projects Grid */
.projects-grid {
    position: relative;
    z-index: 5;
    padding-bottom: 100px;
}

.project-item {
    margin-bottom: 80px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.4s ease;
}

.img-container {
    width: 100%;
    background: #1a1a1a;
    margin-bottom: 20px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    display: block;
    filter: grayscale(20%);
    transition: transform 0.6s ease;
}

.img-container:hover img {
    transform: scale(1.03);
}

.project-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-item p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Filtering classes */
.hide { display: none; }