/* General Reset */
* {
	box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0;
	padding: 0;
}

html,
body {
	overflow-x: hidden;
}

body {
	font-family: 'Inter', Arial, sans-serif;
	background-color: #b1b1b1;
	min-height: 100vh;
	color: #e0e0e0;
	line-height: 1.6;
	padding: 1rem;
	background-image: url('images/bg.jpeg');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	margin: 0;
}

button {
	font-family: 'Inter', Arial, sans-serif;
	background-color: transparent;
	border-style: solid;
	cursor: pointer;
}

section {
	transition: all 0.25s ease-out;
	padding: 2rem;
	margin: 1rem auto;
	background-color: rgba(37, 37, 37, 0.6);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
	max-width: 800px;
	opacity: 0;
	transform: translateX(0px) rotateY(0);
}

section:hover {
	box-shadow: 0 8px 20px rgba(1, 1, 1, 0.7);
	transform: translateY(-5px);
}

/* Typography */
h1 {
	font-size: 3rem;
	font-weight: bold;
}

h2 {
	font-size: 2rem;
	font-weight: bold;
}

h3 {
	font-size: 1.5rem;
	font-weight: bold;
}

hr {
	border: 0;
	height: 1px;
	background-color: #ffffff;
	margin: 1rem 0;
}

a {
	transition: all 0.3s ease;
	color: #ffffff;
	text-decoration: underline;
}

a:hover {
	color: #ff9800;
}

.project {
	padding: 2rem;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	gap: 0.75rem 1rem;
}

.project-top {
	display: contents;
}

.project-left {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	flex-direction: column;
	width: 100%;
}

.project-icon {
	width: 56px;
	height: 56px;
	margin-right: 12px;
	border-radius: 8px;
	object-fit:contain;
	flex: 0 0 56px;
}

.project-title {
	font-size: 1.5rem;
	margin: 0;
	color: #ffffff;
}

.project-title-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-right {
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-large-image {
	transition: all 0.7s ease;
	width: 360px;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.project-desc {
	grid-column: 1 / 2;
	grid-row: 2 / 3;
	margin-top: 0;
	color: #bdbdbd;
	line-height: 1.4;
	text-align: left;
	height: 100%;
}

.project-buttons {
	width: 100%;
	display: flex;
	gap: 0.5rem;
	margin-top: 0.5rem;
	max-height: 50px;
	justify-content: flex-end;
}

.project-buttons a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	border-radius: 16px;
	font-size: 1rem;
	font-weight: bold;
	text-decoration: none;
	transition: all 0.4s ease;
}

.project-buttons a:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.secondary-button {
	background-color: rgba(138, 83, 0, 0.3);
	border: 1px solid #ff9800;
	color: #ff9800;
	transition: all 0.4s ease;
	width: 20%;
}

.secondary-button:hover {
	background-color: rgba(255, 153, 0, 0.4);
	color: #ffffff;
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.main-button {
	background-color: rgba(0, 110, 162, 0.3);
	border: 1px solid #03a9f4;
	color: #03a9f4;
	transition: all 0.4s ease;
	width: 100%;
}

.main-button:hover {
	background-color: rgba(3, 169, 244, 0.4);
	color: #ffffff;
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(3, 169, 244, 0.3);
}

/* Social Links */
.social-links {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	flex-direction: row;
	margin-top: 1rem;
}

.social-link {
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid #e0e0e0;
	color: #e0e0e0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	width: 4rem;
	height: 4rem;
	font-size: 1.25rem;
	font-weight: 600;
	transform: scale(0.8) rotate(70deg);
	opacity: 0;
	transition: transform 0.4s ease 0s, opacity 0.4s ease 0s;
}

.social-link:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.social-link img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	transition: all 0.4s ease;
}

.about-title {
	font-size: 4rem;
	font-weight: bold;
}

.about-username {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 1rem;
	color: #b1b1b1;
}

/* Mobile: collapse project top row so the image sits below text/title */
@media (max-width: 800px) {
	.project{
		flex-direction: column;
	}
	.project-left {
		order: 1;
		align-items: flex-start;
	}

	.project-right {
		order: 2;
		width: 100%;
		justify-content: flex-start;
	}

	.project-large-image {
		min-width: 0;
		max-width: 100%;
		width: 100%;
		aspect-ratio: 16/9;
		margin-top: 0.5rem;
	}

	.project-icon {
		width: 48px;
		height: 48px;
		flex: 0 0 48px;
	}

	.project-title {
		font-size: 1.25rem;
	}
	.about-title {
		font-size: 3rem;
		text-align: center;
	}
	.about-username {
		font-size: 2rem;
		text-align: center;
	}
	.social-links {
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.about-title {
		font-size: 2rem;
	}
	.about-username {
		font-size: 1rem;
	}
}
