.logo,
.nav-links a:hover,
h1 {
	color: var(--text-main)
}

:root {
	--bg-color: #000000;
	--text-main: #ffffff;
	--text-muted: #888888;
	--accent-gray: #333333;
	--nav-height: 100px
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box
}

body {
	background-color: var(--bg-color);
	color: var(--text-muted);
	font-family: Inter, -apple-system, system-ui, sans-serif;
	line-height: 1.5;
}

main {
	padding: 0 4%
}
.navbar {
	height: var(--nav-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
	top: 0;
	background: var(--bg-color);
	z-index: 100
}

.logo {
	font-weight: 700;
	font-size: 2rem;
	padding: 2.5rem;
}

.hero-subtext,
.nav-links a {
	color: var(--text-muted);
}

.nav-links a {
	text-decoration: none;
	margin-left: 2rem;
	font-size: 1.5rem;
	transition: color .2s;
	font-weight: 100;
}

section {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 4rem;
	margin-bottom: 10rem
}

.sidebar-label {
	font-size: 1.4rem;
	font-weight: 500;
	text-transform: capitalize;
	padding-top: 10px;
	top: var(--nav-height)
}

.hero-subtext,
.project-header h2 {
	font-size: 1.8rem
}

.hero-content-split {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 4rem;
	align-items: start
}

h1 {
	font-size: 2.8rem;
	font-weight: 500;
	letter-spacing: -.03em;
	margin-bottom: 2rem;
	line-height: 1.2
}

.project-header h2,
.role {
	color: var(--text-main);
	font-weight: 500
}

.hero-image-block {
	text-align: left
}

.hero-portrait {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 5px
}

.project-list {
	border-top: 1px solid var(--accent-gray)
}

.project-item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	padding: 4rem 0;
	border-bottom: 1px solid var(--accent-gray)
}

.title-with-logo {
	display: flex;
	align-items: center;
	gap: 1rem
}

.project-logo {
	height: 50px;
	width: auto;
	filter: grayscale(1)
}

.inverted {
	filter: grayscale(1) invert(100%)
}

.date {
	font-size: .9rem;
	margin-top: 5px;
	display: block
}

.role {
	margin: 1.5rem 0 .5rem
}

.gallery-wrapper {
	aspect-ratio: 395/350;
	overflow: hidden;
	position: relative;
	background: #0a0a0a;
	border-radius: 5px
}

.project-gallery {
	display: flex;
	height: 100%;
	width: 100%;
	transition: transform .3s ease-in-out
}

.gallery-slide {
	flex: 0 0 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center
}

.gallery-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block
}

.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, .4);
	border: none;
	color: #fff;
	font-size: 1.5rem;
	width: 2.5rem;
	height: 2.5rem;
	cursor: pointer;
	z-index: 10;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(5px)
}

.gallery-prev {
	left: .5rem
}

.gallery-next {
	right: .5rem
}

@media (max-width:1024px) {
	.hero-content-split {
		grid-template-columns: 1fr
	}

	.hero-image-block {
		order: -1;
		width: 200px;
		margin-bottom: 2rem
	}
}

@media (max-width:900px) {

	.project-item,
	section {
		grid-template-columns: 1fr
	}

	section {
		gap: 1rem
	}

	.project-item {
		gap: 2rem
	}

	.gallery-wrapper {
		height: auto;
		aspect-ratio: 4/3
	}

	h1 {
		font-size: 2rem
	}
}

.project-gallery,
img {
	border-radius: 5px
}

.contact {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 4rem;
	margin-bottom: 6rem
}

.contact-content {
	display: flex;
	flex-direction: column;
	gap: 1rem
}

.contact-link {
	color: var(--text-main);
	text-decoration: none;
	font-size: 1.2rem
}

.contact-link:hover {
	text-decoration: underline
}
.bg-pattern {
    position: fixed;
    top: -200%; /* Larger than viewport to allow movement */
    left: 0;
    width: 100%;
    height: 400%; /* Extra height for the scroll movement */
    z-index: -1; /* Keep it behind everything */
    pointer-events: none; /* Make sure it doesn't interfere with clicks */
    
    /* Elegant thin line pattern using a linear gradient */
    background-image: 
        linear-gradient(var(--accent-gray) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-gray) 1px, transparent 1px);
    background-size: 100px 100px; /* Size of the grid squares */
    opacity: 0.22; /* Keep it very subtle */
    
    /* Smooth movement */
    will-change: transform;
}

/* Ensure the body remains the relative container */
body {
    position: relative;
    background-color: var(--bg-color);
}

#lineCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #000000;
}

/* Optional: Fade the lines as they move right so they don't overlap text */
#lineCanvas {
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 40%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 40%);
}

.mobile-only {
	display: none;
}
	
.no-mobile {
	display: inherit;
}

@media (max-width:900px) {
	.contact {
		grid-template-columns: 1fr;
		gap: 1rem
	}
		
	#lineCanvas {
		mask-image: linear-gradient(to right, rgba(0,0,0,0.35) 0);
		-webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.35) 0);
	}
	
	.mobile-only {
		display: inherit;
	}
	
	.no-mobile {
		display: none;
	}
}
