:root {
	/*=========================================
	* COLORS
	===========================================*/
	--first-color: #000000;
	--first-color-light: #333333;
	--body-color: #ffffff;
	--title-color: #000000;
	--text-color: #222222;
	--text-color-light: #444444;
	--input-color: #f3f3f3;
	--scroll-bar-color: #dddddd;
	--scroll-thumb-color: #222222;

	/*=========================================
	* FONTS AND TYPOGRAPHY
	===========================================*/
	--body-font: 'Poppins', sans-serif;

	--h1-font-size: 1.5rem; 	/* 24 pixels */
	--h2-font-size: 1.25rem; 	/* 20 pixels */
	--h3-font-size: 1.125rem;	/* 18 pixels */

	--big-font-size: 2rem;			/* 32 pixels */
	--normal-font-size: .938rem;	/* 15 pixels */
	--small-font-size: .813rem;		/* 13 pixels */
	--smaller-font-size: .75rem;	/* 12 pixels */

	--font-medium: 500;
	--font-semi-bold: 600;

	/*=========================================
	* Z-INDEX 
	===========================================*/
	--z-tooltip: 10;
	--z-fixed: 100;
	--z-modal: 1000;

	/*=========================================
	* MARGINS BOTTOM
	===========================================*/
	--mb-0-25: .25rem;
	--mb-0-5: .5rem;
	--mb-0-75: .75rem;
	--mb-1: 1rem;
	--mb-1-5: 1.5rem;
	--mb-2: 2rem;
	--mb-2-5: 2.5rem;
	--mb-3: 3rem;
}

@media screen and (min-width: 968px) {
	:root {
		--h1-font-size: 2.25rem;
		--h2-font-size: 1.5rem;
		--h3-font-size: 1.25rem;

		--big-font-size: 3rem;
		--normal-font-size: 1rem;
		--small-font-size: .875rem;
		--smaller-font-size: .813rem;
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0 0 3rem 0;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--text-color);
}

h1,
h2,
h3,
h4 {
	color: var(--title-color);
	font-weight: var(--font-semi-bold);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

/*=========================================
* SCROLL BAR
===========================================*/
::-webkit-scrollbar {
	width: .60rem;
	border-radius: .5rem;
	background-color: var(--scroll-bar-color);
}

::-webkit-scrollbar-thumb {
	background-color: var(--scroll-thumb-color);
	border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
	background-color: var(--text-color-light);
}

/*=========================================
* BUTTONS
===========================================*/
.button {
	display: inline-block;
	background-color: var(--first-color);
	color: #FFF;
	padding: 1rem;
	border-radius: .5rem;
	font-weight: var(--font-medium);
}

.button:hover {
	background-color: var(--first-color-light);
}

.button__icon {
	font-size: 1.25rem;
	margin-left: var(--mb-0-5);
	transition: .3s;
}

.button--white {
	background-color: #FFF;
	color: var(--first-color);
}

.button--white:hover {
	background-color: #FFF;
}

.button--flex {
	display: inline-flex;
	align-items: center;
}

.button--small {
	padding: .75rem 1rem;
}

.button--link {
	padding: 0;
	background-color: transparent;
	color: var(--first-color);
}

.button--link:hover {
	background-color: transparent;
	color: var(--first-color-light);
}

@media screen and (max-width: 767px) {
	.nav__menu {
		position: fixed;
		bottom: -100%;
		left: 0;
		width: 100%;
		background-color: var(--body-color);
		padding: 2rem 1.5rem 4rem;
		box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
		border-radius: 1.5rem 1.5rem 0 0;
		transition: .3s;
	}

	.disclaimer {
		flex-direction: column;
		align-items: flex-start !important;
		bottom: 3rem !important;
	}
}

/*=========================================
* KEYFRAMES
===========================================*/
@keyframes scaleIn {
	0% {
		transform: scale(.2, .2);
	}

	100% {
		transform: scale(1, 1);
	}
}

/*=========================================
* SECTIONS
===========================================*/
.section {
	padding: 2rem 0 4rem;
}

.section__title {
	font-size: var(--h1-font-size);
	color: var(--title-color);
}

.section__subtitle {
	display: block;
	font-size: var(--small-font-size);
	margin-bottom: var(--mb-3);
}

.section__title,
.section__subtitle {
	text-align: center;
}

/*=========================================
* LAYOUT
===========================================*/
.container {
	max-width: 1000px;
	margin-left: var(--mb-1-5);
	margin-right: var(--mb-1-5);
}

.grid {
	display: grid;
	gap: 1.5rem;
}

.header {
	width: 100%;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: var(--body-color);
}

/*=========================================
* NAVIGATION
===========================================*/
.nav {
	max-width: 1200px;
	height: 3rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav__logo,
.nav__toggle {
	color: var(--title-color);
	font-weight: var(--font-semi-bold);
	font-size: var(--h3-font-size);
	height: 30px;
}

.nav__logo:hover {
	color: var(--first-color);
}

.nav__logo img {
	height: 30px;
}

.nav__toggle {
	font-size: 1.1rem;
	cursor: pointer;
}

.nav__toggle:hover {
	color: var(--first-color);
}

.nav__list {
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.nav__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: var(--normal-font-size);
	color: var(--title-color);
	font-weight: var(--font-medium);
}

.nav__link:hover {
	color: var(--first-color);
}

.nav__icon {
	font-size: 1.2rem;
}

.nav__close {
	position: absolute;
	right: 1.3rem;
	bottom: .5rem;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--first-color);
}

.nav__close:hover {
	color: var(--first-color-light);
}

.show-menu {
	bottom: 0;
}

.active-link {
	color: var(--first-color);
}

.scroll-header {
	box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

/*=========================================
* HOME SECTION
===========================================*/
.home__container {
	gap: 1rem;
}

.home__content {
	grid-template-columns: .5fr 3fr;
	padding-top: 3.5rem;
	align-items: center;
}

.home__social {
	display: grid;
	grid-template-columns: max-content;
	row-gap: 1rem;
}

.home__social-icon {
	font-size: 1.25rem;
	color: var(--first-color);
}

.home__social-icon:hover {
	color: var(--first-color);
}

.home__blob {
	width: 200px;
	fill: var(--first-color);
}

.home__blob-img {
	width: 170px;
}

.home__data {
	grid-column: 1/3;
}

.home__title {
	font-size: var(--big-font-size);
}

.home__subtitle {
	font-size: var(--h3-font-size);
	color: var(--text-color);
	font-weight: var(--font-medium);
	margin-bottom: var(--mb-0-75);
}

.home__description {
	margin-bottom: var(--mb-2);
}

.home__scroll {
	display: none;
}

.home__scroll-button {
	color: var(--first-color);
	transition: .3s;
}

.home__scroll-button:hover {
	transform: translateY(0.25rem);
}

.home__scroll-mouse {
	font-size: 2rem;
}

.home__scroll-name {
	font-size: var(--small-font-size);
	color: var(--title-color);
	font-weight: var(--font-medium);
	margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
	font-size: 1.25rem;
}

/*=========================================
* SKILLS SECTION
===========================================*/
.skills__container {
	row-gap: 0;
}

.skills__header {
	display: flex;
	align-items: center;
	margin-bottom: var(--mb-2-5);
	cursor: pointer;
}

.skills__icon,
.skills__arrow {
	font-size: 2rem;
	color: var(--first-color);
}

.skills__icon {
	margin-right: var(--mb-0-75);
}

.skills__title {
	font-size: var(--h3-font-size);
}

.skills__subtitle {
	font-size: var(--smaller-font-size);
	color: var(--text-color-light);
	font-weight: var(--font-medium);
}

.skills__arrow {
	margin-left: auto;
	transition: .4s;
}

.skills__list {
	row-gap: 1.5rem;
	padding-left: 2.7rem;
}

.skills__titles {
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--mb-0-5);
}

.skills__name {
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentage {
	height: 5px;
	border-radius: .25rem;
	transition: width 2s ease-in-out;
}

.skills__bar {
	background-color: #dddddd;
}

.skills__percentage {
	display: block;
	background-color: var(--first-color);
	width: 0;
}

.skills__close .skills__list {
	height: 0px;
	overflow: hidden;
}

.skills__open .skills__list {
	height: max-content;
	margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow {
	transform: rotate(-180deg);
}

/*=========================================
* SERVICES SECTION 
===========================================*/
.services__container {
	gap: 1.5rem;
	grid-template-columns: repeat(2, 1fr);
}

.card {
	position: relative;
	background-color: var(--body-color);
	padding: 3.5rem .5rem 1.25rem 1.5rem;
	border-radius: .25rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	transition: .3s;
	overflow: hidden;
}

.card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.services__icon {
	display: block;
	font-size: 2rem;
	color: var(--first-color);
	margin-bottom: var(--mb-1);
}

.services__title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-1);
	font-weight: var(--font-medium);
}

.services__button {
	cursor: pointer;
	font-size: var(--small-font-size);
}

.services__button:hover .button__icon {
	transform: translateX(0.25rem);
}

/*=========================================
* PORTFOLIO SECTION
===========================================*/
.portfolio__container {
	overflow: initial;
}

.portfolio__filter {
	display: flex;
	flex-wrap: nowrap;
	justify-content: end;
	column-gap: 2rem;
	margin-bottom: var(--mb-1-5);
}

.filter__item {
	font-size: var(--normal-font-size);
	color: var(--title-color);
	font-weight: var(--font-medium);
	cursor: pointer;
}

.filter__item.active {
	border-bottom: 2px solid var(--first-color);
}

.projects {
	gap: 1rem;
	grid-template-columns: repeat(2, 1fr);
}

.project {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.project.show {
	animation: scaleIn .3s ease;
}

.project.hide {
	display: none;
}

.project .more-info {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	color: var(--first-color);
	cursor: pointer;
}

/*=========================================
* CONTACT SECTION
===========================================*/
.contact__container {
	row-gap: 3rem;
}

.contact__information {
	display: flex;
	margin-bottom: var(--mb-2);
}

.contact__icon {
	font-size: 2rem;
	color: var(--first-color);
	margin-right: var(--mb-0-75);
}

.contact__title {
	font-size: var(--h3-font-size);
	font-weight: var(--font-medium);
}

.contact__subtitle {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

.contact__content {
	background-color: var(--input-color);
	border-radius: .5rem;
	padding: .75rem 1rem .25rem;
}

.contact__label {
	font-size: var(--smaller-font-size);
	color: var(--title-color);
}

.contact__input {
	width: 100%;
	background-color: var(--input-color);
	color: var(--text-color);
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	border: none;
	outline: none;
	padding: .25rem .5rem .5rem 0;
}

.contact__input:focus+.contact__content {
	background-color: #dddddd;
}

.contact__submit {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	cursor: pointer;
}

/*=========================================
* FOOTER
===========================================*/
.footer {
	padding-top: 2rem;
}

.footer__container {
	row-gap: 3.5rem;
}

.footer__bg {
	background-color: var(--first-color);
	padding: 2rem 0 3rem;
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-25);
}

.footer__subtitle {
	font-size: var(--small-font-size);
}

.footer__title,
.footer__subtitle {
	color: #FFF;
}

/*=========================================
* COOKIE DISCLAIMER
===========================================*/
.disclaimer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	position: fixed;
	bottom: 0;
	left: 0;
	margin: 1rem;
	padding: 1.5rem;
	background-color: var(--body-color);
	border-radius: 0.5rem;
	box-shadow: 0 2px 4px rgb(0 0 0 / 15%);
	z-index: var(--z-fixed);
	transition: all .5s;
}

.disclaimer p {
	font-size: var(--small-font-size);
}

.disclaimer>.button {
	padding: .65rem 1rem;
	font-size: var(--small-font-size);
}

/*=========================================
* MODALS
===========================================*/
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 1rem;
	z-index: var(--z-modal);
	opacity: 0;
	visibility: hidden;
	transition: .3s;
}

.modal__content {
	position: relative;
	background-color: var(--body-color);
	padding: 1.5rem 3rem 1.5rem 1.5rem;
	border-radius: .5rem;
	display: flex;
	align-items: center;
}

.modal__content .services {
	row-gap: 1rem;
}

.modal__content .service {
	display: flex;
}

.modal__content .list-icon {
	color: var(--first-color);
	margin-right: var(--mb-0-25);
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	color: var(--first-color);
	cursor: pointer;
}

.active-modal {
	opacity: 1;
	visibility: visible;
}

/*=========================================
* SCROLL UP 
===========================================*/
.scrollup {
	position: fixed;
	right: 1rem;
	bottom: -20%;
	background-color: var(--first-color);
	opacity: .8;
	padding: 0 .3rem;
	border-radius: .4rem;
	z-index: var(--z-tooltip);
	transition: .4s;
}

.scrollup:hover {
	background-color: var(--first-color);
}

.scrollup__icon {
	font-size: 1.5rem;
	color: #FFF;
}

.show-scroll {
	bottom: 5rem;
}

.grecaptcha-badge { visibility: hidden; }

/*=========================================
* MEDIA QUERIES
===========================================*/
@media screen and (max-width: 350px) {
	.container {
		margin-left: var(--mb-1);
		margin-right: var(--mb-1);
	}

	.nav__menu {
		padding: 2rem .25rem 4rem;
	}

	.nav__list {
		column-gap: 0;
	}

	.home__content {
		grid-template-columns: .25fr 3fr;
	}

	.home__blob {
		width: 180px;
	}

	.skills__title {
		font-size: var(--normal-font-size);
	}

	.projects {
		grid-template-columns: max-content;
		justify-content: center;
	}

	.card {
		padding-right: 3.5rem;
	}

	.modal {
		padding: 0 .5rem;
	}
}

@media screen and (min-width: 568px) {
	.home__content {
		grid-template-columns: max-content 1fr 1fr;
	}

	.home__data {
		grid-column: initial;
	}

	.home__img {
		order: 1;
		justify-self: center;
	}

	.skills__container,
	.contact__container,
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact__container {
		grid-template-columns: 1fr 2fr;
	}
}

@media screen and (min-width: 768px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}

	body {
		margin: 0;
	}

	.section {
		padding: 6rem 0 2rem;
	}

	.section__subtitle {
		margin-bottom: 4rem;
	}

	.header {
		top: 0;
		bottom: initial;
	}

	.header,
	.main,
	.footer__container {
		padding: 0 1rem;
	}

	.nav {
		height: 5rem;
		column-gap: 2rem;
	}

	.nav__icon,
	.nav__close,
	.nav__toggle {
		display: none;
	}

	.nav__logo {
		height: 50px;
	}

	.nav__logo img {
		height: 50px;
	}

	.nav__list {
		display: flex;
		column-gap: 2rem;
	}

	.nav__menu {
		margin-left: auto;
	}

	.change-theme {
		margin: 0;
	}

	.home__container {
		row-gap: 5rem;
	}

	.home__content {
		padding-top: 5.5rem;
		column-gap: 2rem;
	}

	.home__blob {
		width: 270px;
	}

	.home__scroll {
		display: block;
	}

	.home__scroll-button {
		margin-left: 3rem;
	}

	.projects {
		grid-template-columns: repeat(3, 1fr);
	}

	.card {
		padding: 6rem 2rem 2rem 2rem;
	}

	.modal__content {
		width: 500px;
	}

	.footer__container {
		grid-template-columns: repeat(3, 1fr);
	}

	.footer__bg {
		padding: 3rem 0 3.5rem;
	}

	.disclaimer {
		width: 500px;
	}
}

/* For large devices */
@media screen and (min-width: 1260px) {

	.header,
	.main,
	.footer__container {
		padding: 0;
	}

	.home__blob {
		width: 320px;
	}

	.home__social {
		transform: translateX(-6rem);
	}

	.projects {
		grid-template-columns: repeat(3, 1fr);
		gap: .5rem;
	}

	.contact__inputs {
		grid-template-columns: repeat(2, 1fr);
	}
}