/* ========================================
   GALLERY / PORTFOLIO SECTION - MODERN
   ======================================== */

/* Section Container */
#portfolio {
	background: linear-gradient(180deg, rgba(26, 31, 58, 0.5) 0%, var(--bg-color) 100%);
	padding: 80px 0;
	overflow: hidden;
}

#portfolio .container {
	max-width: 1200px;
}

/* Section Header */
#portfolio .section-header h3 {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 700;
	font-size: 2.5rem;
	margin-bottom: 15px;
}

#portfolio .section-header p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.1rem;
}

/* Filter Buttons */
.gallery-filters {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.filter-btn {
	padding: 10px 24px;
	border-radius: 25px;
	border: 2px solid rgba(0, 242, 167, 0.2);
	background: var(--card-bg);
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: capitalize;
}

.filter-btn:hover {
	border-color: rgba(0, 242, 167, 0.5);
	background: rgba(0, 242, 167, 0.1);
	color: var(--primary-color);
	transform: translateY(-2px);
}

.filter-btn.filter-active {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #0a0e27;
	box-shadow: 0 4px 15px rgba(0, 242, 167, 0.3);
}

/* Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	margin-top: 40px;
}

/* Gallery Item */
.gallery-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: var(--card-bg);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.gallery-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 242, 167, 0.25);
}

/* Image Container */
.gallery-img {
	position: relative;
	overflow: hidden;
	height: 280px;
	background: rgba(0, 0, 0, 0.2);
}

.gallery-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img img {
	transform: scale(1.1);
}

/* Category Badge */
.gallery-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--primary-color);
	color: #0a0e27;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(0, 242, 167, 0.4);
}

/* Overlay */
.gallery-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 14, 39, 0.95) 0%, transparent 50%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

/* Content */
.gallery-content h4 {
	color: rgba(255, 255, 255, 0.95);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

.gallery-content p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	margin-bottom: 16px;
}

/* Action Button */
.gallery-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--primary-color);
	color: #0a0e27;
	font-size: 18px;
	transition: all 0.3s ease;
	text-decoration: none;
}

.gallery-action:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 242, 167, 0.5);
}

/* Responsive */
@media (max-width: 991.98px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
	}

	.gallery-img {
		height: 240px;
	}
}

@media (max-width: 767.98px) {
	#portfolio .section-header h3 {
		font-size: 2rem;
	}

	.filter-btn {
		padding: 8px 18px;
		font-size: 13px;
	}

	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 16px;
	}

	.gallery-img {
		height: 220px;
	}

	.gallery-overlay {
		padding: 20px;
	}

	.gallery-content h4 {
		font-size: 16px;
	}
}

@media (max-width: 575.98px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-img {
		height: 240px;
	}
}
