/* ============================================
   About Me - Custom Styling (Fixed Version)
   Inspired by Duckquill theme with enhancements
   ============================================ */

/* Root variables for smooth transitions */
:root {
	--about-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--about-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--about-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Skill Cards & Competencies Section
   ============================================ */

.competency-section {
	margin: 2rem 0;
	padding: 1.5rem;
	border-left: 4px solid var(--accent-color);
	background: var(--bg-secondary, rgba(255, 255, 255, 0.02));
	border-radius: 0.5rem;
	transition: var(--about-transition);
}

.competency-section:hover {
	border-left-color: var(--accent-color);
	background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
	box-shadow: var(--about-shadow);
	transform: translateX(4px);
}

.competency-section h3 {
	color: var(--accent-color);
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.competency-section ul {
	margin: 0.5rem 0;
	padding-left: 1.5rem;
}

.competency-section li {
	margin: 0.3rem 0;
	line-height: 1.6;
}

/* ============================================
   Contact Cards
   ============================================ */

.contact-card {
	display: inline-block;
	padding: 1rem 1.5rem;
	margin: 0.5rem;
	background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
	border: 1px solid var(--accent-color, #666);
	border-radius: 0.5rem;
	transition: var(--about-transition);
	text-decoration: none;
	color: inherit;
}

.contact-card:hover {
	background: var(--accent-color, #666);
	color: var(--bg-primary, #fff);
	box-shadow: var(--about-shadow-hover);
	transform: translateY(-2px);
}

.contact-card strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
	opacity: 0.8;
}

.contact-card-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.5rem 0;
}

/* ============================================
   Progress Bars for Skills
   ============================================ */

progress {
	width: 100%;
	height: 0.5rem;
	margin: 0.5rem 0;
	border-radius: 0.25rem;
	background: var(--bg-secondary, rgba(255, 255, 255, 0.1));
	border: none;
	overflow: hidden;
}

progress::-webkit-progress-bar {
	background: var(--bg-secondary, rgba(255, 255, 255, 0.1));
	border-radius: 0.25rem;
}

progress::-webkit-progress-value {
	background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
	border-radius: 0.25rem;
	transition: width 0.5s ease;
}

progress::-moz-progress-bar {
	background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
	border-radius: 0.25rem;
	transition: width 0.5s ease;
}

/* ============================================
   Tables Enhancement
   ============================================ */

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: var(--about-shadow);
}

table thead {
	background: var(--accent-color);
	color: var(--bg-primary, #fff);
}

table th,
table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--bg-secondary, rgba(255, 255, 255, 0.1));
}

table tbody tr {
	transition: var(--about-transition);
}

table tbody tr:hover {
	background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
}

table tbody tr:last-child td {
	border-bottom: none;
}

/* ============================================
   Quote & Philosophy Styling
   ============================================ */

blockquote {
	border-left: 4px solid var(--accent-color);
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--fg-muted, #999);
	transition: var(--about-transition);
}

blockquote:hover {
	color: var(--accent-color);
	border-left-color: var(--accent-color);
}

/* ============================================
   Section Dividers - FIXED
   ============================================ */

hr {
	border: none;
	height: 1px;
	background: var(--accent-color);
	margin: 2rem 0;
	opacity: 0.3;
	border-radius: 0;
}

/* ============================================
   Heading Animations
   ============================================ */

h2 {
	position: relative;
	padding-bottom: 0.5rem;
}

h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent-color);
	transition: width 0.3s ease;
}

h2:hover::after {
	width: 100%;
}

/* Prevent heading anchors from having underline animation */
h2 .heading-anchor::after,
h3 .heading-anchor::after {
	display: none !important;
}

/* ============================================
   Links Enhancement - FIXED
   ============================================ */

a {
	position: relative;
	text-decoration: none;
	color: var(--accent-color);
	transition: color 0.3s ease;
}

a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* Disable underline animation for footer links and contact cards */
footer a,
.contact-card a {
	text-decoration: none;
}

footer a::after,
.contact-card a::after {
	display: none !important;
}

footer a:hover {
	text-decoration: underline;
}

/* Subtle underline for main content links only */
main a:not(.contact-card)::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--accent-color);
	transition: width 0.3s ease;
}

main a:not(.contact-card):hover::after {
	width: 100%;
}

/* ============================================
   Code Blocks
   ============================================ */

pre {
	background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
	border: 1px solid var(--accent-color, #666);
	border-radius: 0.5rem;
	padding: 1rem;
	overflow-x: auto;
	transition: var(--about-transition);
}

pre:hover {
	box-shadow: var(--about-shadow);
	border-color: var(--accent-color);
}

code {
	font-family: 'Courier New', monospace;
	color: var(--accent-color);
	background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
	padding: 0.2rem 0.4rem;
	border-radius: 0.25rem;
	font-size: 0.9em;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
	.competency-section {
		padding: 1rem;
		margin: 1rem 0;
	}

	.contact-card {
		display: block;
		width: 100%;
		margin: 0.5rem 0;
	}

	.contact-card-container {
		flex-direction: column;
	}

	table {
		font-size: 0.9rem;
	}

	table th,
	table td {
		padding: 0.5rem;
	}
}

/* ============================================
   Dark Mode Adjustments
   ============================================ */

@media (prefers-color-scheme: dark) {
	.competency-section {
		background: var(--bg-secondary, rgba(255, 255, 255, 0.02));
	}

	.competency-section:hover {
		background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
	}

	blockquote {
		color: var(--fg-muted, #aaa);
	}

	blockquote:hover {
		color: var(--accent-color);
	}
}

/* ============================================
   Animation Classes
   ============================================ */

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

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

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.slide-in-left {
	animation: slideInLeft 0.6s ease-out forwards;
}

/* ============================================
   Accent Color Indicator
   ============================================ */

.accent-indicator {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	background: var(--accent-color);
	border-radius: 50%;
	margin-right: 0.5rem;
	vertical-align: middle;
}
