/* ================================
   Portfolio Page Specific Styles
   ================================ */

.portfolio-page .content-column {
	background: linear-gradient(135deg, rgba(248, 249, 250, 0.98) 0%, rgba(233, 236, 239, 0.98) 100%);
}

.portfolio-page .content-column.full-width {
	border-radius: 0;
	margin: 0;
}

.portfolio-container {
	max-width: 1200px;
	padding: 40px 20px;
}

/* ================================
   Header Section
   ================================ */
.portfolio-header {
	text-align: center;
	margin-bottom: 50px;
	position: relative;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.875rem;
	margin-bottom: 30px;
	padding: 8px 16px;
	border-radius: 8px;
	transition: var(--transition);
}

.back-link:hover {
	color: var(--primary-color);
	background: rgba(164, 206, 46, 0.1);
}

.back-link svg {
	width: 20px;
	height: 20px;
}

.portfolio-header .logo {
	max-width: 300px;
	margin: 0 auto 20px;
}

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

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

/* ================================
   Tab Navigation
   ================================ */
.tab-navigation {
	display: flex;
	gap: 12px;
	margin-bottom: 40px;
	padding: 8px;
	background: white;
	border-radius: 16px;
	box-shadow: var(--shadow);
	border: 2px solid var(--border-color);
	overflow-x: auto;
	flex-wrap: wrap;
}

.tab-button {
	flex: 1;
	min-width: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 12px;
	font-size: 0.938rem;
	font-weight: 600;
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition);
	font-family: inherit;
	white-space: nowrap;
}

.tab-button svg {
	width: 20px;
	height: 20px;
	transition: var(--transition);
}

.tab-button:hover {
	background: rgba(164, 206, 46, 0.1);
	color: var(--primary-color);
}

.tab-button.active {
	background: linear-gradient(135deg, rgba(164, 206, 46, 0.15) 0%, rgba(124, 56, 251, 0.08) 100%);
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.tab-button.active svg {
	color: var(--primary-color);
}

/* ================================
   Tab Content
   ================================ */
.tab-content {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ================================
   Sections
   ================================ */
.projects-section {
	margin-bottom: 60px;
}

.skills-section {
	margin-top: 40px;
	margin-bottom: 40px;
}

.section-heading {
	font-size: 1.75rem;
	color: var(--text-primary);
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 3px solid var(--primary-color);
	font-weight: 600;
}

/* ================================
   Projects Grid
   ================================ */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 30px;
}

/* ================================
   Project Cards
   ================================ */
.project-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	border: 2px solid var(--border-color);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow);
}

.project-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-hover);
	border-color: var(--primary-color);
}

.project-card.featured {
	border-color: var(--primary-color);
	background: linear-gradient(135deg, rgba(164, 206, 46, 0.05) 0%, rgba(124, 56, 251, 0.02) 100%);
}

.project-card.featured:hover {
	border-color: var(--secondary-color);
	box-shadow: 0 8px 24px rgba(164, 206, 46, 0.2);
}

/* ================================
   Project Image
   ================================ */
.project-image {
	position: relative;
	width: 100%;
	aspect-ratio: 460 / 215;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(164, 206, 46, 0.1) 0%, rgba(124, 56, 251, 0.1) 100%);
}

.project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.project-card:hover .project-image img {
	transform: scale(1.05);
}

.project-image.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(164, 206, 46, 0.15) 0%, rgba(124, 56, 251, 0.08) 100%);
}

.placeholder-icon {
	width: 64px;
	height: 64px;
	color: var(--primary-color);
	opacity: 0.5;
}

.placeholder-icon svg {
	width: 100%;
	height: 100%;
}

.project-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--primary-color);
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ================================
   Project Content
   ================================ */
.project-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.project-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

.project-role {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
}

.project-description {
	font-size: 0.938rem;
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 0;
	flex: 1;
}

/* ================================
   Project Tags
   ================================ */
.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.tag {
	background: rgba(164, 206, 46, 0.15);
	color: var(--text-primary);
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid rgba(164, 206, 46, 0.3);
	transition: var(--transition);
}

.tag:hover {
	background: rgba(164, 206, 46, 0.25);
	border-color: var(--primary-color);
}

/* ================================
   Project Links
   ================================ */
.project-links {
	display: flex;
	gap: 12px;
	margin-top: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--border-color);
}

.project-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	border-radius: 10px;
	font-size: 0.875rem;
	font-weight: 600;
	transition: var(--transition);
	box-shadow: 0 2px 8px rgba(164, 206, 46, 0.3);
}

.project-link:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(124, 56, 251, 0.4);
}

.project-link svg {
	width: 16px;
	height: 16px;
}

/* ================================
   Skills Section
   ================================ */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.skill-card {
	background: white;
	padding: 28px;
	border-radius: 16px;
	border: 2px solid var(--border-color);
	text-align: center;
	transition: var(--transition);
	box-shadow: var(--shadow);
}

.skill-card:hover {
	border-color: var(--primary-color);
	box-shadow: 0 6px 16px rgba(164, 206, 46, 0.15);
	transform: translateY(-4px);
}

.skill-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(164, 206, 46, 0.1);
	border-radius: 50%;
	transition: var(--transition);
}

.skill-card:hover .skill-icon {
	background: rgba(164, 206, 46, 0.2);
	transform: scale(1.1);
}

.skill-icon svg {
	width: 32px;
	height: 32px;
}

.skill-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 12px;
}

.skill-list {
	font-size: 0.938rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

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

/* Tablet */
@media (max-width: 768px) {
	.portfolio-container {
		padding: 30px 16px;
	}

	.page-title {
		font-size: 2rem;
	}

	.tab-navigation {
		gap: 8px;
		padding: 6px;
		flex-wrap: nowrap;
	}

	.tab-button {
		min-width: 110px;
		padding: 12px 14px;
		font-size: 0.875rem;
	}

	.tab-button svg {
		width: 18px;
		height: 18px;
	}

	.tab-button span {
		display: none;
	}

	.projects-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.skills-grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.portfolio-header {
		margin-bottom: 30px;
	}

	.page-title {
		font-size: 1.75rem;
	}

	.page-subtitle {
		font-size: 1rem;
	}

	.tab-navigation {
		gap: 6px;
		padding: 4px;
		justify-content: space-between;
	}

	.tab-button {
		min-width: auto;
		flex: 1;
		padding: 10px 8px;
	}

	.tab-button span {
		display: none;
	}

	.section-heading {
		font-size: 1.5rem;
	}

	.project-content {
		padding: 20px;
	}

	.project-title {
		font-size: 1.25rem;
	}

	.project-links {
		flex-direction: column;
	}

	.project-link {
		justify-content: center;
	}
}

/* Large Desktop */
@media (min-width: 1400px) {
	.projects-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ================================
   Lightbox
   ================================ */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox.active {
	display: flex;
}

@keyframes lightboxFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition);
	z-index: 10001;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: var(--primary-color);
	transform: rotate(90deg);
}

.lightbox-close svg {
	width: 24px;
	height: 24px;
	color: white;
}

#lightbox-img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	animation: lightboxZoomIn 0.3s ease-out;
	cursor: default;
}

@keyframes lightboxZoomIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Zoomable Images */
.project-image.zoomable {
	cursor: zoom-in;
	position: relative;
}

.project-image.zoomable::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0);
	transition: var(--transition);
	pointer-events: none;
}

.project-image.zoomable:hover::after {
	background: rgba(0, 0, 0, 0.2);
}

/* Zoom Indicator */
.zoom-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background: rgba(164, 206, 46, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--transition);
	pointer-events: none;
	z-index: 2;
}

.project-image.zoomable:hover .zoom-indicator {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.1);
}

.zoom-indicator svg {
	width: 28px;
	height: 28px;
	color: white;
}

/* Mobile Zoom Hint */
.zoom-hint {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(164, 206, 46, 0.95);
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 2;
	pointer-events: none;
	animation: zoomHintPulse 2s ease-in-out infinite;
}

@keyframes zoomHintPulse {

	0%,
	100% {
		opacity: 0.9;
		transform: scale(1);
	}

	50% {
		opacity: 1;
		transform: scale(1.05);
	}
}

/* Image Anchoring */
.project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: var(--transition);
}

/* Anchor positions */
.project-image.anchor-top img {
	object-position: center top;
}

.project-image.anchor-top-25 img {
	object-position: center 25%;
}

.project-image.anchor-bottom img {
	object-position: center bottom;
}

.project-image.anchor-left img {
	object-position: left center;
}

.project-image.anchor-right img {
	object-position: right center;
}

.project-image.anchor-top-left img {
	object-position: left top;
}

.project-image.anchor-top-right img {
	object-position: right top;
}

.project-image.anchor-bottom-left img {
	object-position: left bottom;
}

.project-image.anchor-bottom-right img {
	object-position: right bottom;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
	.lightbox-close {
		top: 10px;
		right: 10px;
		width: 44px;
		height: 44px;
	}

	#lightbox-img {
		max-width: 95%;
		max-height: 95%;
	}

	/* Show zoom hint on mobile, hide hover indicator */
	.zoom-indicator {
		display: none;
	}

	.zoom-hint {
		display: block;
	}
}