*{
	margin: 0;
	padding: 0;
	font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 40px;
}
body {
	padding-top: 80px;
	background: #080808;
	color: #fff;
	margin: 0;
	padding: 0;
}
#header {
	width: 100%;
	height: 100vh;
	background-image: url(images/background.png);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}
.header-text {
  opacity: 0;
  transform: translateY(20px);      
  transition: none;                 
}

.header-text.visible {
  animation: fadeSlideIn 2s ease-out forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.header-text,
.buttonrow {
  opacity: 0;
  transform: translateY(20px);
}

.header-text.visible,
.buttonrow.visible {
  animation: fadeSlideIn 1s ease-out forwards;
}

.buttonrow.visible {
  animation-delay: 0.5s;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.container {
	padding: 10px 10%;
}
nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: transparent;
	transition: background 0.3s ease;
	z-index: 1000;
	font-weight: 400;

	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
nav.scrolled {
	background: #080808;
	height: 90px;

}
.logo {
	width: 200px;
	margin: -40px 40px;

}
nav ul {
	margin-right: 100px;
}



nav ul li {
	display: inline-block;
	list-style: none;
	margin: 10px 20px;
}
nav ul li a{
	color: #fff;
	text-decoration: none;
	font-size: 20px;
	left: 10px;
	bottom: 10px;
	position: relative;

}
nav ul li a::after{
	content: '';
	width: 0;
	height: 3px;
	background: #fff;
	position: absolute;
	left: 0;
	bottom: -6px;
	transition: 0.5s;
}
nav ul li a:hover::after{
	width: 100%;
}
.header-text{
	margin-top: 25%;
	font-size: 30px;
}
.header-text h1{
	font-size: 60px;
	margin-top: 20px;
	font-weight: 600;
}
.buttonrow {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-top: 15px;
	flex-wrap: wrap;
	align-items: center;
}

.linkedinbtn {
	margin-right: 700px;
	transition: transform 0.5s;
}
.resumebtn {
	transition: transform 0.5s;
}
.linkedinbtn:hover {

	transform: translateY(-10px);
}
.resumebtn:hover {
	transform: translateY(-10px);
}

/*----about---*/
#about {
	padding: 80px 0;
	
}
.row {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.about-col-1 {
	flex-basis: 35%;
	overflow: hidden;
}
.about-col-1 img {
	width: 100%;
	border-radius: 15px;
	transform: translateX(-100px);
  	opacity: 0;
  	transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.about-col-1.visible img {
  transform: translateX(0);
  opacity: 1;
}
.about-col-2 {
	flex-basis: 60%;
}
.sub-title {
	font-size: 60px;
	font-weight: 600;
}
.tab-titles {
	display: flex;
	margin: 20px 0 40px;
}
.tab-links {
	margin-right: 50px;
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	position: relative;
}
.tab-links::after {
	content: '';
	width: 0;
	height: 3px;
	background: #fff;
	position: absolute;
	left: 0;
	bottom: -6px;
	transition: 0.5s;
}
.tab-links.active-link::after {
	width: 100%;
}
.tab-contents ul li {
	list-style: none;
	margin: 10px 0;
}
.tab-contents ul li span {
	color: #898989;
	font-size: 14px;
}
.tab-contents ul li span:first-of-type {
    color: #efca7f;
}

.tab-contents {
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;

  transition: opacity 1.5s ease;
}

.tab-contents.active-tab {
  max-height: 1000px;    
  opacity: 1;
  visibility: visible;
}

#skills ul {
  column-count: 2;       
  column-gap: 2rem;      
  list-style: none;
  margin: 0;
  padding: 0;
}

#skills ul li {
  break-inside: avoid-column;
  margin-bottom: 0.5rem;
}







/*portfolio section*/
#portfolio {
	padding: 50px 0;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  grid-gap: 120px;
  margin-top: 50px; 
  justify-content: center;
}

.project-list .project {
  position: relative;
  display: block;
  width: 300px;            
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;    
  color: inherit;           
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-list .project:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.project-list .project img {
  width: 100%;
  height: auto;
  display: block;
}

.project-list .project .layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.project-list .project:hover .layer {
  opacity: 1;
}

.project-list .project .layer h3 {
  font-size: 1.25rem;
  margin: 0;
}

.project-list .project .layer p {
  font-size: 1rem;
  margin: 0;
  text-align: center;
  padding: 0 1rem;
}

.project-list .project .layer i {
  font-size: 1.5rem;
  color: #fff;
}

.btn {
	display: block;
	margin: 50px auto;
	width: fit-content;
	border: 1px solid #fff;
	padding: 14px 50px;
	border-radius: 6px;
	text-decoration: none;
	color: black;
}
.btn3 {
	display: block;
	margin: 50px auto;
	width: fit-content;
	padding: 14px 50px;
	border-radius: 6px;
	font-size: 20px;
	text-decoration: none;
	color: black;
	background: #fff;
	transition: transform 0.5s;
}
.btn3:hover {
	transform: translateY(-10px);
}

/*----contact---*/
.contact-left {
	flex-basis: 35%;
}
.contact-right {
	flex-basis: 60%;
}
.contact-left p {
	margin-top: 30px;
}
.contact-left p i {
	margin-right: 15px;
	font-size: 25px;
}
.contact-left p a {
	text-decoration: none;
	color: #fff;
}
.social-icons {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 15px;               
}

.social-icons a {
  display: inline-flex;   
  align-items: center;
  justify-content: center;
  
  width: 50px;
  height: 50px;
  
  padding: 4px;            
  
  text-decoration: none;
  transition: transform 0.5s;
}

.social-icons a:hover {
  transform: translateY(-5px);
}

.social-icons a svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}


.btn.btn2 {
	display: inline-block;
	background: #fff;
	padding: 14px 60px;
	font-size: 18px;
	margin-top: 20px;
	cursor: pointer;
	transition: transform 0.5s;
}
.btn.btn2:hover {
	transform: translateY(-5px);
}

.btn.btn4 {
	display: inline-block;
	background: transparent;
	color: white;
	padding: 14px 60px;
	font-size: 18px;
	margin-top: 20px;
	cursor: pointer;
	transition: transform 0.5s;
}
.btn.btn4:hover {
	transform: translateY(-5px);
}



.contact-right form {
	width: 100%;
}
form input, form textarea {
	width: 100%;
	border: 0;
	outline: none;
	background: #262626;
	padding: 15px;
	margin: 15px 0;
	color: #fff;
	font-size: 18px;
	border-radius: 6px;
}
form .btn2 {
	padding: 14px 60px;
	font-size: 18px;
	margin-top: 20px;
	cursor: pointer;
}
.bottomtext {
	width: 100%;
	text-align: center;
	padding: 25px 0;
	background: black;
	font-weight: 300;
	margin-top: 20px;
}

/*css*/
nav .fa-solid {
	display: none;
}


@media only screen and (max-width: 600px) {
	#header {
		background-image: url(images/phonebackground.png);
	}
	.header-text{
		margin-top: 100%;
		font-size: 16px;
	}
	.header-text h1 {
		font-size: 30px;
	}
	nav .fa-solid {
		display: block;
		font-size: 25px;
	}
	nav ul {
		background: #fff;
		position: fixed;
		top: 0;
		right: -200px;
		width: 200px;
		height: 100vh;
		padding-top: 50px;
		z-index: 2;
		transition: right 0.5s;
	}
	nav ul li {
		display: block;
		margin: 25px;
	}
	nav ul .fa-solid {
		position: absolute;
		top: 25px;
		left: 25px;
		cursor: pointer;
	}
	.sub-title {
		font-size: 40px;
	}
	.about-col-1, .about-col-2 {
		flex-basis: 100%;
	}
	.about-col-1 {
		margin-bottom: 30px;
	}
	.about-col-2 {
		font-size: 14px;
	}
	.tab-links {
		font-size: 16px;
		margin-right: 20px;
	}
	.contact-left, .contact-right {
		flex-basis: 100%;
	}
	.bottomtext {
		font-size: 14px;
	}
}
#span {
	color: #fff;
	margin-top: -40px;
	display: block;
}


/*loading animation for submit button*/
.loader {
  --color: white;
  --size-mid: 6vmin;
  --size-dot: 1.5vmin;
  --size-bar: 0.4vmin;
  --size-square: 3vmin;

  display: block;
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  margin: 1rem 0; 
}

.loader::before,
.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
}

/* loader --3 */
.loader.--3::before,
.loader.--3::after {
  width: var(--size-dot);
  height: var(--size-dot);
  background-color: var(--color);
  border-radius: 50%;
  animation: loader-3 1.2s ease-in-out infinite;
}

.loader.--3::before {
  left: calc(50% - 1.6vmin - var(--size-dot));
}

.loader.--3::after {
  left: calc(50% + 1.6vmin);
  animation-delay: -0.4s;
}

@keyframes loader-3 {
  0%, 100% { transform: translateY(-2.6vmin); }
  44%      { transform: translateY(2.6vmin); }
}


