:root {
	/* Palette based on Tavus.io */
	--bg-blue: #dceaf7;
	--bg-yellow: #fff8dc;
	--bg-gradient: linear-gradient(180deg, #dceaf7 0%, #e6e6fa 50%, #ffe4e1 100%);
	--accent-pink: #ff8ba6;
	--accent-green: #27e368;
	--accent-yellow: #ffeb99;
	--accent-blue: #87ceeb;
	--border-color: #000000;
	--shadow-color: #000000;
	--card-bg: #f7f4ef; /* Light Yellow */

	/* Typography */
	--font-primary: "Times New Roman", serif;
	--font-secondary: "Arial", sans-serif;
	--font-heading: "Times New Roman", serif;
	--font-monospace: "Courier New", "Courier", monospace;

	/* Spacing */
	--border-width: 2px;
	--shadow-offset: 6px;
}

/* --- GLOBAL RESET & TYPOGRAPHY --- */
* {
	box-sizing: border-box;
}
h1 {
	font-family: var(--font-heading);
	font-size: 60px;
	font-weight: 400;
	letter-spacing: -1px;
	margin: 0;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-secondary);
	background: var(--bg-gradient);
	color: black;
	min-height: 100vh;
	overflow-x: hidden;
	/* Clouds stretched background */
	background-image: url("/images/clouds.png");
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.ship-image {
	max-width: 100%;
	height: auto;
	display: block;
}

/* --- UTILITY CLASSES: NEO-BRUTALISM --- */
.hard-box {
	background: var(--card-bg);
	border: var(--border-width) solid var(--border-color);
	box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
	transition: transform 0.1s;
}

.hard-btn {
	background: white;
	border: var(--border-width) solid var(--border-color);
	padding: 16px 20px;
	font-family: var(--font-monospace);
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: -1px;
	cursor: pointer;
	box-shadow: 4px 4px 0 var(--shadow-color);
	text-decoration: none;
	color: black;
	display: inline-block;
	transition: all 0.2s;
}

.hard-btn:hover {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--shadow-color);
}

.hard-btn:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--shadow-color);
}

.btn-pink {
	background-color: var(--accent-pink);
}
.btn-green {
	background-color: var(--accent-green);
}
.btn-blue {
	background-color: var(--accent-blue);
}
.btn-yellow {
	background-color: var(--accent-yellow);
}
.btn-black {
	background-color: black;
	color: white;
}

/* --- NAVIGATION --- */
nav {
	padding: 20px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* position: sticky; */
	top: 0;
	z-index: 100;
}

.logo-box {
	font-family: var(--font-monospace);
	font-size: 24px;
	background: white;
	padding: 5px 15px;
	border: 2px solid black;
	box-shadow: 4px 4px 0 black;
}

.nav-links {
	display: flex;
	gap: 15px;
}

.nav-item {
	background: white;
	border: 2px solid black;
	padding: 8px 16px;
	font-weight: bold;
	font-size: 12px;
	cursor: pointer;
	box-shadow: 3px 3px 0 black;
}
.nav-item:hover {
	background: #eee;
}

/* --- HERO SECTION --- */
.hero-section {
	max-width: 1400px;
	margin: 60px auto;
	padding: 0 20px;
	position: relative;
	height: 500px;
	display: flex;
	align-items: center;
}

/* Apple II Window Style */
.apple-window {
	background: var(--card-bg);
	border: 2px solid black;
	box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

.apple-title {
	padding: 4px 6px;
	font-weight: normal;
	font-size: 12px;
	letter-spacing: 2px;
	color: black;
	text-shadow: none;
	border-bottom: 2px solid black;
	font-family: var(--font-monospace);
	display: flex;
	align-items: center;
	gap: 4px;
	position: relative;
	background: white;
}

.square-pink,
.square-green,
.square-yellow,
.square-blue {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	display: inline-block;
}

.square-pink {
	background: var(--accent-pink);
}

.square-green {
	background: var(--accent-green);
}

.square-yellow {
	background: var(--accent-yellow);
}

.square-blue {
	background: var(--accent-blue);
}

.apple-content {
	padding: 16px;
}

/* Tetrabit Window */
.tetrabit-window {
	width: 60%;
	left: 0;
	z-index: 3;
	height: fit-content;
}

.tetrabit-window h1 {
	font-family: var(--font-heading);
	font-size: 54px;
	font-weight: 400;
	margin: 0 0 12px 0;
	letter-spacing: -1px;
}

.tetrabit-window p {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 16px;
}

/* Ship Window */
.ship-window {
	width: 480px;
	right: 150px;
	top: 0;
	z-index: 1;
	position: absolute;
}

.ship-window .apple-content {
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.media-controls {
	display: flex;
	justify-content: center;
	gap: 16px;
	padding: 8px;
	border-top: 2px solid black;
}

#shipsVideo {
	width: 100%;
	height: auto;
	display: block;
	min-height: 350px;
	object-fit: cover;
	border: 2px solid black;
}

.interaction-shield {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
}

.media-btn {
	flex: 0 0 auto;
	padding: 8px 12px;
	font-size: 16px;
	font-weight: bold;
	background: rgb(210, 210, 210);
	border: 2px solid black;
	cursor: pointer;
	transition: all 0.15s ease;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 70px;
	min-height: 30px;
}

.media-icon {
	width: 14px;
	height: 14px;
}

.media-btn:hover {
	background: #f5f5f5;
}

.media-btn:active {
	background: #e0e0e0;
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
	transform: translate(1px, 1px);
}

/* Floating "Badges" */
.badge {
	position: absolute;
	background: white;
	border: 2px solid black;
	padding: 10px;
	font-size: 12px;
	font-weight: bold;
	box-shadow: 5px 5px 0 black;
	z-index: 5;
}

.badge-1 {
	top: -20px;
	right: -20px;
	background: var(--accent-green);
}
.badge-2 {
	bottom: 30px;
	left: -30px;
	background: var(--accent-pink);
}

/* --- CORE VALUES GRID --- */
.section-container {
	max-width: 1200px;
	margin: 100px auto;
	padding: 0 20px;
}

.section-title {
	text-align: center;
	margin-bottom: 50px;
	letter-spacing: -1px;
}

.grid-4 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.value-card {
	background: var(--card-bg);
	border: 2px solid black;
	position: relative;
	transition: all 0.2s;
	box-shadow: 6px 6px 0 var(--shadow-color);
	display: flex;
	flex-direction: column;
}

.value-card:hover {
	transform: translate(4px, 4px);
	box-shadow: 1px 1px 0 var(--shadow-color);
}

.value-card::before {
	content: "";
	display: block;
	height: 14px;
	border-bottom: 2px solid black;
	display: flex;
	align-items: center;
	padding: 2px 4px;
}

.value-card-1::before {
	background: #ff8ba6;
}

.value-card-2::before {
	background: #27e368;
}

.value-card-3::before {
	background: #ffeb99;
}

.value-card-4::before {
	background: #87ceeb;
}

.value-card-content {
	padding: 14px;
	flex: 1;
}
.value-card-icon {
	width: 65px;
	height: 65px;
	margin-bottom: 16px;
}

.icon-box {
	width: 50px;
	height: 50px;
	border: 2px solid black;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	background-color: white;
}
h3 {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 400;
	margin: 0 0 12px 0;
	letter-spacing: -0.5px;
}

/* --- PROJECTS (Mockup style) --- */
.project-section {
	background: var(--bg-yellow);
	color: rgb(0, 0, 0);
	padding: 40px 20px;
	margin-top: 100px;
	border-top: 2px solid black;
	border-bottom: 2px solid black;
}

.project-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.project-section h1 {
	color: rgb(62, 62, 62);
}
.project-details h3 {
	font-size: 38px;
	color: rgb(62, 62, 62);
	margin-bottom: 20px;
}

.project-details p {
	color: rgb(62, 62, 62);
}

.task-tracker-window {
	width: 540px;
	right: 280px;
}
.fleet-dashboard-window {
	width: 540px;
}

.projects-image {
	width: 100%;
}

.browser-bar {
	background: #ddd;
	padding: 10px;
	display: flex;
	gap: 6px;
	border-bottom: 1px solid #999;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #999;
}

/* --- CONTACT --- */
.contact-section {
	text-align: center;
	padding: 100px 20px;
	background: var(--bg-blue);
}
.portrait {
	width: 150px;
	height: 150px;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
}

.social-btn {
	width: 60px;
	height: 60px;
	border: 2px solid black;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	box-shadow: 4px 4px 0 var(--shadow-color);
	cursor: pointer;
	transition: 0.2s;
}

.social-btn:hover {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--shadow-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.hero {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero-text h1 {
		font-size: 48px;
	}
	.project-container {
		grid-template-columns: 1fr;
	}
	nav {
		padding: 10px 20px;
	}
	.nav-links {
		display: none;
	}

	/* Hero section mobile layout */
	.hero-section {
		flex-direction: column;
		height: auto;
		gap: 30px;
		margin: 30px auto;
	}

	.tetrabit-window {
		width: 100%;
		position: relative;
		order: 1;
	}

	.tetrabit-window h1 {
		font-size: 36px;
	}

	.ship-window {
		width: 100%;
		position: relative;
		right: auto;
		top: auto;
		order: 2;
	}
	#shipsVideo {
		min-height: 220px;
	}

	/* Badges repositioning */
	.badge {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		margin: 10px 0;
	}

	.badge-1,
	.badge-2 {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
	}

	/* Values grid */
	.grid-4 {
		grid-template-columns: 1fr;
	}

	/* Section spacing */
	.section-container {
		margin: 50px auto;
	}

	.section-title {
		font-size: 36px;
	}

	/* Project section */
	.project-details h3 {
		font-size: 28px;
	}

	.task-tracker-window,
	.fleet-dashboard-window {
		width: 100%;
	}

	/* Project containers: text before screenshot */
	.project-container {
		display: flex;
		flex-direction: column;
	}

	.project-details {
		order: 1;
	}

	.task-tracker-window,
	.fleet-dashboard-window {
		order: 2;
	}

	/* Media controls fix */
	.media-controls {
		flex-wrap: wrap;
		gap: 8px;
	}

	.media-btn {
		min-width: 50px;
		padding: 6px 10px;
		font-size: 14px;
	}

	/* Background image fix for mobile */
	body {
		background-size: cover;
		background-position: center;
	}

	/* Contact section */
	.contact-section {
		padding: 50px 20px;
	}

	.social-links {
		flex-wrap: wrap;
	}

	/* Logo and nav */
	.logo-box {
		font-size: 18px;
	}

	/* Buttons */
	.hard-btn {
		padding: 12px 16px;
		font-size: 16px;
	}

	/* Global heading */
	h1 {
		font-size: 36px;
	}
}

/* Code snippet styling */
.code-block {
	font-family: "Courier New", monospace;
	font-size: 14px;
	color: #0f0;
	line-height: 1.4;
	padding: 20px;
}
