/* General styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

body {
	font-family: 'Poppins', sans-serif;
	background-color: #f9f9f9;
	color: #333;
	line-height: 1.6;
}

/* Custom scrollbar for WebKit browsers */
::-webkit-scrollbar {
	width: 8px;
	/* Width of the scrollbar */
	height: 8px;
	/* Height of the scrollbar (for horizontal) */
}

::-webkit-scrollbar-thumb {
	background-color: #26BDE2;
	/* Color of the scrollbar thumb */
	border-radius: 10px;
	/* Rounded edges for the thumb */
}

::-webkit-scrollbar-track {
	background: #19486A;
	/* Color of the scrollbar track */
	border-radius: 10px;
	/* Rounded edges for the track */
}

/* For Firefox */
* {
	scrollbar-width: thin;
	/* Makes the scrollbar thin */
	scrollbar-color: #26BDE2 #19486A;
	/* Thumb color and track color */
}

a {
	color: #0A97D9;
	text-decoration: none;
}

a:hover {
	color: #00689D;
}

h2 {
	text-align: center;
	margin-bottom: 20px;
}

/* General Navigation Styles */
nav {
	background-color: #19486A;
	padding: 12px;
	text-align: center;
}

nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
}

nav ul li {
	margin: 0 15px;
}

nav ul li a {
	color: white;
	font-size: 1.1em;
	text-decoration: none;
}

nav ul li a:hover {
	text-decoration: none;
}

/* Responsive Menu Icon (hamburger) */
.nav-container {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.nav-icon {
	display: none;
	font-size: 1.5em;
	color: white;
	right: 20px;
	top: 15px;
	cursor: pointer;
}

/* Hide the checkbox by default */
.nav-toggle {
	display: none;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {

	/* Show the hamburger icon */
	.nav-icon {
		display: block;
	}

	/* Hide the nav items initially */
	nav ul {
		display: none;
		flex-direction: column;
		text-align: left;
		position: absolute;
		top: 50px;
		left: 0;
		width: 100%;
		background-color: #19486A;
		padding: 10px;
	}

	/* Show the nav items when checkbox is checked */
	.nav-toggle:checked+.nav-icon+ul {
		display: flex;
	}

	nav ul li {
		margin: 10px 0;
	}
}

/* Header */
header {
	height: 100vh;
	background: linear-gradient(rgb(0, 0, 0, 0.8), rgb(0, 0, 0, 0.8)), url('assets/bg-img102.webp') no-repeat center center/cover;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	text-align: center;
}

.header-content {
	max-width: 90%;
}

header h1 {
	font-size: 4em;
}

header p {
	font-size: 1.5em;
	margin: 20px 0;
}

.btn {
	background-color: #0A97D9;
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.btn:hover {
	background-color: #00689D;
	color: white;
	/* Ensure text stays white on hover */

}

/* Sections */
main {
	padding: 40px 20px;
}

/* About Section */
.about-content {
	display: flex;
	justify-content: space-between;
	/* Space between image and content */
	align-items: center;
	/* Vertically center the items */
	margin-bottom: 40px;
}

.profile-photo {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	display: block;
	margin: 0 auto;
	/* Center horizontally within its container */
	border: 2px solid #26BDE2
		/* Add a red border (adjust thickness as needed) */
}

.about-text {
	max-width: 600px;
	font-size: 1.1em;
}

/* Media Query for Responsiveness */
@media (max-width: 768px) {
	.about-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.profile-photo {
		margin-bottom: 20px;
	}
}


/* Skills Section */
#skills {
	background-color: #f4f4f4;
	padding: 40px 20px;
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
}

.skill-item {
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill-bar {
	background-color: #ddd;
	border-radius: 5px;
	height: 26px;
	/* Increased height for better visibility */
	margin-bottom: 10px;
	overflow: hidden;
	/* Ensure the inner span doesn't overflow */
}

.skill-bar span {
	display: block;
	height: 100%;
	background-color: #26BDE2;
	border-radius: 5px;
	transition: width 0.3s ease;
	/* Smooth transition */
	padding-left: 2px;
}

/* Projects Section */
#projects {
	padding: 40px 20px;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.project-item {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.project-item img {
	width: 100%;
	height: auto;
	display: block;
}

.project-item:hover {
	transform: translateY(-10px);
}

.project-content {
	padding: 20px;
}

.project-item h3 {
	margin-bottom: 10px;
	color: #19486A;
}

.github-contribution-grid-snake {
	display: flex;
	/* Use flexbox to center the image */
	justify-content: center;
	/* Center horizontally */
	align-items: center;
	/* Center vertically, if needed */
	width: 70vw;
	/* Set width to 70% of the viewport width */
	margin: 0 auto;
	/* Center the element in its container */
}

.github-contribution-grid-snake img {
	max-width: 100%;
	/* Ensure the image scales properly */
	height: auto;
	/* Maintain aspect ratio */
}

/* Blogs Section */
#blogs {
	padding: 40px 20px;
}

.blogs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.blogs-item {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.blogs-item img {
	width: 100%;
	height: auto;
	display: block;
}

.blogs-item:hover {
	transform: translateY(-10px);
}

.blogs-content {
	padding: 20px;
}

.blogs-item h3 {
	margin-bottom: 10px;
	color: #19486A;
}

/* Contact Section */
#contact {
	background-color: #f4f4f4;
	padding: 40px 20px;
}

.contact-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 30px;
	/* Adds space between form and info */
}

.contact-form {
	flex: 1;
	padding: 20px;
	background-color: white;
	/* White background for the form */
	border-radius: 10px;
	/* Rounded corners */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	/* Soft shadow effect */
}

.contact-form label {
	display: block;
	margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 10px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.contact-info {
	flex: 1;
	text-align: left;
	background-color: transparent;
	/* Keeps the contact info unchanged */
}

.social-media a {
	margin: 0 5px;
	font-size: 1.5rem;
	color: #19486A;
	/* You can match your primary color scheme */
	text-decoration: none;
}

.social-media a:hover {
	color: #26BDE2;
	/* Change color on hover */
}


/* Send Message Button */
.contact-form button {
	width: 100%;
	padding: 10px 20px;
	background-color: #19486A;
	/* Navy Blue from your color scheme */
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 600;
	/* Match the weight with other sections */
	font-size: 1em;
	text-align: center;
	transition: background-color 0.3s ease;
}

.contact-form button:hover {
	background-color: #0A97D9;
	/* Lighter blue on hover */
}


/* Media Query for Responsiveness */
@media (max-width: 768px) {
	.contact-container {
		flex-direction: column;
	}

	.contact-form {
		margin-right: 0;
		margin-bottom: 20px;
	}

	.contact-info {
		width: 100%;
	}
}

.signature {
	width: 25%;
	margin-top: 10px;
	color: #0A97D9;
	border-top: 2px solid #19486A;
	/* Optional: add a decorative line above */
}

/* Footer */
footer {
	text-align: center;
	padding: 12px;
	background-color: #19486A;
	color: white;
	margin-top: 20px;
}

footer a {
	color: #0A97D9;
}
