/* ================================================
   UZG Creative - Links Page Styles
   ================================================ */

/* ================================================
   1. CSS Reset & Base Styles
   ================================================ */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body,
html {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: #ffffff;
	min-height: 100vh;
}

/* ================================================
   2. Desktop Background Design
   ================================================ */
@media (min-width: 768px) {
	body {
		/* Professional subtle gradient background */
		background: linear-gradient(
			180deg,
			#f5f7fa 0%,
			#e8eef5 50%,
			#dfe6f0 100%
		);
		position: relative;
		overflow-x: hidden;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 100vh;
	}

	/* Subtle texture overlay */
	body::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-image:
			repeating-linear-gradient(
				0deg,
				transparent,
				transparent 2px,
				rgba(255, 255, 255, 0.3) 2px,
				rgba(255, 255, 255, 0.3) 4px
			),
			repeating-linear-gradient(
				90deg,
				transparent,
				transparent 2px,
				rgba(255, 255, 255, 0.3) 2px,
				rgba(255, 255, 255, 0.3) 4px
			);
		background-size: 50px 50px;
		opacity: 0.4;
		pointer-events: none;
		z-index: 0;
	}
}

/* ================================================
   3. Container & Layout
   ================================================ */
.container {
	max-width: 420px;
	margin: 0 auto;
	background-color: #ffffff;
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.container {
		margin: 2rem auto;
		border-radius: 16px;
		box-shadow:
			0 4px 6px rgba(0, 0, 0, 0.07),
			0 10px 20px rgba(0, 0, 0, 0.08),
			0 0 0 1px rgba(0, 0, 0, 0.05);
		overflow: hidden;
	}
}

/* ================================================
   4. Header Section
   ================================================ */
.header {
	width: 100%;
	max-height: 200px;
	position: relative;
	overflow: hidden;
}

.header img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.logo-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 50px;
	background-image: url("../images/logo_only_clean.png");
	background-repeat: repeat-x;
	background-size: 50px 50px;
	animation: fadeIn 1s ease-in-out forwards 0.2s, scrollBackground 5s linear infinite;
	z-index: 2;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes scrollBackground {
	from {
		background-position: 0 0;
	}
	to {
		background-position: -50px 0;
	}
}

/* ================================================
   5. Main Image
   ================================================ */
.main-image {
	height: 500px;
	width: 100%;
	display: block;
	object-fit: cover;
}

/* ================================================
   6. Content Section
   ================================================ */
.content {
	padding: 20px;
	padding-top: 0;
}

.content img {
	width: 100%;
	height: auto;
	display: block;
}

/* ================================================
   7. Link Boxes with Enhanced Interactions
   ================================================ */
.link-box {
	margin-top: 15px;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.link-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(66, 99, 235, 0.05), rgba(88, 80, 236, 0.05));
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 1;
}

.link-box:hover::before {
	opacity: 1;
}

.link-box:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow:
		0 12px 24px rgba(0, 0, 0, 0.15),
		0 6px 12px rgba(0, 0, 0, 0.1);
}

.link-box a {
	display: block;
	position: relative;
	z-index: 2;
}

.link-box img {
	width: 100%;
	height: auto;
	display: block;
	transition: filter 0.3s ease, transform 0.3s ease;
}

.link-box:hover img {
	filter: brightness(1.05) contrast(1.05);
	transform: scale(1.01);
}

.link-box:active {
	transform: translateY(-2px) scale(1.01);
}

/* ================================================
   8. Accessibility & Performance
   ================================================ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus styles for keyboard navigation */
a:focus-visible {
	outline: 3px solid #4263eb;
	outline-offset: 4px;
	border-radius: 12px;
}

/* ================================================
   9. Loading Animation
   ================================================ */
@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.link-box {
	animation: slideUp 0.6s ease-out backwards;
}

.link-box:nth-child(1) {
	animation-delay: 0.1s;
}

.link-box:nth-child(2) {
	animation-delay: 0.2s;
}

.link-box:nth-child(3) {
	animation-delay: 0.3s;
}

/* ================================================
   10. Mobile Optimizations
   ================================================ */
@media (max-width: 767px) {
	.container {
		min-height: 100vh;
	}

	.link-box:active {
		transform: scale(0.98);
		transition: transform 0.1s ease;
	}
}

/* ================================================
   11. Print Styles
   ================================================ */
@media print {
	body {
		background: white;
	}

	.logo-container {
		animation: none;
	}

	.link-box {
		page-break-inside: avoid;
	}
}
