/* Modern Landing Page Styles */

:root {
	--primary-color: #2563eb;
	--secondary-color: #1e40af;
	--accent-color: #f59e0b;
	--text-dark: #1f2937;
	--text-light: #6b7280;
	--bg-light: #f9fafb;
	--bg-white: #ffffff;
	--border-color: #e5e7eb;
	--shadow-color: rgba(0, 0, 0, 0.08);
	--shadow-hover-color: rgba(0, 0, 0, 0.15);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	:root {
		--text-dark: #f9fafb;
		--text-light: #d1d5db;
		--bg-light: #1f2937;
		--bg-white: #111827;
		--border-color: #374151;
		--shadow-color: rgba(0, 0, 0, 0.3);
		--shadow-hover-color: rgba(0, 0, 0, 0.5);
	}
}

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	color: var(--text-dark);
	line-height: 1.6;
	overflow-x: hidden;
}

/* Hero Section */
.hero-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="%23ffffff" fill-opacity="0.05" width="50" height="50"/></svg>');
	animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
	0% {
		transform: translate(0, 0);
	}
	100% {
		transform: translate(50px, 50px);
	}
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	text-align: center;
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	animation: fadeInUp 1s ease;
}

.hero-subtitle {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	opacity: 0.95;
	animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	opacity: 0.9;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	animation: fadeInUp 1s ease 0.4s both;
}

.profile-image {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	border: 5px solid white;
	margin: 0 auto 2rem;
	object-fit: cover;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	animation: fadeInUp 1s ease 0.6s both;
}

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

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

.btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.btn-primary {
	background: white;
	color: var(--primary-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
	background: transparent;
	color: white;
	border-color: white;
}

.btn-secondary:hover {
	background: white;
	color: var(--primary-color);
	transform: translateY(-2px);
}

/* Services Section */
.services-section {
	padding: 5rem 2rem;
	background: var(--bg-white);
}

.section-title {
	text-align: center;
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.section-subtitle {
	text-align: center;
	font-size: 1.2rem;
	color: var(--text-light);
	margin-bottom: 3rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

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

.service-card {
	background: var(--bg-white);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 2px 10px var(--shadow-color);
	transition: all 0.3s ease;
	text-align: center;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px var(--shadow-hover-color);
}

.service-icon {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.service-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.service-card p {
	color: var(--text-light);
	line-height: 1.6;
}

/* Skills Section */
.skills-section {
	padding: 5rem 2rem;
	background: var(--bg-light);
}

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

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

.skill-category {
	background: var(--bg-white);
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px var(--shadow-color);
}

.skill-category h4 {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	color: var(--primary-color);
	font-weight: 600;
}

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

.skill-tag {
	background: var(--bg-light);
	padding: 0.4rem 0.8rem;
	border-radius: 20px;
	font-size: 0.9rem;
	color: var(--text-dark);
}

/* Contact Section */
.contact-section {
	padding: 5rem 2rem;
	background: var(--bg-white);
}

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

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

.contact-method {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	background: var(--bg-light);
	border-radius: 8px;
	transition: all 0.3s ease;
	text-decoration: none;
	color: var(--text-dark);
}

.contact-method:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.contact-icon {
	font-size: 2rem;
}

.contact-info h4 {
	font-size: 1rem;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.contact-info p {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* Footer */
.footer {
	background: #0f172a;
	color: white;
	padding: 2rem;
	text-align: center;
}

@media (prefers-color-scheme: dark) {
	.footer {
		background: #020617;
	}
}

.footer-links {
	display: flex;
	gap: 2rem;
	justify-content: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.footer-links a {
	color: white;
	text-decoration: none;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.footer-links a:hover {
	opacity: 1;
}

.social-links {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	margin: 1.5rem 0;
}

.social-link {
	display: inline-block;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-link:hover {
	background: var(--primary-color);
	transform: translateY(-3px);
}

/* Tools Section */
.tools-section {
	padding: 5rem 2rem;
	background: var(--bg-light);
}

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

.tool-item {
	text-align: center;
	transition: transform 0.3s ease;
}

.tool-item:hover {
	transform: scale(1.05);
}

.tool-item img {
	max-width: 100px;
	height: auto;
	margin: 0 auto 1rem;
	display: block;
	filter: grayscale(50%);
	transition: filter 0.3s ease;
}

@media (prefers-color-scheme: dark) {
	.tool-item img {
		filter: grayscale(50%) brightness(0.9);
	}
}

.tool-item:hover img {
	filter: grayscale(0%);
}

@media (prefers-color-scheme: dark) {
	.tool-item:hover img {
		filter: grayscale(0%) brightness(0.9);
	}
}

.tool-item h4 {
	font-size: 1rem;
	color: var(--text-dark);
}

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

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

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

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

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

	.btn {
		width: 100%;
		max-width: 300px;
	}
}

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

/* Loading Animation */
@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* Experience Section */
.experience-section {
	padding: 5rem 2rem;
	background: var(--bg-white);
}

.timeline {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
	padding-left: 50px;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--primary-color);
}

.timeline-item {
	position: relative;
	margin-bottom: 3rem;
	padding-bottom: 2rem;
}

.timeline-marker {
	position: absolute;
	left: -35px;
	top: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--primary-color);
	border: 3px solid var(--bg-white);
	box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
	background: var(--bg-light);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 2px 10px var(--shadow-color);
	transition: all 0.3s ease;
}

.timeline-content:hover {
	transform: translateX(5px);
	box-shadow: 0 5px 20px var(--shadow-hover-color);
}

.timeline-header {
	margin-bottom: 1rem;
}

.timeline-header h3 {
	font-size: 1.5rem;
	color: var(--text-dark);
	margin-bottom: 0.5rem;
}

.timeline-company {
	display: inline-block;
	font-weight: 600;
	color: var(--primary-color);
	margin-right: 1rem;
}

.timeline-date {
	color: var(--text-light);
	font-size: 0.95rem;
}

.timeline-description {
	color: var(--text-light);
	line-height: 1.7;
	margin-bottom: 1rem;
}

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

.achievement-tag {
	background: var(--bg-white);
	padding: 0.4rem 0.8rem;
	border-radius: 20px;
	font-size: 0.85rem;
	color: var(--primary-color);
	border: 1px solid var(--border-color);
}

/* Education Section */
.education-section {
	padding: 5rem 2rem;
	background: var(--bg-light);
}

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

.education-card {
	background: var(--bg-white);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 2px 10px var(--shadow-color);
	transition: all 0.3s ease;
	text-align: center;
}

.education-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px var(--shadow-hover-color);
}

.education-icon {
	font-size: 3rem;
	color: var(--accent-color);
	margin-bottom: 1rem;
}

.education-card h3 {
	font-size: 1.3rem;
	color: var(--text-dark);
	margin-bottom: 0.5rem;
}

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

.education-details {
	color: var(--text-light);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Open Source Section */
.opensource-section {
	padding: 5rem 2rem;
	background: var(--bg-white);
}

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

.opensource-card {
	background: var(--bg-light);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 2px 10px var(--shadow-color);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.opensource-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px var(--shadow-hover-color);
}

.opensource-icon {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.opensource-card h3 {
	font-size: 1.5rem;
	color: var(--text-dark);
	margin-bottom: 1rem;
}

.opensource-card p {
	color: var(--text-light);
	line-height: 1.6;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.opensource-link {
	display: inline-block;
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.opensource-link:hover {
	color: var(--secondary-color);
	transform: translateX(3px);
}

.opensource-link i {
	font-size: 0.85rem;
	margin-left: 0.25rem;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
	.timeline {
		padding-left: 30px;
	}

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

	.timeline-marker {
		left: -25px;
	}

	.timeline-content {
		padding: 1.5rem;
	}

	.timeline-header h3 {
		font-size: 1.3rem;
	}

	.timeline-company,
	.timeline-date {
		display: block;
		margin-bottom: 0.5rem;
	}

	.education-grid,
	.opensource-grid {
		grid-template-columns: 1fr;
	}
}

/* Print Styles for PDF Export */
@media print {
	/* Hide non-essential elements */
	.hero-section::before,
	.cta-buttons,
	.social-links,
	.footer-links,
	button {
		display: none !important;
	}

	/* Reset backgrounds and colors for print */
	body {
		background: white !important;
		color: black !important;
	}

	.hero-section {
		background: white !important;
		color: black !important;
		min-height: auto !important;
		padding: 20pt 0 !important;
	}

	.services-section,
	.skills-section,
	.tools-section,
	.contact-section {
		background: white !important;
		page-break-inside: avoid;
	}

	.service-card,
	.skill-category {
		box-shadow: none !important;
		border: 1px solid #ddd !important;
	}
}
