@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

:root {
	--header-height: 3rem;
	--font-medium: 500;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Colors */
:root {
	--first-color: #5970ad;
	--white-color: #fafaff;
	--dark-color: #2a3b47;
	--text-color: #697477;
}

/* Fonts */
:root {
	--body-font: 'Inter', sans-serif;
	--big-font-size: 6.25rem;
	--h2-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.9rem;
	--webkit-font-smoothing: antialiased;
	--moz-osx-font-smoothing: grayscale;
}

@media screen and (min-width: 768px) {
	:root {
		--big-font-size: 10.5rem;
		--h2-font-size: 2rem;
		--normal-font-size: 1rem;
		--small-font-size: 0.975rem;
	}
}

/* Margins */
:root {
	--mb-1: 0.5rem;
	--mb-2: 1rem;
	--mb-3: 1.5rem;
	--mb-4: 2rem;
}

:root {
	--z-fixed: 100;
}

/* Base */
*,
::before,
::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: var(--header-height) 0 0 0;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	color: var(--text-color);
	line-height: 1.6;
}
h1,
h2,
p {
	margin: 0;
}
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
a {
	text-decoration: none;
	color: var(--text-color);
}
img {
	max-width: 100%;
	max-height: 100%;
	display: block;
}

/* Classes */
.section {
	padding: 3rem 0;
}
.section-title {
	position: relative;
	font-size: var(--h2-font-size);
	color: var(--dark-color);
	margin: var(--mb-4) 0;
	text-align: center;
}
.section-title::after {
	position: absolute;
	content: '';
	width: 32px;
	height: 0.18rem;
	left: 0;
	right: 0;
	margin: auto;
	top: 2rem;
	background-color: var(--first-color);
}

/* Layout */
.bd-grid {
	max-width: 1024px;
	display: grid;
	grid-template-columns: 100%;
	grid-column-gap: 2rem;
	width: calc(100% - 2rem);
	margin-left: var(--mb-2);
	margin-right: var(--mb-2);
}
.l-header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: var(--first-color);
}

/* Navbar */
.nav {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.nav__item {
	font-weight: bold;
}
@media screen and (max-width: 768px) {
	.nav__menu {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 80%;
		height: 100%;
		padding: 2rem;
		background-color: rgba(255, 255, 255, 0.3);
		transition: 0.5s;
		backdrop-filter: blur(10px);
	}
}
.nav__item {
	margin-bottom: var(--mb-4);
}
.nav__link {
	position: relative;
	color: var(--dark-color);
}
.nav__link:hover {
	color: var(--first-color);
}
.nav__logo {
	max-width: 40px;
}
.nav__toggle {
	color: var(--white-color);
	font-size: 1.5rem;
	cursor: pointer;
}

/* Show menu in destop */
.show {
	right: 0;
}

/* Active Menu */
.active::after {
	position: absolute;
	content: '';
	width: 100%;
	height: 0.18rem;
	left: 0;
	top: 1.5rem;
	background-color: var(--first-color);
}

/* Home */
.home {
	position: relative;
	background-color: var(--first-color);
	overflow: hidden;
}
.home__container {
	height: calc(100vh - var(--header-height));
	row-gap: 5rem;
}
.home__title {
	align-self: flex-end;
	font-size: var(--big-font-size);
	color: var(--white-color);
	line-height: 0.8;
}
.home__scroll {
	align-self: flex-end;
	padding-bottom: var(--mb-4);
}
.home__scroll-link {
	writing-mode: vertical-lr;
	transform: rotate(-180deg);
	color: var(--white-color);
}
.home__img {
	position: absolute;
	right: 2rem;
	bottom: 2rem;
	width: 60vh;
}

/* About */
.about__container {
	justify-items: center;
	row-gap: 2rem;
	text-align: center;
}
.about__img {
	display: flex;
	justify-content: center;
	background-color: var(--first-color);
	border-radius: 100%;
	overflow: hidden;
	max-width: 200px;
	max-height: 200px;
}
.about__img img {
	max-width: 200px;
	max-height: 200px;
}
.about__subtitle {
	font-size: var(--h2-font-size);
	color: var(--first-color);
	margin-bottom: var(--mb-1);
}
.about__text {
	margin-bottom: var(--mb-3);
}
.about__profession {
	display: block;
	margin-bottom: var(--mb-4);
}
.about__interests {
	margin-bottom: var(--mb-4);
}
.interests__data {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.interests__data i {
	color: var(--first-color);
}
.about__education {
	margin-bottom: var(--mb-4);
}
.education__content {
	display: flex;
}
.education__title {
	margin: 10px 0;
}
.education__time {
	padding-right: 1.5rem;
}
.education__rounder {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
	background-color: var(--first-color);
	border-radius: 50%;
	margin-top: 1rem;
}
.education__line {
	display: block;
	width: 2px;
	height: 100%;
	background-color: var(--first-color);
	transform: translate(7px, 0);
}
.education__desc {
	margin-left: 1rem;
}
.about__social-icon {
	font-size: 1.4rem;
	margin: 0 var(--mb-1);
	height: 1000px;
	cursor: pointer;
}
.about__social-icon:hover {
	color: var(--first-color);
}

/* Skills */
.skills__container {
	row-gap: 2rem;
}
.skills__subtitle {
	color: var(--first-color);
	margin-bottom: var(--mb-3);
}
.skills__name {
	display: inline-block;
	font-size: var(--small-font-size);
	margin-right: var(--mb-2);
	margin-bottom: var(--mb-3);
	padding: 0.25rem 0.5rem;
	background-color: var(--white-color);
	border-radius: 0.25rem;
}
.skills__name:hover {
	background-color: var(--first-color);
	color: var(--white-color);
}
.skills__img img {
	border-radius: 0.5rem;
}

/* Portfolio */
.portfolio {
	background-color: var(--white-color);
}
.portfolio__container {
	justify-items: center;
	row-gap: 2rem;
}
.portfolio__img {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	border-radius: 1rem;
	box-shadow: 10px 10px 20px #d9d9d9, -10px -10px 20px #fafaff;
}
.portfolio__link {
	position: absolute;
	bottom: -100%;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 0.5rem;
	cursor: pointer;
	backdrop-filter: blur(10px);
	transition: 0.3s;
}
.portfolio__img:hover .portfolio__link {
	bottom: 0;
}
.portfolio__link-name {
	color: var(--dark-color);
}

/* Contact */
.contact__container {
	row-gap: 2rem;
}
.contact__subtitle {
	font-size: var(--normal-font-size);
	color: var(--first-color);
}
.contact__text {
	display: inline-block;
	margin-bottom: var(--mb-2);
}
.contact__inputs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 1rem;
}
.contact__input {
	width: 100%;
	padding: 0.8rem;
	outline: none;
	border: 1.5px solid var(--dark-color);
	font-size: var(--normal-font-size);
	margin-bottom: var(--mb-2);
	border-radius: 0.5rem;
}
.contact__button {
	display: block;
	background-color: var(--first-color);
	color: var(--white-color);
	padding: 0.75rem 2.5rem;
	margin-left: auto;
	border-radius: 0.5rem;
	border: none;
	outline: none;
	font-size: var(--normal-font-size);
	cursor: pointer;
}

/* Footer */
.footer {
	background-color: var(--dark-color);
}
.footer__container {
	row-gap: 2rem;
}
.footer__title {
	font-size: var(--normal-font-size);
	color: var(--white-color);
	margin-bottom: var(--mb-2);
}
.footer__link {
	padding: 0.25rem 0;
}
.footer__link:hover {
	color: var(--first-color);
}
.footer__social {
	font-size: 1.4rem;
	margin-right: var(--mb-1);
}
.footer__social:hover {
	color: var(--first-color);
}

/* Accessability */
/* For small devices */
@media screen and (max-width: 320px) {
	.home__img {
		width: 35vh;
	}
}

@media screen and (min-width: 321px) {
	.home__img {
		right: 1rem;
		bottom: 5rem;
		width: 45vh;
	}
}

@media screen and (min-width: 768px) {
	body {
		margin: 0;
	}
	.section {
		padding-top: 4rem;
	}
	.section-title {
		margin-bottom: 3rem;
	}
	.section-title::after {
		width: 64px;
		top: 3rem;
	}

	.nav {
		height: calc(var(--header-height) + 1rem);
	}
	.nav__list {
		display: flex;
	}
	.nav__item {
		margin-left: var(--mb-4);
		margin-bottom: 0;
	}
	.nav__toggle {
		display: none;
	}
	.nav__link {
		color: var(--white-color);
	}
	.nav__link:hover {
		color: var(--white-color);
	}
	.active::after {
		background-color: var(--white-color);
	}

	.home__container {
		height: 100vh;
		grid-template-rows: 1.7fr 1fr;
		row-gap: 0;
	}
	.home__img {
		width: 70vh;
		height: auto;
		right: 2rem;
		bottom: 2rem;
	}

	.about__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: flex-start;
		text-align: justify;
		padding: 2rem 0;
	}
	.about__img {
		max-width: 275px;
		max-height: 275px;
	}
	.about__img img {
		max-width: 275px;
		max-height: 275px;
	}

	.skills__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}

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

	.contact__container {
		grid-template-columns: repeat(2, 1fr);
		justify-items: center;
	}
	.contact__form {
		width: 380px;
	}

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

@media screen and (min-width: 1024px) {
	.bd-grid {
		margin-left: auto;
		margin-right: auto;
	}
	.home__img {
		width: 80vh;
		right: 2rem;
		bottom: 2rem;
	}
}

/* For tall screen */
@media screen and (min-height: 721px) {
	.home__img {
		width: 65vh;
		right: 1rem;
		bottom: 3rem;
	}
}
