@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

:root {
	--main-background: #000000;
	--main-fonts-color: #ffffff;
	--main-decor-color: #00a9e2;
	--main-header-background: #21252e;
	--main-font-family: 'Poppins', sans-serif;
}

/* ───────────────── GLOBAL ───────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--main-font-family);
	background: var(--main-background);
	color: var(--main-fonts-color);

	/* Prevent horizontal scroll WITHOUT clipping content */
	overflow-x: hidden;

	/* Prevent landscape text cutoff */
	padding-left: 1rem;
	padding-right: 1rem;
}

main {
	width: 100%;
	min-height: 100vh;
	background: var(--main-background);
}

.container {
	width: 100%;
	padding: 1rem;
}

/* ───────────────── HEADER ───────────────── */

header {
	position: fixed;
	top: 0;
	width: 100%;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	background: transparent;
	z-index: 5;
	transition: 0.3s;
}

header:hover {
	background: var(--main-header-background);
}

.logo img {
	height: 50px;
	cursor: pointer;
}

.nav-bar {
	list-style: none;
	display: inline-flex;
	margin: 0;
	padding: 0;
}

.nav-link {
	padding: 5px 10px;
	text-decoration: none;
	color: var(--main-fonts-color);
	text-transform: uppercase;
}

.nav-link:hover {
	background: var(--main-decor-color);
	color: #000;
}

.active {
	background: var(--main-decor-color);
}

/* ───────────────── HOME ───────────────── */

#home {
	min-height: auto;
    padding-bottom: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.intro {
	padding-top: 200px;
	text-align: center;
}

.intro p {
	margin: 8px 0;
	font-size: 1.2rem;
}

h2 {
	font-size: 20px;
	text-shadow: 0 0 40px var(--main-decor-color);
	margin-bottom: 15px;
}

h3 {
	font-size: 70px;
	text-shadow: 0 0 40px var(--main-decor-color);
	margin-bottom: 0px;
}

/* ───────────────── SOCIAL ───────────────── */

.social-media {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 10px;
}

.social-media a {
	font-size: 2rem;
	color: var(--main-fonts-color);
}

.social-media a:hover {
	color: var(--main-decor-color);
}

/* ───────────────── PROJECTS / BUTTON AREA ───────────────── */

/*
	This is the main fix for:
	- More space above/below the buttons
	- Keeping the Home button centered
*/
#projects {
	margin-top: 100px;
	text-align: center;

	/* NEW: padding above and below button area */
	padding-top: 2rem;
	padding-bottom: 2.5rem;
}

/* Button row wrapper */
.work {
	display: flex;
	flex-wrap: wrap;

	/* Keep button(s) centered no matter what */
	justify-content: center;
	align-items: center;

	/* NEW: extra spacing above/below the button row itself */
    padding-top: 8rem;
    padding-bottom: 1rem;

	/* Space between multiple buttons if you add more later */
	gap: 40px;

	width: 100%;
}

/* Button card */
.card {
	width: 200px;
	height: 120px;
	background: var(--main-decor-color);
	border-radius: 12px;

	/* NEW: prevents stretching weirdness in some flex layouts */
	flex: 0 0 auto;
}

/* ---------- CARD BUTTON FIX ---------- */

.card a {
	display: flex;
	/* enable centering */
	align-items: center;
	/* vertical center */
	justify-content: center;
	/* horizontal center */

	width: 100%;
	height: 100%;

	text-decoration: none;
	/* remove underline */
	color: var(--main-fonts-color);
	/* keep font color */
	font-family: var(--main-font-family);
}

.card .work-content {
	font-size: 1.6rem;
	text-align: center;
	font-family: var(--main-font-family);
}

.card:hover {
	box-shadow: 0 0 1.5rem gray;
}

.card .work-content:hover {
	color: #202020;
}

/* ───────────────── CONTACT ───────────────── */

#contact {
	min-height: 600px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* ───────────────── FOOTER ───────────────── */

footer {
	background: var(--main-header-background);
	padding: 12px;
	text-align: center;
}

.copyright a {
	color: #fff;
	text-decoration: none;
}

.copyright a:hover {
	color: var(--main-decor-color);
}

/* ───────────────── HR ───────────────── */

hr {
	width: 300px;
	height: 3px;
	background: var(--main-decor-color);
	border-radius: 5px;
	margin: 8px auto 16px auto;
}

/* ───────────────── CODE BLOCKS ───────────────── */

.no-copy {
	user-select: none;
	-webkit-user-select: none;
}

pre[class*="language-"] {
	width: 100%;
	max-width: 900px;
	margin: 1.25rem auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
}

pre[class*="language-"] code {
	white-space: pre;
	font-size: 0.95rem;
	line-height: 1.45;
}

/* ───────────────── ACADEMIC NOTICE ───────────────── */

.academic-notice {
	width: 100%;
	max-width: 900px;
	margin: 1rem auto;
	padding: 1rem 1.25rem;
	background: #10131a;
	border-left: 4px solid var(--main-decor-color);
	border-radius: 12px;
	overflow-wrap: anywhere;
}

/* ───────────────── MOBILE ───────────────── */

@media (max-width: 600px) {
	h3 {
		font-size: 2rem;
	}

	.intro {
		padding-top: 120px;
	}

	/* Wrap code on small screens for readability */
	pre[class*="language-"],
	pre[class*="language-"] code {
		white-space: pre-wrap;
		word-break: break-word;
	}

	/* Slightly more compact spacing on small screens */
	#projects {
		padding-top: 1.5rem;
		padding-bottom: 2rem;
	}

	.work {
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
}

/* ───────────────── LANDSCAPE ───────────────── */

@media (orientation: landscape) and (max-width: 900px) {
	.intro {
		padding-top: 90px;
	}

	/* Keep spacing comfortable in landscape */
	#projects {
		padding-top: 1.5rem;
		padding-bottom: 2rem;
	}
}

/* Center the single "Home" button card inside #projects without affecting other pages */
#projects {
	width: 100%;
	text-align: center;
}

#projects>.card {
	margin: 2rem auto;
	/* centers it as a block + adds vertical space */
	display: block;
}

/* ---------- FULL-BLEED FOOTER FIX ---------- */

footer {
	width: 100vw;
	/* span full viewport width */
	margin-left: calc(50% - 50vw);
	/* escape container padding */
	margin-right: calc(50% - 50vw);
	background-color: var(--main-header-background);
}

.copyright {
	padding: 1rem;
	/* keep text padded */
}