/*
proscuba.eu | style.css | Created by IT Kraft Kft. | www.itkraft.hu
*/

:root {
	--deep: #001b2e;
	--mid: #004b7a;
	--light: #2dc8d7;
	--foam: #d5f8ff;
	--sand: #d4b36a;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-family: "Outfit", sans-serif;
	background: radial-gradient(circle at 20% -10%, #4ecfe0 0%, transparent 35%),
							radial-gradient(circle at 80% 110%, #006f9e 0%, transparent 42%),
							linear-gradient(180deg, #6be6f0 0%, #0f7fa7 36%, #00557f 70%, #00334f 100%);
	color: var(--foam);
}

.underwater-glow {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: repeating-radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 26px);
	mix-blend-mode: soft-light;
	animation: ripple 12s linear infinite;
}

.reef {
	position: fixed;
	left: 0;
	right: 0;
	bottom: -3vh;
	height: 26vh;
	background: linear-gradient(180deg, rgba(212, 179, 106, 0.1), rgba(212, 179, 106, 0.6));
	clip-path: polygon(0 100%, 0 45%, 8% 56%, 16% 38%, 23% 55%, 32% 36%, 41% 57%, 50% 30%, 59% 58%, 67% 43%, 76% 62%, 85% 41%, 92% 55%, 100% 35%, 100% 100%);
	filter: blur(0.2px);
}

.scene {
	position: relative;
	width: 100%;
	height: 100%;
	isolation: isolate;
}

.top-nav {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 12;
	display: flex;
	gap: 8px;
	padding: 8px;
	border-radius: 999px;
	background: rgba(0, 25, 40, 0.42);
	backdrop-filter: blur(6px);
	box-shadow: inset 0 0 0 1px rgba(213, 248, 255, 0.25);
}

.lang-btn {
	border: 0;
	min-width: 46px;
	height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(213, 248, 255, 0.14);
	color: var(--foam);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.lang-btn:hover {
	background: rgba(213, 248, 255, 0.24);
	transform: translateY(-1px);
}

.lang-btn.active {
	background: rgba(45, 200, 215, 0.65);
	color: #01202f;
}

.logo-wrap {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 8;
	width: min(92vw, 900px);
	max-height: 88vh;
	overflow: auto;
	padding: clamp(14px, 2.2vw, 24px);
	border-radius: 26px;
	background: linear-gradient(140deg, rgba(0, 27, 46, 0.58), rgba(0, 75, 122, 0.24));
	backdrop-filter: blur(4px);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(213, 248, 255, 0.26);
	animation: logoFloat 5.5s ease-in-out infinite;
	text-align: center;
}

.logo-wrap img {
	display: block;
	width: min(100%, 420px);
	margin: 0 auto;
	height: auto;
	filter: drop-shadow(0 0 22px rgba(213, 248, 255, 0.46));
}

.logo-subtitle {
	margin-top: clamp(12px, 2vw, 18px);
	text-align: center;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: clamp(0.62rem, 1.2vw, 0.84rem);
	color: rgba(213, 248, 255, 0.85);
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.38);
}

.profile-content {
	margin-top: clamp(12px, 2vw, 18px);
	padding: clamp(14px, 1.8vw, 20px);
	border-radius: 18px;
	text-align: left;
	background: linear-gradient(145deg, rgba(0, 20, 34, 0.62), rgba(0, 58, 88, 0.35));
	box-shadow: inset 0 0 0 1px rgba(213, 248, 255, 0.16);
}

.profile-content h1 {
	margin: 0 0 12px;
	font-size: clamp(1.2rem, 2.2vw, 1.8rem);
	letter-spacing: 0.04em;
}

.profile-content p {
	margin: 0 0 10px;
	line-height: 1.5;
	font-size: clamp(0.86rem, 1.36vw, 1rem);
	color: rgba(213, 248, 255, 0.95);
}

.profile-content .contact-title {
	margin-top: 16px;
	font-weight: 700;
}

.contact-item {
	margin: 4px 0;
	font-size: clamp(0.82rem, 1.3vw, 0.98rem);
}

.logo-wrap a,
.logo-wrap a:visited {
	color: #ffffff;
	text-decoration-color: rgba(255, 255, 255, 0.75);
}

.logo-wrap a:hover,
.logo-wrap a:focus-visible {
	color: #000000;
	text-decoration-color: #000000;
}

.social-row {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(24, 119, 242, 0.24);
	box-shadow: inset 0 0 0 1px rgba(213, 248, 255, 0.28);
	transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover {
	transform: translateY(-1px);
	background: rgba(24, 119, 242, 0.4);
}

.social-link svg {
	width: 22px;
	height: 22px;
	fill: #d5f8ff;
}

.site-footer {
	position: fixed;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	z-index: 14;
	font-size: 0.82rem;
	color: rgba(213, 248, 255, 0.92);
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.site-footer a,
.site-footer a:visited {
	color: inherit;
	text-decoration-color: currentColor;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: #000000;
	text-decoration-color: #000000;
}

.fish-layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 3;
}

.diver-layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 4;
	pointer-events: none;
}

.fish {
	position: absolute;
	left: -16vw;
	top: var(--y);
	width: var(--size);
	height: calc(var(--size) * 0.46);
	border-radius: 50% 44% 48% 42%;
	background: linear-gradient(90deg, rgba(213, 248, 255, 0.95), rgba(62, 206, 220, 0.7));
	opacity: var(--opacity);
	filter: blur(var(--blur));
	animation: swim var(--duration) linear infinite;
	animation-delay: var(--delay);
}

.fish::before {
	content: "";
	position: absolute;
	left: -18%;
	top: 18%;
	width: 30%;
	height: 65%;
	background: rgba(213, 248, 255, 0.85);
	clip-path: polygon(100% 50%, 0 0, 0 100%);
	transform-origin: left center;
	animation: tail 0.8s ease-in-out infinite;
}

.fish::after {
	content: "";
	position: absolute;
	right: 14%;
	top: 35%;
	width: 8%;
	height: 20%;
	border-radius: 50%;
	background: #001521;
	opacity: 0.7;
}

.fish.back {
	transform: scale(0.7);
	opacity: calc(var(--opacity) * 0.6);
}

.shark {
	position: absolute;
	left: -24vw;
	top: var(--y);
	width: var(--size);
	height: calc(var(--size) * 0.34);
	border-radius: 46% 52% 44% 58%;
	background: linear-gradient(90deg, rgba(150, 186, 204, 0.9), rgba(92, 125, 148, 0.85));
	opacity: var(--opacity);
	filter: blur(var(--blur));
	animation: sharkSwim var(--duration) linear infinite;
	animation-delay: var(--delay);
}

.shark::before {
	content: "";
	position: absolute;
	left: 36%;
	top: -38%;
	width: 22%;
	height: 54%;
	background: rgba(128, 164, 183, 0.86);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.shark::after {
	content: "";
	position: absolute;
	left: -20%;
	top: 18%;
	width: 24%;
	height: 62%;
	background: rgba(168, 201, 218, 0.9);
	clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.jellyfish {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: var(--size);
	height: calc(var(--size) * 1.4);
	opacity: var(--opacity);
	filter: blur(var(--blur));
	animation: jellyDrift var(--duration) ease-in-out infinite;
	animation-delay: var(--delay);
}

.jellyfish::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 54%;
	border-radius: 50% 50% 42% 42%;
	background: radial-gradient(circle at 45% 20%, rgba(233, 250, 255, 0.88), rgba(126, 202, 224, 0.46));
}

.jellyfish::after {
	content: "";
	position: absolute;
	left: 20%;
	top: 48%;
	width: 60%;
	height: 52%;
	background: repeating-linear-gradient(
		90deg,
		rgba(169, 232, 246, 0.78) 0 2px,
		transparent 2px 8px
	);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.12));
}

.diver {
	position: absolute;
	left: -20vw;
	top: var(--y, 50%);
	width: var(--size, 120px);
	height: calc(var(--size, 120px) * 0.44);
	opacity: 0;
	filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.34));
	animation: diverSwim var(--duration, 15s) linear forwards;
	transform-origin: center center;
}

.diver .head {
	position: absolute;
	right: 12%;
	top: 23%;
	width: 9%;
	height: 24%;
	border-radius: 50%;
	background: #1c3642;
}

.diver .mask {
	position: absolute;
	right: 9.5%;
	top: 28%;
	width: 7%;
	height: 12%;
	border-radius: 8px;
	background: #84d8ee;
	border: 1px solid rgba(8, 20, 28, 0.55);
}

.diver .snorkel {
	position: absolute;
	right: 7.8%;
	top: 18%;
	width: 2.2%;
	height: 16%;
	border-radius: 4px;
	background: #0f2430;
}

.diver .torso {
	position: absolute;
	right: 20%;
	top: 28%;
	width: 30%;
	height: 22%;
	border-radius: 16px 20px 20px 14px;
	background: linear-gradient(90deg, #07131a, #16313e 65%, #1d3e4f);
	transform: rotate(-8deg);
}

.diver .waist {
	position: absolute;
	right: 41%;
	top: 43%;
	width: 10%;
	height: 11%;
	border-radius: 8px;
	background: #0e2734;
}

.diver .tank {
	position: absolute;
	right: 42%;
	top: 23%;
	width: 9%;
	height: 30%;
	border-radius: 7px;
	background: linear-gradient(180deg, #91a8b5, #657f8e);
}

.diver .arm {
	position: absolute;
	top: 46%;
	width: 13%;
	height: 6%;
	background: #0f2c3a;
	border-radius: 7px;
}

.diver .arm.front {
	right: 28%;
	transform-origin: right center;
	animation: armMove 1.5s ease-in-out infinite;
}

.diver .arm.back {
	right: 37%;
	opacity: 0.85;
	transform-origin: right center;
	animation: armMove 1.5s ease-in-out infinite reverse;
}

.diver .thigh {
	position: absolute;
	top: 48%;
	width: 18%;
	height: 7%;
	background: #112d3b;
	border-radius: 7px;
	transform-origin: right center;
}

.diver .thigh.front {
	right: 46%;
	animation: none;
	transform: rotate(4deg);
}

.diver .thigh.back {
	right: 51%;
	opacity: 0.8;
	animation: none;
	transform: rotate(-8deg);
}

.diver .shin {
	position: absolute;
	top: 52%;
	width: 15%;
	height: 6.5%;
	background: #0f2c3a;
	border-radius: 7px;
	transform-origin: right center;
}

.diver .shin.front {
	right: 58%;
	animation: none;
	transform: rotate(12deg);
}

.diver .shin.back {
	right: 62%;
	opacity: 0.82;
	animation: none;
	transform: rotate(3deg);
}

.diver .fin {
	position: absolute;
	top: 52.5%;
	width: 13%;
	height: 11%;
	background: #0b1f2b;
	clip-path: polygon(0 50%, 100% 14%, 100% 86%, 18% 76%, 18% 24%);
}

.diver .fin.front {
	right: 69%;
	transform-origin: right center;
	animation: none;
	transform: rotate(8deg);
}

.diver .fin.back {
	right: 73%;
	opacity: 0.84;
	transform-origin: right center;
	animation: none;
	transform: rotate(-6deg);
}

.diver .bubble-trail {
	position: absolute;
	right: 14%;
	top: 13%;
	width: 6%;
	height: 12%;
	border-radius: 50%;
	background: rgba(213, 248, 255, 0.72);
	box-shadow: -11px -7px 0 -2px rgba(213, 248, 255, 0.45), -18px -13px 0 -4px rgba(213, 248, 255, 0.3);
}

.bubbles {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.bubble {
	position: absolute;
	bottom: -10vh;
	width: var(--b-size);
	height: var(--b-size);
	left: var(--x);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7), rgba(213, 248, 255, 0.05));
	border: 1px solid rgba(213, 248, 255, 0.55);
	animation: rise var(--b-duration) linear infinite;
	animation-delay: var(--b-delay);
	opacity: 0.45;
}

@keyframes swim {
	0% {
		transform: translateX(-20vw) translateY(0) scaleX(1);
	}
	18% {
		transform: translateX(22vw) translateY(-2vh) scaleX(1);
	}
	42% {
		transform: translateX(47vw) translateY(2.5vh) scaleX(1);
	}
	67% {
		transform: translateX(75vw) translateY(-1.8vh) scaleX(1);
	}
	100% {
		transform: translateX(135vw) translateY(0.8vh) scaleX(1);
	}
}

@keyframes sharkSwim {
	0% {
		transform: translateX(-22vw) translateY(0) scaleX(1);
	}
	30% {
		transform: translateX(36vw) translateY(-1.6vh) scaleX(1);
	}
	65% {
		transform: translateX(84vw) translateY(1.4vh) scaleX(1);
	}
	100% {
		transform: translateX(140vw) translateY(-0.8vh) scaleX(1);
	}
}

@keyframes jellyDrift {
	0% {
		transform: translateX(0) translateY(0) scale(1);
	}
	25% {
		transform: translateX(1.4vw) translateY(-3.8vh) scale(1.02);
	}
	55% {
		transform: translateX(-1.1vw) translateY(-7vh) scale(0.98);
	}
	100% {
		transform: translateX(1.9vw) translateY(-12vh) scale(1.03);
	}
}

@keyframes tail {
	0%, 100% {
		transform: rotate(8deg);
	}
	50% {
		transform: rotate(-12deg);
	}
}

@keyframes rise {
	0% {
		transform: translateY(0) translateX(0);
	}
	100% {
		transform: translateY(-118vh) translateX(2.8vw);
	}
}

@keyframes logoFloat {
	0%,
	100% {
		transform: translate(-50%, -50%);
	}
	50% {
		transform: translate(-50%, calc(-50% - 10px));
	}
}

@keyframes diverSwim {
	0% {
		transform: translateX(-22vw) translateY(0) rotate(1deg) scale(var(--scale, 1));
		opacity: 0;
	}
	8% {
		opacity: 0.82;
	}
	42% {
		transform: translateX(44vw) translateY(calc(var(--drift, 10px) * -1)) rotate(-2deg) scale(var(--scale, 1));
	}
	72% {
		transform: translateX(84vw) translateY(var(--drift, 10px)) rotate(1.5deg) scale(var(--scale, 1));
	}
	100% {
		transform: translateX(136vw) translateY(0) rotate(0deg) scale(var(--scale, 1));
		opacity: 0;
	}
}

@keyframes kickFront {
	0%,
	100% {
		transform: rotate(16deg);
	}
	50% {
		transform: rotate(-24deg);
	}
}

@keyframes kickBack {
	0%,
	100% {
		transform: rotate(-18deg);
	}
	50% {
		transform: rotate(16deg);
	}
}

@keyframes armMove {
	0%,
	100% {
		transform: rotate(-7deg);
	}
	50% {
		transform: rotate(12deg);
	}
}

@keyframes thighFront {
	0%,
	100% {
		transform: rotate(9deg);
	}
	50% {
		transform: rotate(-12deg);
	}
}

@keyframes thighBack {
	0%,
	100% {
		transform: rotate(-10deg);
	}
	50% {
		transform: rotate(12deg);
	}
}

@keyframes shinFront {
	0%,
	100% {
		transform: rotate(20deg);
	}
	50% {
		transform: rotate(-4deg);
	}
}

@keyframes shinBack {
	0%,
	100% {
		transform: rotate(-6deg);
	}
	50% {
		transform: rotate(16deg);
	}
}

@keyframes finFront {
	0%,
	100% {
		transform: rotate(13deg);
	}
	50% {
		transform: rotate(-15deg);
	}
}

@keyframes finBack {
	0%,
	100% {
		transform: rotate(-11deg);
	}
	50% {
		transform: rotate(14deg);
	}
}

@keyframes ripple {
	0% {
		transform: translateY(0) scale(1);
		opacity: 0.5;
	}
	50% {
		transform: translateY(6px) scale(1.03);
		opacity: 0.7;
	}
	100% {
		transform: translateY(0) scale(1);
		opacity: 0.5;
	}
}

@media (max-width: 720px) {
	.top-nav {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		top: 14px;
	}

	.logo-wrap {
		width: min(92vw, 560px);
		border-radius: 20px;
		top: 50%;
		padding: 12px;
		max-height: 90vh;
	}

	.logo-wrap img {
		width: min(100%, 240px);
	}

	.reef {
		height: 22vh;
	}

	.site-footer {
		font-size: 0.74rem;
		bottom: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fish,
	.shark,
	.jellyfish,
	.diver,
	.bubble,
	.underwater-glow,
	.logo-wrap {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
}
