body {
	margin: 1em 1.5em;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-me {
	background-image: url('https://www.nicepng.com/png/full/155-1554165_its-all-about-me-all-about-me-graphics.png');
	background-repeat: no-repeat;
	background-position: center;
	background-attachment: fixed;
}

img {
	max-width: 10em;
}

p {
	font-size: 0.95em;
}

a {
	text-decoration: none;
}

.home-page {
	background: #2a2a2a;
	min-height: 100vh;
	position: relative;
	overflow: hidden;
}

.terminal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	color: #00ff00;
	font-family: 'Fira Code', monospace;
	font-size: 1.2em;
	padding: 2em;
	white-space: pre;
	opacity: 0.5;
	pointer-events: none;
	z-index: 2;
}

.terminal-link {
	color: #00ff00;
	cursor: pointer;
	text-decoration: underline;
	pointer-events: auto;
	opacity: 1;
}

.terminal-link:hover {
	color: #4ecca3;
}

.terminal .cursor {
	animation: blink 1s infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.home-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background-color: transparent;
}

.profile-img {
	border-radius: 50%;
	object-fit: cover;
	object-position: center top;
	width: 10em;
	height: 10em;
}

.home-page p {
	color: #fff;
}

.home-page .nav-list a {
	color: #4ecca3;
	font-size: 2.5rem;
}

.home-page .nav-list a.active {
	color: #00ff00;
	border-bottom: 2px solid #00ff00;
	padding-bottom: 0.2em;
}

.home-page .nav-list a:hover {
	color: #00ff00;
}

.nav-list {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 1.5em;
}

.contact-page > a {
	color: #fff;
	display: inline-block;
	transition: transform 0.3s ease;
}

.contact-page > a span {
	font-size: 3em;
}

.contact-page > a:hover {
	transform: scale(1.4);
}

.contact-page h1 {
	margin-top: 2rem;
	text-align: center;
	color: #fff;
}

.contact-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
	margin-bottom: 2em;
}

.contact-card {
	display: flex;
	align-items: center;
	gap: 1em;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5em;
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.contact-card h3 {
	margin: 0 0 0.3em 0;
	color: #fff;
	font-size: 1.1em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-card p {
	margin: 0;
	color: #ddd;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.contact-card p a {
	color: #fff;
	margin-right: 0.5em;
	font-size: 1.2em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.contact-card p a:hover {
	color: #4ecca3;
}

.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
	color: #4ecca3;
	font-size: 1.4em;
	flex-shrink: 0;
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5), -2px -2px 8px rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-container {
	width: 100%;
	display: flex;
	justify-content: center;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

form {
	margin-top: 2rem;
	width: 100%;
	padding: 0.5rem 2rem;
}

.form-row {
	display: flex;
	gap: 0.5em;
	margin-bottom: 0.5em;
	justify-content: center;
}

.form-row input,
.form-row textarea {
	flex: 1;
	padding: 0.8em 1em;
	background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-family: inherit;
	font-size: 1em;
	border-radius: 16px;
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5), -2px -2px 8px rgba(255, 255, 255, 0.05);
}

.form-row textarea {
	resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
	color: #888;
}

.form-row:last-child {
	justify-content: flex-end;
}

.form-row button {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
	color: #4ecca3;
	border: 1px solid rgba(255, 255, 255, 0.08);
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.5rem;
	font-size: 1.4em;
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5), -2px -2px 8px rgba(255, 255, 255, 0.05);
}

.form-row button:hover {
	background-color: #3dbb91;
}

.banner-success,
.banner-error {
	display: none;
	align-items: center;
	gap: 0.5em;
	padding: 1em 1.5em;
	border-radius: 12px;
	margin-bottom: 1em;
	font-weight: bold;
	color: #fff;
}

.banner-success {
	animation: bannerFade 3s ease forwards;
	background-color: rgba(78, 204, 163, 0.2);
	border: 1px solid #4ecca3;
}

.banner-success .material-icons {
	color: #4ecca3;
}

.banner-error {
	background-color: rgba(255, 82, 82, 0.2);
	border: 1px solid #ff5252;
}

.banner-error .material-icons {
	color: #ff5252;
}

.banner-close {
	margin-left: auto;
	cursor: pointer;
}

.banner-close:hover {
	color: #fff !important;
}

@keyframes bannerFade {
	0%,
	80% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.loader {
	display: none;
	position: relative;
	height: 12px;
	width: 100%;
	border: 1px solid #fff;
	border-radius: 10px;
	overflow: hidden;
}
.loader::after {
	content: '';
	width: 40%;
	height: 100%;
	background: #4ecca3;
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	animation: animloader 2s linear infinite;
}

@keyframes animloader {
	0% {
		left: 0;
		transform: translateX(-100%);
	}
	100% {
		left: 100%;
		transform: translateX(0%);
	}
}

/* Tablet */
@media (max-width: 768px) {
	body {
		margin: 1em;
	}

	.terminal {
		font-size: 0.8em;
		padding: 1em;
	}

	.home-page .nav-list a {
		font-size: 1.5rem;
	}

	.nav-list {
		gap: 1em;
	}

	.profile-img {
		width: 8em;
		height: 8em;
	}

	.contact-cards {
		grid-template-columns: 1fr;
	}

	.contact-page > a span {
		font-size: 2em;
	}

	.form-row input,
	.form-row textarea {
		font-size: 0.9em;
	}

	form {
		padding: 0.5rem 1rem;
	}

	/* Resume page */
	h1 {
		font-size: 1.6em;
	}

	h2 {
		font-size: 1.3em;
	}

	h3 {
		font-size: 1em;
	}

	ul, ol, dl {
		padding-left: 1.2em;
	}

	img {
		max-width: 8em;
	}
}

/* Mobile */
@media (max-width: 480px) {
	body {
		margin: 0.5em;
	}

	.terminal {
		font-size: 0.6em;
		padding: 0.5em;
	}

	.home-page .nav-list a {
		font-size: 1.1rem;
	}

	.nav-list {
		flex-direction: column;
		align-items: center;
		gap: 0.5em;
	}

	.profile-img {
		width: 6em;
		height: 6em;
	}

	.contact-cards {
		grid-template-columns: 1fr;
	}

	.contact-card {
		padding: 1em;
	}

	.card-icon {
		width: 40px;
		height: 40px;
		font-size: 1.2em;
	}

	.contact-page > a span {
		font-size: 1.5em;
	}

	.contact-page h1 {
		font-size: 1.5em;
	}

	.form-row {
		flex-direction: column;
	}

	.form-row:last-child {
		flex-direction: row;
	}

	form {
		padding: 0.5rem;
	}

	.banner-success,
	.banner-error {
		font-size: 0.85em;
		padding: 0.8em 1em;
	}

	/* Resume page */
	h1 {
		font-size: 1.3em;
	}

	h2 {
		font-size: 1.1em;
	}

	h3 {
		font-size: 0.95em;
		word-wrap: break-word;
	}

	ul, ol, dl {
		padding-left: 1em;
	}

	li {
		font-size: 0.9em;
	}

	img {
		max-width: 100%;
	}
}
