/* assets/css/styles.css */
/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties (Variables) */
:root {
    --primary-color: #385f71;
    --secondary-color: #5a8f9e;
    --brand-color: #886e47;
    --brand-light: #a08660;
    --brand-dark: #6b5536;
    --background-color: #f9fafb;
    --text-color: #1e293b;
    --card-background: #ffffff;
    --border-color: #e5e7eb;
}

/* Base styling - Mobile First Approach */
html {
	scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
}

body {
	font-family: 'Inter', sans-serif;
	background-color: #f9fafb;
	overflow-x: hidden; 
	line-height: 1.6;
}

/* Accessibility: Screen reader only content */
.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;
}

.sr-only:focus,
.focus\:not-sr-only:focus {
	position: static;
	width: auto;
	height: auto;
	padding: inherit;
	margin: inherit;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

/* Skip link styling */
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	z-index: 1000;
	transition: top 0.3s ease;
}

.skip-link:focus {
	top: 0;
}

/* Mobile-first responsive improvements */
/* Small devices (phones, 576px and up) */
.container {
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 576px) {
	.container {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.container {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.container {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

/* Card hover effect - Reduced motion for accessibility */
.card-hover {
	transition: all 0.3s ease;
}

.card-hover:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
	.card-hover,
	.headshot,
	.skill-tag,
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* Custom underline style for section titles */
.section-title {
	position: relative;
	padding-bottom: 8px;
}

.section-title:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 3px;
	background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
	border-radius: 3px;
}

.typed-cursor { color: var(--primary-color); font-size: 1.25rem; }

.skill-tag {
	background-color: rgba(56, 95, 113, 0.1); /* light primary color */
	color: var(--primary-color); 
	font-size: 0.875rem; 
	font-weight: 500;
	padding: 0.25rem 0.75rem; 
	border-radius: 9999px; 
	transition: all 0.2s ease; 
	display: inline-block;
	margin: 0.125rem;
	cursor: default;
}

.skill-tag:hover { 
	transform: scale(1.05); 
	background-color: rgba(56, 95, 113, 0.2); /* slightly darker primary */
}

/* Mobile touch-friendly skill tags */
@media (max-width: 768px) {
	.skill-tag {
		padding: 0.5rem 1rem;
		font-size: 0.9rem;
		margin: 0.25rem;
	}
}

/* Visual Timeline Styles - Mobile responsive */
.timeline-container {
    position: relative;
}

.timeline-container::after {
    content: ''; 
    position: absolute; 
    left: 1.25rem; 
    top: 0; 
    bottom: 0;
    width: 3px; 
    background-color: var(--border-color); 
    border-radius: 3px; 
    z-index: 0;
}

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

.timeline-icon {
    position: absolute; 
    left: 0; 
    top: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 2.75rem; 
    height: 2.75rem; 
    background-color: var(--background-color);
    border: 3px solid #e0e7ff; 
    border-radius: 9999px; 
    z-index: 1;
}

.timeline-icon i {
    color: var(--brand-color);
}

/* Mobile timeline adjustments */
@media (max-width: 768px) {
	.timeline-container::after {
		left: 1rem;
	}
	
	.timeline-item {
		padding-left: 3rem;
		margin-bottom: 1.5rem;
	}
	
	.timeline-icon {
		width: 2.25rem;
		height: 2.25rem;
		left: -0.125rem;
	}
	
	.timeline-icon i {
		font-size: 0.875rem;
	}
}

/* Professional headshot styling - Mobile responsive */
.headshot {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-position: center 20%;
    object-fit: cover;
}

.headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile headshot optimizations */
@media (max-width: 768px) {
	.headshot {
		width: 120px !important;
		height: 120px !important;
		border-width: 4px !important;
	}
}

/* Button improvements for mobile */
button, .btn {
	min-height: 44px; /* Apple's recommended minimum touch target */
	min-width: 44px;
	touch-action: manipulation; /* Prevents double-tap zoom on iOS */
}

/* Focus styles for better accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--brand-color);
	outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.skill-tag {
		border: 2px solid var(--primary-color);
	}
	
	.timeline-icon {
		border-width: 4px;
	}
	
	.section-title:after {
		height: 4px;
	}
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
	:root {
		--bg-color: #1f2937;
		--text-color: #f9fafb;
		--card-bg: #374151;
	}
}

/* Progress bar animations */
.progress-bar {
	transition: width 0.8s ease-in-out;
}

/* Loading state styles */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid var(--brand-color);
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 1s linear infinite;
}

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

/* Print styles for better PDF generation */
@media print {
	body {
		background: white !important;
		color: black !important;
		font-size: 12pt;
		line-height: 1.4;
	}
	
	.card-hover {
		box-shadow: none !important;
		border: 1px solid #ccc;
	}
	
	#sticky-nav,
	.skip-link,
	button {
		display: none !important;
	}
	
	.section-title:after {
		background: #666 !important;
	}
	
	.timeline-container::after {
		background: #666 !important;
	}
	
	.timeline-icon {
		border-color: #666 !important;
		background: white !important;
	}
	
	.timeline-icon i {
		color: #333 !important;
	}
	
	.skill-tag {
		border: 1px solid #666 !important;
		background: white !important;
		color: black !important;
	}
}

/* Responsive typography */
@media (max-width: 640px) {
	h1 {
		font-size: 2rem !important;
		line-height: 1.2;
	}
	
	h2 {
		font-size: 1.5rem !important;
	}
	
	h3 {
		font-size: 1.25rem !important;
	}
	
	.text-xl {
		font-size: 1.125rem !important;
	}
}

/* Enhanced mobile layout */
@media (max-width: 1024px) {
	.lg\:grid-cols-3 {
		grid-template-columns: 1fr !important;
	}
	
	.lg\:col-span-1,
	.lg\:col-span-2 {
		grid-column: span 1 !important;
	}
} 

.more-btn {
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.more-btn:hover {
    color: var(--primary-color); /* primary color */
} 