/* 
 * Exact Design Replication: saumyachaturvedi.com
 * Pixel-perfect implementation with all specifications
 */

:root {
	/* Exact Colors - Dark Theme */
	--bg-main: #0A0A0A;      /* Deep dark background */
	--bg-white: #171717;     /* Dark card/sidebar background */
	--text-primary: #EDEDED; /* High contrast text */
	--text-secondary: #A3A3A3; /* Muted text */
	--vignette-blue: rgba(0, 107, 255, 0.1); /* Subtle blue glow */
	
	/* Typography */
	--font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'Fragment Mono', monospace;
	
	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.4);
	
	/* Transitions */
	--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: var(--bg-main);
	font-family: var(--font-inter);
	font-size: 15px;
	line-height: 1.5;
	color: var(--text-primary);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

/* Vignette Overlay Effect */
.vignette-overlay {
	position: fixed;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 100px 20px var(--vignette-blue);
	z-index: 1000;
}

/* Sidebar Navigation */
.sidebar-nav {
	position: fixed;
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	width: 72px; /* Initial width (icon only) */
	background: #121212; /* Dark background */
	border-radius: 20px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: var(--shadow-md);
	z-index: 100;
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	white-space: nowrap;
}

.sidebar-nav:hover {
	width: 200px; /* Expanded width */
}

.nav-link-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px;
	border-radius: 12px;
	color: #9E9E9E; /* Dimmed text */
	transition: all 0.2s;
	text-decoration: none;
	width: 100%;
}

.nav-link-item:hover,
.nav-link-item.active {
	background: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
}

.nav-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0; /* Prevent icon shrinking */
}

.nav-text {
	font-size: 15px;
	font-weight: 500;
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav:hover .nav-text {
	opacity: 1;
	transform: translateX(0);
	transition-delay: 0.1s; /* Slight delay for text reveal */
}

/* Main Container */
.main-container {
	max-width: 608px;
	margin: 0 auto;
	padding: 80px 24px;
	position: relative;
	z-index: 1;
}

/* Hero Section */
.hero-section {
	text-align: center;
	margin-bottom: 80px;
}

.hero-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	margin-bottom: 24px;
	object-fit: cover;
	border: 2px solid rgba(0, 0, 0, 0.05);
}

.hero-heading {
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
	color: var(--text-primary);
}

.hero-subheading {
	font-size: 14px;
	color: var(--text-secondary);
	margin-bottom: 16px;
	font-weight: 400;
}

.hero-bio {
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-secondary);
	max-width: 480px;
	margin: 0 auto 32px auto;
}

/* Contact Button */
.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: radial-gradient(55.8% 104.9% at 51.3% -6.9%, #616161 0%, #121212 60%);
	color: #FFFFFF;
	border: 1px solid rgba(158, 158, 158, 0.3);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 
		0 1px 2px rgba(0, 0, 0, 0.25),
		0 4px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.2s;
	margin-bottom: 0;
}

.hero-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 24px;
}

.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: radial-gradient(55.8% 104.9% at 51.3% -6.9%, #616161 0%, #121212 60%);
	color: #FFFFFF;
	border: 1px solid rgba(158, 158, 158, 0.3);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 
		0 1px 2px rgba(0, 0, 0, 0.25),
		0 4px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.2s;
	text-decoration: none;
}

.contact-btn.secondary {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-primary);
}

.contact-btn.secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
}

.contact-btn:hover {
	transform: translateY(-1px);
	box-shadow: 
		0 2px 4px rgba(0, 0, 0, 0.25),
		0 6px 12px rgba(0, 0, 0, 0.2);
}

.coming-soon {
	margin-top: 32px;
	color: var(--text-secondary);
	font-size: 14px;
	opacity: 0.6;
}

/* Social Links */
.social-links {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
}

.social-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--text-secondary);
	transition: all 0.2s;
	font-size: 18px;
}

.social-icon:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--text-primary);
}

/* Section Titles */
.section-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 24px;
	color: var(--text-primary);
}

/* Section Toggle */
.section-toggle {
	background: none;
	border: none;
	cursor: pointer;
	width: 100%;
	text-align: left;
	padding: 0;
	margin-bottom: 24px;
	color: inherit;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.section-toggle .section-title {
	margin-bottom: 0;
}

.toggle-icon {
	font-size: 16px;
	transition: transform 0.3s ease;
	color: var(--text-secondary);
}

.section-toggle[aria-expanded="true"] .toggle-icon {
	transform: rotate(180deg);
}

/* Collapsible Content */
.collapsible-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease-out;
	overflow: hidden;
}

.collapsible-content.expanded {
	grid-template-rows: 1fr;
}

.collapsible-content > div {
	min-height: 0;
}

/* Project List */
.project-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Project Cards */
.project-card {
	background: var(--bg-white);
	border-radius: 24px;
	padding: 24px;
	transition: var(--transition-smooth);
	box-shadow: var(--shadow-sm);
	display: block;
}

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

.project-image {
	width: 100%;
	border-radius: 20px;
	margin-bottom: 16px;
	display: block;
}

.project-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 8px;
}

.project-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.project-links {
	display: flex;
	gap: 8px;
}

.project-links a {
	color: var(--text-secondary);
	font-size: 18px;
	transition: color 0.2s;
}

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

.project-desc {
	color: var(--text-secondary);
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.6;
}

.tech-stack {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tech-stack span {
	font-size: 12px;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.06);
	padding: 4px 10px;
	border-radius: 6px;
	font-weight: 500;
	font-family: var(--font-mono);
}

/* Skills Section */
.content-section {
	margin-bottom: 80px;
}

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

.skill-category {
	background: var(--bg-white);
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--shadow-sm);
	transition: var(--transition-smooth);
}

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

.skill-category h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-primary);
}

.skill-category p {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

/* Footer */
.footer {
	text-align: center;
	padding: 40px 0;
	color: var(--text-secondary);
	font-size: 14px;
}

/* Page Header (for separate pages) */
.page-header {
	margin-bottom: 48px;
	text-align: center;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text-secondary);
	font-size: 14px;
	margin-bottom: 24px;
	transition: color 0.2s;
}

.back-link:hover {
	color: var(--text-primary);
}

.page-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--text-primary);
}

.page-subtitle {
	font-size: 16px;
	color: var(--text-secondary);
}

/* About Content */
.about-content {
	background: var(--bg-white);
	border-radius: 20px;
	padding: 32px;
	box-shadow: var(--shadow-sm);
}

.about-content p {
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 20px;
}

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

/* Floating Say Hi Button */
.floating-say-hi {
	position: fixed;
	bottom: 32px;
	right: 32px;
	background: var(--bg-white);
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	transition: all 0.2s;
	z-index: 100;
	border: none;
	cursor: pointer;
}

.floating-say-hi:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.sidebar-nav {
		display: flex;
		top: auto;
		bottom: 24px;
		left: 50%;
		transform: translateX(-50%);
		width: auto;
		height: auto;
		flex-direction: row;
		padding: 8px 12px;
		border-radius: 100px;
		background: rgba(23, 23, 23, 0.9);
		backdrop-filter: blur(12px);
		border: 1px solid rgba(255, 255, 255, 0.05);
	}

	.sidebar-nav:hover {
		width: auto;
	}

	.nav-link-item {
		width: auto;
		padding: 12px;
		border-radius: 50%;
		gap: 0;
	}

	.nav-text {
		display: none;
	}
	
	.main-container {
		padding-bottom: 100px; /* Add space for nav */
	}
}

@media (max-width: 640px) {
	.main-container {
		padding: 40px 16px;
	}
	
	.hero-heading {
		font-size: 24px;
	}
	
	.hero-avatar {
		width: 64px;
		height: 64px;
	}
	
	.floating-say-hi {
		bottom: 16px;
		right: 16px;
		padding: 10px 14px;
		font-size: 13px;
	}
	
	.project-card {
		padding: 20px;
	}
	
	.skills-grid {
		grid-template-columns: 1fr;
	}
	
	.vignette-overlay {
		box-shadow: inset 0 0 60px 15px var(--vignette-blue);
	}
}

@media (max-width: 480px) {
	.main-container {
		padding: 32px 12px;
	}
	
	.hero-section {
		margin-bottom: 48px;
	}
	
	.content-section {
		margin-bottom: 48px;
	}
}
