/**
 * Gallery Page Specific Styles
 *
 * @format
 */

:root {
	--primary: #0b5394; /* blue */
	--secondary: #ff7f11; /* orange */
	--accent: #1f6fb2; /* blue accent */
	--success: #48bb78;
	--danger: #e53e3e;
	--info: #3182ce;
	--light: #f8f9fa;
	--dark: #2d3748;
	--text: #4a5568;
	--text-light: #718096;
	--border: #e2e8f0;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
	--gradient-primary: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--accent) 100%
	);
	--gradient-gold: linear-gradient(135deg, var(--secondary) 0%, #ffab4d 100%);
}

/* Enhanced Hero Section */
.page-hero.gallery-hero {
	min-height: 70vh;
	display: flex;
	align-items: center;
	position: relative;
	background: var(--gradient-primary);
	overflow: hidden;
	padding: 120px 0 80px;
}

.page-hero.gallery-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
			circle at 20% 80%,
			rgba(212, 175, 55, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 20%,
			rgba(255, 255, 255, 0.05) 0%,
			transparent 50%
		);
}

.hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 800;
	margin-bottom: 1.5rem;
	color: white;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 3rem;
	line-height: 1.6;
	font-weight: 300;
}

.hero-buttons {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Enhanced Floating Shapes */
.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.floating-shape {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	animation: float 6s ease-in-out infinite;
}

.shape-1 {
	width: 120px;
	height: 120px;
	top: 20%;
	left: 10%;
	animation-delay: 0s;
}

.shape-2 {
	width: 80px;
	height: 80px;
	bottom: 10%;
	right: 15%;
	animation-delay: 2s;
}

.shape-3 {
	width: 60px;
	height: 60px;
	top: 40%;
	right: 20%;
	animation-delay: 4s;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
}

/* Gallery Filters */
.gallery-filters-section {
	padding: 40px 0;
	background: white;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 70px;
	z-index: 100;
}

.gallery-filters {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.filter-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 25px;
	border: 2px solid var(--border);
	background: white;
	color: var(--text);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-btn:hover {
	border-color: var(--secondary);
	color: var(--secondary);
	transform: translateY(-2px);
}

.filter-btn.active {
	background: var(--gradient-gold);
	border-color: var(--secondary);
	color: white;
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.filter-btn i {
	font-size: 1.1rem;
}

/* Ensure buttons start hidden for GSAP */
.filter-btn {
	opacity: 0;
	transform: translateY(30px);
}

/* Gallery Grid */
.gallery-section {
	padding: 80px 0;
	background: var(--light);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 50px;
}

.gallery-item {
	opacity: 1;
	transform: translateY(0);
}

.gallery-card {
	background: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	cursor: pointer;
}

.gallery-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-lg);
}

.gallery-image {
	position: relative;
	overflow: hidden;
	height: 250px;
}

.image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 600;
	position: relative;
}

/* Different background colors for different categories */
.event-1 {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.event-2 {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.event-3 {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.event-4 {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.festival-1 {
	background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
.festival-2 {
	background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}
.festival-3 {
	background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.campus-1 {
	background: linear-gradient(135deg, #cd9cf2 0%, #f6f3ff 100%);
}
.campus-2 {
	background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}
.campus-3 {
	background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
}

.achievement-1 {
	background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
.achievement-2 {
	background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}
.achievement-3 {
	background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.sports-1 {
	background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}
.sports-2 {
	background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}
.sports-3 {
	background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

.image-placeholder i {
	font-size: 3rem;
	margin-bottom: 15px;
	opacity: 0.9;
}

.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-card:hover .image-overlay {
	opacity: 1;
}

.overlay-content {
	text-align: center;
	color: white;
	padding: 20px;
}

.overlay-content h3 {
	font-size: 1.3rem;
	margin-bottom: 10px;
	font-weight: 700;
}

.overlay-content p {
	font-size: 0.9rem;
	margin-bottom: 15px;
	opacity: 0.9;
}

.image-meta {
	display: flex;
	justify-content: center;
	gap: 15px;
	font-size: 0.8rem;
}

.image-meta span {
	display: flex;
	align-items: center;
	gap: 5px;
	opacity: 0.8;
}

.gallery-info {
	padding: 20px;
}

.gallery-info h3 {
	color: var(--primary);
	margin-bottom: 8px;
	font-size: 1.2rem;
	font-weight: 700;
}

.gallery-info p {
	color: var(--text-light);
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Load More Button */
.load-more-container {
	text-align: center;
	margin-top: 40px;
}

.btn-load-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	background: var(--gradient-gold);
	color: white;
	border: none;
	border-radius: 25px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow);
}

.btn-load-more:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

/* Events Section */
.events-section {
	padding: 100px 0;
	background: white;
}

.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-tag {
	display: inline-block;
	background: var(--gradient-gold);
	color: white;
	padding: 8px 20px;
	border-radius: 25px;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: var(--shadow);
}

.section-title {
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--primary);
	margin-bottom: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.section-header p {
	font-size: 1.2rem;
	color: var(--text-light);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

.events-timeline {
	max-width: 800px;
	margin: 0 auto;
}

.timeline-item {
	display: flex;
	gap: 30px;
	margin-bottom: 40px;
	padding: 30px;
	background: var(--light);
	border-radius: 15px;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
}

.timeline-item:hover {
	transform: translateX(10px);
	box-shadow: var(--shadow-lg);
}

.timeline-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	background: var(--gradient-primary);
	color: white;
	padding: 15px;
	border-radius: 10px;
	text-align: center;
}

.date-day {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}

.date-month {
	font-size: 0.9rem;
	font-weight: 600;
	margin: 5px 0;
}

.date-year {
	font-size: 0.8rem;
	opacity: 0.9;
}

.timeline-content {
	flex: 1;
}

.timeline-content h3 {
	color: var(--primary);
	margin-bottom: 10px;
	font-size: 1.4rem;
	font-weight: 700;
}

.timeline-content p {
	color: var(--text);
	margin-bottom: 15px;
	line-height: 1.6;
}

.event-stats {
	display: flex;
	gap: 20px;
}

.event-stats span {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--text-light);
	font-size: 0.9rem;
	font-weight: 500;
}

.event-stats i {
	color: var(--secondary);
}

/* CTA Section */
.gallery-cta-section {
	padding: 100px 0;
	background: var(--gradient-primary);
	text-align: center;
	color: white;
}

.cta-content h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 1rem;
	font-weight: 700;
}

.cta-content p {
	font-size: 1.3rem;
	margin-bottom: 3rem;
	opacity: 0.9;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.cta-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Enhanced Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--gradient-gold);
	color: white;
	box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-outline {
	background: transparent;
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
	background: white;
	color: var(--primary);
	border-color: white;
	transform: translateY(-3px);
}

.btn i {
	transition: transform 0.3s ease;
}

.btn:hover i {
	transform: translateX(5px);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: white;
	z-index: 10;
}

.scroll-indicator span {
	display: block;
	margin-bottom: 12px;
	font-size: 0.9rem;
	opacity: 0.8;
	animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
	0%,
	100% {
		opacity: 0.5;
	}
	50% {
		opacity: 1;
	}
}

.scroll-arrow {
	width: 2px;
	height: 30px;
	background: white;
	margin: 0 auto;
	position: relative;
	animation: bounce 2s infinite;
}

.scroll-arrow::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: -4px;
	width: 10px;
	height: 10px;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	transform: rotate(45deg);
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* Lightbox Modal */
.lightbox-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

.lightbox-modal.active {
	display: flex;
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	background: white;
	border-radius: 15px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.lightbox-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
}

.lightbox-close:hover {
	background: var(--danger);
	transform: scale(1.1);
}

.lightbox-image {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--light);
}

.lightbox-img {
	width: 100%;
	max-width: 600px;
	height: 400px;
	border-radius: 10px;
}

.lightbox-info {
	padding: 25px;
	background: white;
	border-top: 1px solid var(--border);
}

.lightbox-title {
	color: var(--primary);
	margin-bottom: 10px;
	font-size: 1.5rem;
	font-weight: 700;
}

.lightbox-description {
	color: var(--text);
	margin-bottom: 15px;
	line-height: 1.5;
}

.lightbox-meta {
	display: flex;
	gap: 20px;
}

.lightbox-meta span {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--text-light);
	font-size: 0.9rem;
}

.lightbox-meta i {
	color: var(--secondary);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.lightbox-nav:hover {
	background: var(--secondary);
	transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 25px;
	}

	.timeline-item {
		flex-direction: column;
		text-align: center;
	}

	.timeline-date {
		flex-direction: row;
		justify-content: center;
		gap: 10px;
		min-width: auto;
	}

	.date-day {
		font-size: 1.5rem;
	}
}

@media (max-width: 768px) {
	.page-hero.gallery-hero {
		min-height: 60vh;
		padding: 100px 0 60px;
	}

	.gallery-filters {
		flex-direction: column;
		align-items: center;
	}

	.filter-btn {
		width: 100%;
		max-width: 250px;
		justify-content: center;
	}

	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.cta-buttons {
		flex-direction: column;
		align-items: center;
	}

	.event-stats {
		flex-direction: column;
		gap: 10px;
	}

	.lightbox-content {
		max-width: 95%;
		max-height: 95%;
	}

	.lightbox-image {
		padding: 10px;
	}

	.lightbox-img {
		height: 300px;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-image {
		height: 200px;
	}

	.image-placeholder i {
		font-size: 2rem;
	}

	.lightbox-nav {
		width: 40px;
		height: 40px;
	}

	.lightbox-prev {
		left: 10px;
	}

	.lightbox-next {
		right: 10px;
	}
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
.filter-btn:focus,
.lightbox-close:focus,
.lightbox-nav:focus {
	outline: 2px solid var(--secondary);
	outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
