/* Modern Portfolio CSS with Natural Dark Mode */
/* Save this as: index.css */

/* CSS Variables for consistent theming */
:root {
	/* Primary Color Palette - More muted */
	--primary-dark: #0a0f1c; /* Deeper, more natural dark */
	--primary-medium: #1a1f2e; /* Softer dark blue-gray */
	--primary-light: #2a2f3e; /* Muted slate */

	/* Accent Colors - Toned down */
	--accent-blue: #4a90e2; /* Softer blue */
	--accent-teal: #4a9b8e; /* Muted teal */
	--accent-purple: #7c6fb0; /* Subdued purple */
	--accent-orange: #d4a574; /* Warmer, muted amber */

	/* Neutral Tones */
	--text-primary: #e8eaed; /* Softer white */
	--text-secondary: #b8bcc5; /* Natural gray */
	--text-muted: #868b96; /* Subtle muted gray */

	/* Background Gradients - More subtle */
	--bg-primary: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
	--bg-card: linear-gradient(145deg, #1a1f2e 0%, #2a2f3e 100%);
	--bg-accent: linear-gradient(90deg, #4a90e2 0%, #4a9b8e 100%);

	/* Shadows - Softer */
	--shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
		0 2px 4px -1px rgba(0, 0, 0, 0.1);
	--shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.2),
		0 4px 6px -2px rgba(0, 0, 0, 0.1);
	--shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.25),
		0 10px 10px -5px rgba(0, 0, 0, 0.1);
	--shadow-glow: 0 0 20px rgba(74, 144, 226, 0.1);

	/* Border Radius */
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
}

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

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
}

/* Header Section */
.intro-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 2rem;
	position: relative;
	background: radial-gradient(
			circle at 30% 20%,
			rgba(74, 144, 226, 0.05) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 70% 80%,
			rgba(74, 155, 142, 0.05) 0%,
			transparent 50%
		),
		var(--bg-primary);
}

.intro-image {
	width: 300px; /* Increased from 200px */
	height: 300px; /* Increased from 200px */
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--primary-light); /* Subtle border instead of gradient */
	box-shadow: var(--shadow-strong), var(--shadow-glow);
	transition: all 0.3s ease;
}

.intro-image:hover {
	transform: scale(1.03); /* Slightly less dramatic hover */
	box-shadow: var(--shadow-strong), 0 0 25px rgba(74, 144, 226, 0.15);
}

.intro-container {
	text-align: center;
	margin-top: 2rem;
}

.name {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	background: var(--bg-accent);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 0.5rem;
	letter-spacing: -0.02em;
}

/* Main Content Sections */
main {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

section {
	margin-bottom: 4rem;
}

/* About Link Section */
.about-link-section {
	margin-bottom: 3rem;
}

.about-link-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.about-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--bg-card);
	color: var(--text-primary);
	text-decoration: none;
	padding: 1.25rem 2rem;
	border-radius: var(--radius-xl);
	border: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: var(--shadow-medium);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	font-size: 1.1rem;
	font-weight: 500;
}

.about-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--bg-accent);
	opacity: 0.6;
}

.about-link::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(74, 144, 226, 0.05),
		transparent
	);
	transition: left 0.5s ease;
}

.about-link:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-strong), var(--shadow-glow);
	border-color: var(--accent-blue);
	background: linear-gradient(
		135deg,
		var(--primary-light) 0%,
		rgba(74, 144, 226, 0.05) 100%
	);
}

.about-link:hover::after {
	left: 100%;
}

.about-link:hover .about-link-arrow {
	transform: translateX(4px);
	color: var(--accent-teal);
}

.about-link-text {
	color: var(--text-primary);
	transition: color 0.3s ease;
}

.about-link-arrow {
	color: var(--accent-blue);
	font-size: 1.2rem;
	transition: all 0.3s ease;
}

.about-link:focus {
	outline: 2px solid var(--accent-blue);
	outline-offset: 2px;
}

/* Bio Section */
.bio-box {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	padding: 2.5rem;
	box-shadow: var(--shadow-medium);
	border: 1px solid rgba(255, 255, 255, 0.05); /* More subtle border */
	position: relative;
	overflow: hidden;
}

.bio-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px; /* Thinner accent line */
	background: var(--bg-accent);
	opacity: 0.6; /* More subtle */
}

.bio-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 2rem;
	text-align: center;
}

/* Custom Story Toggle */
.story-section {
	margin-top: 2rem;
}

.story-toggle {
	width: 100%;
	background: linear-gradient(
		135deg,
		var(--primary-medium) 0%,
		var(--primary-light) 100%
	);
	border: 1px solid rgba(74, 144, 226, 0.1); /* More subtle border */
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	color: var(--text-primary);
	font-size: 1.25rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.story-toggle::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(74, 144, 226, 0.05),
		/* More subtle shimmer */ transparent
	);
	transition: left 0.5s ease;
}

.story-toggle:hover {
	background: linear-gradient(
		135deg,
		var(--primary-light) 0%,
		rgba(74, 144, 226, 0.05) 100%
	);
	border-color: var(--accent-blue);
	box-shadow: var(--shadow-soft), 0 0 10px rgba(74, 144, 226, 0.1);
	transform: translateY(-1px);
}

.story-toggle:hover::before {
	left: 100%;
}

.story-toggle:focus {
	outline: 2px solid var(--accent-blue);
	outline-offset: 2px;
}

.toggle-icon {
	font-size: 1.5rem;
	font-weight: 300;
	transition: transform 0.3s ease;
	color: var(--accent-teal);
}

.story-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
	background: rgba(26, 31, 46, 0.5); /* More natural background */
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.03); /* More subtle */
	border-top: none;
}

.story-content.open {
	padding: 2rem;
}

.story-content p {
	margin-bottom: 1.5rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

.story-content p:last-child {
	margin-bottom: 0;
}

.story-content strong {
	color: var(--accent-teal);
	font-weight: 600;
}

/* Projects Section */
.projects-box {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	padding: 2.5rem;
	box-shadow: var(--shadow-medium);
	border: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
	overflow: hidden;
}

.projects-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		var(--accent-purple) 0%,
		var(--accent-orange) 100%
	);
	opacity: 0.6;
}

.projects-box h2 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 2rem;
	text-align: center;
}

.projects-container {
	display: grid;
	gap: 1.5rem;
}

.project-item {
	background: rgba(26, 31, 46, 0.5);
	border-radius: var(--radius-lg);
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.03);
	transition: all 0.3s ease;
	position: relative;
}

.project-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-strong);
	border-color: rgba(124, 111, 176, 0.3); /* More subtle hover */
}

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

.project-item h3 a {
	color: var(--accent-purple);
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: 600;
	transition: color 0.3s ease;
}

.project-item h3 a:hover {
	color: var(--accent-orange);
	text-shadow: 0 0 8px rgba(212, 165, 116, 0.2); /* Softer glow */
}

.project-description {
	color: var(--text-secondary);
	line-height: 1.7;
}

/* Contact Section */
.contact-box {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	padding: 2.5rem;
	box-shadow: var(--shadow-medium);
	border: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
	overflow: hidden;
}

.contact-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--bg-accent);
	opacity: 0.6;
}

.contact-box h2 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 2rem;
	text-align: center;
}

.contact-info {
	display: grid;
	gap: 1.5rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: rgba(26, 31, 46, 0.5);
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.03);
	transition: all 0.3s ease;
}

.contact-item:hover {
	background: rgba(74, 144, 226, 0.05); /* Much more subtle */
	border-color: rgba(74, 144, 226, 0.2);
	transform: translateX(4px);
}

.contact-item strong {
	color: var(--accent-teal);
	font-weight: 600;
	min-width: 80px;
}

.contact-item a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.contact-item a:hover {
	color: var(--accent-blue);
}

/* Footer */
footer {
	text-align: center;
	padding: 2rem;
	color: var(--text-muted);
	background: rgba(10, 15, 28, 0.8);
	margin-top: 4rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
	.intro-box {
		min-height: 50vh;
		padding: 1.5rem;
	}

	.intro-image {
		width: 250px; /* Increased from 150px */
		height: 250px; /* Increased from 150px */
	}

	.bio-box,
	.projects-box,
	.contact-box {
		padding: 1.5rem;
		margin-bottom: 2rem;
	}

	.story-toggle {
		padding: 1rem;
		font-size: 1.1rem;
	}

	.story-content.open {
		padding: 1.5rem;
	}

	main {
		padding: 0 1rem;
	}
}

@media (max-width: 480px) {
	.intro-image {
		width: 200px; /* Increased from 120px */
		height: 200px; /* Increased from 120px */
	}

	.bio-box,
	.projects-box,
	.contact-box {
		padding: 1rem;
	}

	.story-toggle {
		font-size: 1rem;
		padding: 0.75rem;
	}

	.contact-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.contact-item strong {
		min-width: auto;
	}
}

/* Loading Animation */
.loading {
	animation: pulse 1s infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* Smooth Focus Transitions */
*:focus {
	transition: outline 0.2s ease;
}

/* Print Styles */
@media print {
	body {
		background: white;
		color: black;
	}

	.intro-box,
	.bio-box,
	.projects-box,
	.contact-box {
		background: white;
		box-shadow: none;
		border: 1px solid #ccc;
	}
}
