html {
    scroll-behavior: smooth;
}
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root{
    /* Home page */
    --hero-heading-font-large : 110px;
    --hero-heading-font-medium : 100px;
    --hero-heading-font-normal : 50px;
    --hero-heading-font-small : 40px;
}


/* desktop */
@media all and (min-width: 1500px) {
    .hero-heading{
        font-size: var(--hero-heading-font-large);
		margin-left: 150px;
		color: #cccccc; /* Light gray */
    }
	.home-img{
		position: absolute;
		top: 0;
		right: 0;
		height: 100vh;
		width: 50%;
	}
	.project-container{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 5%;
	}
	.contact-section{
		padding: 100px 150px;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 50px;
	}
  }
  /* pad */
  @media all and (min-width: 800px) and (max-width: 1499px) {
    .hero-heading{
        font-size: var(--hero-heading-font-medium);
		margin-left: 100px;
    }
	.home-img{
		position: absolute;
		top: 0;
		right: 10%;
		height: 100vh;
		width: 650px;
	}
	.project-container{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 5%;
		margin: 3%;
	}
	.contact-section{
		padding: 100px 100px;
		width: 650px;
		margin-top: 30px;
		margin-right: 40%;
	}
  }
  /* mini pad */
  @media all and (min-width: 500px) and (max-width: 799px) {
    .hero-heading{
        font-size: var(--hero-heading-font-normal);
		margin-left: 70px;
    }
	.home-img{
		position: absolute;
		top: 0;
		right: 50px;
		height: 100vh;
		width: 400px;
	}
	.project-container{
		display: block;
		margin: 5%;
	}
	.project-card{
		margin-bottom: 50px;
	}
	.contact-section{
		padding: 100px 50px;
		margin-top: 30px;
	}
  }
  /* mobile */
  @media all and (max-width: 499px) {
    .hero-heading{
        font-size: var(--hero-heading-font-small);
		margin-left: 20px;
    }
	.home-img{
		position: absolute;
		top: 0;
		right: 30px;
		height: 100vh;
		/* width: 300px; */
	}
	.project-container{
		display: block;
		margin: 20px;
	}
	.project-card{
		margin-bottom: 30px;
	}
	.contact-section{
		padding: 100px 20px;
		margin-top: 30px;
	}
  }
/* @import url("rwd.css"); */

body{
	width: 100%;
	max-width: 1400px;
	display: block;
	margin: auto;
	min-height: 100vh;
	background: #191919;
	font-family: sans-serif;
}

.navbar{
	height: 50px;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9;
	background: #1a1a1a;
}

.link-group{
	list-style: none;
	display: flex;
}

.link a{
	color: #fff;
	opacity: 0.5;
	text-decoration: none;
	text-transform: capitalize;
	padding: 10px 30px;
	margin: 0 20px;
	line-height: 80px;
	transition: .5s;
	font-size: 20px;
}

.link a:hover, .link.active a{
	opacity: 1;
}

/* home section */

.home-section.active,
.project-section.active,
.about-section.active,
.contact-section.active{
	position: relative;
	opacity: 1;
	z-index: 8;
}

.home-section{
	width: 100%;
	height: 100vh;
	/* padding: 0 150px; */
	display: flex;
	align-items: center;
	position: fixed;
	top: 0;
	opacity: 0;
	transition: 1s;
}

.hero-heading{
	color: #fff;
	/* font-size: 120px; */
	text-transform: capitalize;
	font-weight: 300;
}

.home-img{
	/* position: absolute;
	top: 0;
	right: 0;
	height: 100vh;
	width: 50%; */
	object-fit: cover;
	opacity: 0.2;	
}

/* project-section */

.project-section{
	width: 100%;
	min-height: 100vh;
	/* padding: 150px 100px 100px; */
	position: fixed;
	top: 0;
	transition: 1s;
	opacity: 0;
}

.project-heading{
	font-size: 100px;
	background: #252525;
	text-transform: capitalize;
	text-align: center;
	margin-bottom: 50px;
	color: #696868;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-stroke: 18px transparent;
	margin-top: 80px;
}

/* .project-container{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 5%;
} */

.project-card{
	height: 400px;
	position: relative;
}

.project-img{
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	object-fit: cover;
	transition: .5s;
}

.project-content{
	position: relative;
	padding: 40px;
	color: #fff;
	transition: .5s;
	opacity: 0;
}

.project-title{
	font-size: 30px;
	text-transform: capitalize;
	text-align: center;
	font-weight: 300;
}

.project-info{
	margin: 20px;
	font-size: 20px;
	line-height: 30px;
	text-align: center;
}

.project-btn-grp{
	display: flex;
    justify-content: center; /* Center the buttons horizontally */
}

.project-btn{
    height: 40px;
    text-transform: capitalize;
    font-size: 18px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: 0.3s; /* Add transition for smooth hover effect */
    border-radius: 20px; /* Add border radius to make the button rounder */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Add box shadow for 3D effect */
}

.project-btn:hover {
    background: #fff; /* Change background color on hover */
    color: #000; /* Change text color on hover */
}

.project-btn.live{
	background: none;
	border: 2px solid #fff;
	display: none; /* Hide the live button */
}

.project-btn.github {
    /* other styles... */
    background-color: #ff6347; /* Tomato color */
    /* other styles... */
}

.project-card:hover .project-img{
	filter: blur(20px);
}

.project-card:hover .project-content{
	opacity: 1;
}

/* about section */

.about-section{
	width: 100%;
	min-height: 100vh;
	padding: 150px 100px 0;
	position: fixed;
	top: 0;
	opacity: 0;
	transition: 1s;
}

.about{
	width: 100%;
	display: grid;
	grid-template-columns: 30% 65%;
	grid-gap: 40px;
}

.about-img-container{
	position: relative;
}

.about-info{
	color: #fff;
	opacity: 0.6;
	font-size: 25px;
	line-height: 40px;
}

.about-img{
	width: 100%;
	height:  100%;
	object-fit: cover;
	border-radius: 20px;
}

.download-cv-btn{
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 20px;
	color: #fff;
	border: none;
	font-size: 21px;
	text-transform: capitalize;
	cursor: pointer;
	transition: .5s;
	border-radius: 50px;
	background: rgba(0, 0, 0, 0.5);
}

.download-cv-btn:hover{
	background: #000;
}

.linkedin-button {
    padding: 10px 20px;
	color: #000;
    border: none;
    font-size: 21px;
    text-transform: capitalize;
    cursor: pointer;
    transition: .5s;
	background: linear-gradient(90deg, rgba(85,107,47,1) 0%, rgba(173,216,230,1) 35%, rgba(240,248,255,1) 100%);
    box-shadow: 0px 10px 15px rgba(0,0,0,0.2);
    border-radius: 50px;
    animation: gradient 5s ease infinite;
    margin-top: 20px; /* Add some space above the button */
}

.linkedin-button:hover {
    background-position: right;
}

@keyframes gradient {
    0% {background-position: right;}
    50% {background-position: left;}
    100% {background-position: right;}
}

.github-button {
    padding: 10px 20px;
    color: #000; /* or any dark color you prefer */
    border: none;
    font-size: 21px;
    text-transform: capitalize;
    cursor: pointer;
    transition: .5s;
    background: linear-gradient(90deg, rgba(255,99,71,1) 0%, rgba(255,165,0,1) 35%, rgba(255,255,0,1) 100%);
    box-shadow: 0px 10px 15px rgba(0,0,0,0.2);
    border-radius: 50px;
    animation: gradient 5s ease infinite;
    margin-top: 20px; /* Add some space above the button */
}

.github-button:hover {
    background-position: right;
}

@keyframes gradient {
    0% {background-position: right;}
    50% {background-position: left;}
    100% {background-position: right;}
}

/* skills */

.skill-section{
	position: relative;
	margin: 100px 0;
}

.heading{
	text-align: center;
	font-size: 60px;
	color: #fff;
	text-transform: capitalize;
	font-weight: 300;
	margin-bottom: 100px;
}

.skills-container{
	width: 95%;
	margin: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 100px;
	color: #fff;
}

.skill-card{
	position: relative;
}

.skill-img{
	display: block;
	margin: auto;
	height: 200px;
}

.skill-name{
	font-size: 30px;
	font-weight: 300;
	text-align: center;
	text-transform: capitalize;
	margin: 30px 0 20px;
}

.skill-info{
	text-align: center;
	opacity: 0.5;
	font-size: 18px;
	line-height: 30px;
}

.skill-level{
	position: absolute;
	top: 80px;
	right: 0;
	width: 150px;
	height: 150px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 22px;
	border-radius: 50%;
	border: 10px solid;
}

.skill-card:nth-child(1) .skill-level{
	background: #ff4f4f28;
	border-color: #7fffd4;
	color: #7fffd4;
}

.skill-card:nth-child(2) .skill-level{
	background: #4fa0ff28;
	border-color: #4fa0ff;
	color: #4fa0ff;
}

.skill-card:nth-child(3) .skill-level{
	background: #ffed4f28;
	border-color: #ffed4f;
	color: #ffed4f;
}

.skill-card:nth-child(4) .skill-level{
	background: #52ff4f28;
	border-color: #52ff4f;
	color: #52ff4f;
}

.skill-card:nth-child(5) .skill-level{
	background: #4fdfff28;
	border-color: #4fdfff;
	color: #4fdfff;
}

.skill-card:nth-child(6) .skill-level{
	background: #4fdfff28;
	border-color: #ff7f50;
	color: #ff7f50;
}

.skill-card:nth-child(7) .skill-level{
	background: #4fdfff28;
	border-color: #fff8dc;
	color: #fff8dc;
}

.skill-card:nth-child(8) .skill-level{
	background: #4fdfff28;
	border-color: #8fbc8f;
	color: #8fbc8f;
}

.skill-card:nth-child(10) .skill-level{
	background: #4fdfff28;
	border-color: #dc143c;
	color: #dc143c;
}

/* timeline */

.timeline{
	display: block;
	width: 80%;
	margin: 150px auto;
}

.timeline .heading{
	margin-bottom: 150px;
}

.card{
	width: 45%;
	padding: 30px;
	border-radius: 10px;
	color: #fff;
	display: block;
	margin: -25px 0;
	position: relative;
	background: #f009;
}

.card:nth-child(even){
	margin-left: auto;
}

.card:nth-child(even):before{
	content: '';
	position: absolute;
	left: -15%;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 5px solid #191919;
	border-radius: 50%;
}

.card:nth-child(even):after{
	content: '';
	position: absolute;
	left: -8.5%;
	top: 50%;
	transform: translateY(-50%);
	width: 7%;
	height: 2px;
	background: #fff;
	z-index: -1;
}

.card:nth-child(odd):before{
	content: '';
	position: absolute;
	right: -13%;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 5px solid #191919;
	border-radius: 50%;
}

.card:nth-child(odd):after{
	content: '';
	position: absolute;
	right: -8.5%;
	top: 50%;
	transform: translateY(-50%);
	width: 7%;
	height: 2px;
	background: #fff;
	z-index: -1;
}

.card:nth-child(2), .card:nth-child(2):before{
	background: #ff4f4f;
}
.card:nth-child(3), .card:nth-child(3):before{
	background: #ffb84f;
}
.card:nth-child(4), .card:nth-child(4):before{
	background: #3dca5c;
}
.card:nth-child(5), .card:nth-child(5):before{
	background: #565252;
}
.card:nth-child(6), .card:nth-child(6):before{
	background: #4fa0ff;
}

.card:nth-child(even) .card-body:before{
	content: '';
	position: absolute;
	left: -12%;
	top: 0;
	width: 0px;
	height: 100%;
	border: 1px dashed #fff;
	z-index: -1;
}

.card-title{
	font-size: 30px;
	font-weight: 300;
	margin-bottom: 20px;
}

.contact-section{
	position: absolute;
	top: 0;
	opacity: 0;
	transition: 1s;
	height: 100vh;
	/* padding: 100px 150px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 50px; */
}

.contact-form input, .contact-form textarea{
	width: 100%;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid #fff;
	margin-bottom: 30px;
	border-radius: 5px;
	text-transform: capitalize;
	color: #fff;
	padding: 5px 10px;
}

::placeholder{
	color: #fff;
}

#msg{
	height: 280px;
	resize: none;
	font-family: sans-serif;
}

.form-submit-btn{
	background: #ff4f4f;
	color: #fff;
	text-transform: capitalize;
	padding: 15px 40px;
	display: block;
	margin: auto;
	border: none;
	border-radius: 10px;	
	cursor: pointer;
}