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

body {
	font-family: var(--font-sans);
	line-height: 1.6;
	color: var(--foreground);
	background: var(--background);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Modern Header Design */
header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	transition: all 0.3s ease;
}

.dark header {
	background: rgba(0, 0, 0, 0.8);
}

header.scrolled {
	background: var(--card);
	box-shadow: var(--shadow-lg);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	position: relative;
}

/* Logo Design */
.logo {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--primary);
	font-family: var(--font-sans);
	text-decoration: none;
	position: relative;
	transition: all 0.3s ease;
}

.logo::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--chart-1));
	border-radius: 2px;
	transition: width 0.3s ease;
}

.logo:hover::after {
	width: 100%;
}

/* Navigation Links */
.nav-links {
	display: flex;
	list-style: none;
	gap: 0;
	align-items: center;
	margin: 0;
}

.nav-links li {
	position: relative;
}

.nav-links a {
	text-decoration: none;
	color: var(--muted-foreground);
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.75rem 1.25rem;
	border-radius: calc(var(--radius) + 4px);
	transition: all 0.3s ease;
	position: relative;
	display: block;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--primary);
	background: var(--accent);
	transform: translateY(-1px);
}

.nav-links a::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, var(--primary), var(--chart-1));
	border-radius: calc(var(--radius) + 4px);
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.3s ease;
	z-index: -1;
}

.nav-links a.active::before {
	opacity: 0.1;
	transform: scale(1);
}

/* Header Actions Container */
.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
	position: relative;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 8px);
	padding: 0.75rem;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
}

.theme-toggle:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
	border-color: var(--primary);
}

.theme-toggle i {
	color: var(--foreground);
	font-size: 1.1rem;
	transition: all 0.3s ease;
}

.theme-toggle:hover i {
	color: var(--primary);
	transform: rotate(15deg);
}

/* Mobile Navigation */
.mobile-nav-toggle {
	display: none;
	flex-direction: column;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	position: relative;
	z-index: 1001;
}

.mobile-nav-toggle span {
	width: 25px;
	height: 3px;
	background: var(--foreground);
	margin: 3px 0;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.mobile-nav-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: var(--card);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 999;
	padding: 5rem 2rem 2rem;
}

.mobile-nav.active {
	transform: translateX(0);
}

.mobile-nav-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-nav-links li {
	margin-bottom: 1rem;
}

.mobile-nav-links a {
	display: block;
	color: var(--foreground);
	text-decoration: none;
	font-size: 1.25rem;
	font-weight: 600;
	padding: 1rem 0;
	border-bottom: 1px solid var(--border);
	transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
	color: var(--primary);
	padding-left: 1rem;
}

/* Header Navigation Animation */
@keyframes slideInFromTop {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

header {
	animation: slideInFromTop 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
	nav {
		padding: 0.75rem 0;
	}

	.logo {
		font-size: 1.5rem;
	}

	.nav-links {
		display: none;
	}

	.mobile-nav-toggle {
		display: flex;
	}

	.theme-toggle {
		padding: 0.5rem;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 16px;
	}

	.logo {
		font-size: 1.25rem;
	}
}

/* Additional Header Effects */
.nav-links li:nth-child(odd) a:hover {
	animation: bounceIn 0.3s ease;
}

.nav-links li:nth-child(even) a:hover {
	animation: slideUp 0.3s ease;
}

@keyframes bounceIn {
	0% {
		transform: scale(0.9) translateY(-1px);
	}
	50% {
		transform: scale(1.05) translateY(-2px);
	}
	100% {
		transform: scale(1) translateY(-1px);
	}
}

@keyframes slideUp {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-1px);
	}
}

/* Hero Section */
.hero {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	color: var(--primary-foreground);
	padding: 120px 0 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	animation: fadeInUp 0.8s ease;
	font-family: var(--font-sans);
}

.hero .subtitle {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	opacity: 0.9;
	animation: fadeInUp 0.8s ease 0.2s both;
	font-weight: 500;
}

.hero p {
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto 2rem;
	opacity: 0.8;
	animation: fadeInUp 0.8s ease 0.4s both;
	line-height: 1.7;
}

.cta-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
	padding: 12px 24px;
	border: none;
	border-radius: var(--radius);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	font-family: var(--font-sans);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-primary {
	background: var(--card);
	color: var(--card-foreground);
	box-shadow: var(--shadow-md);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-xl);
}

.btn-secondary {
	background: transparent;
	color: var(--primary-foreground);
	border: 2px solid var(--primary-foreground);
}

.btn-secondary:hover {
	background: var(--card);
	color: var(--card-foreground);
}

/* Sections */
section {
	padding: 80px 0;
}

.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 3rem;
	color: var(--foreground);
	font-family: var(--font-sans);
}

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

.about-content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 4rem;
	align-items: center;
}

.about-image {
	text-align: center;
}

.profile-img {
	width: 250px;
	height: 250px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	box-shadow: var(--shadow-xl);
	overflow: hidden;
	border: 4px solid var(--primary);
	background: var(--card);
}

.profile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.profile-img:hover img {
	transform: scale(1.05);
}

.about-text h3 {
	font-size: 1.8rem;
	margin-bottom: 1rem;
	color: var(--primary);
	font-family: var(--font-sans);
}

.about-text p {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	color: var(--muted-foreground);
	line-height: 1.7;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 2rem;
}

.stat {
	text-align: center;
	padding: 1.5rem;
	background: var(--muted);
	border-radius: calc(var(--radius) + 4px);
	border: 1px solid var(--border);
	transition: all 0.3s ease;
}

.stat:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary);
	font-family: var(--font-mono);
}

.stat-label {
	color: var(--muted-foreground);
	font-weight: 500;
}

/* Experience Section */
.experience {
	background: var(--muted);
}

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

.timeline-item {
	background: var(--card);
	padding: 2rem;
	border-radius: calc(var(--radius) + 4px);
	margin-bottom: 2rem;
	border-left: 4px solid var(--primary);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.timeline-item:hover {
	box-shadow: var(--shadow-md);
	transform: translateX(4px);
}

.timeline-item h3 {
	font-size: 1.3rem;
	color: var(--foreground);
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.company {
	color: var(--primary);
	font-weight: 600;
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
}

.duration {
	color: var(--muted-foreground);
	font-size: 0.9rem;
	margin-bottom: 1rem;
	font-family: var(--font-mono);
}

.timeline-item p {
	color: var(--muted-foreground);
	line-height: 1.6;
}

/* Education Section */
.education {
	background: var(--card);
}

.education-content {
	max-width: 800px;
	margin: 0 auto;
}

.education-item {
	background: var(--muted);
	padding: 2rem;
	border-radius: calc(var(--radius) + 4px);
	border-left: 4px solid var(--secondary);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
}

.education-item h3 {
	font-size: 1.4rem;
	color: var(--foreground);
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.university {
	color: var(--secondary);
	font-weight: 600;
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.duration,
.location {
	color: var(--muted-foreground);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	font-family: var(--font-mono);
}

.education-description {
	margin-top: 1rem;
}

.education-description p {
	color: var(--muted-foreground);
	margin-bottom: 0.75rem;
	line-height: 1.6;
}

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

.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.skill-category {
	background: var(--card);
	padding: 2rem;
	border-radius: calc(var(--radius) + 4px);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
}

.skill-category:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.skill-category h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
	color: var(--foreground);
	font-weight: 600;
	text-align: center;
}

.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.skill-tag {
	background: var(--accent);
	color: var(--accent-foreground);
	padding: 0.5rem 1rem;
	border-radius: calc(var(--radius) + 8px);
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.skill-tag:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

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

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
}

.project-card {
	background: var(--card);
	border-radius: calc(var(--radius) + 4px);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.project-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-xl);
}

.project-header {
	background: linear-gradient(135deg, var(--chart-4) 0%, var(--chart-2) 100%);
	color: var(--primary-foreground);
	padding: 1.5rem;
	position: relative;
}

.project-content {
	padding: 1.5rem;
	background: var(--card);
}

.project-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.project-description {
	color: var(--muted-foreground);
	margin-bottom: 1rem;
	line-height: 1.6;
}

.project-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tech-tag {
	background: var(--muted);
	color: var(--muted-foreground);
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius);
	font-size: 0.8rem;
	font-family: var(--font-mono);
	border: 1px solid var(--border);
}

.project-links {
	display: flex;
	gap: 1rem;
}

.project-link {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	transition: all 0.3s ease;
}

.project-link:hover {
	color: var(--chart-4);
	transform: translateX(2px);
}

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

.cert-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.cert-category h3 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: var(--foreground);
	text-align: center;
	font-weight: 600;
}

.cert-item,
.achievement-item {
	background: var(--card);
	padding: 1.5rem;
	border-radius: calc(var(--radius) + 4px);
	margin-bottom: 1rem;
	box-shadow: var(--shadow-sm);
	border-left: 4px solid var(--accent);
	border: 1px solid var(--border);
	transition: all 0.3s ease;
}

.cert-item:hover,
.achievement-item:hover {
	box-shadow: var(--shadow-md);
	transform: translateX(4px);
}

.cert-item h4,
.achievement-item h4 {
	font-size: 1.1rem;
	color: var(--foreground);
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.cert-item p,
.achievement-item p {
	color: var(--muted-foreground);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Contact Section */
.contact {
	background: var(--card);
	text-align: center;
}

.contact-content {
	max-width: 600px;
	margin: 0 auto;
}

.contact-info {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-top: 2rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted-foreground);
	font-family: var(--font-mono);
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.social-link {
	width: 50px;
	height: 50px;
	background: var(--muted);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted-foreground);
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.social-link:hover {
	background: var(--primary);
	color: var(--primary-foreground);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Footer */
footer {
	background: var(--foreground);
	color: var(--background);
	text-align: center;
	padding: 2rem 0;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2.5rem;
	}

	.hero .subtitle {
		font-size: 1.2rem;
	}

	.about-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 2rem;
	}

	.cta-buttons {
		flex-direction: column;
		align-items: center;
	}

	.stats {
		grid-template-columns: 1fr;
	}

	.contact-info {
		flex-direction: column;
		gap: 1rem;
	}

	.cert-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.skills-grid {
		grid-template-columns: 1fr;
	}
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--muted);
}

::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--chart-4);
}

/* Loading animation */
.loading {
	opacity: 0;
	animation: fadeInUp 0.6s ease forwards;
}

/* Focus styles for accessibility */
*:focus {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}
