@import url("https://fonts.googleapis.com/css2?family=Playwrite+GB+J:ital,wght@0,100..400;1,100..400&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

a {
	list-style: none;
	text-decoration: none;
	color: black;
}

#parent {
	position: relative;
	width: 100dvw;
	height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-style: normal;
	background-color: beige;
}

#container {
	position: relative;
	width: 50%;
	height: 52%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 2em;
	background-color: white;
	border: 0.5px solid whitesmoke;
	border-radius: 2em;
	animation: load 1s ease-in;
	overflow-y: auto;
	scrollbar-width: none;
}

#container::-webkit-scrollbar {
	display: none;
}

#about-container {
	width: 100%;
	display: flex;
	flex-direction: row;
	margin-bottom: 1.5em;
}

#about-content {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#about-content .profile-container {
	display: flex;
	flex-direction: row;
	gap: 2rem;
}

#photo-container {
	width: 85px;
	height: 85px;
	aspect-ratio: 16/9;
	position: relative;
}

#photo-container img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: none;
	object-position: 44% 55%;
	zoom: 30%;
}

.profile-container .profile-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.profile-content .icons {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: row;
	gap: 1rem;
	font-size: large;
	align-items: center;
}

.profile-content #title {
	cursor: pointer;
}

.icon-wrapper {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.icon-wrapper::before {
	content: "";
	position: absolute;
	bottom: 80%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid;
	border-color: beige transparent transparent transparent;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.icon-wrapper:hover::before {
	opacity: 1;
}

.icon-wrapper::after {
	content: attr(data-tooltip);

	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%) scale(0.8);
	background-color: beige;
	color: black;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 14px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.icon-wrapper:hover::after {
	opacity: 1;
	transform: translateX(-50%) scale(1);
}

.description {
	display: flex;
	flex-direction: column;
}

#projects {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2em;
}

.wrapper .project-profile {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.3rem;
}

.project-profile .photo-container img {
	width: 40px;
	height: 40px;
	margin-top: 2px;
}

.grid-layout {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 2em;
}

.wrapper {
	border: 1px solid rgba(0, 0, 0, 0.058);
	padding: 1em;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.3s ease;
	background-color: rgba(245, 245, 220, 0.16);
}

.wrapper:hover {
	scale: 1.05;
	border: 1px solid rgba(0, 0, 0, 0.203);
}

.wrapper p {
	font-size: small;
}
.wrapper .stacks ul {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	padding-left: 1.3rem;
	margin-top: 5px;
}

.experience {
	display: flex;
	flex-direction: column;
}

#contact {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	font-size: x-large;
}

#contact span {
	color: rgb(160, 160, 160);
	cursor: pointer;
	transition: 0.4s ease-in-out;
}

#contact span:hover {
	color: gray;
}

#contact .icons {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.6em;
}

.handwrite {
	font-family: "Playwrite GB J", cursive;
	font-weight: 300;
	font-style: normal;
}

.modern {
	font-family: "Rubik", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.large {
	font-size: large;
}

.small {
	font-size: small;
}

.x-small {
	font-size: x-small;
}

@media (max-width: 767px) {

	#container {
		width: 75%;
		height: 75%;
	}

	#about-container, .profile-container, .description {
		display: flex;
		flex-direction: column !important;
		align-items: center;
		text-align: center;
		width: 100%;
	}
	.profile-container .profile-content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.grid-layout, #projects {
		grid-template-columns: 1fr !important;
		width: 100%;
	}

	#contact {
		flex-direction: column;
		gap: 1rem;
		margin-top: 1.5rem;
	}
} 