/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700;800&display=swap");

/* Base Styles */
:root {
	--primary-color: #6c63ff;
	--secondary-color: #33d9b2;
	--dark-color: #1a1a2e;
	--darker-color: #16213e;
	--light-color: #e6e6e6;
	--text-color: #f0f0f0;
	--text-secondary: #aaaaaa;
	--transition: all 0.3s ease;
	--shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Poppins", sans-serif;
	background-color: var(--dark-color);
	color: var(--text-color);
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: var(--text-color);
	transition: var(--transition);
}

ul {
	list-style: none;
}

.container {
	width: 100%;
	min-height: 100vh;
}

.btn {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--text-color);
	padding: 0.8rem 1.5rem;
	border-radius: 50px;
	font-weight: 500;
	transition: var(--transition);
	cursor: pointer;
	border: 2px solid var(--primary-color);
}

.btn:hover {
	background-color: transparent;
	color: var(--primary-color);
}

.btn-outline {
	background-color: transparent;
	color: var(--primary-color);
}

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

.btn-sm {
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}

.section {
	padding: 100px 5%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.section-title {
	text-align: center;
	margin-bottom: 50px;
}

.section-title h2 {
	font-size: 2.5rem;
	font-weight: 700;
	font-family: "Raleway", sans-serif;
	position: relative;
	display: inline-block;
}

.underline {
	width: 80px;
	height: 4px;
	background: var(--primary-color);
	margin: 8px auto 0;
	border-radius: 5px;
}

/* Navigation */
nav {
	position: fixed;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 5%;
	z-index: 1000;
	background-color: rgba(26, 26, 46, 0.9);
	backdrop-filter: blur(8px);
	box-shadow: var(--shadow);
	transition: var(--transition);
}

.logo a {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	font-family: "Raleway", sans-serif;
}

.nav-links {
	display: flex;
	gap: 1.5rem;
}

.nav-links li a {
	font-weight: 500;
	position: relative;
}

.nav-links li a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	bottom: -5px;
	left: 0;
	transition: var(--transition);
}

.nav-links li a:hover {
	color: var(--primary-color);
}

.nav-links li a:hover::after {
	width: 100%;
}

#nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: none;
	cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	display: block;
	background: var(--text-color);
	height: 2px;
	width: 2rem;
	border-radius: 2px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
	content: "";
	position: absolute;
	transition: var(--transition);
}

.nav-toggle-label span::before {
	transform: translateY(-8px);
}

.nav-toggle-label span::after {
	transform: translateY(8px);
}

/* Home Section */
.home {
	position: relative;
	background-color: var(--darker-color);
	overflow: hidden;
}

.home::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(
		circle,
		rgba(108, 99, 255, 0.1) 0%,
		rgba(0, 0, 0, 0) 70%
	);
	z-index: 0;
}

.home-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
}

.home-content h1 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	font-family: "Raleway", sans-serif;
	animation: fadeInUp 1s ease;
}

.home-content h1 span,
.home-content h2 span {
	color: var(--primary-color);
}

.home-content h2 {
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	opacity: 0.9;
	font-family: "Raleway", sans-serif;
	animation: fadeInUp 1s ease 0.2s;
	animation-fill-mode: both;
}

.home-content p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	max-width: 600px;
	animation: fadeInUp 1s ease 0.4s;
	animation-fill-mode: both;
}

.home-buttons {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	animation: fadeInUp 1s ease 0.6s;
	animation-fill-mode: both;
}

.social-icons {
	display: flex;
	gap: 1rem;
	animation: fadeInUp 1s ease 0.8s;
	animation-fill-mode: both;
}

.social-icons a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	transition: var(--transition);
}

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

.scroll-down {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	animation: fadeIn 1s ease 1s both, bounce 2s ease-in-out infinite 2s;
}

.scroll-down span {
	font-size: 0.9rem;
	opacity: 0.7;
}

.scroll-down i {
	font-size: 1.2rem;
	color: var(--primary-color);
}

/* About Section */
.about {
	background-color: var(--dark-color);
}

.about-content {
	display: flex;
	justify-content: center;
	gap: 50px;
	flex-wrap: wrap;
}

.about-text {
	flex: 1;
	min-width: 300px;
	max-width: 800px;
}

.about-text p {
	margin-bottom: 1.5rem;
	opacity: 0.9;
}

.personal-info {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.info-item {
	margin-bottom: 0.5rem;
}

.info-title {
	font-weight: 600;
	color: var(--primary-color);
	margin-right: 0.5rem;
}

.info-value {
	opacity: 0.9;
}

/* Skills Section */
.skills {
	background-color: var(--darker-color);
}

.skills-content {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.skill-card {
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	padding: 30px;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.skill-card::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	height: 2px;
	background: linear-gradient(
		90deg,
		var(--darker-color),
		var(--primary-color),
		var(--darker-color)
	);
	transform: scaleX(0);
	transition: transform 0.5s ease;
}

.skill-card:hover::before {
	transform: scaleX(1);
}

.skill-card:hover {
	transform: translateY(-10px);
	background-color: rgba(255, 255, 255, 0.08);
}

.skill-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(108, 99, 255, 0.2);
	margin-bottom: 20px;
}

.skill-icon i {
	font-size: 1.8rem;
	color: var(--primary-color);
}

.skill-card h3 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	font-weight: 600;
}

.skill-card p {
	margin-bottom: 20px;
	opacity: 0.8;
}

.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.skill-tags span {
	background-color: rgba(108, 99, 255, 0.2);
	color: var(--primary-color);
	font-size: 0.8rem;
	padding: 0.3rem 0.8rem;
	border-radius: 50px;
}

/* Education & Experience Sections */
.education,
.experience {
	background-color: var(--dark-color);
}

.timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background-color: rgba(108, 99, 255, 0.3);
}

.timeline-item {
	position: relative;
	width: 100%;
	padding: 20px 0;
}

.timeline-icon {
	position: absolute;
	left: 50%;
	top: 20px;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--primary-color);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2;
}

.timeline-icon i {
	color: var(--text-color);
	font-size: 1.2rem;
}

.timeline-content {
	position: relative;
	width: 45%;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	box-shadow: var(--shadow);
	transition: var(--transition);
}

.timeline-content:hover {
	transform: translateY(-5px);
	background-color: rgba(255, 255, 255, 0.08);
}

.timeline-item:nth-child(odd) .timeline-content {
	margin-left: auto;
}

.timeline-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 5px;
}

.timeline-date {
	display: inline-block;
	padding: 5px 10px;
	background-color: rgba(108, 99, 255, 0.2);
	color: var(--primary-color);
	border-radius: 50px;
	font-size: 0.8rem;
	margin-bottom: 10px;
}

.timeline-content p {
	margin-bottom: 10px;
}

.timeline-content p:last-child {
	margin-bottom: 0;
}

/* Projects Section */
.projects {
	background-color: var(--darker-color);
}

/* Projects Section (continued) */
.projects-content {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 30px;
	justify-content: center;
	padding: 20px;
}

.project-card {
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	padding: 30px;
	transition: var(--transition);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.project-card::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	height: 2px;
	background: linear-gradient(
		90deg,
		var(--darker-color),
		var(--secondary-color),
		var(--darker-color)
	);
	transform: scaleX(0);
	transition: transform 0.5s ease;
}

.project-card:hover {
	transform: translateY(-10px);
	background-color: rgba(255, 255, 255, 0.08);
}

.project-card:hover::before {
	transform: scaleX(1);
}

.project-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.project-header h3 {
	font-size: 1.3rem;
	font-weight: 600;
}

.project-date {
	font-size: 0.8rem;
	color: var(--text-secondary);
}

.project-subtitle {
	color: var(--secondary-color);
	margin-bottom: 15px;
	font-size: 0.9rem;
}

.project-description {
	margin-bottom: 20px;
}

.project-description p {
	margin-bottom: 10px;
	opacity: 0.9;
}

.project-description ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 10px;
}

.project-description ul li {
	margin-bottom: 5px;
	opacity: 0.8;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.project-tags span {
	background-color: rgba(51, 217, 178, 0.2);
	color: var(--secondary-color);
	font-size: 0.8rem;
	padding: 0.3rem 0.8rem;
	border-radius: 50px;
}

.project-links {
	display: flex;
	gap: 10px;
}

/* Certifications Section */
.certifications {
	background-color: var(--dark-color);
}

.certifications-content {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.certification-card {
	display: flex;
	gap: 20px;
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	padding: 20px;
	transition: var(--transition);
	box-shadow: var(--shadow);
}

.certification-card:hover {
	transform: translateY(-5px);
	background-color: rgba(255, 255, 255, 0.08);
}

.certification-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: rgba(51, 217, 178, 0.2);
	flex-shrink: 0;
}

.certification-icon i {
	font-size: 1.3rem;
	color: var(--secondary-color);
}

.certification-details {
	flex: 1;
}

.certification-details h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 5px;
}

.certification-details p {
	margin-bottom: 5px;
	opacity: 0.8;
}

.certification-date {
	display: inline-block;
	font-size: 0.8rem;
	color: var(--text-secondary);
	margin-bottom: 10px;
}

/* Contact Section */
.contact {
	background-color: var(--darker-color);
}

.contact-content {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
}

.contact-info {
	flex: 1;
	min-width: 300px;
}

.contact-item {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}

.contact-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: rgba(108, 99, 255, 0.2);
	flex-shrink: 0;
}

.contact-icon i {
	font-size: 1.3rem;
	color: var(--primary-color);
}

.contact-text h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 5px;
}

.contact-form {
	flex: 1;
	min-width: 300px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 15px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 5px;
	color: var(--text-color);
	font-family: "Poppins", sans-serif;
	transition: var(--transition);
}

.form-group textarea {
	min-height: 150px;
	resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

/* Footer */
footer {
	background-color: var(--darker-color);
	padding: 30px 5%;
	text-align: center;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 20px;
}

.footer-social a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	transition: var(--transition);
}

.footer-social a:hover {
	background-color: var(--primary-color);
	transform: translateY(-5px);
}

footer p {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

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

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0) translateX(-50%);
	}

	40% {
		transform: translateY(-10px) translateX(-50%);
	}

	60% {
		transform: translateY(-5px) translateX(-50%);
	}
}

/* Reveal animation for sections */
.section {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.active {
	opacity: 1;
	transform: translateY(0);
}

/* Media Queries */
@media screen and (max-width: 992px) {
	.section {
		padding: 80px 5%;
	}

	.section-title h2 {
		font-size: 2.2rem;
	}

	.home-content h1 {
		font-size: 2.5rem;
	}

	.home-content h2 {
		font-size: 1.8rem;
	}

	.timeline::before {
		left: 20px;
	}

	.timeline-icon {
		left: 20px;
		transform: translateX(0);
	}

	.timeline-content {
		width: calc(100% - 60px);
		margin-left: 60px !important;
	}
}

@media screen and (max-width: 768px) {
	.section {
		padding: 70px 4%;
	}

	.home-content h1 {
		font-size: 2.2rem;
	}

	.home-content h2 {
		font-size: 1.5rem;
	}

	.nav-toggle-label {
		display: block;
		position: relative;
	}

	.nav-links {
		position: absolute;
		top: 100%;
		right: 0;
		background-color: var(--darker-color);
		width: 80%;
		max-width: 300px;
		flex-direction: column;
		align-items: center;
		padding: 1rem 0;
		border-radius: 0 0 10px 10px;
		box-shadow: var(--shadow);
		transform: translateX(100%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.3s ease, opacity 0.3s ease;
	}

	#nav-toggle:checked ~ .nav-links {
		transform: translateX(0);
		opacity: 1;
		pointer-events: auto;
	}

	#nav-toggle:checked ~ .nav-toggle-label span {
		background: transparent;
	}

	#nav-toggle:checked ~ .nav-toggle-label span::before {
		transform: rotate(45deg);
	}

	#nav-toggle:checked ~ .nav-toggle-label span::after {
		transform: rotate(-45deg);
	}

	.projects-content,
	.skills-content,
	.certifications-content {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 576px) {
	.section {
		padding: 60px 3%;
	}

	.section-title h2 {
		font-size: 2rem;
	}

	.home-content h1 {
		font-size: 2rem;
	}

	.home-buttons {
		flex-direction: column;
		gap: 1rem;
	}

	.btn {
		width: 100%;
		text-align: center;
	}

	.timeline-content {
		padding: 15px;
	}

	.personal-info {
		grid-template-columns: 1fr;
	}
}

/* Adding a scroll to top button */
.scroll-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: var(--primary-color);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	transition: var(--transition);
	box-shadow: var(--shadow);
}

.scroll-top.active {
	opacity: 1;
	pointer-events: auto;
}

.scroll-top:hover {
	background-color: var(--secondary-color);
}

.scroll-top i {
	color: var(--text-color);
	font-size: 1.2rem;
}
