:root {
	--primary-color: #4A00E0;
	--text-color: #12042D;
	--lighter-text: #B4AEBB;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/Poppins-Regular.woff2') format('woff2'), 
		url('../fonts/Poppins-Regular.woff') format('woff'),
		url('../fonts/Poppins-Regular.ttf')  format('truetype');
	font-weight: normal;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'), 
		 url('../fonts/Poppins-SemiBold.woff') format('woff'), 
		 url('../fonts/Poppins-SemiBold.ttf')  format('truetype');
	font-weight: 600;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/Poppins-Bold.woff2') format('woff2'), 
		 url('../fonts/Poppins-Bold.woff') format('woff'), 
		 url('../fonts/Poppins-Bold.ttf')  format('truetype');
	font-weight: bold;
}
* {
  box-sizing: border-box;
}
body {
	font-family: 'Poppins', sans-serif;
	font-weight: normal;
	font-size: 16px;
	color: var(--text-color);
	margin: 0;
	padding: 0;
}

img { max-width: 100%; }

h1 {
	font-size: 3.25rem;
	font-weight: bold;
	line-height: 1.3;
	letter-spacing: 2.6;
	margin: 1rem 0;
}
h1 span, h2 span { color: var(--lighter-text); }
h2 {
	font-size: 2.25rem;
	line-height: 1.4;
	letter-spacing: 1.8;
}
h3 { 
	font-size: 1.125rem;
	font-weight: 600;
}
a:hover { color: var(--text-color); text-decoration: none; }

header, .container {
	width: 1280px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
}
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 2.5rem auto;
}
.mainnav_options {
	--bold: 600;
	display: flex;
	flex-wrap: wrap;
	font-size: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
}
.menu-link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	color: var(--text-color);
	text-decoration: none;
}
.menu-link:hover { font-weight: var(--bold); }
.mainnav_options .menu-link::after {
	content: attr(data-text);
	content: attr(data-text)/"";
	height: 0;
	visibility: hidden;
	overflow: hidden;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
		    user-select: none;
	pointer-events: none;
	font-weight: var(--bold);
}
@media speech {
	.mainnav_options .menu-link::after { display: none; }
}
#main-nav-caller {
	display: none;
	align-content: center;
	justify-items: center;
	width: 46px;
	height: 46px;
	border-radius: 23px;
	font-size: 0;
	transition: all 0.3s ease-in-out;
}
#main-nav-caller.show { display: grid; }
#main-nav-caller svg {
	display: block;
	align-items: center;
	width: 22px;
	height: 15px;
}
#main-nav-caller.clicked { background: var(--primary-color); }
#main-nav-caller.clicked svg { color: #ffffff; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem; /* Space between icon and text */
	padding: 1rem 1.5rem;
	border-radius: 2.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease-in-out;
}
.btn img {
	width: 1.5rem;
	height: auto;
}
.btn-primary {
	background-color: var(--primary-color);
	color: #ffffff;
}
.btn-white {
	color: var(--primary-color);
	box-shadow: inset 0 0 0 2px var(--primary-color);
	border: 4px solid rgba(74, 0, 224, 0.15);
	padding: 1rem 1.5rem;
}
.btn:hover {
	color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 2px 6px 0 rgba(74, 0, 224, 0.15);
}
.btn-primary:hover { color: #ffffff; }
.btn-white:hover {
	box-shadow: inset 0 0 0 2px var(--primary-color), 0 2px 6px 0 rgba(74, 0, 224, 0.15);
}

.two-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.6rem;
	margin: 0 auto;
	max-width: 100%;
}


#hero {
	text-align: center;
	width: 1110px;
	margin: 8rem auto 0 auto;
}
#hero .hello {
	display: flex;
	font-size: 1.25rem;
	color: var(--primary-color);
	column-gap: 0.75rem;
	justify-content: center;
	align-items: center;
}
#hero h1 { margin: 2rem auto; }
#hero p, #skills p {
	width: 700px;
	margin: 0 auto 1.5rem auto;
	font-size: 1.375rem;
	letter-spacing: 1.1;
	line-height: 1.45;
}
#hero p.worked-with {
	font-style: italic;
	padding-top: 1.5rem;
	font-size: 1rem;
	opacity: 0.5;
	margin-bottom: 0;
}
.buttons .btn { margin: 0.5rem; }

section.container:not(#hero) {
	margin-top: 3.75rem;
	text-align: center;
}
section h2:first-child {
	width: 680px;
	max-width: 100%;
	margin: 0 auto 2.5rem auto;
	text-align: center;
}
#skills h2 { margin-bottom: 0.75rem; }
#skills p { 
	width: 600px;
	margin-bottom: 2.5rem; 
}
#useful-with h3 { margin-bottom: 1.875rem; }
#useful-with .box {
	background: #F5F2F0;
	border-radius: 2rem;
	padding: 1.875rem;
	text-align: left;
	display: grid;
}
#useful-with .box p { margin: 0; }
#useful-with .box:first-child h2 { width: 270px; }
#useful-with .box h2 {
	font-size: 1.375rem;
	font-weight: normal;
	letter-spacing: 1.1;
	width: 400px;
	max-width: 90%;
	margin: 0.5rem 0 2rem 0;
}
#useful-with .box .details { 
	display: grid; 
	justify-items: baseline;
	align-self: end;
}
#useful-with .box a {
	display: inline-block;
	margin-top: 0.5rem;
	color: var(--text-color);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	padding-bottom: 0.25rem;
	transition: all 0.3s ease-in-out;
}
#useful-with .box a:hover { border-bottom-color: var(--text-color); }
#useful-with .box a img { padding-left: 0.35rem; }

.project { margin: 2.5rem 0; }
.project .box {
	padding: 1.875rem;
	border-radius: 2rem;
	text-align: left;
	background: #F5F2F0;
}
.project .box .top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.project .box p {
	margin: 2.5rem 0 1.875rem 0;
	font-size: 1.375rem;
	letter-spacing: 1.1;
}
.project .box a.btn { margin-bottom: 1.875rem; }
.project .previews {
	padding: 0;
	margin: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}
.project .previews li {
	overflow: hidden;
	border-radius: 1rem;
}
.project .previews li img {
	height: auto;
	width: 100%;
	object-fit: cover;
	border-radius: 1rem;
	border: 4px solid rgba(21,27,43,0.2);
	box-sizing: border-box;
}
.project .details {
	list-style: none;
	padding: 0;
	margin-top: 1.875rem;
	text-align: left;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.project.siteonduty .box { background: rgba(80,18,192,0.08); }
.project.corbado .box { background: rgba(24,83,255,0.1); }
.project.corbado .box p { width: 70%; }

.project.smile .box { background: rgba(130,59,123,0.12); }
.project.smile .box p { width: 80%; }

.project.bps .box { background: rgba(35,55,108,0.12); }
.project.bps .box p { width: 70%; }

#worked-with .boxes {
	list-style: none;
	padding: 0;
	text-align: left;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-content: center;
	gap: 1.875rem;
}
#worked-with .boxes li {
	background: #F5F2F0;
	border-radius: 1.5rem;
	padding: 1.25rem 1.875rem;
}
#worked-with .boxes .logo {
	height: 72px;
	display: grid;
	align-items: center;
	margin: 0 0 1rem 0;
}
#worked-with .boxes li p { margin: 0; }
#worked-with .boxes li p strong { display: block; }

#history .box {
	background: #F5F2F0;
	border-radius: 1.5rem;
	padding: 1.875rem;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	text-align: left;
	width: 680px;
	max-width: 100%;
	margin: 0 auto;
	gap: 2rem;
	justify-items: stretch;
	letter-spacing: 0.8;
	justify-content: space-between;
}
#history .box li { width: 262px; }

footer {
	background: rgba(247,246,247,0.8);
	border-top-left-radius: 2rem;
	border-top-right-radius: 2rem;
	margin-top: 4.5rem;
}
footer .container { 
	padding: 2.25rem 1rem 1.5rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}
footer .details { display: grid; }
footer .details p { 
	font-size: 0.75rem;
	opacity: 0.5;
	padding-top: 0.5rem;
	margin: 0;
}
footer .sm-links {
	display: flex;
	gap: 0.625rem;
	font-size: 0;
	background-size: 100%;
}
.sm-links a {
	display: inline-flex;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.625rem;
	justify-content: center;
	align-items: center;
}
.sm-links #linkedin { background: url("../images/icon-sm-linkedin.svg") no-repeat center center; }
.sm-links #dribbble { background: url("../images/icon-sm-dribbble.svg") no-repeat center center; }
.sm-links #x { background: url("../images/icon-sm-x.svg") no-repeat center center; }


@media screen and (max-width: 720px) {
	.container, header, #hero {
		width: 100%;
		padding: 0 1rem;
	}
	#hero {
		max-width: 100%;
		margin: 4rem auto;
	}
	#hero p { width: 100%; }
	.two-cols { grid-template-columns: 1fr; }
	.project .previews { grid-template-columns: 1fr; }
	.project .details { grid-template-columns: repeat(2, 1fr); }
	#main-nav { position: relative; }
	#main-nav-caller { display: inline-grid; }
	.mainnav_options { display: none; }
	.mainnav_options.show { 
		position: absolute;
		top: calc(46px + 1.25rem);
		right: 0;
		background: rgba(74,0,224,0.85);
		padding: 1.5rem;
		border-radius: 1.5rem;
		width: 343px;
		display: grid;
		gap: 1.25rem;
		text-align: right;
		font-size: 1.25rem;
		backdrop-filter: blur(3px);
	}
	.mainnav_options a { color: #ffffff; }
	#worked-with .boxes { grid-template-columns: repeat(2, 1fr); }
	.project.corbado .box p, .project.smile .box p, .project.bps .box p { width: 100%; }
	#history .box { width: 80%; }
	#history .box li { 
		width: 100%; 
		text-align: center; 
	}
}

@media screen and (max-width: 576px) {
	h1 {
		font-size: 2.25rem;
		letter-spacing: 1;
		line-height: 1.25;
	}
	#hero { margin-bottom: 0; }
	#hero h1 { margin: 1.5rem auto; }
	#hero p { font-size: 1.25rem; }
	#worked-with .boxes { grid-template-columns: 1fr; }
	#history .box { width: 100%; }
	.two-cols {
		display: flex;
		flex-flow: column;
		gap: 1.5rem;
	}
	section.container#selected-work { margin-top: 4.5rem; }
}


@media screen and (max-width: 440px) {
	.buttons {
		display: grid;
		gap: 0.5rem;
	}
	.buttons .btn {
		display: flex;
		justify-content: center;
	}
	#hero .hello { 
		display: grid;
		justify-items: center;
		width: 80%;
		margin: 0 auto;
	}
	#hero .buttons { margin-top: 2rem; }
	.project .details { 
		grid-template-columns: 1fr; 
		gap: 1.2rem;
	}
	footer .container {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1.75rem; 
		justify-items: center;
	}
	footer .details { text-align: center; }
}