/* EfeGarage — ZF intro splash (fullscreen, no gears) */

.efegarage-intro {
	--intro-duration: 5.2s;
	--intro-blue: #0058a3;
	--intro-dark: #0b1d3a;
	--intro-font: "Inter", "Segoe UI", system-ui, sans-serif;
	font-family: var(--intro-font);
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	z-index: 999999;
	/* Kurumsal mavi zemin — görselin siyah arka planı blend ile bu maviye oturur */
	background:
		radial-gradient(ellipse at 50% 42%, rgba(0, 88, 163, 0.55) 0%, transparent 58%),
		linear-gradient(165deg, #062447 0%, var(--intro-dark) 42%, #003d73 100%);
	overflow: hidden;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease, visibility 0.9s ease;
}

.efegarage-intro.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Hex grid background */
.efegarage-intro__hex {
	position: absolute;
	inset: -20%;
	background-image:
		radial-gradient(circle at 50% 50%, rgba(0, 88, 163, 0.14), transparent 55%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='%231e3a5f' stroke-width='1' d='M28 1 L55 15 L55 43 L28 57 L1 43 L1 15 Z'/%3E%3C/svg%3E");
	background-size: auto, 84px 140px;
	opacity: 0.4;
	animation: efegarage-intro-hex 20s linear infinite;
}

/* Blueprint crosshair lines */
.efegarage-intro__blueprint {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.efegarage-intro__line {
	position: absolute;
	top: 50%;
	left: 50%;
	background: linear-gradient(90deg, transparent, rgba(0, 88, 163, 0.35), transparent);
	transform-origin: center;
	animation: efegarage-intro-blueprint var(--intro-duration) ease-in-out forwards;
}

.efegarage-intro__line--h {
	width: 120vw;
	height: 1px;
	margin-left: -60vw;
	margin-top: -0.5px;
}

.efegarage-intro__line--v {
	width: 1px;
	height: 120vh;
	margin-left: -0.5px;
	margin-top: -60vh;
	background: linear-gradient(180deg, transparent, rgba(0, 88, 163, 0.35), transparent);
}

.efegarage-intro__line--d1 {
	width: 140vmax;
	height: 1px;
	margin-left: -70vmax;
	margin-top: -0.5px;
	transform: rotate(45deg);
}

.efegarage-intro__line--d2 {
	width: 140vmax;
	height: 1px;
	margin-left: -70vmax;
	margin-top: -0.5px;
	transform: rotate(-45deg);
}

/* Main stage */
.efegarage-intro__stage {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.efegarage-intro__glow {
	position: absolute;
	width: min(75vw, 75vh);
	height: min(75vw, 75vh);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 88, 163, 0.35) 0%, transparent 70%);
	filter: blur(48px);
	animation: efegarage-intro-pulse 2.4s ease-in-out infinite;
	z-index: 1;
}

/* Scan line sweep */
.efegarage-intro__scanline {
	position: absolute;
	inset: 0;
	z-index: 4;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(0, 88, 163, 0.04) 48%,
		rgba(96, 165, 250, 0.18) 50%,
		rgba(0, 88, 163, 0.04) 52%,
		transparent 100%
	);
	background-size: 100% 200%;
	animation: efegarage-intro-scan 2.8s ease-in-out infinite;
	pointer-events: none;
}

.efegarage-intro__core {
	position: absolute;
	inset: 0;
	z-index: 2;
	animation: efegarage-intro-core var(--intro-duration) cubic-bezier(0.45, 0.05, 0.2, 1) forwards;
}

.efegarage-intro__core::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(11, 29, 58, 0.45) 0%, transparent 28%, transparent 72%, rgba(11, 29, 58, 0.55) 100%),
		radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(11, 29, 58, 0.5) 100%);
}

.efegarage-intro__hero {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
	/* Siyah stüdyo zemini mavi arka plana karışır; parçalar önde kalır */
	mix-blend-mode: screen;
	opacity: 0.92;
	filter: saturate(1.05) contrast(1.08) brightness(1.05);
	animation: efegarage-intro-hero var(--intro-duration) cubic-bezier(0.45, 0.05, 0.2, 1) forwards;
}

/* Center headline */
.efegarage-intro__headline {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 6;
	width: min(92vw, 720px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transform: translate(-50%, -50%);
	animation: efegarage-intro-headline var(--intro-duration) cubic-bezier(0.45, 0.05, 0.2, 1) forwards;
	pointer-events: none;
}

.efegarage-intro__title {
	margin: 0 0 1rem;
	width: 100%;
	font-size: clamp(2rem, 6vw, 3.25rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	color: #ffffff;
	text-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}

.efegarage-intro__subtitle {
	margin: 0 auto;
	max-width: 52ch;
	font-size: clamp(0.9rem, 2vw, 1.05rem);
	font-weight: 500;
	line-height: 1.65;
	letter-spacing: 0.01em;
	text-transform: none;
	text-align: center;
	color: rgba(232, 242, 252, 0.95);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Floating service cards — orbit from true viewport center */
.efegarage-intro__tag {
	--angle: calc(var(--i) * 60deg);
	--spread: clamp(240px, 44vmin, 560px);
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	transform-origin: center center;
	transform:
		translate(-50%, -50%)
		rotate(var(--angle))
		translateX(var(--spread))
		rotate(calc(var(--angle) * -1));
	animation: efegarage-intro-tag var(--intro-duration) cubic-bezier(0.45, 0.05, 0.2, 1) forwards;
}

.efegarage-intro__tag-inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	min-width: clamp(168px, 22vw, 220px);
	background: linear-gradient(135deg, rgba(11, 29, 58, 0.88) 0%, rgba(15, 35, 62, 0.78) 100%);
	border: 1px solid rgba(96, 165, 250, 0.28);
	border-radius: 4px;
	overflow: hidden;
	backdrop-filter: blur(12px);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.efegarage-intro__tag-inner::before {
	content: "";
	width: 3px;
	flex-shrink: 0;
	background: linear-gradient(180deg, #60a5fa 0%, #0058a3 100%);
	box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.efegarage-intro__tag-code {
	display: flex;
	align-items: center;
	padding: 0.65rem 0.55rem 0.65rem 0.75rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: rgba(147, 197, 253, 0.75);
	font-variant-numeric: tabular-nums;
	border-right: 1px solid rgba(96, 165, 250, 0.15);
}

.efegarage-intro__tag-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
	padding: 0.55rem 0.85rem 0.55rem 0.65rem;
}

.efegarage-intro__tag-title {
	font-size: clamp(0.78rem, 1.6vw, 0.92rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.25;
	color: #f8fafc;
}

.efegarage-intro__tag-desc {
	font-size: clamp(0.62rem, 1.2vw, 0.72rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.35;
	color: rgba(186, 210, 235, 0.88);
}

/* Cinematic corner brackets */
.efegarage-intro__frame {
	position: absolute;
	inset: clamp(16px, 3vw, 32px);
	z-index: 6;
	pointer-events: none;
	animation: efegarage-intro-frame var(--intro-duration) ease forwards;
}

.efegarage-intro__corner {
	position: absolute;
	width: clamp(28px, 5vw, 48px);
	height: clamp(28px, 5vw, 48px);
	border-color: rgba(96, 165, 250, 0.75);
	border-style: solid;
	border-width: 0;
}

.efegarage-intro__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.efegarage-intro__corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.efegarage-intro__corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.efegarage-intro__corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* Vignette overlay */
.efegarage-intro__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background:
		linear-gradient(180deg, rgba(11, 29, 58, 0.4) 0%, transparent 28%, transparent 68%, rgba(11, 29, 58, 0.88) 100%),
		radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.5) 100%);
	pointer-events: none;
}

.efegarage-intro__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 4px;
	width: 0;
	z-index: 8;
	background: linear-gradient(90deg, #0058a3, #60a5fa);
	box-shadow: 0 0 16px rgba(0, 88, 163, 0.6);
	animation: efegarage-intro-progress var(--intro-duration) linear forwards;
}

/* Animations */
@keyframes efegarage-intro-headline {
	0%, 10% {
		opacity: 0;
		transform: translate(-50%, -46%) scale(0.96);
		filter: blur(4px);
	}
	22%, 72% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
		filter: blur(0);
	}
	88%, 100% {
		opacity: 0;
		transform: translate(-50%, -54%) scale(1.02);
		filter: blur(2px);
	}
}

@keyframes efegarage-intro-tag {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) rotate(var(--angle)) translateX(calc(var(--spread) * 1.15)) rotate(calc(var(--angle) * -1)) scale(0.9);
	}
	14% { opacity: 1; }
	30% {
		transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--spread)) rotate(calc(var(--angle) * -1)) scale(1);
	}
	48% {
		transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) rotate(calc(var(--angle) * -1)) scale(0.85);
		opacity: 0.95;
	}
	62% {
		transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) rotate(calc(var(--angle) * -1)) scale(0.8);
	}
	78% {
		transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--spread)) rotate(calc(var(--angle) * -1)) scale(1);
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) rotate(var(--angle)) translateX(calc(var(--spread) * 1.3)) rotate(calc(var(--angle) * -1)) scale(0.85);
	}
}

@keyframes efegarage-intro-blueprint {
	0%, 100% { opacity: 0; }
	15%, 75% { opacity: 1; }
}

@keyframes efegarage-intro-scan {
	0% { background-position: 0 -100%; }
	100% { background-position: 0 200%; }
}

@keyframes efegarage-intro-frame {
	0%, 8% { opacity: 0; }
	18%, 85% { opacity: 1; }
	100% { opacity: 0; }
}

@keyframes efegarage-intro-core {
	0%, 100% { transform: scale(1.06); }
	48%, 62% { transform: scale(1); }
}

@keyframes efegarage-intro-hero {
	0% { filter: saturate(0.9) contrast(1) brightness(0.85); transform: scale(1.08); opacity: 0.75; }
	48%, 62% { filter: saturate(1.08) contrast(1.1) brightness(1.06); transform: scale(1); opacity: 0.95; }
	100% { filter: saturate(1) contrast(1.05) brightness(0.95); transform: scale(1.04); opacity: 0; }
}

@keyframes efegarage-intro-progress {
	to { width: 100%; }
}

@keyframes efegarage-intro-pulse {
	0%, 100% { transform: scale(0.95); opacity: 0.6; }
	50% { transform: scale(1.06); opacity: 1; }
}

@keyframes efegarage-intro-hex {
	to { transform: translate3d(-40px, -24px, 0); }
}

html.efegarage-intro-active,
body.efegarage-intro-active {
	overflow: hidden !important;
	height: 100%;
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.efegarage-intro { --intro-duration: 1.2s; }
	.efegarage-intro__tag,
	.efegarage-intro__headline,
	.efegarage-intro__hero,
	.efegarage-intro__core,
	.efegarage-intro__scanline {
		animation-duration: 1.2s !important;
	}
}
