*{
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	text-decoration: none;
	list-style: none;
	scroll-behavior: smooth;
	font-family: 'Poppins' , sans-serif;
}
:root{
	--bg-color: rgb(227, 227, 227);
	--bg-color-sticky: rgb(255, 255, 255);
	--main-color: rgb(64, 64, 64);
	--text-color: rgb(54, 125, 162);  
    --h1-font: 4.6rem;
	--h1-font-home: 2rem;
	--h1-font-home2: 1rem;
	--h2-font: 2.5rem;
	--p-font: 1rem;
	
	--color-grey: rgb(64, 64, 64);
	--color-white: rgb(255, 255, 255);
    --color-blue: rgb(54, 125, 162); 
}
body{
	background: var(--bg-color);
	color: var(--text-color);
}
header{
	position: fixed;
	width: 100%;
	top: 0;
	right: 0;
	z-index: 1000;
	padding: 38px 19%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	transition: all .7s;
}
.logo{
	display: flex;
	align-items: center;
	color: var(--color-blue);
	font-size: 28px;
	font-weight: 600;
}

.navbar{
	display: flex;	
}

.navbar a{
	margin: 0 25px;
	padding: 4px;
	color: var(--text-color);
	font-size: var(--p-font);
	font-weight: 400;
	border-bottom: 2px solid transparent;
	transition: all .7s;
}
.navbar a:hover{
	border-bottom: 2px solid var(--main-color);
	color: var(--main-color);
}
#menu-icon{
	font-size: 34px;
	cursor: pointer;
	z-index: 10001;
	display: none;
}

section{
	padding: 100px 19% 30px;
}

.home{
	height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 35px;
}
.home-img{
	height: 300px;
	width: 300px;
	object-fit: contain;
}
.home-img img{
	width: 100%;
	height: auto;
    border-radius: 50% 50% 50% 50%;	
	overflow: hidden;
	
}

.home-text{
	padding-top: 60px;	
}
.home-text h5{
	font-size: 20px;
	font-weight: 500;	
}
.home-text h1{
	margin: 15px 0;
	font-size: var(--h1-font-home);
	color: var(--main-color);	
	line-height: 1.1;
	font-weight: 800;
}
.social{
	margin-bottom: 30px;
}
.social a:first-child{
	font-size: var(--p-font);
	margin-right: 15px;
	color: var(--text-color);
}
.social i{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	width: 40px;
	background: var(--color-blue);
	color: var(--color-white);
	border-radius: 50%;
	margin-right: 15px;
	transition: all .7s;
}
.social i:hover{
	box-shadow: 0 0 30px var(--color-blue);
}
.button a{
	display: inline-block;
	padding: 10px 22px;
	background: var(--main-color);
	color: var(--bg-color);
	font-size: 14px;
	font-weight: 600;
	border: 1px solid transparent;
	border-radius: 8px;
	transition: all .7s;
}
.button a:hover{
	box-shadow: 0 0 20px var(--main-color);
}
.button i{
	margin-right: 7px;
}
header.sticky{
	background: var(--bg-color-sticky);
	padding: 10px 19%;
}
.h-main{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
	margin-bottom: 20px;
}
.h-text h2{
	font-size: var(--h2-font);
	color: var(--main-color);
	font-weight: 700;
	
}
.h-btn a{
	display: inline-block;
	font-size: 18px;
	color: var(--text-color);
	transition: all .7s;	
}
.h-btn i{
	margin-left: 6px;
}
.h-btn a:hover{
	transform: translateY(-5px);
	color: var(--main-color);
}
.center p{
	font-size: var(--p-font);
	padding: 0 120px;
	line-height: 32px;
}
.about{
	
}
.about-content{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, auto));
	align-items: center;
	text-align: center;
	gap: 2rem;
	margin-top: 4rem;
}
.box h3{
	font-size: 27px;
	font-weight: 600;
	margin-bottom: 5px;
}
.box a{
	border-bottom: 2px solid var(--main-color);
	color: var(--main-color);
	font-size: 14px;
}

/* ----- EXPERIENCE ----- */

.xp-items{
	max-width: 1000px;
	margin:auto;
	display: flex;
	flex-wrap: wrap;
	position: relative;
}
.xp-items::before{
	content: '';
	position: absolute;
	width: 2px;
	height: 100%;
	background-color: var(--color-blue);
	left: calc(50% - 1px);
}
.xp-item{
	margin-bottom: 40px;
	width: 100%;
}	
.xp-item:last-child{
	margin-bottom: 0;
}	
.xp-item:nth-child(odd){
	padding-right: calc(50% + 30px);
	text-align: right;
	position:relative;
}	
.xp-item:nth-child(even){
	padding-left: calc(50% + 30px);
}	
.xp-date{
	font-size: 13px;
	color: var(--color-blue);
	margin:6px 0 15px;
}
.xp-content{
	background-color: var(--color-white);
	padding: 30px;
	border-radius: 5px;
}	
.xp-content h3{
	font-size: 20px;
	color: var(--color-blue);
	margin: 0 0 10px;
	font-weight: 400;
}
.xp-content p{
	color: var(--color-grey);
	font-size: 16px;
	font-weight: 200;
	line-height: 22px;
}

/* ----- FORMATION ----- */

.formation-items{
	max-width: 1000px;
	margin:auto;
	display: flex;
	flex-wrap: wrap;
	position: relative;
}
.formation-items::before{
	content: '';
	position: absolute;
	width: 2px;
	height: 100%;
	background-color: var(--color-blue);
	left: calc(50% - 1px);
}
.formation-item{
	margin-bottom: 40px;
	width: 100%;
}	
.formation-item:last-child{
	margin-bottom: 0;
}	
.formation-item:nth-child(odd){
	padding-right: calc(50% + 30px);
	text-align: right;
	position:relative;
}	
.formation-item:nth-child(even){
	padding-left: calc(50% + 30px);
}	
.formation-date{
	font-size: 13px;
	color: var(--color-blue);
	margin:6px 0 15px;
}
.formation-content{
	background-color: var(--color-white);
	padding: 30px;
	border-radius: 5px;
}	
.formation-content h3{
	font-size: 20px;
	color: var(--color-blue);
	margin: 0 0 10px;
	font-weight: 400;
}
.formation-content p{
	color: var(--color-grey);
	font-size: 16px;
	font-weight: 200;
	line-height: 22px;
}

/* ----- ABOUT / SKILLS BOX ----- */
.skills-box{
	margin: 10px;
}
.skills-header{
	margin-bottom: 10px;
}
.skills-list{
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
.skills-list span{
	font-size: 12px;
	background: var(--color-grey);
	color: var(--color-white);
	padding: 2px 10px;
	border-radius: 5px;
}
.work-content{
	display: grid; 
	grid-template-columns: repeat(auto-fit, minmax(250px, auto));
	align-items: center;
	gap: 2rem;
	margin-top: 4rem;
}
.row img{
	height: auto;
	width: 100%;
	border-radius: 12px;
	margin-bottom: 1.4rem;
}
.row{
	background: var(--color-white);
	border-radius: 12px;
	border: 1px solid transparent;
	padding: 15px 20px;
	transition: all .7s;
}
.main-row{
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}
.row h5{
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 5px;
}
.row h4{
	font-size: 17px;
	font-weight: 600;
}
.row i{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	font-size: 20px;
	border-radius: 50%;
	background: var(--main-color);
	color: var(--bg-color);
}
.row:hover{
	border: 1px solid var(--main-color);
	transform: translateY(-3px) scale(1.02);
	cursor: pointer;
}
.contact{

}


.end-content{
	background-color: var(--color-blue);
	padding: 20px 19%;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap:2rem;
}
.copyright p{
	font-size: 14px;
	font-weight: 400;
	color: var(--color-white);
}
.scroll-top i{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--main-color);
	color: var(--bg-color);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 27px;
}


@media (maxborder-width: 1650px){
	header{
		padding: 14px 8%;
	}
	header.sticky{
		padding: 9px 8%;
	}
	section{
		padding: 50px 8% 50px;
	}
	.end-content{
		padding: 15px 8%;
	}
}
@media (max-width: 1220px){
	header{
		padding: 12px 4%;
	}
	header.sticky{
		padding: 9px 4%;
	}
	section{
		padding: 50px 4% 50px;
	}
	.end-content{
		padding: 15px 4%;
	}
	.home{
		height: 85vh;
	}
}
@media (max-width: 1100px){
	:root{
		--h1-font: 5.2rem;
		--h2-font: 3.1rem;
		--p-font: 15px;
	}
}
@media (max-width: 1050px){
	.home-img{
		margin: 0 auto;
		height: 300px;
		width: 300px;
	}
	.home{
		height: auto;
		display: flex;
		flex-wrap: wrap;
		gap: 50px;
	}
}
@media (max-width: 740px){
	.center p{
		padding: 0;
}
@media (max-width: 600px){
	#menu-icon {
		display: block;
	}	
	:root{
		--h1-font: 3.8rem;
		--h2-font: 2.5rem;
		--p-font: 14px;
	}
	.navbar{
		position: absolute;
		top: 100%;
		right: -100%;
		width: 270px;
		height: 100vh;
		display: flex;
		flex-direction: column;
		background: var(--color-white);
		padding: 20px 10px;
		gap: 0.6rem;
		text-align: left;
		transition: all .7s;
	}
	.navbar a{
		font-size: 20px;
		font-weight: 500;
	}
	.navbar.open{
		right: 0;
	}
	form .send-btn{
		width: 50%;
	}
}

@media(max-width: 767px){
	.xp-items::before{
		left: 7px;
	}
	.xp-item:nth-child(odd){
		padding-right: 0;
		text-align: left;
	}
	.xp-item:nth-child(odd),
	.xp-item:nth-child(even){
		padding-left: 37px;
	}
	.xp-dot{
		left:0;
	}
}

@media(max-width: 767px){
	.formation-items::before{
		left: 7px;
	}
	.formation-item:nth-child(odd){
		padding-right: 0;
		text-align: left;
	}
	.formation-item:nth-child(odd),
	.formation-item:nth-child(even){
		padding-left: 37px;
	}
	.formation-dot{
		left:0;
	}
}

