:root {
	--font-default: Roboto, sans-serif;
	--font-heading: Roboto Mono, monospace;

	--bg-default: #fff;
	--default-font-color: #555;

	--accent: #7b67c7;
	--secondary-color: #6d56c1;
}

html {
	scroll-behavior: smooth;
}

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

body {
	font-family: var(--font-default);
	font-size: 18px;
	font-weight: 400;
	line-height: 30px;
	color: var(--default-font-color);
}

/* utils */

a:visited {
	color: var(--bg-default);
}

.container {
	/* width: 60% !important; */
	margin: auto;
	padding: 0 0.5rem;
}

.btn-main {
	padding: 1rem 2rem;
	background: var(--secondary-color);
	border: none;
	outline: none;
	cursor: pointer;
}

.btn-main:hover {
	background: var(--accent);
}

a .btn-main {
	color: var(--bg-default);
	text-transform: uppercase;
	font-weight: 700;
	line-height: 20px;
	font-size: 1rem;
}

section .section-title {
	margin-bottom: 40px;
	font-size: 36px;
	line-height: 42px;
	font-family: var(--font-heading);
	font-weight: 100;
}

section .section-sub_title {
	font-size: 1.2rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgb(114 110 110);
}

/* Utils Ends Here */

header .row {
	margin: 0;
}

.navbar-container {
	position: relative;
	z-index: 10;
}

.navbar {
	font-size: 12px;
	line-height: 18px;
	font-family: var(--font-heading);
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 30px;
	height: 70px;
	width: 100%;
	padding-top: 50px;
	transition: all 0.3s ease;
}

.navbar .container {
	justify-content: space-between;
}

.toggle-button {
	margin-left: 10px;
}

.menu-toggler {
	display: none;
}

.toggle-button {
	height: 14px;
	width: 22px;
	position: relative;
	z-index: 10;
}

.menu-toggler,
.menu-toggler::before,
.menu-toggler::after,
.menu-open .menu-toggler,
.menu-open .menu-toggler::before,
.menu-open .menu-toggler::after {
	height: 2px;
	width: 22px;
	background-color: var(--bg-default);
	position: absolute;
	transition: all ease-in 0.4s;
}

.menu-toggler {
	top: 7px;
}

.menu-toggler::before {
	content: " ";
	top: -7px;
}

.menu-toggler::after {
	content: " ";
	top: 7px;
}
/* Change hamburger to Close button */

.menu-open .menu-toggler {
	top: 0;
	width: 0;
}
.menu-open .menu-toggler::before,
.menu-open .menu-toggler::after {
	content: " ";
	top: 0;
}

.menu-open .menu-toggler::before {
	rotate: 45deg;
}

.menu-open .menu-toggler::after {
	rotate: -45deg;
}

.fixed-header {
	position: fixed;
	background: var(--bg-default);
	padding-top: 25px;
	box-shadow: 0 5px 8px 0 rgb(0 0 0 / 14%);
}

.fixed-header .menu-toggler,
.fixed-header .menu-toggler::before,
.fixed-header .menu-toggler::after,
.fixed-header .menu-open .menu-toggler,
.fixed-header .menu-open .menu-toggler::before,
.fixed-header .menu-open .menu-toggler::after {
	background-color: var(--accent);
}

@media screen and (max-width: 767px) {
	.menu-toggler {
		display: block;
	}
	.nav-menu:not(.open) {
		display: none;
	}

	.nav-menu {
		display: block;
	}
}

.menu-item {
	display: inline-block;
	position: relative;
}

.fixed-header .menu-item {
	margin-top: -25px;
	padding-block: 25px;
}

.fixed-header .menu-item::after,
.fixed-header .menu-item:has(> .active)::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: -27px;
	height: 2px;
	width: 95%;
	background: var(--secondary-color);
	transform: scaleX(0);
	transform-origin: bottom right;
	transition: transform 0.3s ease-out;
}

.fixed-header .menu-item:hover::after,
.fixed-header .menu-item:has(> .active)::after {
	transform: scaleX(1);
	transform-origin: bottom left;
}

.nav-link {
	font-size: 0.9rem;
	padding-right: 50px;
	color: var(--bg-default);
	position: relative;
}

.nav-link:after {
	content: "";
	position: absolute;
	width: 7px;
	height: 2px;
	bottom: 0;
	right: 42px;
	opacity: 0;
	transition: background 0.3s;
	background: var(--bg-default);
}
.nav-link:hover {
	text-decoration: none;
	transition: all 0.15s;
	color: var(--bg-default);
	opacity: 0.8;
}
.nav-link:hover:after {
	opacity: 0.8;
}

.personal-profile {
	color: var(--bg-default);
	font-family: var(--font-heading);
	z-index: 2;
}

.personal-profile .personal-profile__avatar img {
	border-radius: 5px;
	box-shadow: 0 0 27px rgba(96, 96, 96, 0.34);
	max-width: 90%;

	height: 380px;
	-o-object-fit: cover;
	object-fit: cover;
	margin-top: 10px;
	position: relative;
	top: 40px;
}

@media screen and (max-width: 990px) {
	.personal-profile .personal-profile__avatar {
		display: none;
	}
}

.personal-profile .col-md-8 {
	padding: 0 0.5rem;
}

.personal-profile {
	position: relative;
}

.personal-profile .personal-profile__name {
	font-size: 44px;
	line-height: 50px;
	font-weight: 700;
	margin-top: 40px;
	margin-bottom: 10px;
}

.personal-profile .personal-profile__work {
	font-size: 16px;
	line-height: 24px;
	margin-bottom: 40px;
}

.personal-profile .personal-profile__contacts {
	margin-bottom: 20px;
}

.personal-profile .personal-profile__social {
	margin-bottom: 35px;
}

.personal-profile .personal-profile__social a {
	font-size: 24px;
	margin-right: 15px;
	opacity: 0.4;
	color: var(--bg-default) !important;
}

.personal-profile .personal-profile__social a:hover {
	opacity: 1;
}

.hero {
	background-color: var(--accent);
	background-image: url(../img/header-bg.webp);
	height: 100%;
	background-repeat: no-repeat;
	background-position: 50%;
	background-size: cover;
	position: relative;
	margin-bottom: 40px;
}

.hero:before {
	background: linear-gradient(
		54deg,
		rgba(74, 76, 179, 0.95) 34%,
		hsla(0, 34%, 71%, 0.95)
	);
	height: 100%;
	left: 0;
	right: 0;
	position: absolute;
	content: "";
	z-index: 0;
}

@media screen and (max-width: 990px) {
	.hero {
		margin-bottom: 0;
	}
}

.contact-list {
	font-size: 16px;
	line-height: 24px;
	font-family: var(--font-heading);
}

.contact-list dt {
	float: left;
	font-weight: 700;
	text-transform: uppercase;
}

.contact-list dd {
	padding-left: 100px;
	margin-bottom: 15px;
	overflow-wrap: break-word;
}

.contact-list dd a {
	color: var(--bg-default);
}

.contact-list.contact-list__opacity-titles dt {
	opacity: 0.4;
}

@media screen and (max-width: 760px) {
	section {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

.education-list {
	border-left: 2px solid var(--secondary-color);
	padding: 0 1rem 3rem 1rem;
	position: relative;
}

.education-list:last-of-type {
	padding-bottom: 0;
}

.education-list::before {
	content: "";
	height: 10px;
	width: 10px;
	background: var(--bg-default);
	border: 2px solid var(--accent);
	border-radius: 50%;
	position: absolute;
	left: -8px;
	top: -1px;
}

.education-list_title {
	line-height: 0.98;
	margin-bottom: 0.5rem;
	color: var(--accent);
	font-size: 0.9rem;
	font-family: var(--font-heading);
	font-weight: 600;
	text-transform: uppercase;
}

.education-list_date {
	font-size: 12px;
	color: rgb(114 110 110);
}

.education-list_info {
	font-size: 1.2rem;
}

.filter-nav {
	padding: 0;
	margin-bottom: 1.5rem;
	overflow-x: scroll;
}

.filter-nav::-webkit-scrollbar {
	display: none;
}

.filter-selector {
	cursor: pointer;
	font-family: var(--font-heading);
	font-size: 1rem;
	color: rgb(114 110 110);
	margin-right: 5%;
	white-space: nowrap;
}

/* @media screen and (max-width: 470px) {
	.filter-selector {
		margin-right: 2rem;
	}
} */

.filter-selector:last-of-type {
	margin-right: 0;
}

.filter-selector:hover {
	color: var(--accent);
}

.projects_item {
	margin-left: 0;
	margin-bottom: 40px;
	transition: box-shadow 0.3s;
	margin-right: 0;

	display: none;
	grid-template-columns: repeat(auto-fit, minmax(434px, 1fr));
}

@media screen and (max-width: 450px) {
	.projects_item {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}
}

.projects_item:hover {
	box-shadow: 0 1px 31px rgba(0, 0, 0, 0.09);
	cursor: pointer;
}

.projects_item__img {
	padding-right: 0;
	padding-left: 0;
	background: linear-gradient(
		54deg,
		rgba(74, 76, 179, 0.95) 34%,
		hsla(0, 34%, 71%, 0.95)
	);
	justify-content: center;
}

.projects_item__img img {
	width: 100%;
	max-width: 450px;
	height: auto;
	object-fit: contain;
	padding: 1rem;
	opacity: 0.8;
}

.projects_item__desc2 {
	padding: 2rem;
}

.projects_item {
	border-radius: 25px;
}

.projects_item__desc {
	padding: 0 2.5rem 2.5rem 2.5rem;
	border: 1px solid #f1f1f1;
}

.projects_item__title {
	font-family: var(--font-heading) !important;
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 0.5;
	font-weight: 600;
}

.projects_item__info {
	font-size: 1rem;
	line-height: 24px;
}

.stack {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
}

.stack-list_item {
	margin-right: 1rem;
	font-size: 0.8rem;
	padding: 7px 0.8rem;
	border: 1px solid rgba(74, 76, 179, 0.95);
	line-height: 1;
}

.filter-selector.active {
	color: var(--accent);
}

.show {
	display: grid;
}

.text-accent {
	color: var(--accent) !important;
}

.icon {
	width: 18px;
	margin-right: 8px;
}

.projects_item__desc a {
	color: var(--default-font-color) !important;
}

/* Skills */
.auto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 2rem;
	row-gap: 4rem;
}

.auto-grid img {
	max-width: 120px;
	max-height: 120px;
}

.grid-item {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 150px;
	aspect-ratio: 1/1;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
	margin-bottom: 20px;
}

.services .icon {
	float: left;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	background: var(--accent);
	border-radius: 50%;
	transition: 0.5s;
	border: 1px solid var(--accent);
}

.services .icon i {
	color: var(--bg-default);
	font-size: 24px;
	line-height: 0;
}

.services .icon-box:hover .icon {
	background: var(--bg-default);
}

.services .icon-box:hover .icon i {
	color: var(--accent);
}

.services .title {
	margin-left: 80px;
	font-weight: 700;
	margin-bottom: 15px;
	font-size: 18px;
	font-family: var(--font-title);
}

.services .title a {
	color: #343a40;
}

.services .title a:hover {
	color: #149ddd;
}

.services .description {
	margin-left: 80px;
	line-height: 24px;
	font-size: 14px;
}

.error-message {
	color: red;
}

/* Footer */
footer {
	background-color: var(--accent);
	background-image: url(../img/img_bg_main.jpg);
	height: 100%;
	background-repeat: no-repeat;
	background-position: 50%;
	background-size: cover;
	position: relative;
	color: var(--bg-default);
}

footer:before {
	background: linear-gradient(
		54deg,
		rgba(74, 76, 179, 0.95) 34%,
		hsla(0, 34%, 71%, 0.95)
	);
	height: 100%;
	left: 0;
	right: 0;
	position: absolute;
	content: "";
	z-index: 0;
}

footer .section-wrapper {
	align-items: flex-start;
}

@media (max-width: 976px) {
	footer .section-wrapper {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	.col-sm-12 {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
}

footer .section-title {
	position: relative;
	color: var(--bg-default);
	font-weight: 400;
}

textarea {
	resize: vertical;
}

h5 {
	font-size: 16px;
	line-height: 24px;
	font-family: Roboto Mono, monospace;
	font-weight: 100;
}

footer input,
footer textarea {
	background-color: transparent;
	border-radius: 3px;
	border: 1px solid #fff;
	padding: 10px;
	color: #fff;
	font-size: 16px;
	line-height: 24px;
	font-family: Roboto Mono, monospace;
	outline: none;
}

footer .submit {
	border-radius: 26px;
	background: var(--secondary-color);
	border: none;
}

.copy-right p {
	color: var(--bg-default);
	opacity: 0.4;
	position: relative;
	z-index: 0;
}
