/* =========================
   Global Font & Variables
   ========================= */
   @font-face {
	font-family: 'ExcaliFont';
	src: url('fonts/excalifont.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
:root {
	--print-guide-offset: 30px;
	--target-color: gray;
}

/* ===============
   Base Styles
   =============== */
body {
	font-family: 'ExcaliFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Base typography for large screens */
h1 {
	font-size: 6rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* ===============
   Social Links
   =============== */
.social-link {
	color: #6b7280;
	display: flex;
	align-items: center;
	font-weight: 500;
	text-decoration: none;
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
}
.social-link:hover {
	text-decoration: underline;
}

/* ===============
Contact Link
   =============== */
.contact-link {
	color: #6b7280;
	display: flex;
	align-items: center;
	font-weight: 500;
	text-decoration: none;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}
.contact-link:hover {
	text-decoration: underline;
}

/* ===============
   Project Cards
   =============== */
.project-card {
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease-in-out;
	border-radius: 0.375rem;
}
.project-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.project-card-image {
	height: 10rem;
	background: linear-gradient(to right, #93c5fd, #c4b5fd);
}
.project-link {
	display: inline-flex;
	align-items: center;
	color: #2563eb;
	text-decoration: none;
	margin-top: 0.5rem;
}
.project-link:hover {
	text-decoration: underline;
}

/* ===============
   Info List Items
   =============== */
.info-item {
	display: flex;
	align-items: center;
}
.info-item-label {
	width: 6rem;
	font-weight: 500;
}

/* ===============
   SVG Arrow Icons
   =============== */
.arrow-icon path {
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ===============
   Print Guides
   =============== */
.print-guide {
	position: fixed;
	width: 25px;
	height: 25px;
	z-index: 10;
}
.print-guide.top-left {
	top: var(--print-guide-offset);
	left: var(--print-guide-offset);
	border-top: 1px solid var(--target-color);
	border-left: 1px solid var(--target-color);
}
.print-guide.top-right {
	top: var(--print-guide-offset);
	right: var(--print-guide-offset);
	border-top: 1px solid var(--target-color);
	border-right: 1px solid var(--target-color);
}
.print-guide.bottom-left {
	bottom: var(--print-guide-offset);
	left: var(--print-guide-offset);
	border-bottom: 1px solid var(--target-color);
	border-left: 1px solid var(--target-color);
}
.print-guide.bottom-right {
	bottom: var(--print-guide-offset);
	right: var(--print-guide-offset);
	border-bottom: 1px solid var(--target-color);
	border-right: 1px solid var(--target-color);
}

/* ===============
   Notebook Lines
   =============== */
.notebook-lines {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(#e5e5e5 1px, transparent 1px);
	background-size: 100% 2rem;
	background-position: 0 0;
	display: block !important;
}
.notebook-lines::before {
	content: '';
	position: absolute;
	top: 0;
	left: 2rem;
	right: 0;
	bottom: 0;
	border-left: 1px solid #e5e5e5;
	opacity: 0.5;
}
.notebook-lines::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		linear-gradient(90deg, transparent 0%, transparent 49.9%, rgba(229, 229, 229, 0.3) 50%, transparent 50.1%, transparent 100%),
		linear-gradient(90deg, transparent 0%, transparent 49.9%, rgba(229, 229, 229, 0.2) 50%, transparent 50.1%, transparent 100%),
		linear-gradient(90deg, transparent 0%, transparent 49.9%, rgba(229, 229, 229, 0.4) 50%, transparent 50.1%, transparent 100%);
	background-size: 100% 4rem, 100% 6rem, 100% 8rem;
	background-position: 0 0, 0 2rem, 0 4rem;
	opacity: 0.5;
}

/* ===============
   Content Safe Area
   =============== */
.content-safe-area {
	position: relative;
	width: calc(100% - var(--print-guide-offset) * 2);
	height: calc(100vh - var(--print-guide-offset) * 2);
	margin: var(--print-guide-offset);
	overflow-y: scroll;
    scrollbar-width: none;
	z-index: 20;
}

/* ===============
   Tab Navigation
   =============== */
.tab-navigation {
	position: fixed;
	top: var(--print-guide-offset);
	right: var(--print-guide-offset);
	z-index: 50;
	display: flex;
	gap: 1rem;
}

.tab-trigger {
	padding: 0.5rem 1rem;
	border: none;
	background: transparent;
	color: #666666;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 1.1rem;
	font-weight: 500;
}
.tab-trigger:hover {
	color: #1a1a1a;
}
.tab-trigger.active {
	color: #1a1a1a;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* =========================
   Project Gallery & Layout
   ========================= */
.project-container {
	position: relative;
	margin-top: 10vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	overflow: hidden;
	flex-direction: column;
}
.project-page {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s cubic-bezier(.4,2,.3,1), transform 0.5s cubic-bezier(.4,2,.3,1);
	transform: translateY(30px);
	z-index: 1;
}
.project-page.active {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	z-index: 2;
	display: block;
}
.project-content {
	text-align: center;
	max-width: 520px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 2rem 1.5rem;
	background: transparent;
	border-radius: 1.5rem;
	box-shadow: 0 4px 32px 0 rgba(30,41,59,0.08);
}
.project-label {
	font-size: 1.2rem;
	color: #bdbdbd;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5em;
}
.project-dot-label {
	color: #1a1a1a;
	font-size: 1.2em;
	margin-right: 0.3em;
	vertical-align: middle;
}
.project-title {
	font-size: 2.8rem;
	font-weight: 800;
	color: #1a1a1a;
	margin-bottom: 1.1rem;
	letter-spacing: 0.01em;
	line-height: 1.1;
}
.project-desc {
	font-size: 1.15rem;
	color: #6b7280;
	margin-bottom: 2.2rem;
	font-weight: 400;
	line-height: 1.4;
	max-width: 32rem;
}
.project-link.outlined {
	display: inline-block;
	font-size: 1.1rem;
	font-weight: 500;
	color: #6b7280;
	border: 2px solid #6b7280;
	border-radius: 2em;
	padding: 0.7em 2.5em;
	text-decoration: none;
	background: none;
	transition: background 0.2s, color 0.2s, border 0.2s;
	letter-spacing: 0.02em;
}
.project-link.outlined:hover {
	background: black;
	color: #fff;
	border-color: black;
}
.project-divider {
	width: 1px;
	height: 70vh;
	background: #1a1a1a22;
	margin: 0 3vw;
	border-radius: 1px;
}
.project-right {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 8vw 0 5vw;
}

/* ===============
   Project Image
   =============== */
.project-img {
	width: 100%;
	max-width: 540px;
	max-height: 80vh;
	object-fit: cover;
	border-radius: 0;
	box-shadow: 0 8px 32px 0 rgba(30,41,59,0.18), 0 2px 8px 0 rgba(30,41,59,0.10);
	background: #e5e5e5;
	transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	transform: none;
}
.project-img:hover {
	border-radius: 3rem;
	transform: rotate(10deg);
	box-shadow: 0 16px 48px 0 rgba(30,41,59,0.22), 0 4px 16px 0 rgba(30,41,59,0.13);
	transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============
   Project Nav Dots
   =============== */
.project-nav {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 1.2rem;
	z-index: 10;
	margin-top: 2rem;
}
.project-dot {
	background: none;
	border: none;
	font-size: 2.1rem;
	color: white;
	cursor: pointer;
	transition: color 0.2s;
	outline: none;
	font-weight: 700;
	line-height: 1;
	padding: 0 0.2em;
	box-shadow: none;
}
.project-dot.active {
	color: #ED474A;
	background: none;
	border: none;
	box-shadow: none;
}
.project-dot:focus {
	outline: none;
	box-shadow: none;
}
.project-num {
	color: #1a1a1a;
	font-weight: 700;
	margin-left: 0.2em;
	transition: color 0.2s;
}
.project-page.active .project-num {
	color: #ED474A;
}

/* ===============
   Project Split Layout
   =============== */
.project-split {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	max-width: 100vw;
	max-height: 100vh;
	background: transparent;
}
.project-left {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	height: 100%;
	padding: 0 5vw 0 8vw;
}

/* ===============
   Responsive Layout
   =============== */
/* Large screens (1025px to 1439px) */
@media (min-width: 1025px) and (max-width: 1439px) {
	h1 { font-size: 6rem !important; }
}

/* Large screens (1440px and up) */
@media (min-width: 1440px) {
	h1 { font-size: 7rem !important; }
	.project-title { font-size: 3.2rem; }
	.project-desc { font-size: 1.25rem; }
	.project-img { max-width: 600px; }
	.project-left, .project-right { padding: 0 6vw; }
}

/* Extra large screens (1920px and up) */
@media (min-width: 1920px) {
	h1 { font-size: 8rem !important; }
	.project-title { font-size: 3.5rem; }
	.project-desc { font-size: 1.3rem; }
	.project-img { max-width: 700px; }
	.project-content { max-width: 600px; }
}

@media (max-width: 1024px) {
	h1 { font-size: 5rem !important; }
}

@media (max-width: 768px) {
	h1 { font-size: 3.5rem !important; }
	.social-link { font-size: 0.9rem !important; }
	.contact-link { font-size: 1rem !important; }
	
	.tab-navigation {
		flex-direction: column;
		gap: 0.15rem;
		background: none;
		box-shadow: none;
	}
	
	.tab-trigger {
		padding: 0.15rem 0.35rem;
		font-size: 0.75rem;
		background: none;
	}
}

@media (max-width: 640px) {
	h1 { font-size: 2.5rem !important; }
	.social-link { font-size: 0.8rem !important; }
	.contact-link { font-size: 0.8rem !important; }
	
	.tab-navigation {
		position: fixed;
		top: var(--print-guide-offset);
		right: var(--print-guide-offset);
		padding: 0.5rem;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		z-index: 40;
	}
	
	.tab-trigger {
		padding: 0.25rem 0.5rem;
		font-size: 0.8rem;
		white-space: nowrap;
	}
}

/* ===============
   Responsive Project Layout
   =============== */
@media (max-width: 1100px) {
	.project-title { font-size: 2.2rem; }
	.project-desc { font-size: 1.1rem; }
	.project-img { 
		max-width: 350px; 
		transform: none; 
		transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
	}
	.project-img:hover { 
		border-radius: 3rem; 
		transform: rotate(10deg); 
		transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
	}
	.project-left, .project-right { padding: 0 2vw; }
}

@media (max-width: 900px) {
	.project-split {
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		height: auto;
		min-height: 100vh;
	}
	.project-left, .project-right {
		padding: 2vw 4vw;
		width: 100%;
		justify-content: center;
		align-items: center;
	}
	.project-divider {
		width: 60vw;
		height: 1px;
		margin: 2vw auto;
	}
	.project-img {
		max-width: 90vw;
		max-height: 40vh;
		border-radius: 0;
		transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
		transform: none;
	}
	.project-img:hover {
		border-radius: 3rem;
		transform: rotate(10deg);
		transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	}
}

@media (max-width: 600px) {
	.project-title { font-size: 1.3rem; text-align: center; }
	.project-desc { font-size: 0.95rem; text-align: center; }
	.project-img { 
		max-width: 98vw; 
		border-radius: 0; 
		margin-top: 1.5rem; 
		transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
		transform: none; 
	}
	.project-img:hover { 
		border-radius: 1.5rem; 
		transform: rotate(10deg); 
		transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
	}
	.project-left, .project-right { padding: 1vw 2vw; align-items: center; }
	.project-split { flex-direction: column; align-items: stretch; }
	.project-divider { width: 100%; height: 1px; margin: 2vw auto; }
	.project-label { margin-bottom: 1.2rem; }
	.project-container { margin-top: 4.5rem; }
}

@media (max-width: 480px) {
	body { overflow-x: hidden; }
	.print-guide { display: none; }
	.project-img { 
		max-width: 100vw; 
		border-radius: 0; 
		transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
		transform: none; 
	}
	.project-img:hover { 
		border-radius: 1.5rem; 
		transform: rotate(10deg); 
		transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
	}
	.project-container { margin-top: 4.5rem; }
}