/* Local copy of unified stylesheet for development */
/* Full copy of root styles/portfolio.css so the dev server serves the UI correctly */

/* Unified portfolio styles - merged from portfolio/src/index.css, portfolio/src/App.css, and root landing styles */

/* --- portfolio/src/index.css --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Dark Color Palette */
	--bg-primary: #0a0e27;
	--bg-secondary: #131829;
	--bg-tertiary: #1a1f3a;
	--accent-primary: #667eea;
	--accent-secondary: #764ba2;
	--accent-glow: rgba(102, 126, 234, 0.2);
	--text-primary: #e8eaed;
	--text-secondary: #9ca3af;
	--text-muted: #6b7280;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	background: var(--bg-primary);
	color: var(--text-primary);
	min-height: 100vh;
	overflow-x: hidden;
}

#root {
	min-height: 100vh;
}

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

/* Selection styling */
::selection {
	background: var(--accent-primary);
	color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
	width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
	background: var(--accent-secondary);
}

/* --- portfolio/src/App.css --- */
.app {
	min-height: 100vh;
}

/* Navigation */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(10, 14, 39, 0.9);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(102, 126, 234, 0.1);
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.6s ease;
}

.nav-visible {
	opacity: 1;
	transform: translateY(0);
}

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

.nav-logo {
	font-size: 1.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

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

.nav-link {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 0.5rem 0;
	position: relative;
	transition: color 0.3s ease;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
	transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
	color: var(--text-primary);
}

.nav-link.active::after {
	width: 100%;
}

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

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.1;
}

.hero-grid {
	width: 100%;
	height: 100%;
	background-image:
		linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
	background-size: 50px 50px;
	animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
	0% {
		transform: translate(0, 0);
	}

	100% {
		transform: translate(50px, 50px);
	}
}

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

.hero-text {
	opacity: 0;
	transform: translateY(30px);
}

.fade-in-up {
	animation: fadeInUp 1s ease forwards;
}

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

.hero-title {
	font-size: clamp(2.5rem, 8vw, 4.5rem);
	font-weight: 700;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.gradient-text {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	position: relative;
}

.hero-subtitle {
	font-size: clamp(1.2rem, 3vw, 1.8rem);
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

.hero-description {
	font-size: 1.1rem;
	color: var(--text-muted);
	max-width: 600px;
	margin: 0 auto 2.5rem;
	line-height: 1.6;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	padding: 0.875rem 2rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
	width: 300px;
	height: 300px;
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	color: white;
	box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px var(--accent-glow);
}

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

.btn-secondary:hover {
	background: rgba(102, 126, 234, 0.1);
	transform: translateY(-2px);
}

.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
}

.scroll-line {
	width: 2px;
	height: 40px;
	background: linear-gradient(to bottom, var(--accent-primary), transparent);
	animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

	0%,
	100% {
		opacity: 0.3;
		transform: translateY(0);
	}

	50% {
		opacity: 1;
		transform: translateY(10px);
	}
}

/* Section Styles */
section {
	padding: 6rem 0;
}

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

.section-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	margin-bottom: 3rem;
	text-align: center;
	background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

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

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

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

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

.project-card {
	background: var(--bg-secondary);
	border: 1px solid rgba(102, 126, 234, 0.1);
	border-radius: 12px;
	padding: 2rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.project-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

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

.project-card:hover {
	transform: translateY(-5px);
	border-color: rgba(102, 126, 234, 0.3);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.project-description {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

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

.tag {
	background: rgba(102, 126, 234, 0.1);
	color: var(--accent-primary);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
}

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

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

.skill-group {
	background: var(--bg-tertiary);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid rgba(102, 126, 234, 0.1);
	transition: all 0.3s ease;
}

.skill-group:hover {
	border-color: rgba(102, 126, 234, 0.3);
	transform: translateY(-3px);
}

.skill-category {
	font-size: 1.3rem;
	margin-bottom: 1.5rem;
	color: var(--accent-primary);
}

.skill-items {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.skill-item {
	color: var(--text-secondary);
	padding: 0.5rem;
	background: rgba(102, 126, 234, 0.05);
	border-radius: 6px;
	transition: all 0.3s ease;
}

.skill-item:hover {
	background: rgba(102, 126, 234, 0.1);
	color: var(--text-primary);
	transform: translateX(5px);
}

/* Contact Section */
.contact-content {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.contact-description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 2.5rem;
	line-height: 1.6;
}

.contact-links {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
}

.contact-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: var(--bg-secondary);
	border: 1px solid rgba(102, 126, 234, 0.2);
	border-radius: 8px;
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.contact-link:hover {
	background: rgba(102, 126, 234, 0.1);
	border-color: var(--accent-primary);
	transform: translateY(-3px);
}

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

/* Footer */
.footer {
	background: var(--bg-secondary);
	padding: 2rem 0;
	text-align: center;
	border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer p {
	color: var(--text-muted);
	font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.nav-links {
		gap: 1rem;
	}

	.nav-link {
		font-size: 0.85rem;
	}

	section {
		padding: 4rem 0;
	}

	.hero-buttons {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

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

	.contact-links {
		flex-direction: column;
	}

	.contact-link {
		width: 100%;
	}
}

/* --- Root landing page specific styles (particles, landing text, secret button, spinner) --- */
/* Keep these last so they can override the shared rules where necessary */

/* Particles */
.particles {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}

.particle {
	position: absolute;
	width: 2px;
	height: 2px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	animation: float 15s infinite ease-in-out;
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0) translateX(0);
		opacity: 0;
	}

	10% {
		opacity: 0.3;
	}

	90% {
		opacity: 0.3;
	}

	100% {
		transform: translateY(-100vh) translateX(50px);
		opacity: 0;
	}
}

/* Landing container overrides */
.landing-container {
	text-align: center;
	z-index: 2;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 2rem;
	width: 100%;
	max-width: 600px;
	margin: 0;
}

h1.landing-title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInDown 1s ease-out;
}

.subtitle {
	font-size: 1.5rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
	animation: fadeInUp 1s ease-out 0.3s backwards;
}

.message {
	font-size: 1.1rem;
	line-height: 1.6;
	color: #c0c0c0;
	margin-bottom: 2rem;
	animation: fadeIn 1s ease-out 0.6s backwards;
}

.spinner {
	margin: 2rem auto;
	width: 50px;
	height: 50px;
	border: 4px solid var(--accent-glow);
	border-top-color: var(--accent-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite, fadeIn 1s ease-out 0.9s backwards;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

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

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

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

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.secret-button {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.secret-button:hover {
	opacity: 1;
	background: rgba(102, 126, 234, 0.1);
	border-radius: 50%;
}

.secret-button::before {
	content: '🎯';
	font-size: 24px;
	display: block;
}

footer.landing-footer {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	color: #666;
	font-size: 0.9rem;
	z-index: 2;
	animation: fadeIn 1s ease-out 1.2s backwards;
}

@media (max-width: 768px) {
	h1.landing-title {
		font-size: 2.5rem;
	}

	.subtitle {
		font-size: 1.2rem;
	}

	.message {
		font-size: 1rem;
	}
}