:root {
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--secondary: #64748b;
	--accent: #d4c306;
	--background: #0f172a;
	--surface: #1e293b;
	--text: #f8fafc;
	--text-secondary: #94a3b8;
	--success: #22c55e;
	--warning: #eab308;
	--error: #ef4444;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	line-height: 1.6;
	color: var(--text);
	background: var(--background);
}

/* Navigation */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--primary);
}

.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.nav-links a {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

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

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

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 4rem 2rem 2rem 2rem;
	position: relative;
	overflow: hidden;
}

.hero-content {
	max-width: 1200px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4rem;
}

.hero-text {
	flex: 1;
}

.hero-text h1 {
	font-size: 4rem;
	font-weight: 800;
	margin-bottom: 1rem;
	position: relative;
}

.glitch {
	position: relative;
	color: var(--text);
}

.glitch::before,
.glitch::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.glitch::before {
	left: 2px;
	text-shadow: -2px 0 var(--primary);
	clip: rect(24px, 550px, 90px, 0);
	animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
	left: -2px;
	text-shadow: -2px 0 var(--accent);
	clip: rect(85px, 550px, 140px, 0);
	animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
	0% {
		clip: rect(42px, 9999px, 44px, 0);
	}

	100% {
		clip: rect(35px, 9999px, 115px, 0);
	}
}

@keyframes glitch-anim-2 {
	0% {
		clip: rect(12px, 9999px, 59px, 0);
	}

	100% {
		clip: rect(65px, 9999px, 169px, 0);
	}
}

.subtitle {
	font-size: 1.5rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.hero-cta {
	display: flex;
	gap: 1rem;
}

.cta-button {
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.cta-button:first-child {
	background: var(--primary);
	color: white;
}

.cta-button.outline {
	border: 2px solid var(--primary);
	color: var(--primary);
}

.cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.hero-image {
	flex: 1;
	position: relative;
	display: flex;
	justify-content: center;
}

.profile-img {
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: url('https://utfs.io/f/SWlDljQVfkgYMXpRdptKO8KwYBPi4X3QDehCtHE9d1IrkWyo') center/cover;
	position: relative;
}

.floating-icons {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.floating-icons i {
	position: absolute;
	font-size: 2rem;
	color: var(--primary);
	animation: float 3s ease-in-out infinite;
}

.floating-icons i:nth-child(1) {
	top: 20%;
	left: 0;
	animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
	top: 60%;
	left: 20%;
	animation-delay: 0.5s;
}

.floating-icons i:nth-child(3) {
	top: 40%;
	right: 20%;
	animation-delay: 1s;
}

.floating-icons i:nth-child(4) {
	top: 80%;
	right: 0;
	animation-delay: 1.5s;
}

@keyframes float {
	0% {
		transform: translateY(0) rotate(0deg);
	}

	50% {
		transform: translateY(-5px) rotate(10deg);
	}

	100% {
		transform: translateY(0) rotate(0deg);
	}
}

/* Skills Section */
.skills {
	padding: 6rem 2rem;
	background: var(--surface);
}

.section-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 4rem;
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -1rem;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: var(--primary);
}

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

.skill-category {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 1rem;
	padding: 2rem;
	transition: transform 0.3s ease;
}

.skill-category:hover {
	transform: translateY(-5px);
}

.skill-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

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

.skill-bars {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.skill-bar {
	width: 100%;
}

.skill-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.progress-line {
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	position: relative;
	overflow: hidden;
}

.progress-line span {
	position: absolute;
	height: 100%;
	background: var(--primary);
	border-radius: 3px;
	transition: width 1s ease;
}

/* Experience Section */
.experience {
	padding: 6rem 2rem;
}

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

.timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background: var(--primary);
}

.timeline-item {
	margin-bottom: 4rem;
	position: relative;
	width: 50%;
}

.timeline-item:nth-child(odd) {
	left: 0;
	padding-right: 3rem;
}

.timeline-item:nth-child(even) {
	left: 50%;
	padding-left: 3rem;
}

.timeline-dot {
	position: absolute;
	width: 20px;
	height: 20px;
	background: var(--primary);
	border-radius: 50%;
	right: -10px;
	top: 0;
}

.timeline-item:nth-child(even) .timeline-dot {
	left: -10px;
}

.timeline-content {
	background: rgba(255, 255, 255, 0.05);
	padding: 2rem;
	border-radius: 1rem;
}

.timeline-date {
	color: var(--primary);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.timeline-content h3 {
	margin-bottom: 0.5rem;
}

.timeline-content h4 {
	color: var(--text-secondary);
	margin-bottom: 1rem;
}

.timeline-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.timeline-tags span {
	background: rgba(37, 99, 235, 0.2);
	color: var(--primary);
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.875rem;
}

/* Projects Section */
.projects {
	padding: 6rem 2rem;
	background: var(--surface);
}

.projects-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.project-card {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 1rem;
	overflow: hidden;
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.project-card:hover {
	transform: translateY(-5px);
}

.project-info {
	padding: 1.5rem;
	flex-grow: 1;
}

.project-info h3 {
	margin-bottom: 0.5rem;
}

.project-info p {
	color: var(--text-secondary);
	margin-bottom: 1rem;
}

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

.project-tags span {
	background: rgba(37, 99, 235, 0.2);
	color: var(--primary);
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.875rem;
}

.project-buttons {
	display: flex;
	gap: 1rem;
	padding: 1.5rem;
	justify-content: flex-end;
}

.project-buttons a {
	color: white;
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

.project-buttons a:hover {
	transform: scale(1.2);
}

/* Connect Section */
.connect {
	padding: 6rem 2rem;
}

.connect-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.connect-text {
	margin-bottom: 3rem;
}

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

.social-link {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 0.5rem;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: var(--text);
	text-decoration: none;
	transition: all 0.3s ease;
	min-width: 100px;
}

.social-link:hover {
	background: var(--primary);
	color: #333;
	transform: scale(1.1);
}

.social-link i {
	font-size: 2rem;
}

/* Footer */
.footer {
	padding: 2rem;
	background: var(--surface);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Misc Section */
.misc {
	padding: 6rem 2rem;
	background: var(--surface);
}

.misc-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.misc-item {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 1rem;
	padding: 2rem;
	text-align: center;
	transition: transform 0.3s ease;
}

.misc-item:hover {
	transform: translateY(-5px);
}

.misc-item i {
	font-size: 3rem;
	color: var(--primary);
	margin-bottom: 1rem;
}

.misc-item h3 {
	margin-bottom: 1rem;
}

.italic {
	font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero-content {
		flex-direction: column;
		text-align: center;
	}

	.hero-text h1 {
		font-size: 3rem;
	}

	.hero-cta {
		justify-content: center;
	}

	.timeline::before {
		left: 0;
	}

	.timeline-item {
		width: 100%;
		padding-left: 2rem !important;
	}

	.timeline-item:nth-child(even) {
		left: 0;
	}

	.timeline-dot {
		left: -10px !important;
		right: auto !important;
	}

	.timeline-content {
		width: calc(100vw - 100px);
	}

	.nav-links {
		display: none;
	}

	.menu-btn {
		display: block;
	}

	.misc-content {
		grid-template-columns: 1fr;
	}
}

/* Menu Button */
.menu-btn {
	display: none;
	cursor: pointer;
	width: 30px;
	height: 20px;
	position: relative;
}

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

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

.section-title,
.skill-category,
.timeline-item,
.project-card,
.misc-item {
	animation: fadeIn 1s ease forwards;
	opacity: 0;
}

.skill-category:nth-child(2) {
	animation-delay: 0.2s;
}

.skill-category:nth-child(3) {
	animation-delay: 0.4s;
}

.timeline-item:nth-child(2) {
	animation-delay: 0.3s;
}

.timeline-item:nth-child(3) {
	animation-delay: 0.6s;
}

.project-card:nth-child(2) {
	animation-delay: 0.3s;
}

.project-card:nth-child(3) {
	animation-delay: 0.6s;
}