* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	list-style: none;
}

/* Ensure theme button active state works in plain CSS (some nested rules earlier use SCSS syntax) */
.theme-btn:active {
	transform: translateY(-5px);
}

/* Icon color ensure */
.theme-btn i {
	color: var(--color-grey-2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
	section {
		padding: 2.5rem 6rem;
	}
	.header-content {
		grid-template-columns: 1fr;
	}
	.header-content .right-header {
		padding-right: 2rem;
	}
	.about-container {
		grid-template-columns: 1fr;
	}
	.about-container .right-about {
		grid-template-columns: 1fr;
	}
	.portfolios {
		grid-template-columns: repeat(2, 1fr);
	}
	.blogs {
		grid-template-columns: repeat(2, 1fr);
	}
	.timeline {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	section {
		padding: 2rem;
	}
	.header-content {
		align-items: center;
	}
	.header-content .left-header .image {
		width: 100%;
		height: auto;
	}
	.header-content .right-header {
		padding-right: 0;
	}
	.portfolios {
		grid-template-columns: 1fr;
	}
	.blogs {
		grid-template-columns: 1fr;
	}
	.controls {
		right: 1%;
	}
	.theme-btn {
		right: 1%;
		width: 48px;
		height: 48px;
	}
}

@media (max-width: 420px) {
	body {
		font-size: 0.95rem;
	}
	section {
		padding: 1.25rem;
	}
	.header-content .right-header .name {
		font-size: 1.5rem;
	}
	.controls {
		display: none;
	}
}

/* light & dark mode */
:root {
	--color-primary: #191d2b;
	--color-secondary: #27ae60;
	--color-white: #ffffff;
	--color-black: #000;
	--color-grey0: #f8f8f8;
	--color-grey-1: #dbe1e8;
	--color-grey-2: #b2becd;
	--color-grey-3: #6c7983;
	--color-grey-4: #454e56;
	--color-grey-5: #2a2e35;
	--color-grey-6: #12181b;
	--br-sm-2: 14px;
	--box-shadow-1: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.light-mode {
	/* Light theme: background light, primary text dark, subtle greys */
	--color-primary: #ffffff; /* page background */
	--color-secondary: #27ae60; /* accent color */
	--color-white: #111827; /* primary text color on light bg */
	--color-black: #000000;
	--color-grey0: #f8f9fb; /* light surface */
	--color-grey-1: #6b7280; /* muted text */
	--color-grey-2: #9ca3af; /* secondary muted */
	--color-grey-3: #4b5563; /* borders/text */
	--color-grey-4: #e6e9ee; /* surfaces/controls */
	--color-grey-5: #d1d5db; /* lighter surface */
	--color-grey-6: #f3f4f6; /* very light */
}

body {
	font-family: "Poppins", sans-serif;
	background-color: var(--color-primary);
	font-size: 1.1rem;
	color: var(--color-white);
	transition: all 0.4s ease-in-out;
}

a {
	display: inline-block;
	text-decoration: none;
	color: inherit;
	font-family: inherit;
}

header {
	min-height: 100vh;
	color: var(--color-white);
	overflow: hidden;
}

section {
	min-height: 100vh;
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	padding: 3rem 18rem;
}

/* Off screen by default */
.section {
	transform: translateY(-100%) scale(0);
	transition: all 0.4s ease-in-out;
	background-color: var(--color-primary);
}

.sec1 {
	display: none;
	transform: translateY(0) scale(1);
}

.sec2 {
	display: none;
	transform: translateY(0) scale(1);
}

.sec3 {
	display: none;
	transform: translateY(0) scale(1);
}

.sec4 {
	display: none;
	transform: translateY(0) scale(1);
}

.sec5 {
	display: none;
	transform: translateY(0) scale(1);
}

.active {
	display: block;
	animation: scaleAnim 1s ease-in-out;
	@keyframes scaleAnim {
		0% {
			transform: translateY(-100%) scaleY(0);
		}
		100% {
			transform: translateY(0) scaleY(1);
		}
	}
}

/* Controls */
.controls {
	position: fixed;
	z-index: 10;
	top: 50%;
	right: 3%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);

	.active-btn {
		background-color: var(--color-secondary) !important;
		transition: all 0.4s ease-in-out;
		i {
			color: var(--color-white) !important;
		}
	}

	.control {
		padding: 1rem;
		cursor: pointer;
		background-color: var(--color-grey-4);
		width: 55px;
		height: 55px;
		border-radius: 50%;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 0.7rem 0;
		box-shadow: var(--box-shadow-1);
		i {
			font-size: 1.2rem;
			color: var(--color-grey-2);
			pointer-events: none;
		}
	}
}

.theme-btn {
	top: 5%;
	right: 3%;
	width: 55px;
	height: 55px;
	border-radius: 50%;
	background-color: var(--color-grey-4);
	cursor: pointer;
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
	transition: all 0.1s ease-in-out;
	&:active {
		transform: translateY(-5px);
	}
	i {
		font-size: 1.4rem;
		color: var(--color-grey-2);
		pointer-events: none;
	}
}

/* Header -content */
.header-content {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	min-height: 100vh;
	.left-header {
		display: flex;
		align-items: center;
		position: relative;
		.h-shape {
			transition: all 0.4s ease-in-out;
			width: 65%;
			height: 100%;
			background-color: var(--color-secondary);
			position: absolute;
			left: 0;
			top: 0;
			z-index: -1;
			clip-path: polygon(0 0, 62% 0, 93% 100%, 0% 100%);
		}
		.image {
			border-radius: var(--br-sm-2);
			width: 68%;
			height: 90%;
			background-color: var(--color-black);
			transition: all 0.4s ease-in-out;
			img {
				width: 100%;
				height: 100%;
				object-fit: cover;
				transition: all 0.4s ease-in-out;
				filter: grayscale(100%);
				&:hover {
					filter: grayscale(0);
				}
			}
		}
	}
	.right-header {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-right: 18rem;
		.name {
			font-size: 3rem;
			span {
				color: var(--color-secondary);
			}
		}
		p {
			margin: 1.5rem 0;
			line-height: 2rem;
		}
	}
}

/* About */
.about-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	padding-top: 3.5rem;
	padding-bottom: 5rem;
	.right-about {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 2rem;
		.about-item {
			border: 1px solid var(--color-grey-5);
			border-radius: 5px;
			transition: all 0.4s ease-in-out;
			box-shadow: 1px 2px 15px rgba(0, 0, 0, 0.1);
			&:hover {
				cursor: default;
				transform: translateY(-5px);
				border: 1px solid var(--color-secondary);
				box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.32);
			}
			.abt-text {
				padding: 1.5rem;
				display: flex;
				flex-direction: column;
				.large-text {
					font-size: 3rem;
					font-weight: 700;
					color: var(--color-secondary);
				}
				.small-text {
					position: relative;
					padding-left: 3rem;
					text-transform: uppercase;
					font-size: 1.2rem;
					color: var(--color-grey-1);
					letter-spacing: 2px;
					&::before {
						position: absolute;
						left: 0;
						top: 15px;
						width: 2rem;
						height: 2px;
						background-color: var(--color-grey-5);
					}
				}
			}
		}
	}
	.left-about {
		padding-right: 0.8rem;
		p {
			line-height: 2.5rem;
			padding: 0.8rem;
			color: var(--color-grey-1);
		}
		h4 {
			font-size: 1rem;
			text-transform: uppercase;
		}
	}
}

.about-stats {
	padding-bottom: 4rem;
	.progress-bars {
		/* trying to design it myself */
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 2rem;
		.progress-bar {
			display: blcok;
			flex-direction: column;
			.prog-title {
				text-transform: uppercase;
				font-weight: 500;
			}
			.progress-con {
				display: flex;
				align-items: center;
				.prog-text {
					color: var(--color-grey-2);
				}
				.progress {
					width: 100%;
					height: 0.45rem;
					background-color: var(--color-secondary);
					margin-left: 1rem;
					position: relative;
					span {
						position: absolute;
						top: 0;
						left: 0;
						height: 100%;
						background-color: var(--color-secondary);
						transition: all 0.4s ease-in-out;
						width: 60%;
					}
					.html {
						width: 90%;
					}
					.css {
						width: 70%;
					}
					.javascript {
						width: 50%;
					}
					.java {
						width: 80%;
					}
					.php {
						width: 40%;
					}
					.mysql {
						width: 40%;
					}
				}
			}
		}
	}
}

.stat-title {
	text-transform: uppercase;
	font-size: 1.4rem;
	text-align: center;
	padding: 3.5rem 0;
	position: relative;
	&::before {
		content: "";
		position: absolute;
		left: 50%;
		top: 0;
		width: 40%;
		height: 1px;
		background-color: var(--color-grey-5);
		transform: translateX(-50%);
	}
}

/* Timeline */
.timeline {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 2rem;
	padding-bottom: 3rem;
	.timeline-item {
		position: relative;
		padding-left: 3rem;
		border-left: 1px solid var(--color-grey-5);
		.tl-icon {
			position: absolute;
			left: -27px;
			top: 0;
			background-color: var(--color-secondary);
			width: 10%;
			height: 10%;
			border-radius: 50%;
			justify-content: center;
			display: grid;
			align-items: center;
			i {
				font-size: 1.3rem;
			}
		}
		.tl-duration {
			padding: 0.2rem 0.6rem;
			background-color: var(--color-grey-5);
			border-radius: 15px;
			display: inline-block;
			font-size: 0.8rem;
			text-transform: uppercase;
			font-weight: 500;
		}
		h5 {
			padding: 1rem 0;
			text-transform: uppercase;
			font-size: 1.3rem;
			font-weight: 600;
			span {
				color: var(--color-grey-2);
				font-weight: 500;
				font-size: 1.2rem;
			}
		}
		p {
			color: var(--color-grey-2);
		}
	}
}

/* Portfolios */
.portfolio-text {
	padding: 2rem 0;
	text-align: center;
}
.portfolios {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 2rem;
	margin-top: 3rem;
	.portfolio-item {
		position: relative;
		img {
			width: 100%;
			height: 300px;
			object-fit: cover;
			border-radius: 15px;
		}
		.hover-items {
			width: 100%;
			height: 100%;
			background-color: var(--color-secondary);
			position: absolute;
			left: 0;
			top: 0;
			border-radius: 15px;
			display: flex;
			justify-content: center;
			flex-direction: column;
			align-items: center;
			scale: 0;
			transform: scale(0);
			transition: all 0.4s ease-in-out;
			opacity: 0;
			h3 {
				font-size: 1.5rem;
				columns: var(--color-white);
				margin-bottom: 1.5rem;
			}
			.icons {
				display: flex;
				justify-content: center;
				flex-direction: column;
				.icon {
					background-color: var(--color-primary);
					border-radius: 50%;
					width: 50px;
					height: 50px;
					display: flex;
					justify-content: center;
					flex-direction: column;
					cursor: pointer;
					margin: 0 1rem;
					transition: all 0.4s ease-in-out;
					i {
						font-size: 1.5rem;
						color: var(--color-white);
						margin: 0 1rem;
					}
					&:hover {
						background-color: var(--color-white);
						i {
							color: var(--color-primary);
						}
					}
				}
			}
		}
	}
}

.portfolio-item:hover .hover-items {
	opacity: 1;
	transform: scale(1);
}

/* Blogs sections */
.blogs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 2rem;
	margin-top: 3rem;
	.blog {
		position: relative;
		background-color: var(--color-grey-5);
		border-radius: 5px;
		box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.1);
		transition: all 0.4s ease-in-out;
		&:hover {
			box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.3);
			transform: translateY(-5px);
			transition: all 0.4s ease-in-out;
			img {
				filter: grayscale(0);
				transform: scale(1.1);
				box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
			}
		}
		img {
			width: 100%;
			height: 300px;
			object-fit: cover;
			border-top-left-radius: 5px;
			border-top-right-radius: 5px;
			filter: grayscale(100%);
			transition: all 0.4s ease-in-out;
		}
		.blog-text {
			margin-top: -5px;
			padding: 1rem;
			border-top: 8px solid var(--color-secondary);
			h4 {
				font-size: 1rem;
				margin-bottom: 1rem;
				transition: all 0.4s ease-in-out;
				cursor: pointer;
				&:hover {
					color: var(--color-secondary);
				}
			}
			p {
				color: var(--color-grey-2);
				line-height: 2rem;
				padding-bottom: 1rem;
			}
		}
	}
}

/* Contact section */
.contact-content-con {
	display: flex;
	padding-top: 3.5rem;
	.left-contact {
		flex: 2;
		h4 {
			margin-top: 1rem;
			font-size: 2rem;
			text-transform: uppercase;
		}
		p {
			margin: 1rem 0;
			line-height: 2rem;
		}

		.contact-info {
			.contact-item {
				display: flex;
				align-items: center;
				justify-content: space-between;
				p {
					margin: 0.3rem 0 !important;
					padding: 0 !important;
				}
				.icon {
					display: grid;
					grid-template-columns: 40px 1fr;
					i {
						display: flex;
						align-items: center;
						font-size: 1.3rem;
					}
				}
			}
		}

		.contact-icon {
			display: flex;
			margin-top: 2rem;
			a {
				display: flex;
				align-items: center;
				color: var(--color-white);
				background-color: var(--color-grey-5);
				cursor: pointer;
				justify-content: center;
				width: 50px;
				height: 50px;
				border-radius: 50%;
				margin: 0 0.4rem;
				transition: all 0.4s ease-in-out;
				&:hover {
					background-color: var(--color-secondary);
					i {
						color: var(--color-primary);
					}
				}
				i {
					display: flex;
					align-items: center;
					justify-content: center;
					font-size: 1.3rem;
				}
			}
		}
	}
	.right-contact {
		flex: 3;
		margin-left: 3rem;
		.input-control {
			margin: 1.5rem 0;
			input,
			textarea {
				border-radius: 30px;
				font-weight: inherit;
				font-size: inherit;
				font-family: inherit;
				padding: 0.8rem 1.1rem;
				outline: none;
				border: none;
				background-color: var(--color-grey-5);
				width: 100%;
				color: var(--color-white);
				resize: none;
			}
		}
		.i-c-2 {
			display: flex;
			:last-child {
				margin-left: 1.5rem;
			}
		}
		button {
			color: #fff;
			padding: 10px 15px;
			border: 0;
			border-radius: 25px;
			cursor: pointer;
			font-size: 18px;
			font-weight: bold;
			transition: background-color 0.3s ease, transform 0.2s ease;
			width: 50%;
			margin: 20px auto;
			background-color: var(--color-secondary);
			justify-content: center;
			align-items: center;
			display: flex;
			&:hover {
				background-color: #43fc0b;
				transform: scale(1.02);
			}
		}
	}
}

/* independent component */
.btn-con {
	display: flex;
	align-self: flex-start;
	margin-top: 1.5rem;
}

.main-btn {
	border-radius: 30px;
	color: inherit;
	font-weight: 600;
	position: relative;
	border: 1px solid var(--color-secondary);
	align-self: flex-start;
	display: flex;
	align-items: center;
	overflow: hidden;
	transition: all 0.4s ease-in-out;
	cursor: pointer;
	white-space: nowrap;
}

.main-btn .btn-text {
	padding: 0 2rem;
}

.main-btn .btn-icon {
	background-color: var(--color-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	padding: 1rem;
	transition: all 0.4s ease-in-out;
}

.main-btn::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	background-color: var(--color-secondary);
	transform: translateX(100%);
	transition: all 0.4s ease-in-out;
	z-index: -1;
}

.main-btn:hover::before {
	width: 100%;
	height: 100%;
	transform: translateX(0);
}

.main-btn:hover .btn-text {
	color: var(--color-primary);
}

.main-title {
	text-align: center;
	h2 {
		position: relative;
		text-transform: uppercase;
		font-size: 4rem;
		font-weight: 700;
		span {
			color: var(--color-secondary);
		}
		.bg-text {
			position: absolute;
			top: 50%;
			left: 50%;
			color: var(--color-grey-5);
			transition: all 0.4s ease-in-out;
			z-index: -1;
			transform: translate(-50%, -50%);
			display: none;
		}
	}
}

/* Footer */
.footer {
	background-color: var(--color-grey-5);
	padding: 1rem 0;
	text-align: center;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 5;
}

.footer-content p {
	margin: 0;
	color: var(--color-grey-1);
	font-size: 0.9rem;
}

.footer-content a {
	color: var(--color-secondary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.footer-content a:hover {
	color: var(--color-white);
	text-decoration: underline;
}