/* ===== STRONA W BUDOWIE - CSS ===== */

/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	overflow: hidden;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 100vh;
}

/* Animated background */
body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 20% 80%, rgba(0, 255, 127, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(0, 255, 127, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 40% 40%, rgba(0, 255, 127, 0.03) 0%, transparent 50%);
	animation: backgroundPulse 4s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
	0% {
		opacity: 0.3;
	}
	100% {
		opacity: 0.7;
	}
}

/* Main container */
.construction-container {
	text-align: center;
	position: relative;
	z-index: 2;
	max-width: 800px;
	padding: 2rem;
}

/* Icon */
.construction-icon {
	font-size: 6rem;
	color: #00ff7f;
	margin-bottom: 2rem;
	display: block;
	animation: iconFloat 3s ease-in-out infinite;
	text-shadow: 0 0 30px rgba(0, 255, 127, 0.5);
}

@keyframes iconFloat {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
}

/* Title */
.construction-title {
	font-size: 4rem;
	font-weight: 800;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #00ff7f 0%, #ffffff 50%, #00ff7f 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: titleGlow 2s ease-in-out infinite alternate;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

@keyframes titleGlow {
	0% {
		filter: drop-shadow(0 0 10px rgba(0, 255, 127, 0.3));
	}
	100% {
		filter: drop-shadow(0 0 20px rgba(0, 255, 127, 0.6));
	}
}

/* Subtitle */
.construction-subtitle {
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 3rem;
	font-weight: 400;
	letter-spacing: 0.05em;
}

/* Loading animation */
.loading-container {
	margin-bottom: 3rem;
}

.loading-bar {
	width: 300px;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	overflow: hidden;
	margin: 0 auto 1rem;
	position: relative;
}

.loading-progress {
	height: 100%;
	background: linear-gradient(90deg, transparent, #00ff7f, transparent);
	width: 50%;
	animation: loading 2s ease-in-out infinite;
	border-radius: 2px;
}

@keyframes loading {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(200%);
	}
}

.loading-text {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
	animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
	0%,
	100% {
		opacity: 0.6;
	}
	50% {
		opacity: 1;
	}
}

/* Back button */
.back-button {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2rem;
	background: linear-gradient(135deg, rgba(0, 255, 127, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
	border: 1px solid rgba(0, 255, 127, 0.3);
	border-radius: 12px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.back-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 127, 0.2), transparent);
	transition: left 0.5s ease;
}

.back-button:hover::before {
	left: 100%;
}

.back-button:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 255, 127, 0.6);
	box-shadow: 0 10px 30px rgba(0, 255, 127, 0.2);
	background: linear-gradient(135deg, rgba(0, 255, 127, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.back-button i {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.back-button:hover i {
	transform: translateX(-3px);
}

/* Floating particles */
.particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: rgba(0, 255, 127, 0.4);
	border-radius: 50%;
	animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) {
	left: 10%;
	animation-delay: 0s;
}
.particle:nth-child(2) {
	left: 20%;
	animation-delay: 1s;
}
.particle:nth-child(3) {
	left: 30%;
	animation-delay: 2s;
}
.particle:nth-child(4) {
	left: 40%;
	animation-delay: 3s;
}
.particle:nth-child(5) {
	left: 50%;
	animation-delay: 4s;
}
.particle:nth-child(6) {
	left: 60%;
	animation-delay: 5s;
}
.particle:nth-child(7) {
	left: 70%;
	animation-delay: 6s;
}
.particle:nth-child(8) {
	left: 80%;
	animation-delay: 7s;
}
.particle:nth-child(9) {
	left: 90%;
	animation-delay: 8s;
}

@keyframes particleFloat {
	0% {
		transform: translateY(100vh) rotate(0deg);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		transform: translateY(-10vh) rotate(360deg);
		opacity: 0;
	}
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.construction-container {
		padding: 1.5rem;
	}

	.construction-icon {
		font-size: 4rem;
		margin-bottom: 1.5rem;
	}

	.construction-title {
		font-size: 2.5rem;
		margin-bottom: 0.8rem;
	}

	.construction-subtitle {
		font-size: 1.2rem;
		margin-bottom: 2rem;
	}

	.loading-bar {
		width: 250px;
	}

	.back-button {
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.construction-container {
		padding: 1rem;
	}

	.construction-icon {
		font-size: 3rem;
		margin-bottom: 1rem;
	}

	.construction-title {
		font-size: 2rem;
		margin-bottom: 0.5rem;
	}

	.construction-subtitle {
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}

	.loading-bar {
		width: 200px;
	}

	.back-button {
		padding: 0.75rem 1.25rem;
		font-size: 0.9rem;
		gap: 0.5rem;
	}
}

@media screen and (max-width: 320px) {
	.construction-title {
		font-size: 1.75rem;
	}

	.construction-subtitle {
		font-size: 0.9rem;
	}

	.loading-bar {
		width: 180px;
	}
}
