
html {
	scroll-behavior: smooth;
}


body {
	margin: 0px;
	scroll-behavior: smooth;
}

section {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 30px;
}

/* Header */
#top-header {
	height: 58vh;
	background-image: url("./Assets/pic1.jpg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	opacity: 89%;
	padding-top: 1.2rem;
}

body > header h1 {
	text-align: center;
	color: white;
	font-family: Lato, Jost, Georgia, Times, "Times New Roman", serif;
	word-spacing: 10px;
	letter-spacing: 0.5px;
	font-size: 3.2rem;
	margin-top: 70px;
}

/* Navigation Bar */

nav ul {
	margin: 0;
}

.nav-list {
	/* align-content: center;
	align-items: center; */
	text-align: center;
	list-style: none;
}

.nav-list a {
	text-decoration: none;
	color: white;
}

.nav-list li {
	display: inline-block;
	margin: 0px 5px;
	padding: 10px 15px;
	color: white;
	font-size: 1.2rem;
	font-family: Jost;
	transition: all 0.2s ease-in-out; 
}

.nav-list li:active {
	border-radius: 1px;
	border-width: 1px;
	border-color: white;
	border-style: solid;
	font-weight: 400;
	font-size: 18px;
	box-shadow: 0px 0px 2px 1px rgba(255, 255, 255, 0.5);
}

/* Social Icons */

.social-list {
	text-align: center;
	list-style: none;
}

.social-list li i {
	list-style: none;
	text-decoration: none;
	color: white;
	font-size: 23px;
	transition: all 0.1s ease-in-out;
}

.social-list li {
	display: inline-block;
	margin: 0px 15px;
	padding: 5px;
}

#social li i:hover {
	font-size: 16px;
	padding: 5px;
	box-shadow: 0px 0px 4px 2px rgba(255, 255, 196, 0.9);
	border-radius: 3px;
}

/* About section */

#my-image {
	height: 12rem;
	width: 12rem;
	margin: auto;
	margin-top: -100px;
}

#my-image img {
	width: 100%;
	border-radius: 50%;
	box-shadow: 0px 0px 2px 4px white;
}

#about {
	text-align: center;
	width: 100%;
	height: auto;
	position: relative;
}

#about-me {
	margin: auto;
	font-family: ubuntu;
	color: rgb(92, 89, 89);
	font-size: 1.5rem;
	line-height: 28px;
	text-align: center;
	padding: 10px;
	width: 60%;
}


/* Headers */
.section-header span{
	width: auto;
	font-size: 2.5rem;
	font-family: ubuntu;
	padding: 0px 10px;
	display: inline-block;
}


/* Skills Section */
#skills {
	align-items: center;
	background-color: whitesmoke;
	padding: 70px 0px;
}


#skills-data {
	width: 70%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	margin: 30px 20px;
}

.single-skill {
	width: 150px;
	height: 2rem;
	margin: 10px 10px;
	border-radius: 15px;
	text-align: center;
	justify-content: center;
	border: 1px solid black;
	background-color: lightgrey;
	box-shadow: 0px 0px 4px 2px lightgray inset;
	overflow: hidden;
}

.single-skill .skill-common {
	height: 2rem;
	padding-top: 0.2rem;
	border-radius: 9.5px 0px 0px 9.5px;
	border-width: 1px;
	border-style: solid;
	box-sizing: border-box;
	box-shadow: 1px 0.4px 2px 2px gray;
}

.skill-name {
	font-family: Lato;
}

.single-skill .html {
	width: 80%;
	background-color: rgb(230, 100, 100);
	border:none;
}

.single-skill .css {
	width: 60%;
	background-color: lightskyblue;
	border: none;
}

.single-skill .javascript {
	width: 45%;
	background-color: rgb(97, 161, 224);
	border: none;
}

.single-skill .python {
	width: 60%;
	background-color: lightsteelblue;
	border: none;
}

.single-skill .cpp {
	width: 65%;
	background-color: rgb(247, 151, 166);
	border: none;
}

/* Portfolio */
#portfolio {
	align-items: center;
	padding: 50px 0px 70px 0px;
}

#portfolio-items {
	margin-top: 35px;
	display: flex;
	flex-wrap: wrap;
	width: 80%;
	align-items: center;
	justify-content: space-around;
}

.portfolio-item {
	height: 220px;
	width: 220px;
	overflow: hidden;

	margin: 30px 10px;
	background-size: cover;
	position: relative;
}

.portfolio-item img{
	height: 100%;
	box-sizing: border-box;
	width: 100%;
}

.portfolio-item:hover {
	box-shadow: 0px 0px 10px 3px lightgray;
}

.detail {
	transition: all 0.5s ease-out;
	color: transparent;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	font-weight: bold;
	font-size: 20px;
	font-family: monospace;
	text-align: center;
	padding: 10px;
}

.portfolio-item:hover .detail {
	background-color: #4e4a4a78;
	color: white;
}


/* Contact Section */
#contact {
	background-color: black;
	background-image: linear-gradient(#232526, #414345);
	padding: 70px 0px;
	position: relative;
	align-items: center;
}

#contact > .section-header {
	color: white;
	margin-bottom: 30px;
}

#contact-form-details{
	width: 85%;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
}

#contact-form {
	width: 35%; 
	border-right: 1.5px solid white;
	margin-right: 5%;
	margin-left: 15%;
}

#contact-details {
	width: 40%;
	color: white;
	font-family: ubuntu, lato, sans-serif, serif;
}


#contact-details p span {
	font-weight: bold;
}


#contact-details h3 a {
	color: white;
	font-size: 20px;
	margin-top: 80%;
	margin-left: 12px;
	transition: all 0.2s ease-in;
}

#contact-details h3 a:hover {
	font-size: 20px;
	padding: 1px 2px;
	box-shadow: 0px 0px 3px 1px white;
	border-radius: 5px;
}


form input, form textarea {
	background: transparent;
	width: 85%;
	justify-self: center;
	border: none;
	padding: 10px 10px;
	box-sizing: border-box;
	color: whitesmoke;
	font-size: 15px;
	border-bottom: 1px solid white;
}

#contact-form form input {
	margin-bottom: 30px;
	height: 2rem;
	display: block;
	color: white;
}

textarea {
	resize: none;
	overflow: hidden;
}


button[type="submit"]
{
	margin-top: 8%;
	padding: 10px 25px;
	background: transparent;
	border:2px solid rgb(240, 236, 236);
	color: white;
	border-radius: 5px;
	font-weight: 600;
	letter-spacing: 0.05rem;
	line-height: 1;
	font-family: Lato;
	transition: background-color 0.3s ease-in;
}


button[type="submit"]:hover {
	background-color: lightgray;
	color: black;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
	outline: none;
}

/* Footer */
footer {
	margin: 0;
	line-height: 1.2rem;
	font-family: monospace;
	font-weight: 500;
	font-size: 1.1rem;
	padding: 10px 0px 10px 20px;
	text-align: center;
	background-image: linear-gradient(lightgrey, white);
}

footer p {
	margin: 0;
}

::selection {
	background-color: lightgray;
}

/* Exprience && Education*/
#education {
	background-color: whitesmoke;
}
.common-l-exp.ed{
	width: 90%;
}

.common-ed-exp {
	width: 100%;
	margin: 10px 0px 40px 0px;
	display: flex;
	flex-direction: row-;
	flex-wrap: wrap;
}

.exp-details, .ed-details {
	padding: 20px 20px 20px 40px;
	font-family: roboto, Jato, serif, sans-serif;
}

.common-ed-exp .list-img img {
	width: 170px;
	height: 170px;
	margin: 20px;
	border: none;
	border-radius: 10px;
	padding: 10px;
	box-shadow: 0px 0px 4px 4px lightgray;
	transition: all 0.3s ease-in;
}


.exp-details ul, .ed-details p
{
	font-family: Jato;
}

.head-size {
	font-size: 1rem;
}

#go-up {
	position: absolute;
	bottom: 0;
	right: 0;
	color: black;
	opacity: 50%;
	background-color: whitesmoke;
	height: 50px;
	width: 50px;
	border: 1px solid white;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
	margin-right: 15px;
	text-decoration: none;
	border-radius: 5px;
	transform: rotate(-45deg);
}

#go-up:hover {
	color: white;
	background-color: rgb(124, 125, 126);
	cursor: pointer;
}

@media (max-width: 550px)
{
	body > header h1 {
		text-align: center;
		letter-spacing: 0.5px;
		font-size: 2.6rem;
		margin-top: 55px;
	}

	/* Contact */
	#contact-form-details{
		width: 90%;
		margin-left: 11%;
	}
	#contact-form {
		width: 90%; 
		border-right: none;
		margin-bottom: 50px;
		margin-left: 15px;
	}
	
	#contact-details {
		border-top: 1.5px solid grey;
		width: 80%;
		margin-left: 15px;
	}

	button[type="submit"]
	{
		margin: 30px 0px 30px 30%;
		border: 1.5px solid rgb(240, 236, 236);
	}

	button[type="submit"]:active {
		transition: background-color 0.2s ease-in;  
		background-color: lightgray;
		color: black;
	}
	
	.nav-list li {
		margin: 0px 2px;
		padding: 8px 10px 8px 0px;
		font-size: 1rem;
	}
	
	/* Social Icons */
	
	.social-list li i {
		transition: all 0.05s ease-in-out;
		font-size: 23px;
	}
	
	.social-list li {
		margin: 0px 20px 30px 0px ;
		padding: 5px;
	}

	#social li i:active {
		font-size: 15px;
		padding: 5px;
		box-shadow: 0px 0px 4px 2px rgba(255, 255, 196, 0.9);
		border-radius: 1.5px;
	}
	
	/* About section */

	#about-me {
		font-family: ubuntu;
		color: grey;
		font-size: 1.2rem;
		line-height: 25px;
		text-align: left;
		padding: 5px;
		width: 83%;
	}

	/* Skills */
	#skills {
		padding: 50px 0px;
	}
	
	
	#skills-data {
		width: 80%;
	}

	/* Portfolio */
	.portfolio-item:scope .detail {
		background-color: #4e4a4a78;
		color: white;
	}

	/* Education/Experience */

	.common-ed-exp .list-img img {
		margin-left: 50%;
	}
	
	/* Footer */
	footer {
		margin: 2px 0px 2px 0px;
		line-height: 1.1rem;
		font-weight: 510;
		font-size: 1.1rem;
		padding: 10px 0px 10px 0px;
	}

	/* Top header image */
	#top-header {
		height: 53vh;
		background-image: url("./Assets/pic1.jpg");
		opacity: 89%;
	}
	

	#go-up {
		visibility: hidden;
	}
}

@media (max-width: 380px) {

	#top-header {
		height: 58vh;
	}

	#contact-form-details{
		width: 90%;
	}
	#contact-form {
		width: 90%; 
	}
	
	#contact-details {
		border-top: 1.5px solid grey;
		width: 90%;
		margin-left: -2px;
		margin-right:10%; 
	}

	.common-ed-exp .list-img img {
		margin-left: 22vw;
	}
}