/* Premium Gallery Section - Ultra Modern Design */

.premium-gallery-section {
	padding: 120px 0;
	background: linear-gradient(180deg, #0a0a15 0%, #0f0f1e 50%, #0a0a15 100%);
	position: relative;
	overflow: hidden;
	border-bottom: none;
	margin-bottom: 0;
}

/* Background Elements */
.gallery-background {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: 
		radial-gradient(circle at 30% 50%, rgba(184, 134, 11, 0.06) 0%, transparent 50%),
		radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.04) 0%, transparent 50%);
}

.gallery-grid-overlay {
	position: absolute;
	inset: 0;
	background-image: 
		linear-gradient(rgba(184, 134, 11, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(184, 134, 11, 0.05) 1px, transparent 1px);
	background-size: 50px 50px;
	animation: galleryGridMove 40s linear infinite;
	opacity: 0.4;
}

@keyframes galleryGridMove {
	0% {
		transform: translate(0, 0);
	}
	100% {
		transform: translate(50px, 50px);
	}
}

/* Header */
.gallery-header {
	text-align: center;
	margin-bottom: 80px;
	position: relative;
	z-index: 2;
}

.gallery-badge {
	display: inline-block;
	padding: 10px 28px;
	background: rgba(184, 134, 11, 0.15);
	border: 2px solid rgba(184, 134, 11, 0.4);
	border-radius: 30px;
	color: #FFD700;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.5px;
	margin-bottom: 22px;
	text-transform: uppercase;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(184, 134, 11, 0.2);
}

.gallery-title {
	font-size: 52px;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	margin-bottom: 20px;
	letter-spacing: -1px;
}

.gallery-title span {
	background: linear-gradient(135deg, #B8860B 0%, #FFD700 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.gallery-subtitle {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.7;
	max-width: 750px;
	margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	position: relative;
	z-index: 2;
}

/* Gallery Item */
.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	cursor: pointer;
	height: 420px;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.gallery-large {
	grid-row: span 2;
	height: 865px;
}

.gallery-item.gallery-wide {
	grid-column: span 2;
}

/* Gallery Image */
.gallery-image {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid rgba(255, 255, 255, 0.05);
}

.gallery-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(184, 134, 11, 0.3) 0%, transparent 50%);
	z-index: 1;
	opacity: 0.6;
	transition: opacity 0.6s ease;
}

.gallery-item:hover .gallery-image::before {
	opacity: 0;
}

.gallery-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		45deg,
		transparent 0%,
		rgba(184, 134, 11, 0.1) 50%,
		transparent 100%
	);
	transform: translateX(-100%);
	transition: transform 0.8s ease;
	z-index: 2;
}

.gallery-item:hover .gallery-image::after {
	transform: translateX(100%);
}

.gallery-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
	filter: brightness(0.85);
}

.gallery-item:hover .gallery-image {
	box-shadow: 
		0 30px 90px rgba(184, 134, 11, 0.4),
		0 0 60px rgba(184, 134, 11, 0.3),
		inset 0 0 0 2px rgba(184, 134, 11, 0.5);
	transform: translateY(-8px) scale(1.02);
	border-color: rgba(184, 134, 11, 0.6);
}

.gallery-item:hover .gallery-image img {
	transform: scale(1.15) rotate(2deg);
	filter: brightness(1);
}

/* Gallery Overlay */
.gallery-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(10, 10, 21, 0.4) 30%,
		rgba(10, 10, 21, 0.95) 100%
	);
	display: flex;
	align-items: flex-end;
	padding: 40px;
	opacity: 0;
	transition: opacity 0.6s ease;
	z-index: 3;
	backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

/* Overlay Content */
.gallery-overlay-content {
	width: 100%;
	transform: translateY(40px);
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay-content {
	transform: translateY(0);
}

/* Project Category */
.project-category {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	background: linear-gradient(135deg, #B8860B 0%, #FFD700 100%);
	backdrop-filter: blur(10px);
	border-radius: 25px;
	margin-bottom: 18px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	box-shadow: 0 8px 24px rgba(184, 134, 11, 0.4);
	animation: categoryPulse 2s ease-in-out infinite;
}

@keyframes categoryPulse {
	0%, 100% {
		box-shadow: 0 8px 24px rgba(184, 134, 11, 0.4);
	}
	50% {
		box-shadow: 0 8px 32px rgba(184, 134, 11, 0.6);
	}
}

.project-category i {
	font-size: 15px;
}

/* Project Title */
.project-title {
	font-size: 26px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 12px;
	line-height: 1.3;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	letter-spacing: -0.5px;
}

.gallery-item.gallery-large .project-title {
	font-size: 36px;
}

/* Project Description */
.project-description {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.7;
	margin-bottom: 18px;
	font-weight: 400;
}

/* Project Details */
.project-details {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.project-details span {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.95);
	font-weight: 600;
	transition: all 0.3s ease;
}

.project-details span:hover {
	background: rgba(184, 134, 11, 0.3);
	border-color: rgba(184, 134, 11, 0.5);
	transform: translateY(-2px);
}

.project-details i {
	font-size: 15px;
	color: #FFD700;
}

/* Hover Effects */
.gallery-item::after {
	content: '';
	position: absolute;
	inset: -3px;
	border: 3px solid transparent;
	border-radius: 26px;
	background: linear-gradient(135deg, rgba(184, 134, 11, 0.6), rgba(255, 215, 0, 0.6)) border-box;
	-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
	z-index: 4;
}

.gallery-item:hover::after {
	opacity: 1;
}

/* Shine Effect */
.gallery-item::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(
		45deg,
		transparent 30%,
		rgba(255, 255, 255, 0.1) 50%,
		transparent 70%
	);
	transform: rotate(45deg);
	animation: shine 3s ease-in-out infinite;
	z-index: 5;
	pointer-events: none;
}

@keyframes shine {
	0%, 100% {
		transform: translateX(-100%) translateY(-100%) rotate(45deg);
	}
	50% {
		transform: translateX(100%) translateY(100%) rotate(45deg);
	}
}

/* Responsive Design */
@media (max-width: 1200px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	
	.gallery-item {
		height: 380px;
	}
	
	.gallery-item.gallery-large {
		height: 780px;
	}
	
	.gallery-item.gallery-wide {
		grid-column: span 2;
	}
}

@media (max-width: 992px) {
	.premium-gallery-section {
		padding: 90px 0;
	}
	
	.gallery-header {
		margin-bottom: 60px;
	}
	
	.gallery-title {
		font-size: 42px;
	}
	
	.gallery-grid {
		gap: 18px;
	}
	
	.gallery-item {
		height: 350px;
	}
	
	.gallery-item.gallery-large {
		grid-row: span 1;
		height: 350px;
	}
	
	.gallery-item.gallery-wide {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	.premium-gallery-section {
		padding: 70px 0;
	}
	
	.gallery-title {
		font-size: 36px;
	}
	
	.gallery-subtitle {
		font-size: 16px;
	}
	
	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.gallery-item,
	.gallery-item.gallery-large,
	.gallery-item.gallery-wide {
		grid-column: span 1;
		grid-row: span 1;
		height: 320px;
	}
	
	.gallery-overlay {
		padding: 30px;
	}
	
	.project-title {
		font-size: 22px;
	}
	
	.gallery-item.gallery-large .project-title {
		font-size: 26px;
	}
	
	.project-description {
		font-size: 14px;
	}
}

@media (max-width: 576px) {
	.gallery-item,
	.gallery-item.gallery-large,
	.gallery-item.gallery-wide {
		height: 300px;
	}
	
	.gallery-overlay {
		padding: 25px;
	}
	
	.project-title {
		font-size: 20px;
	}
	
	.gallery-item.gallery-large .project-title {
		font-size: 22px;
	}
	
	.project-description {
		font-size: 13px;
		margin-bottom: 15px;
	}
	
	.project-details {
		gap: 12px;
	}
	
	.project-details span {
		font-size: 12px;
		padding: 5px 12px;
	}
}

/* Loading Animation */
@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(30px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.gallery-item {
	animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Floating Animation for Items */
@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.gallery-item:nth-child(odd) {
	animation: float 6s ease-in-out infinite;
}

.gallery-item:nth-child(even) {
	animation: float 6s ease-in-out infinite reverse;
}

.gallery-item:hover {
	animation: none;
}

