/* CSS Custom Properties (Variables) */
:root {
	--primary-color: #ffffff;
	--secondary-color: #0b0b0d;
    --accent-color: rgb(247, 215, 130);
    --accent-rgb: 247, 215, 130;
	--background-overlay: rgba(0, 0, 0, 0.6);
	--box-shadow: 0 4px 4px rgba(0,0,0,0.9);
	--border-radius: 10%;
	--transition-duration: 0.5s;
    --font-family: 'Helvetica Neue', Century Gothic, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-weight-light: 100;
	--font-weight-normal: 400;
	--font-weight-bold: 700;
	--spacing-xs: 5px;
	--spacing-sm: 10px;
	--spacing-md: 20px;
	--spacing-lg: 50px;
	--spacing-xl: 100px;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* Accessibility Improvements */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus styles for accessibility - only show on keyboard navigation */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: var(--secondary-color);
	color: var(--primary-color);
	padding: 8px;
	text-decoration: none;
	z-index: 1000;
}

.skip-link:focus {
	top: 6px;
}

/* Main Layout */
.wrapper {
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
    background: url(../images/background.jpg) no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Profile Box */
.prof-box {
    padding: var(--spacing-sm) var(--spacing-md);
    width: 380px;
    min-height: 420px;
    background: linear-gradient(180deg, rgba(20,20,22,0.9), rgba(10,10,12,0.8));
    color: var(--primary-color);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease, border-color var(--transition-duration) ease;
}

.prof-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

/* Profile Image */
.prof-pic {
    border-radius: 50%;
    height: 200px;
    width: 200px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.prof-pic:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
}

/* Typography */
.prof-box h1 {
    font-weight: var(--font-weight-light);
    font-size: 2.5rem;
    margin: var(--spacing-sm) 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.prof-box h2 {
    font-weight: var(--font-weight-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.education {
	font-size: 0.9rem;
	line-height: 1.4;
	margin: var(--spacing-sm) 0;
	opacity: 0.8;
	white-space: nowrap;
}

/* Line Break */
.line-break1 {
	width: 295px;
	margin: var(--spacing-md) auto;
	border: none;
	border-top: 1px solid var(--primary-color);
	opacity: 0.6;
}

/* Social Icons */
.social-icons {
	font-size: var(--spacing-md);
	margin-top: var(--spacing-md);
}

.social-icons ul {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: var(--spacing-xs);
	flex-wrap: wrap;
}

.social-icons a {
    color: var(--primary-color);
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease, color var(--transition-duration) ease, background-color var(--transition-duration) ease;
	position: relative;
	overflow: hidden;
}

/* subtle glow on hover */
.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0.0);
    transition: box-shadow var(--transition-duration) ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.25);
    background-color: rgba(255,255,255,0.06);
}

.social-icons i {
    font-size: 1.5rem;
    transition: transform var(--transition-duration) ease;
}

.social-icons a:hover i {
    transform: scale(1.08);
}

/* Footer */
.bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	text-align: center;
	padding: var(--spacing-sm);
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.bottom p {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
	:root {
		--spacing-xl: 50px;
	}
	
	.prof-box {
		width: 90%;
		max-width: 350px;
		min-height: 380px;
		margin: 0 var(--spacing-md);
	}
	
	.prof-pic {
		height: 180px;
		width: 180px;
	}
	
	.prof-box h1 {
		font-size: 2rem;
	}
	
	.prof-box h2 {
		font-size: 1.1rem;
	}
	
	.education {
		font-size: 0.9rem;
	}
	
	.line-break1 {
		width: 250px;
	}
	
	.social-icons ul {
		gap: var(--spacing-xs);
	}
	
	.social-icons a {
		width: 45px;
		height: 45px;
	}
	
	.social-icons i {
		font-size: 1.3rem;
	}
}

@media (max-width: 480px) {
	.prof-box {
		width: 95%;
		padding: var(--spacing-sm);
	}
	
	.prof-pic {
		height: 150px;
		width: 150px;
	}
	
	.prof-box h1 {
		font-size: 1.8rem;
	}
	
	.prof-box h2 {
		font-size: 1rem;
	}
	
	.education {
		font-size: 0.85rem;
	}
	
	.line-break1 {
		width: 200px;
	}
	
	.social-icons a {
		width: 40px;
		height: 40px;
	}
	
	.social-icons i {
		font-size: 1.2rem;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	:root {
		--background-overlay: rgba(0, 0, 0, 0.8);
		--box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
	}
	
	.prof-box {
		border: 2px solid var(--primary-color);
	}
	
	.social-icons a {
		border-width: 3px;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	
	.prof-box:hover {
		transform: none;
	}
	
	.prof-pic:hover {
		transform: none;
	}
	
	.social-icons a:hover {
		transform: none;
	}
	
	.social-icons a:hover i {
		transform: none;
	}
}

/* Print styles */
@media print {
	.wrapper {
		background: none;
	}
	
	.prof-box {
		background: white;
		color: black;
		box-shadow: none;
		border: 1px solid black;
	}
	
	.bottom {
		position: static;
		background: none;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	:root {
		--primary-color: #ffffff;
		--secondary-color: #000000;
	}
}

/* Light mode support */
@media (prefers-color-scheme: light) {
	:root {
		--primary-color: #ffffff;
		--secondary-color: #000000;
	}
}

/* Performance optimizations */
.prof-box {
	will-change: transform;
}

.social-icons a {
	will-change: transform, color;
}

/* Loading states */
.prof-pic {
	opacity: 0;
	animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

/* Error handling for missing images */
.prof-pic:not([src]), 
.prof-pic[src=""] {
	background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
				linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
				linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
				linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Focus visible for better accessibility */
.social-icons a:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
	border-radius: 50%;
}


