/* ==================== 
   Global Styles
   ==================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #6366f1;
	--secondary-color: #ec4899;
	--accent-color: #8b5cf6;
	--dark-bg: #0f172a;
	--darker-bg: #020617;
	--card-bg: #1e293b;
	--text-primary: #f1f5f9;
	--text-secondary: #cbd5e1;
	--border-color: #334155;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Poppins", sans-serif;
	background-color: var(--dark-bg);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

/* ==================== 
   Typography
   ==================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

p {
	margin-bottom: 1rem;
	color: var(--text-secondary);
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition);
}

/* ==================== 
   Containers & Utilities
   ==================== */

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section-title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 3rem;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ==================== 
   Buttons
   ==================== */

.btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 1rem;
	border: none;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
	text-align: center;
}

.btn-primary {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--accent-color)
	);
	color: white;
	box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
	background: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

/* ==================== 
   Navigation Bar
   ==================== */

.navbar {
	position: sticky;
	top: 0;
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
	transition: var(--transition);
}

.navbar-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.navbar-logo {
	font-size: 1.5rem;
	font-weight: 700;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.navbar-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-link {
	font-weight: 500;
	color: var(--text-secondary);
	position: relative;
	padding-bottom: 0.25rem;
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	transition: width 0.3s ease;
}

.nav-link:hover::after {
	width: 100%;
}

.nav-link.active {
	color: var(--primary-color);
}

.nav-link.active::after {
	width: 100%;
}

/* ==================== 
   Hero Section
   ==================== */

.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
	background: linear-gradient(
		135deg,
		rgba(99, 102, 241, 0.1),
		rgba(139, 92, 246, 0.1)
	);
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(
		circle,
		rgba(99, 102, 241, 0.1) 0%,
		transparent 70%
	);
	animation: float 20s ease-in-out infinite;
	pointer-events: none;
}

.hero-content {
	text-align: center;
	position: relative;
	z-index: 1;
	max-width: 600px;
}

.profile-image-wrapper {
	margin-bottom: 2rem;
	display: inline-block;
}

.profile-image {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
	border: 3px solid var(--primary-color);
	animation: pulse 3s ease-in-out infinite;
}

.hero-title {
	font-size: 3rem;
	margin: 1.5rem 0 0.5rem 0;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: 1.5rem;
	color: var(--text-secondary);
	margin-bottom: 1rem;
	font-weight: 500;
}

.hero-description {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	color: var(--text-secondary);
}

/* ==================== 
   About Section
   ==================== */

.about {
	padding: 5rem 1.5rem;
	background: linear-gradient(
		180deg,
		rgba(99, 102, 241, 0.05) 0%,
		transparent 100%
	);
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-text {
	color: var(--text-secondary);
}

.about-description {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	line-height: 1.8;
}

.skills-section h3 {
	color: var(--primary-color);
	margin: 2rem 0 1.5rem 0;
	font-size: 1.3rem;
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.skill-tag {
	background: rgba(99, 102, 241, 0.1);
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	text-align: center;
	font-weight: 600;
	transition: var(--transition);
}

.skill-tag:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

.about-image {
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
	opacity: 0.9;
	filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.2));
}

/* ==================== 
   Projects Section
   ==================== */

.projects {
	padding: 5rem 1.5rem;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2.5rem;
	margin-top: 3rem;
}

.project-card {
	background: var(--card-bg);
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.project-image {
	width: 100%;
	height: 200px;
	background: linear-gradient(
		135deg,
		rgba(99, 102, 241, 0.1),
		rgba(139, 92, 246, 0.1)
	);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.project-image svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-title {
	font-size: 1.5rem;
	padding: 1.5rem 1.5rem 0 1.5rem;
	color: var(--text-primary);
}

.project-description {
	padding: 0 1.5rem;
	color: var(--text-secondary);
	flex-grow: 1;
}

.project-tech {
	padding: 0 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.tech-tag {
	background: rgba(99, 102, 241, 0.2);
	color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 2rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.project-card .btn {
	margin: 1rem 1.5rem 1.5rem 1.5rem;
	display: block;
	text-align: center;
}

/* ==================== 
   Contact Section
   ==================== */

.contact {
	padding: 5rem 1.5rem;
	background: linear-gradient(
		180deg,
		rgba(139, 92, 246, 0.05) 0%,
		transparent 100%
	);
}

.contact-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	max-width: 1000px;
	margin: 0 auto;
}

.contact-form-wrapper {
	background: var(--card-bg);
	padding: 2.5rem;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form {
	display: flex;
	flex-direction: column;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
	font-weight: 600;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 0.875rem;
	background: rgba(99, 102, 241, 0.1);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	color: var(--text-primary);
	font-family: "Poppins", sans-serif;
	font-size: 1rem;
	transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.15);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
	resize: vertical;
	font-family: "Poppins", sans-serif;
}

.contact-form .btn {
	margin-top: 1rem;
}

.social-links {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.social-links h3 {
	color: var(--text-primary);
	margin-bottom: 2rem;
	font-size: 1.3rem;
}

.social-icons {
	display: flex;
	gap: 2rem;
	margin-bottom: 2rem;
}

.social-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(99, 102, 241, 0.1);
	border: 2px solid var(--border-color);
	border-radius: 0.5rem;
	color: var(--primary-color);
	transition: var(--transition);
}

.social-icon:hover {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
	transform: translateY(-5px);
}

.social-icon svg {
	width: 24px;
	height: 24px;
}

/* ==================== 
   Footer
   ==================== */

.footer {
	background: var(--darker-bg);
	border-top: 1px solid var(--border-color);
	padding: 2rem 1.5rem;
	text-align: center;
}

.footer .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer p {
	margin: 0;
	color: var(--text-secondary);
}

.footer-social {
	display: flex;
	gap: 1rem;
}

.footer-icon {
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(99, 102, 241, 0.1);
	border-radius: 0.25rem;
	color: var(--primary-color);
	transition: var(--transition);
}

.footer-icon:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-3px);
}

.footer-icon svg {
	width: 18px;
	height: 18px;
}

/* ==================== 
   Animations
   ==================== */

@keyframes float {
	0%,
	100% {
		transform: translate(0, 0px);
	}
	50% {
		transform: translate(0, 30px);
	}
}

@keyframes pulse {
	0%,
	100% {
		box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
	}
	50% {
		box-shadow: 0 20px 80px rgba(99, 102, 241, 0.5);
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	opacity: 0;
	animation: fadeIn 0.8s ease-out forwards;
}

.fade-in:nth-of-type(1) {
	animation-delay: 0.1s;
}

.fade-in:nth-of-type(2) {
	animation-delay: 0.2s;
}

.fade-in:nth-of-type(3) {
	animation-delay: 0.3s;
}

.fade-in:nth-of-type(4) {
	animation-delay: 0.4s;
}

.fade-in:nth-of-type(5) {
	animation-delay: 0.5s;
}

/* ==================== 
   Responsive Design
   ==================== */

@media (max-width: 768px) {
	.navbar-menu {
		gap: 1rem;
	}

	.hero-title {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1.2rem;
	}

	.section-title {
		font-size: 2rem;
	}

	.about-content,
	.contact-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.skills-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.footer .container {
		flex-direction: column;
		gap: 1.5rem;
	}

	.contact-form-wrapper {
		padding: 1.5rem;
	}

	.social-links {
		text-align: center;
	}

	.social-icons {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.navbar-logo {
		font-size: 1.2rem;
	}

	.navbar-menu {
		gap: 0.8rem;
		font-size: 0.9rem;
	}

	.hero-title {
		font-size: 1.5rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.hero-description {
		font-size: 0.95rem;
	}

	.section-title {
		font-size: 1.5rem;
		margin-bottom: 2rem;
	}

	.profile-image {
		width: 120px;
		height: 120px;
	}

	.skills-grid {
		grid-template-columns: 1fr;
	}

	.about,
	.projects,
	.contact {
		padding: 3rem 1rem;
	}

	.btn {
		padding: 0.75rem 1.5rem;
		font-size: 0.9rem;
	}

	.project-card .btn {
		margin: 0.75rem 1rem 1rem 1rem;
	}

	.footer p {
		font-size: 0.9rem;
	}

	.footer-social {
		gap: 0.5rem;
	}

	.footer-icon {
		width: 30px;
		height: 30px;
	}
}

/* ==================== 
   Print Styles
   ==================== */

@media print {
	.navbar,
	.footer {
		display: none;
	}

	body {
		background: white;
		color: black;
	}
}
